Native electron–photon support from ParticlePhotonPolarization
DefinitionMarkovScatteringJoint_NativeSupport_15markov-scattering
Source context for the measured electron–photon line, carrying these native mathematical modules and their certified helper results: ParticlePhotonPolarization, ParticlePhotonWeyl, ParticleRootMassLine, ParticleDiracLineSource.
Definition code
import Definitions.Def_MarkovScatteringJoint_NativeSupport_14
import Mathlib.Tactic.FinCases
import Definitions.Def_MarkovScatteringJoint_NativeSupport_10
import Definitions.Def_MarkovScatteringJoint_NativeSupport_11
import Definitions.Def_MarkovScatteringJoint_NativeSupport_08
import Mathlib.LinearAlgebra.Matrix.NonsingularInverse
import Mathlib.Algebra.Ring.GeomSum
section
/-! Maxwell polarization on a nonzero null mode along the z axis. The gauge
quotient has exactly the two complex transverse coordinates. -/
namespace MarkovScattering.ParticlePhoton
open Spacetime
open scoped BigOperators
noncomputable section
@[ext] structure FourPolarization where
time : ℂ
first : ℂ
second : ℂ
longitudinal : ℂ
/-- Lorenz gauge for an axial null wave k=(ω,0,0,ω), with ω nonzero. -/
abbrev LorenzPolarization := {u : FourPolarization // u.time = u.longitudinal}
def transverse (u : LorenzPolarization) : ℂ × ℂ := (u.val.first,u.val.second)
def representative (z : ℂ × ℂ) : LorenzPolarization := ⟨⟨0,z.1,z.2,0⟩,rfl⟩
def gaugeModeShift (k : ℝ) (t : ℂ) (u : LorenzPolarization) : LorenzPolarization :=
⟨⟨u.val.time+t*k, u.val.first, u.val.second, u.val.longitudinal+t*k⟩,
congrArg (fun s => s+t*k) u.property⟩
def transverseSetoid : Setoid LorenzPolarization where
r u v := transverse u = transverse v
iseqv := ⟨fun _ => rfl, fun h => h.symm, fun h h' => h.trans h'⟩
/-- Two Lorenz polarizations represent the same photon if and only if they
differ by a multiple of its nonzero null momentum. -/
theorem same_transverse_iff_gauge (k : ℝ) (hk : k ≠ 0) (u v : LorenzPolarization) :
transverse u = transverse v ↔ ∃ t : ℂ, gaugeModeShift k t u = v := by
constructor
· intro h
have h₁ := congrArg Prod.fst h
have h₂ := congrArg Prod.snd h
let t := (v.val.time-u.val.time)/(k : ℂ)
have hk' : (k : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hk
have ht : t*(k : ℂ) = v.val.time-u.val.time := div_mul_cancel₀ _ hk'
refine ⟨t,Subtype.ext ?_⟩
apply FourPolarization.ext
· change u.val.time+t*k = v.val.time
rw [ht]
ring
· exact h₁
· exact h₂
· change u.val.longitudinal+t*k = v.val.longitudinal
rw [← u.property, ← v.property, ht]
ring
· rintro ⟨t,rfl⟩
rfl
/-- The actual gauge quotient is coordinatized by two unambiguously
measurable transverse amplitudes. -/
def polarizationCoordinates : Quotient transverseSetoid ≃ (ℂ × ℂ) where
toFun := Quotient.lift transverse (fun _ _ h => h)
invFun := fun z => Quotient.mk transverseSetoid (representative z)
left_inv := by
intro q
induction q using Quotient.inductionOn with
| _ u => exact Quotient.sound (show transverse (representative (transverse u)) = transverse u from rfl)
right_inv _ := rfl
/-- The normalized curl on the transverse plane. -/
def axialHelicity (z : ℂ × ℂ) : ℂ × ℂ :=
(-Complex.I*z.2,Complex.I*z.1)
def circularPlus : ℂ × ℂ := (1,Complex.I)
def circularMinus : ℂ × ℂ := (1,-Complex.I)
theorem circular_helicities :
axialHelicity circularPlus = circularPlus ∧ axialHelicity circularMinus = -circularMinus := by
constructor <;> apply Prod.ext <;>
simp [axialHelicity, circularPlus, circularMinus, Complex.I_mul_I]
/-- Both helicities span the quotient. The gauge mode cannot contribute
an additional polarization. -/
theorem transverse_circular_expansion (z : ℂ × ℂ) :
let a := (z.1-Complex.I*z.2)/2
let b := (z.1+Complex.I*z.2)/2
z = (a*circularPlus.1+b*circularMinus.1, a*circularPlus.2+b*circularMinus.2) := by
dsimp [circularPlus,circularMinus]
apply Prod.ext
· dsimp
ring
· dsimp
linear_combination z.2 * Complex.I_sq
def axialRotation (θ : ℝ) (z : ℂ × ℂ) : ℂ × ℂ :=
((Real.cos θ : ℂ)*z.1-(Real.sin θ : ℂ)*z.2,
(Real.sin θ : ℂ)*z.1+(Real.cos θ : ℂ)*z.2)
theorem circular_axial_rotation (θ : ℝ) :
axialRotation θ circularPlus =
(reflectionPhase (-θ)*circularPlus.1, reflectionPhase (-θ)*circularPlus.2) ∧
axialRotation θ circularMinus =
(reflectionPhase θ*circularMinus.1, reflectionPhase θ*circularMinus.2) := by
constructor <;> apply Prod.ext <;>
simp only [axialRotation,circularPlus,circularMinus,reflectionPhase,Complex.exp_mul_I,
Complex.ofReal_neg, Complex.cos_neg, Complex.sin_neg, ← Complex.ofReal_cos, ← Complex.ofReal_sin]
· ring
· linear_combination (Real.sin θ : ℂ) * Complex.I_sq
· ring
· linear_combination (Real.sin θ : ℂ) * Complex.I_sq
end
end MarkovScattering.ParticlePhoton
end
section
namespace MarkovScattering.ParticlePhoton
noncomputable section
/-- The spatial entries of the same four-orbital Weyl kinetic block. -/
def weylAlpha (j : Fin 3) (r s : Fin 4) : ℂ :=
ParticleDiracLine.weylSpatial (Pi.single j.succ 1) r s
def axialMomentum (z : ℝ) : Momentum := ![0,0,z]
def axialCircular (z : ℂ × ℂ) : Fin 3 → ℂ := ![z.1,z.2,0]
/-- Both circular photon modes of nonzero axial momentum couple, through
opposite spin-flip entries of the same chirality. The entries are expressed
in the unnormalized circular basis. -/
theorem circular_weyl_couplings (q a p k : ℝ) :
wilsonVertex (fun j => weylAlpha j 0 1) q a
(axialMomentum p) (axialMomentum k) (axialCircular circularPlus) = -(2 : ℂ)*q ∧
wilsonVertex (fun j => weylAlpha j 1 0) q a
(axialMomentum p) (axialMomentum k) (axialCircular circularMinus) = -(2 : ℂ)*q := by
have ha (j : Fin 3) : j.succ = ![(1 : Fin 4),2,3] j := by fin_cases j <;> rfl
have hp (x y z : ℂ) : (![x,y,z] : Fin 3 → ℂ) 2 = z := rfl
have h12 : (1 : Fin 4) ≠ 2 := by decide
have h21 : (2 : Fin 4) ≠ 1 := by decide
constructor <;>
norm_num [wilsonVertex, weylAlpha, ParticleDiracLine.weylSpatial, axialMomentum, axialCircular,
circularPlus, circularMinus, wilsonFactor, midpointFactor, Fin.sum_univ_three, ha, hp,
Pi.single_apply, Matrix.cons_val_two, h12, h21] <;>
ring_nf
/-- The continuum spatial insertion in the Hamiltonian readout. -/
def continuumSpatialInsertion (q : ℝ) (ε : Fin 3 → ℂ) : ParticleDiracLine.SpinMatrix :=
fun r s => -(q : ℂ) * ∑ j, weylAlpha j r s * ε j
set_option maxHeartbeats 1500000 in
/-- The same partner swap that converts the free kinetic block converts
the inserted photon factor to the covariant gamma matrices. -/
theorem continuumSpatialInsertion_covariant (q : ℝ) (ε : Fin 3 → ℂ) :
ParticleDiracLine.weylBeta * continuumSpatialInsertion q ε =
(q : ℂ) • ParticleDiracLine.weylSlash ![0,ε 0,ε 1,ε 2] := by
have hj (j : Fin 3) : j.succ = ![(1 : Fin 4),2,3] j := by fin_cases j <;> rfl
have d12 : (1 : Fin 4) ≠ 2 := by decide
have d13 : (1 : Fin 4) ≠ 3 := by decide
have d21 : (2 : Fin 4) ≠ 1 := by decide
have d23 : (2 : Fin 4) ≠ 3 := by decide
have d31 : (3 : Fin 4) ≠ 1 := by decide
have d32 : (3 : Fin 4) ≠ 2 := by decide
ext r s
fin_cases r <;> fin_cases s <;>
norm_num [continuumSpatialInsertion, weylAlpha, ParticleDiracLine.weylSpatial,
ParticleDiracLine.weylBeta, ParticleDiracLine.weylSlash, Matrix.mul_apply, Matrix.smul_apply,
Fin.sum_univ_three, Fin.sum_univ_succ, Pi.single_apply, hj, Matrix.cons_val_two, Matrix.cons_val_three,
d12, d13, d21, d23, d31, d32] <;> ring
end
end MarkovScattering.ParticlePhoton
end
section
/-! End-to-end identification for the charged-matter single-line tree class.
Two family transition probabilities, a rest-event clock, a root charge sign,
the doublet vacuum calibration and two vector pole masses fix all the readouts.
Directed photon momenta, polarizations and external spin preparations are the
experimental settings. -/
namespace MarkovScattering.ParticleRootMass
open ParticleDiracLine Matrix ParticleSpecies.Bosons
open scoped BigOperators
noncomputable section
structure LineReadings where
restClock : ℝ
swap01 : ℝ
swap02 : ℝ
charge : ℝ
radius : ℝ
wSquare : ℝ
zSquare : ℝ
def LineReadings.signedMass (D : LineReadings) (i : Fin 3) : ℝ :=
D.restClock * (![1-2*D.swap01-D.swap02,1-3*D.swap02,1] : Fin 3 → ℝ) i
def LineReadings.coupling (D : LineReadings) : ℝ :=
D.charge * Real.sqrt (2*D.wSquare/D.radius^2*(1-D.wSquare/D.zSquare))
def survey (clock g gp radius : ℝ) (L : FamilyLaw) (root : RootPair) : LineReadings :=
⟨clock,L.jump root.1 0 1,L.jump root.1 0 2,qEM root,radius,
chargedMassSq g radius,neutralMassSq g gp radius⟩
theorem survey_mass (clock g gp radius : ℝ) (L : FamilyLaw) (root : RootPair) (i : Fin 3) :
(survey clock g gp radius L root).signedMass i = clock*gain L i := by
obtain ⟨h₀,h₁,h₂⟩ := mass_readings L root.1
fin_cases i <;> simp [LineReadings.signedMass, survey, h₀, h₁, h₂]
theorem survey_coupling (clock g gp radius : ℝ) (L : FamilyLaw) (root : RootPair)
(hg : 0 < g) (hp : 0 < gp) (hr : radius ≠ 0) :
(survey clock g gp radius L root).coupling =
neutralCurrent g gp root (photonAxis g gp) / fieldNorm g gp := by
have hsum : 0 < g^2+gp^2 := by positivity
have hpos : 0 ≤ emUnit g gp := by unfold emUnit fieldNorm; positivity
rw [photon_reads_root]
simp [LineReadings.coupling, survey, ← em_strength_from_poles g gp radius hr hsum,
Real.sqrt_sq hpos, mul_comm]
/-- Restricting a block to one oriented spatial link determines the coupling
to that link. χ describes calibrated charge under a change of local phase.
Matrices (including singular hopping blocks) are allowed. -/
theorem unique_link {G : Type*} [Group G] (χ : G →* ℂ) (A : G → SpinMatrix) :
(∀ l u r, A (l*u*r⁻¹) = (χ l * χ r⁻¹) • A u) ↔
∀ u, A u = χ u • A 1 := by
constructor
· intro h u
simpa using h u 1 1
· intro h l u r
rw [h (l*u*r⁻¹),h u,map_mul,map_mul,smul_smul]
congr 1
ring
variable {n : ℕ}
def LineReadings.tree (D : LineReadings) (i : Fin 3) (p k : Momentum)
(mom pol : Fin n → Momentum) (ε : Momentum) (u v : Spinor) : ℂ :=
let C := (D.coupling : ℂ)
photonObserve (D.signedMass i) p k mom (fun j => C • pol j) (C • ε) u v
/-- Signed mass agrees with the positive rest gap in the positive-gain
chamber. The electromagnetic charge sign uses the positive g,g' convention. -/
theorem tree_from_root (clock g gp radius : ℝ) (L : FamilyLaw) (root : RootPair)
(hg : 0 < g) (hp : 0 < gp) (hr : radius ≠ 0)
(i : Fin 3) (p k : Momentum) (mom pol : Fin n → Momentum) (ε : Momentum) (u v : Spinor) :
let c : ℂ := (neutralCurrent g gp root (photonAxis g gp)/fieldNorm g gp : ℝ)
(survey clock g gp radius L root).tree i p k mom pol ε u v =
photonLine (clock*gain L i : ℝ) p k mom (fun j => c • pol j) (c • ε) u v := by
dsimp only [LineReadings.tree]
rw [survey_mass, survey_coupling _ _ _ _ _ _ hg hp hr, photonObserve_eq_line]
/-- On-shell predictions only depend on the photon's gauge-equivalence
class, including for non-unit or zero charge and an arbitrary number of legs. -/
theorem tree_on_photon_class (D : LineReadings) (i : Fin 3) (p k : Momentum)
(mom pol : Fin n → Momentum) (ε : Momentum) (s : ℂ) (u v : Spinor)
(hu : freeKinetic p (D.signedMass i) *ᵥ u = 0)
(hv : v ᵥ* freeKinetic (p + (∑ j, mom j) + k) (D.signedMass i) = 0)
(h₁ : ∀ (σ : Equiv.Perm (Fin n)) (j : Fin n),
virtuality (prefixMomentum p (mom ∘ σ) j.succ) (D.signedMass i) ≠ 0)
(h₂ : ∀ (σ : Equiv.Perm (Fin n)) (j : Fin n),
virtuality (prefixMomentum p (mom ∘ σ) j.castSucc + k) (D.signedMass i) ≠ 0) :
D.tree i p k mom pol (ε+s • k) u v = D.tree i p k mom pol ε u v := by
dsimp only [LineReadings.tree]
rw [smul_add, smul_smul, photonObserve_gauge_shift _ _ _ _ _ _ _ _ _ hu hv h₁ h₂]
end
end MarkovScattering.ParticleRootMass
end
section
/-! A source coefficient with a finite labelled photon set is a coefficient
from a single sourced inverse. The subset register implements square-free
source variables. An insertion of a batch can also represent a contact. -/
namespace MarkovScattering.ParticleDiracLine
open Matrix
noncomputable section
variable {J : Type*} [Fintype J] [DecidableEq J]
abbrev SourceRegister (J : Type*) := Fin 4 × Finset J
abbrev SourceMatrix (J : Type*) := Matrix (SourceRegister J) (SourceRegister J) ℂ
/-- Strictly triangular source. The batch T\S is consumed at its own
vertex, and occupied labels cannot be inserted a second time. -/
def strictSource (W : Finset J → Finset J → SpinMatrix) : SourceMatrix J :=
fun t s => if s.2 ⊂ t.2 then W t.2 s.2 t.1 s.1 else 0
def sourcedKinetic (D : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix) :
SourceMatrix J :=
Matrix.blockDiagonal D - strictSource W
def weightedSource (G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix) :
SourceMatrix J :=
Matrix.blockDiagonal G * strictSource W
theorem weightedSource_entry (G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix)
(t s : SourceRegister J) :
weightedSource G W t s = if s.2 ⊂ t.2 then (G t.2 * W t.2 s.2) t.1 s.1 else 0 := by
rcases t with ⟨i,T⟩
rcases s with ⟨j,S⟩
simp only [weightedSource,Matrix.mul_apply,Fintype.sum_prod_type,
Matrix.blockDiagonal_apply,strictSource,ite_mul,zero_mul]
simp_rw [Finset.sum_ite_eq,Finset.mem_univ,if_true]
by_cases h : S ⊂ T <;> simp [h]
private theorem rank_power_zero {A : Type*} [Fintype A] [DecidableEq A]
(rank : A → ℕ) (N : Matrix A A ℂ)
(causal : ∀ t s, rank t ≤ rank s → N t s = 0)
(k : ℕ) (t s : A) (h : rank t < rank s+k) : (N^k) t s = 0 := by
induction k generalizing t s with
| zero =>
have he : t ≠ s := by rintro rfl; omega
simp [he]
| succ k ih =>
rw [pow_succ',Matrix.mul_apply]
apply Finset.sum_eq_zero
intro v _
by_cases he : rank t ≤ rank v
· rw [causal _ _ he,zero_mul]
· rw [ih _ _ (by omega),mul_zero]
theorem weightedSource_nilpotent (G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix) :
(weightedSource G W)^(Fintype.card J+1) = 0 := by
ext t s
have hc (u v : SourceRegister J) (h : u.2.card ≤ v.2.card) :
weightedSource G W u v = 0 := by
rw [weightedSource_entry,if_neg]
exact fun h' => (Nat.not_lt_of_ge h) (Finset.card_lt_card h')
have hb : t.2.card ≤ Fintype.card J := Finset.card_le_univ _
exact rank_power_zero (fun u => u.2.card) _ hc _ _ _ (by
change t.2.card < s.2.card + (Fintype.card J+1)
omega)
/-- Finite transfer polynomial in the square-free source. -/
def finiteResponse (G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix) :
SourceMatrix J :=
(∑ k ∈ Finset.range (Fintype.card J+1), (weightedSource G W)^k) * Matrix.blockDiagonal G
theorem sourcedKinetic_mul_response (D G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix)
(hDG : ∀ S, D S * G S = 1) :
sourcedKinetic D W * finiteResponse G W = 1 := by
let N := weightedSource G W
let R := ∑ k ∈ Finset.range (Fintype.card J+1), N^k
have hD : Matrix.blockDiagonal D * Matrix.blockDiagonal G = 1 := by
rw [← Matrix.blockDiagonal_mul]
change Matrix.blockDiagonal (D*G) = 1
have h : D*G = 1 := funext hDG
rw [h,Matrix.blockDiagonal_one]
have hQ : sourcedKinetic D W = Matrix.blockDiagonal D * (1-N) := by
rw [sourcedKinetic,Matrix.mul_sub,mul_one]
unfold N weightedSource
rw [← mul_assoc,hD,one_mul]
change sourcedKinetic D W * (R * Matrix.blockDiagonal G) = 1
rw [hQ,mul_assoc,← mul_assoc (1-N) R (Matrix.blockDiagonal G),mul_neg_geom_sum,
weightedSource_nilpotent,sub_zero,one_mul,hD]
/-- The exact square-free inverse, with any finite contact coefficients
included in the same source matrix. -/
theorem sourcedKinetic_inv (D G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix)
(hDG : ∀ S, D S * G S = 1) :
(sourcedKinetic D W)⁻¹ = finiteResponse G W :=
Matrix.inv_eq_right_inv (sourcedKinetic_mul_response D G W hDG)
theorem sourcedKinetic_inv_mul (D G : Finset J → SpinMatrix) (W : Finset J → Finset J → SpinMatrix)
(hDG : ∀ S, D S * G S = 1) :
(sourcedKinetic D W)⁻¹ * sourcedKinetic D W = 1 := by
rw [sourcedKinetic_inv D G W hDG]
exact mul_eq_one_comm.mp (sourcedKinetic_mul_response D G W hDG)
end
end MarkovScattering.ParticleDiracLine
end
Source