Native electron–photon support from ParticleFamilyE8Product
DefinitionMarkovScatteringJoint_NativeSupport_03Bmarkov-scattering
Source context for the measured electron–photon line, carrying these native mathematical modules and their certified helper results: ParticleFamilyE8Product, ParticleFamilyE8Roots.
Definition code
import Definitions.Def_MarkovScatteringJoint_NativeSupport_03
import Mathlib.Order.Fin.Basic
section
/-! Each of the two 81-root classes is the product of a 27-element
E6 pairing set and a three-element A2 pairing set. -/
namespace MarkovScattering.ParticleFamily.E8
open E8Data
/-- The two conjugate 81-root sectors. -/
def matterClass (hand : Bool) : Fin 4 := if hand then 3 else 2
abbrev MatterSector (hand : Bool) := {x : Root // component x = matterClass hand}
def matterIndex (hand : Bool) (x : Root) : Fin 27 :=
Fin.ofNat 27 ((if hand then matterLabel3 else matterLabel2) x.val)
def familyIndex (hand : Bool) (x : Root) : Fin 3 :=
Fin.ofNat 3 ((if hand then familyLabel3 else familyLabel2) x.val)
def productRoot (hand : Bool) (p : Fin 27 × Fin 3) : Root :=
Fin.ofNat 240 ((if hand then productRoot3 else productRoot2) (3*p.1.val+p.2.val))
def matterPairingVector (hand : Bool) (u : Fin 27) (i : Fin 6) : ℤ :=
(((if hand then matterPairing3 else matterPairing2) (6*u.val+i.val) : ℕ) : ℤ) - 3
def familyPairingVector (hand : Bool) (u : Fin 3) (i : Fin 2) : ℤ :=
(((if hand then familyPairing3 else familyPairing2) (2*u.val+i.val) : ℕ) : ℤ) - 3
private theorem all_roots (P : Root → Bool) (h : (List.finRange 240).all P = true) (x : Root) :
P x = true := (List.all_eq_true.mp h) x (by simp)
private theorem all_hands {p : Bool → Prop} (hfalse : p false) (htrue : p true) (b : Bool) : p b := by
cases b
· exact hfalse
· exact htrue
private def checkLeft (hand : Bool) (x : Root) : Bool :=
decide (component x = matterClass hand →
productRoot hand (matterIndex hand x, familyIndex hand x) = x)
set_option maxRecDepth 18000 in
set_option maxHeartbeats 18000000 in
private theorem product_left (hand : Bool) (x : Root) (h : component x = matterClass hand) :
productRoot hand (matterIndex hand x, familyIndex hand x) = x := by
have hall := all_hands (p := fun b => (List.finRange 240).all (checkLeft b) = true)
(by decide) (by decide) hand
exact (of_decide_eq_true (all_roots _ hall x)) h
private def checkRight (hand : Bool) (u : Fin 27) (v : Fin 3) : Bool :=
let x := productRoot hand (u,v)
decide (component x = matterClass hand ∧ matterIndex hand x = u ∧ familyIndex hand x = v)
set_option maxRecDepth 18000 in
set_option maxHeartbeats 18000000 in
private theorem product_right (hand : Bool) (u : Fin 27) (v : Fin 3) :
component (productRoot hand (u,v)) = matterClass hand ∧
matterIndex hand (productRoot hand (u,v)) = u ∧ familyIndex hand (productRoot hand (u,v)) = v := by
let P := fun b => (List.finRange 27).all
(fun a => (List.finRange 3).all (checkRight b a)) = true
have hall := all_hands (p := P) (by decide) (by decide) hand
have h₁ := (List.all_eq_true.mp hall) u (by simp)
exact of_decide_eq_true ((List.all_eq_true.mp h₁) v (by simp))
/-- A bijection between the root sector and its two physical pairing labels. -/
def matterProduct (hand : Bool) : MatterSector hand ≃ Fin 27 × Fin 3 where
toFun x := (matterIndex hand x, familyIndex hand x)
invFun p := ⟨productRoot hand p, (product_right hand p.1 p.2).1⟩
left_inv x := Subtype.ext (product_left hand x x.2)
right_inv p := Prod.ext (product_right hand p.1 p.2).2.1 (product_right hand p.1 p.2).2.2
private def checkPairing (hand : Bool) (x : Root) : Bool :=
!(component x == matterClass hand) ||
((List.finRange 6).all (fun i => matterPairingVector hand (matterIndex hand x) i ==
pairing (root x) (simple (Fin.castLE (by decide) i)))) &&
((List.finRange 2).all (fun i => familyPairingVector hand (familyIndex hand x) i ==
pairing (root x) (familySimpleRows i)))
set_option maxRecDepth 18000 in
set_option maxHeartbeats 18000000 in
private theorem check_matter_pairings (hand : Bool) (x : MatterSector hand) :
(∀ i : Fin 6, matterPairingVector hand (matterProduct hand x).1 i =
pairing (root x) (simple (Fin.castLE (by decide) i))) ∧
(∀ i : Fin 2, familyPairingVector hand (matterProduct hand x).2 i =
pairing (root x) (familySimpleRows i)) := by
have hall := all_hands (p := fun b => (List.finRange 240).all (checkPairing b) = true)
(by decide) (by decide) hand
have h := all_roots _ hall x.1
have hx : (component x.1 == matterClass hand) = true := by simp [x.2]
simp only [checkPairing, hx, Bool.not_true, Bool.false_or, Bool.and_eq_true] at h
exact ⟨fun i => of_decide_eq_true ((List.all_eq_true.mp h.1) i (by simp)),
fun i => of_decide_eq_true ((List.all_eq_true.mp h.2) i (by simp))⟩
theorem matter_pairing (hand : Bool) (x : MatterSector hand) (i : Fin 6) :
matterPairingVector hand (matterProduct hand x).1 i =
pairing (root x) (simple (Fin.castLE (by decide) i)) :=
(check_matter_pairings hand x).1 i
theorem family_pairing (hand : Bool) (x : MatterSector hand) (i : Fin 2) :
familyPairingVector hand (matterProduct hand x).2 i =
pairing (root x) (familySimpleRows i) :=
(check_matter_pairings hand x).2 i
end MarkovScattering.ParticleFamily.E8
end
section
/-! The indexed coordinates are exactly the distinct roots in the Bourbaki
simple-reflection orbit. This checks completeness independently of the class labels. -/
namespace MarkovScattering.ParticleFamily.E8
open E8Data
/-- Evaluate a word in the ambient simple reflections. -/
def rootWord (word : List Generator) (x : Coord) : Coord :=
word.foldl (fun u i => reflect (simple i) u) x
private theorem commute_rootWord (word : List Generator) (x : Root) :
root (word.foldl (fun u i => ambientAction i u) x) = rootWord word (root x) := by
induction word generalizing x with
| nil => rfl
| cons i word ih =>
simpa only [rootWord, List.foldl_cons, ambient_coordinates] using ih (ambientAction i x)
private theorem root_seed : root ambientSeed = simple 0 := by
funext j
exact of_decide_eq_true ((List.all_eq_true.mp
(show (List.finRange 8).all (fun k => decide (root ambientSeed k = simple 0 k)) = true by decide))
j (by simp))
/-- In Bourbaki integer coordinates, membership in the indexed root set is
equivalent to being obtained from the first simple root by a reflection word. -/
theorem root_range_eq_orbit (y : Coord) :
y ∈ Set.range root ↔ ∃ word : List Generator, rootWord word (simple 0) = y := by
constructor
· rintro ⟨x, rfl⟩
let pos (i : Generator) : 0 < (1 : ℝ) := zero_lt_one
let W := ambientWalk (fun _ => 1) pos
obtain ⟨word, _, hw⟩ := (reaches_iff_word W ambientSeed x).1
(ambient_communicates _ pos ambientSeed x).1
change word.foldl (fun u i => ambientAction i u) ambientSeed = x at hw
exact ⟨word, by rw [← root_seed, ← commute_rootWord, hw]⟩
· rintro ⟨word, rfl⟩
exact ⟨_, (commute_rootWord word ambientSeed).trans (congrArg (rootWord word) root_seed)⟩
private def sortKey (x : Coord) : ℕ :=
(List.finRange 8).foldl (fun z i => 16*z + (x i+8).toNat) 0
set_option maxRecDepth 18000 in
set_option maxHeartbeats 18000000 in
private theorem root_ordered : StrictMono (sortKey ∘ root) := by
apply Fin.strictMono_iff_lt_succ.2
intro i
have h : (List.finRange 239).all
(fun j => decide (sortKey (root j.castSucc) < sortKey (root j.succ))) = true := by decide
exact of_decide_eq_true ((List.all_eq_true.mp h) i (by simp))
/-- The list encodes 240 distinct coordinates, with no duplicate root labels. -/
theorem root_injective : Function.Injective root :=
fun _ _ h => root_ordered.injective (congrArg sortKey h)
end MarkovScattering.ParticleFamily.E8
end
Source