Documentation

LeanPool.ConwaySoifer.Geometry.Oblique

Bridge to the vendored oblique-coordinate library #

toOblique (a, b) = (a + b/2, b) is the linear change of coordinates from the triangular coordinates of this project to the oblique coordinates of the vendored SevenTriangles library (pinned commit b17ca52a395519f43fc15f83fb49a5dd69996225). It preserves sqDist, maps the hexagon onto unitHexagon, the six vertices onto the six vertices with the same index, and has determinant one, so it preserves Lebesgue measure. Consequently every nondegenerate triangle of this project is a triangle of the vendored library with the same side, and the 120-degree wedge area-loss lemma transfers verbatim.

noncomputable def ConwaySoifer.ofOblique (p : Point) :

The inverse linear coordinate change from oblique to triangular coordinates.

Equations
Instances For

    The determinant-one linear coordinate change to the borrowed oblique-coordinate geometry.

    Equations
    Instances For

      A nondegenerate triangle of this project as a triangle of the vendored library.

      Equations
      Instances For
        theorem ConwaySoifer.wedge_area_weak (i : Fin 6) (T : EquilateralTriangle) (hs : 0 < T.side) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hv : vertex i ∈ T.carrier) (hpa : linePoint (vertex i) (sideDirection i false) a ∈ T.carrier) (hpb : linePoint (vertex i) (sideDirection i true) b ∈ T.carrier) :

        The weak 120-degree wedge area-loss lemma in triangular coordinates: a triangle containing vertex i and the points at ray parameters a (towards vertex (i+5)) and b (towards vertex (i+1)) loses volume at least min(a², b²)/2 outside the hexagon.

        theorem ConwaySoifer.wedge_area_strong (i : Fin 6) (T : EquilateralTriangle) (hs : 0 < T.side) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hv : vertex i ∈ T.carrier) (hpa : linePoint (vertex i) (sideDirection i false) a ∈ T.carrier) (hpb : linePoint (vertex i) (sideDirection i true) b ∈ T.carrier) (hab : T.side < a + b) :

        The strong version, valid when the two contained lengths exceed the side.