Documentation

LeanPool.RupertMinimality.Minimality.OctaTools

Octa Tools #

Tools for Theorem 9.9 #

theorem RupertMinimality.Minimality.det3_expand (a b c : ℝ³) :
det3 a b c = (a.ofLp 1 * b.ofLp 2 - a.ofLp 2 * b.ofLp 1) * c.ofLp 0 + (a.ofLp 2 * b.ofLp 0 - a.ofLp 0 * b.ofLp 2) * c.ofLp 1 + (a.ofLp 0 * b.ofLp 1 - a.ofLp 1 * b.ofLp 0) * c.ofLp 2
theorem RupertMinimality.Minimality.det3_mul_inner_sub (e u w w' N : ℝ³) :
det3 e w u * inner ℝ N w' - det3 e w' u * inner ℝ N w = inner ℝ (cross w w') e * inner ℝ u N - inner ℝ (cross w w') u * inner ℝ e N
theorem RupertMinimality.Minimality.det3_mul_inner_eq {e u w w' N : ℝ³} (h1 : inner ℝ N e = 0) (h2 : inner ℝ N u = 0) :
det3 e w u * inner ℝ N w' = det3 e w' u * inner ℝ N w
theorem RupertMinimality.Minimality.det3_cyc (A B C u : ℝ³) :
det3 (C - B) (A - B) u = det3 (B - A) (C - A) u
theorem RupertMinimality.Minimality.det3_shift (A B C u : ℝ³) (s : ℝ) :
det3 (B - A) (C - (A + s • u)) u = det3 (B - A) (C - A) u
theorem RupertMinimality.Minimality.det3_pos_of_combo_σ {f₁ f₂ : ℝ³ → ℝ} {N₁ N₂ : ℝ³} (h₁ : ∀ (y z : ℝ³), f₁ y - f₁ z = inner ℝ N₁ (y - z)) (h₂ : ∀ (y z : ℝ³), f₂ y - f₂ z = inner ℝ N₂ (y - z)) {P Q u : ℝ³} (h1P : f₁ P = 0) (h1Q : f₁ Q = 0) (h2P : f₂ P = 0) (h2Q : f₂ Q = 0) {α β : ℝ} (hαβ : α * inner ℝ N₁ u + β * inner ℝ N₂ u = 0) {r w : ℝ³} {σ : ℝ} (hr : 0 < σ * det3 (Q - P) (r - P) u) (hgr : α * f₁ r + β * f₂ r < 0) (hgw : α * f₁ w + β * f₂ w < 0) :
0 < σ * det3 (Q - P) (w - P) u

Determinant tests from facet combinations. f₁, f₂ are affine (with linear parts N₁, N₂) and vanish at P, Q; the combination g = α f₁ + β f₂ is constant along u. Then the tests det3 (Q - P) (w - P) u have the sign of -g w, normalized by a reference.

theorem RupertMinimality.Minimality.det3_pos_of_combo {f₁ f₂ : ℝ³ → ℝ} {N₁ N₂ : ℝ³} (h₁ : ∀ (y z : ℝ³), f₁ y - f₁ z = inner ℝ N₁ (y - z)) (h₂ : ∀ (y z : ℝ³), f₂ y - f₂ z = inner ℝ N₂ (y - z)) {P Q u : ℝ³} (h1P : f₁ P = 0) (h1Q : f₁ Q = 0) (h2P : f₂ P = 0) (h2Q : f₂ Q = 0) {α β : ℝ} (hαβ : α * inner ℝ N₁ u + β * inner ℝ N₂ u = 0) {r w : ℝ³} (hr : 0 < det3 (Q - P) (r - P) u) (hgr : α * f₁ r + β * f₂ r < 0) (hgw : α * f₁ w + β * f₂ w < 0) :
0 < det3 (Q - P) (w - P) u

The determinant sign test for the positive orientation.

theorem RupertMinimality.Minimality.det3_zero_of_combo {f₁ f₂ : ℝ³ → ℝ} {N₁ N₂ : ℝ³} (h₁ : ∀ (y z : ℝ³), f₁ y - f₁ z = inner ℝ N₁ (y - z)) (h₂ : ∀ (y z : ℝ³), f₂ y - f₂ z = inner ℝ N₂ (y - z)) {P Q u : ℝ³} (h1P : f₁ P = 0) (h1Q : f₁ Q = 0) (h2P : f₂ P = 0) (h2Q : f₂ Q = 0) {α β : ℝ} (hαβ : α * inner ℝ N₁ u + β * inner ℝ N₂ u = 0) {r w : ℝ³} (hgr : α * f₁ r + β * f₂ r ≠ 0) (hgw : α * f₁ w + β * f₂ w = 0) :
det3 (Q - P) (w - P) u = 0
theorem RupertMinimality.Minimality.four_point_parallel (A B C D u : ℝ³) (hu : u ≠ 0) :
det3 (C - B) (D - B) u • A - det3 (C - A) (D - A) u • B + det3 (B - A) (D - A) u • C - det3 (B - A) (C - A) u • D = (inner ℝ (det3 (C - B) (D - B) u • A - det3 (C - A) (D - A) u • B + det3 (B - A) (D - A) u • C - det3 (B - A) (C - A) u • D) u / inner ℝ u u) • u

Four points modulo a direction. S_BCD A - S_ACD B + S_ABD C - S_ABC D is parallel to u (S_XYZ := det3 (Y - X) (Z - X) u); its coefficients sum to zero.

theorem RupertMinimality.Minimality.four_point_sum (A B C D u : ℝ³) :
det3 (C - B) (D - B) u - det3 (C - A) (D - A) u + det3 (B - A) (D - A) u - det3 (B - A) (C - A) u = 0

Silhouette edges between two facets #

theorem RupertMinimality.Minimality.axis_edge_pos {V : Finset ℝ³} {t t' P Q : ℝ³} (h₁ : IsFacetTriangle V t P Q) (h₂ : IsFacetTriangle V t' P Q) (ht : t ∈ V) (ht' : t' ∈ V) (htt : t ≠ t') (htP : t ≠ P) (htQ : t ≠ Q) (ht'P : t' ≠ P) (ht'Q : t' ≠ Q) {r w : ℝ³} (hr : r ∈ V) (hrP : r ≠ P) (hrQ : r ≠ Q) (hw : w ∈ V) (hwP : w ≠ P) (hwQ : w ≠ Q) (href : 0 < det3 (Q - P) (r - P) (t' - t)) :
0 < det3 (Q - P) (w - P) (t' - t)

The signs of the determinant tests at an edge PQ of two facets, one through t and one through t', for views along t' - t.

theorem RupertMinimality.Minimality.det3_zero_of_combo_ref {f₁ f₂ : ℝ³ → ℝ} {N₁ N₂ : ℝ³} (h₁ : ∀ (y z : ℝ³), f₁ y - f₁ z = inner ℝ N₁ (y - z)) (h₂ : ∀ (y z : ℝ³), f₂ y - f₂ z = inner ℝ N₂ (y - z)) {P Q u : ℝ³} (h1P : f₁ P = 0) (h1Q : f₁ Q = 0) (h2P : f₂ P = 0) (h2Q : f₂ Q = 0) {α β : ℝ} (hαβ : α * inner ℝ N₁ u + β * inner ℝ N₂ u = 0) {r w : ℝ³} (hr : det3 (Q - P) (r - P) u = 0) (hgr : α * f₁ r + β * f₂ r ≠ 0) :
det3 (Q - P) (w - P) u = 0
theorem RupertMinimality.Minimality.affine_zero_of_coplanar {f : ℝ³ → ℝ} {N : ℝ³} (hf : ∀ (y z : ℝ³), f y - f z = inner ℝ N (y - z)) {P Q R w : ℝ³} (hP : f P = 0) (hQ : f Q = 0) (hR : f R = 0) (hc : cross (Q - P) (R - P) ≠ 0) (hw : det3 (Q - P) (R - P) (w - P) = 0) :
f w = 0

An affine function vanishing at three non-collinear points vanishes on their plane.

theorem RupertMinimality.Minimality.cross_ne_zero_of_affine {g : ℝ³ → ℝ} {N : ℝ³} (hg : ∀ (y z : ℝ³), g y - g z = inner ℝ N (y - z)) {P Q R : ℝ³} (hPQ : P ≠ Q) (hP : g P = 0) (hQ : g Q = 0) (hR : g R < 0) :
cross (Q - P) (R - P) ≠ 0

A facet's three vertices are not collinear when an adjacent facet (through two of them) is strictly negative at the third.

theorem RupertMinimality.Minimality.det3_sub_left_eq (e x t t' : ℝ³) :
det3 e (t - x) (t' - t) = det3 e (t - x) (t' - x)

Symmetries of IsOctahedron #

theorem RupertMinimality.Minimality.IsOctahedron.swap₁ {a a' b b' c c' : ℝ³} (h : IsOctahedron a a' b b' c c') :
IsOctahedron a' a b b' c c'
theorem RupertMinimality.Minimality.IsOctahedron.swap₂ {a a' b b' c c' : ℝ³} (h : IsOctahedron a a' b b' c c') :
IsOctahedron a a' b' b c c'
theorem RupertMinimality.Minimality.IsOctahedron.swap₃ {a a' b b' c c' : ℝ³} (h : IsOctahedron a a' b b' c c') :
IsOctahedron a a' b b' c' c
theorem RupertMinimality.Minimality.IsOctahedron.perm₁₂ {a a' b b' c c' : ℝ³} (h : IsOctahedron a a' b b' c c') :
IsOctahedron b b' a a' c c'
theorem RupertMinimality.Minimality.IsOctahedron.perm₂₃ {a a' b b' c c' : ℝ³} (h : IsOctahedron a a' b b' c c') :
IsOctahedron a a' c c' b b'