Documentation

Lightlike.Regge.CMS.GridExample

A grid patch with a non-empty interior (RC6b) #

A 4 × 4 grid of vertices h (a, b) is cut into 3 × 3 squares, each split by the diagonal from its lower-left to its upper-right corner into two right triangles (18 triangles). The four central vertices form V, each with a full star of six triangles; the two triangles of the central square have all three corners in V, so the interior union of cms_convergence_triangulation is non-empty.

This file proves the combinatorial and geometric hypotheses: the triangles overlap only in null sets (three families of null lines) and each lies in a unit-scaled square.

def Lightlike.CMS.gP (h : ℝ) (v : ℕ × ℕ) :
Fin 2 → ℝ

Position of the grid vertex (a, b).

Equations
Instances For
    @[reducible, inline]
    abbrev Lightlike.CMS.GT (m : ℕ) :

    Index of a triangle: the square (i, j) and which half (true: lower right).

    Equations
    Instances For
      def Lightlike.CMS.gC {m : ℕ} :
      GT m → Fin 3 → ℕ × ℕ

      Corners of the triangles.

      Equations
      Instances For
        theorem Lightlike.CMS.grid_mem {m : ℕ} {h : ℝ} (hh : 0 ≤ h) (i j : Fin m) (b : Bool) {x : Fin 2 → ℝ} (hx : x ∈ cell (gP h) gC (i, j, b)) :
        h * ↑↑i ≤ x 0 ∧ x 0 ≤ h * (↑↑i + 1) ∧ h * ↑↑j ≤ x 1 ∧ x 1 ≤ h * (↑↑j + 1) ∧ (b = true → h * (↑↑i - ↑↑j) ≤ x 0 - x 1) ∧ (b = false → x 0 - x 1 ≤ h * (↑↑i - ↑↑j))

        Bounds satisfied by a point of the triangle (i, j, b).

        theorem Lightlike.CMS.line_of_ne {h x : ℝ} (hh : 0 < h) {i i' : ℕ} (hne : i ≠ i') (h1 : h * ↑i ≤ x ∧ x ≤ h * (↑i + 1)) (h2 : h * ↑i' ≤ x ∧ x ≤ h * (↑i' + 1)) :
        ∃ (k : ℕ), x = h * ↑k

        Two numbers in the intervals [i h, (i+1) h] and [i' h, (i'+1) h] with i ≠ i' lie on a grid line.

        theorem Lightlike.CMS.null_coord (k : Fin 2) (c : ℝ) :
        MeasureTheory.volume {x : Fin 2 → ℝ | x k = c} = 0
        theorem Lightlike.CMS.null_diag (c : ℝ) :
        MeasureTheory.volume {x : Fin 2 → ℝ | x 0 - x 1 = c} = 0
        theorem Lightlike.CMS.grid_disjoint {m : ℕ} {h : ℝ} (hh : 0 < h) (t t' : GT m) (hne : t ≠ t') :

        Distinct triangles of the patch overlap in a null set.

        The interior vertices (a, b), 1 ≤ a, b ≤ m - 1, of the m × m grid.

        Equations
        Instances For
          theorem Lightlike.CMS.mem_gV {m : ℕ} {v : ℕ × ℕ} :
          v ∈ gV m ↔ 1 ≤ v.1 ∧ v.1 ≤ m - 1 ∧ 1 ≤ v.2 ∧ v.2 ≤ m - 1
          theorem Lightlike.CMS.zmod6_cases (j : ZMod 6) :
          j = 0 ∨ j = 1 ∨ j = 2 ∨ j = 3 ∨ j = 4 ∨ j = 5

          Neighbours of v, in cyclic order.

          Equations
          Instances For
            def Lightlike.CMS.gtt (m : ℕ) [NeZero m] (v : ℕ × ℕ) :
            ZMod 6 → GT m

            The six triangles around v, in the order of the neighbours.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Lightlike.CMS.ofNat_val {m : ℕ} [NeZero m] {a : ℕ} (h : a < m) :
              ↑(Fin.ofNat m a) = a
              theorem Lightlike.CMS.grid_star (m : ℕ) [NeZero m] (v : ℕ × ℕ) :
              v ∈ gV m → Function.Injective (gtt m v) ∧ ∀ (t : GT m), (∃ (k : Fin 3), gC t k = v) ↔ ∃ (j : ZMod 6), gtt m v j = t
              theorem Lightlike.CMS.grid_corn (m : ℕ) [NeZero m] (v : ℕ × ℕ) :
              v ∈ gV m → ∀ (j : ZMod 6), ∃ (σ : Equiv.Perm (Fin 3)), gC (gtt m v j) ∘ ⇑σ = ![v, gnb v j, gnb v (j + 1)]
              def Lightlike.CMS.gW (h : ℝ) :
              ZMod 6 → Fin 2 → ℝ

              The neighbour offsets, scaled by h.

              Equations
              Instances For
                theorem Lightlike.CMS.gP_nb (h : ℝ) {v : ℕ × ℕ} (h1 : 1 ≤ v.1) (h2 : 1 ≤ v.2) (j : ZMod 6) :
                gP h (gnb v j) - gP h v = gW h j
                theorem Lightlike.CMS.gW_norm {h : ℝ} (hh : 0 ≤ h) (j : ZMod 6) :
                theorem Lightlike.CMS.gW_det2 (h : ℝ) (j : ZMod 6) :
                det2 (gW h j) (gW h (j + 1)) = h ^ 2
                theorem Lightlike.CMS.norm_toC (x : Fin 2 → ℝ) :
                ‖toC x‖ = √(x 0 ^ 2 + x 1 ^ 2)
                theorem Lightlike.CMS.gW_angle {h : ℝ} (hh : 0 < h) (j : ZMod 6) :
                theorem Lightlike.CMS.gW_angle_sum {h : ℝ} (hh : 0 < h) :
                ∑ j : ZMod 6, InnerProductGeometry.angle (toC (gW h j)) (toC (gW h (j + 1))) = 2 * Real.pi
                theorem Lightlike.CMS.grid_in_box {m : ℕ} {h : ℝ} (hh : 0 < h) (t : GT m) :
                cell (gP h) gC t ⊆ Set.Icc 0 fun (x : Fin 2) => h * ↑m

                The triangles of the m × m grid lie in the box [0, h m]².

                theorem Lightlike.CMS.grid_edge {m : ℕ} {h : ℝ} (hh : 0 < h) (t : GT m) (k : Fin 3) :
                dist (gP h (gC t k)) (gP h (gC t 0)) ≤ h
                theorem Lightlike.CMS.grid_boundary_card_le (m : ℕ) [NeZero m] :
                {t : GT m | cornersIn gC (gV m) t ≠ 3}.card ≤ 8 * m

                At most 8 m triangles of the m × m grid have a corner outside the interior vertices: they lie in the squares of the outer ring.

                theorem Lightlike.CMS.grid_bound_general {g : (Fin 2 → ℝ) → Matrix (Fin 2) (Fin 2) ℝ} (hg : Geodesic.IsRiemMetric g Set.univ) {R : ℝ} (hR : 0 < R) :
                ∃ (C : ℝ) (h₀ : ℝ), 0 < h₀ ∧ ∀ (m : ℕ) [NeZero m] (h : ℝ), 0 < h → h ≤ h₀ → h * ↑m ≤ R → |∑ v ∈ gV m, (fun (x : Fin 2 → ℝ) => 1) (gP h v) * (2 * Real.pi - ∑ j : ZMod 6, triAngle (Geodesic.dist g Set.univ (gP h v) (gP h (gnb v j)) ^ 2) (Geodesic.dist g Set.univ (gP h v) (gP h (gnb v (j + 1))) ^ 2) (Geodesic.dist g Set.univ (gP h (gnb v j)) (gP h (gnb v (j + 1))) ^ 2)) - ∫ (x : Fin 2 → ℝ) in ⋃ t ∈ {t : GT m | cornersIn gC (gV m) t = 3}, cell (gP h) gC t, (fun (x : Fin 2 → ℝ) => 1) x * (scalarCurvature g x / 2 * √(g x).det)| ≤ C * h

                The convergence bound for the m × m grid, for every size and with constants independent of the size. In the square [0, R]², for a Riemannian metric g, mesh h with h m ≤ R, the interior vertices 1 ≤ a, b ≤ m - 1 have full stars of six triangles; the constants C, h₀ do not depend on m.

                theorem Lightlike.CMS.grid_triangulation_bound_of {g : (Fin 2 → ℝ) → Matrix (Fin 2) (Fin 2) ℝ} (hg : Geodesic.IsRiemMetric g Set.univ) :
                ∃ (C : ℝ) (h₀ : ℝ), 0 < h₀ ∧ ∀ (h : ℝ), 0 < h → h ≤ h₀ → h ≤ 1 → |∑ v ∈ gV 3, (fun (x : Fin 2 → ℝ) => 1) (gP h v) * (2 * Real.pi - ∑ j : ZMod 6, triAngle (Geodesic.dist g Set.univ (gP h v) (gP h (gnb v j)) ^ 2) (Geodesic.dist g Set.univ (gP h v) (gP h (gnb v (j + 1))) ^ 2) (Geodesic.dist g Set.univ (gP h (gnb v j)) (gP h (gnb v (j + 1))) ^ 2)) - ∫ (x : Fin 2 → ℝ) in ⋃ t ∈ {t : GT 3 | cornersIn gC (gV 3) t = 3}, cell (gP h) gC t, (fun (x : Fin 2 → ℝ) => 1) x * (scalarCurvature g x / 2 * √(g x).det)| ≤ C * h

                Non-vacuity, non-degenerate. The 4 × 4 grid patch with the four central vertices, for any Riemannian metric g on the plane: six triangles per vertex, 2 interior and 16 boundary triangles, and the bound of the convergence theorem.

                theorem Lightlike.CMS.grid_triangulation_bound :
                ∃ (C : ℝ) (h₀ : ℝ), 0 < h₀ ∧ ∀ (h : ℝ), 0 < h → h ≤ h₀ → h ≤ 1 → |∑ v ∈ gV 3, (fun (x : Fin 2 → ℝ) => 1) (gP h v) * (2 * Real.pi - ∑ j : ZMod 6, triAngle (Geodesic.dist (Geodesic.shearBy fun (x : ℝ) => 0) Set.univ (gP h v) (gP h (gnb v j)) ^ 2) (Geodesic.dist (Geodesic.shearBy fun (x : ℝ) => 0) Set.univ (gP h v) (gP h (gnb v (j + 1))) ^ 2) (Geodesic.dist (Geodesic.shearBy fun (x : ℝ) => 0) Set.univ (gP h (gnb v j)) (gP h (gnb v (j + 1))) ^ 2)) - ∫ (x : Fin 2 → ℝ) in ⋃ t ∈ {t : GT 3 | cornersIn gC (gV 3) t = 3}, cell (gP h) gC t, (fun (x : Fin 2 → ℝ) => 1) x * (scalarCurvature (Geodesic.shearBy fun (x : ℝ) => 0) x / 2 * √(Geodesic.shearBy (fun (x : ℝ) => 0) x).det)| ≤ C * h

                Non-vacuity, non-degenerate. The 4 × 4 grid patch with the four central vertices, for the flat metric: six triangles per vertex, 2 interior and 16 boundary triangles.

                theorem Lightlike.CMS.grid_interior_positive {h : ℝ} (hh : 0 < h) :
                0 < MeasureTheory.volume (⋃ t ∈ {t : GT 3 | cornersIn gC (gV 3) t = 3}, cell (gP h) gC t)

                Non-degeneracy. The interior triangles (all three corners in gV) are the two halves of the central square, and their union has positive area, so the integral region of grid_triangulation_bound is not empty.

                theorem Lightlike.CMS.reversed_star_not_fat {h ρ : ℝ} (hh : 0 < h) (hρ : 0 < ρ) :
                (∀ (j : ZMod 4), det2 (starW h (-j)) (starW h (-(j + 1))) = -h ^ 2) ∧ ∀ (j : ZMod 4), ¬ρ * h ^ 2 ≤ det2 (starW h (-j)) (starW h (-(j + 1)))

                Wrong-model check. The same four neighbours listed clockwise (j ↦ -j) have negative det2 for every consecutive pair, so the fatness hypothesis ρ h² ≤ det2 of the theorem fails for every ρ > 0: a star that is not positively oriented is rejected, while the counter-clockwise star satisfies it with ρ = 1 (starW_det2).