D5 weak-doublet ports, charge readings, and family rest blocks
DefinitionMarkovScattering_D5RestClassificationclassificationmarkov-scatteringmathematical-physicsmatrix-algebraparticle-physics
Defines the eight weak-doublet ports of the chosen even-sign D5 model, their electric and diagonal colour readings, colour transpositions, and family-matrix operators acting between these ports. The four channel names label the model's up, down, charged-lepton, and neutral-lepton port types.
Definition code
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Complex.Basic
import Mathlib.Data.Matrix.Basic
import Mathlib.Tactic.Ring
set_option autoImplicit false
set_option maxRecDepth 4000
set_option maxHeartbeats 4000000
namespace MarkovScattering.ParticleD5
abbrev Signs := Fin 5 → Bool
def minus (b : Bool) : ℕ := if b then 1 else 0
def colour (x : Signs) : ℕ := minus (x 0) + minus (x 1) + minus (x 2)
def weak (x : Signs) : ℕ := minus (x 3) + minus (x 4)
def EvenSigns (x : Signs) : Prop := (colour x + weak x) % 2 = 0
instance (x : Signs) : Decidable (EvenSigns x) :=
inferInstanceAs (Decidable ((colour x + weak x) % 2 = 0))
abbrev Spinor := {x : Signs // EvenSigns x}
def rootPorts (i : Fin 4) : Fin 5 × Fin 5 :=
if i = 0 then (0, 1)
else if i = 1 then (1, 2)
else if i = 2 then (0, 2)
else (3, 4)
def portSwap (i : Fin 4) : Equiv.Perm (Fin 5) :=
Equiv.swap (rootPorts i).1 (rootPorts i).2
def reflectSigns (i : Fin 4) (x : Signs) : Signs := x ∘ portSwap i
def twiceWeight (x : Signs) (k : Fin 5) : ℤ := if x k then -1 else 1
theorem counts_reflect : ∀ (i : Fin 4) (x : Signs),
(colour (reflectSigns i x), weak (reflectSigns i x)) = (colour x, weak x) := by
decide
def reflect (i : Fin 4) (x : Spinor) : Spinor :=
⟨reflectSigns i x.1, by
have h := counts_reflect i x.1
unfold EvenSigns
rw [show colour (reflectSigns i x.1) = colour x.1 from congrArg Prod.fst h,
show weak (reflectSigns i x.1) = weak x.1 from congrArg Prod.snd h]
exact x.2⟩
def changeColour (i : Fin 4) (x : Spinor) : Spinor :=
if i = 3 then x else reflect i x
def sixElectricCharge (x : Spinor) : ℤ :=
twiceWeight x.1 0 + twiceWeight x.1 1 + twiceWeight x.1 2 - 3 * twiceWeight x.1 4
end MarkovScattering.ParticleD5
namespace MarkovScattering.ParticleRootMass
open ParticleD5 Matrix
noncomputable section
def partnerSigns (x : Signs) : Signs := fun i => if i = 3 then x i else !(x i)
private theorem partner_even : ∀ x : Spinor, EvenSigns (partnerSigns x.1) := by decide
def partner (x : Spinor) : Spinor := ⟨partnerSigns x.1, partner_even x⟩
def doubletEnd (x : Spinor) : Spinor := if weak x.1 = 1 then x else partner x
inductive Channel where
| up | down | chargedLepton | neutralLepton
deriving DecidableEq, Repr
def channel (x : Spinor) : Channel :=
let d := doubletEnd x
if colour d.1 = 3 then
if sixElectricCharge d = 0 then .neutralLepton else .chargedLepton
else
if 0 < sixElectricCharge d then .up else .down
abbrev Mix := Matrix (Fin 3) (Fin 3) ℂ
end
namespace Classification
open ParticleD5 Matrix
noncomputable section
abbrev Port := {x : ParticleD5.Spinor // weak x.1 = 1}
abbrev Block := Port → Port → Mix
def reading (x : Port) : Fin 3 → ℤ :=
![sixElectricCharge x.1,
(minus (x.1.1 0) : ℤ) - minus (x.1.1 1),
(minus (x.1.1 1) : ℤ) - minus (x.1.1 2)]
def swapColour (k : Fin 4) (x : Port) : Port :=
⟨changeColour k x.1, by
unfold changeColour
split_ifs
· exact x.2
· exact (congrArg Prod.snd (counts_reflect k x.1.1)).trans x.2⟩
private theorem represented (c : Channel) : ∃ x : Port, channel x.1 = c := by cases c <;> decide
def representative (c : Channel) : Port := Classical.choose (represented c)
theorem representative_channel (c : Channel) : channel (representative c).1 = c :=
Classical.choose_spec (represented c)
def chargesConserved (A : Block) : Prop := ∀ x y k i j,
(reading x k : ℂ) * A x y i j = A x y i j * (reading y k : ℂ)
def colourCovariant (A : Block) : Prop := ∀ k x y,
A (swapColour k x) (swapColour k y) = A x y
def fourBlocks (F : Channel → Mix) (x y : Port) : Mix :=
if x = y then F (channel x.1) else 0
def weakSwap (x : Port) : Port :=
⟨reflect 3 x.1, (congrArg Prod.snd (counts_reflect 3 x.1.1)).trans x.2⟩
def partnerChannel : Channel → Channel
| .up => .down
| .down => .up
| .chargedLepton => .neutralLepton
| .neutralLepton => .chargedLepton
end
end Classification
end MarkovScattering.ParticleRootMass
Source