Documentation

LeanPool.ConwaySoifer.SevenTriangles.Geometry.Area

Areas in skew coordinates #

Point = ℝ × ℝ carries the product Lebesgue measure volume. Because (x, z) denotes the Euclidean point (x, (√3/2) z), the physical area of a set is (√3/2) · volume. Hence a filled equilateral triangle of side s has volume = s ^ 2 / 2 and the unit hexagon has volume = 3.

The area budget is the only place where measure theory enters the proof.

Implementation notes.

The product Lebesgue measure on skew coordinates is an additive Haar measure.

The standard triangle and its volume #

The standard triangle {(s, t) | 0 ≤ s, 0 ≤ t, s + t ≤ 1}.

Equations
Instances For

    Linear and affine images #

    theorem ConwaySoifer.SevenTriangles.linMap_apply (u v st : Point) :
    (linMap u v) st = st.1 • u + st.2 • v

    The determinant of linMap u v is the coordinate determinant coordDet u v.

    The affine map (s, t) ↦ p + s • u + t • v.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem ConwaySoifer.SevenTriangles.triMap_apply (p u v st : Point) :
      (triMap p u v) st = p + (linMap u v) st
      theorem ConwaySoifer.SevenTriangles.triMap_image (p u v : Point) (s : Set Point) :
      ⇑(triMap p u v) '' s = (fun (x : Point) => p + x) '' ⇑(linMap u v) '' s

      Area of a (possibly degenerate) triangle given by three vertices, in skew coordinates.

      Equilateral triangles #

      The unit hexagon #

      The area budget #

      theorem ConwaySoifer.SevenTriangles.area_budget (r : ℝ) (T : Configuration) (hs : ∀ (i : Fin 7), (T i).side ≤ r) (hc : CoversUnitHexagon T) :
      ∑ j : Fin 7, (MeasureTheory.volume ((T j).carrier \ unitHexagon)).toReal ≤ 7 * r ^ 2 / 2 - 3

      The area budget: the parts of the seven triangles outside the hexagon cannot exceed the total area surplus 7 r ^ 2 / 2 - 3 (skew units; multiply by √3/2 for physical area).