Native electron–photon support from SpacetimeReflection
DefinitionMarkovScatteringJoint_NativeSupport_14markov-scattering
Source context for the measured electron–photon line, carrying these native mathematical modules and their certified helper results: SpacetimeReflection, ParticlePhotonVertex, ParticlePhotonLinkPair.
Definition code
import Definitions.Def_MarkovScatteringJoint_NativeSupport_13
import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Sinc
import Mathlib.Analysis.SpecialFunctions.ExpDeriv
section
/-!
# The reflected biased cycle and its Fourier blocks
Write an even cycle as m cells of two consecutive sites, A and B. In the
reflected walk, the stronger bias in either direction is shared by the two
arrows within a cell. Squaring this walk gives the original biased cycle
operator followed by its transpose. The Fourier block is expressed in the
gauge that places the B site halfway through a cell, using an actual character
on the finite cell cycle.
-/
namespace MarkovScattering.Spacetime
noncomputable section
abbrev CellObservable (m : ℕ) := ZMod m → ℂ × ℂ
def cellCycleOperator (m : ℕ) (η : ℝ) (f : CellObservable m) : CellObservable m :=
fun j => (cycleForward η * (f j).2 + cycleBackward η * (f (j - 1)).2,
cycleForward η * (f (j + 1)).1 + cycleBackward η * (f j).1)
def cycleReflection (m : ℕ) (η : ℝ) (f : CellObservable m) : CellObservable m :=
fun j => (cycleForward η * (f j).2 + cycleBackward η * (f (j - 1)).2,
cycleForward η * (f j).1 + cycleBackward η * (f (j + 1)).1)
theorem cycleReflection_constant (m : ℕ) (η : ℝ) (a : ℂ) :
cycleReflection m η (fun _ => (a, a)) = fun _ => (a, a) := by
have hsum : (cycleForward η : ℂ) + (cycleBackward η : ℂ) = 1 := by
exact_mod_cast cycleForward_add_backward η
funext j
simp [cycleReflection, ← add_mul, hsum]
/-- On the two-sublattice cycle, the reflected walk squares to P(eta) P(-eta). -/
theorem cycleReflection_square (m : ℕ) (η : ℝ) (f : CellObservable m) :
cycleReflection m η (cycleReflection m η f) =
cellCycleOperator m η (cellCycleOperator m (-η) f) := by
have henergy : cycleEnergy (-η) = cycleEnergy η := by simp [cycleEnergy, add_comm]
have h1 : cycleForward (-η) = cycleBackward η := by simp [cycleForward, cycleBackward, henergy]
have h2 : cycleBackward (-η) = cycleForward η := by simp [cycleForward, cycleBackward, henergy]
funext j
apply Prod.ext <;>
simp only [cycleReflection, cellCycleOperator, h1, h2, sub_add_cancel, add_sub_cancel_right]
all_goals ring
/-- The complex phase with argument t. -/
def reflectionPhase (t : ℝ) : ℂ := Complex.exp ((t : ℂ) * Complex.I)
theorem reflectionPhase_add (s t : ℝ) :
reflectionPhase (s + t) = reflectionPhase s * reflectionPhase t := by
simp only [reflectionPhase, Complex.ofReal_add, add_mul, Complex.exp_add]
theorem reflectionPhase_zero : reflectionPhase 0 = 1 := by simp [reflectionPhase]
def reflectionHalfAngle (m : ℕ) (ell : ℤ) : ℝ := Real.pi * (ell : ℝ) / (m : ℝ)
/-- The two amplitudes multiplied by the finite-cycle character, with the
B amplitude displaced by half a cell in the Fourier gauge. -/
def reflectionCellWave (m : ℕ) [NeZero m] (ell : ℤ) (z : ℂ × ℂ) : CellObservable m :=
fun j =>
let chi := ZMod.stdAddChar ((ell : ZMod m) * j)
(z.1 * chi, reflectionPhase (reflectionHalfAngle m ell) * z.2 * chi)
/-- The off-diagonal Bloch block in the half-cell gauge. -/
def reflectionFourierBlock (η θ : ℝ) (z : ℂ × ℂ) : ℂ × ℂ :=
((cycleForward η * reflectionPhase θ + cycleBackward η * reflectionPhase (-θ)) * z.2,
(cycleForward η * reflectionPhase (-θ) + cycleBackward η * reflectionPhase θ) * z.1)
theorem reflectionChar_coeff (m : ℕ) [NeZero m] (ell : ℤ) :
ZMod.stdAddChar (ell : ZMod m) = reflectionPhase (2 * reflectionHalfAngle m ell) := by
rw [ZMod.stdAddChar_coe]
unfold reflectionPhase reflectionHalfAngle
push_cast
congr 1
ring
/-- The block is the action of the actual finite reflected operator on the
specified Fourier wave. -/
theorem cycleReflection_on_wave (m : ℕ) [NeZero m] (η : ℝ) (ell : ℤ) (z : ℂ × ℂ) :
cycleReflection m η (reflectionCellWave m ell z) =
reflectionCellWave m ell (reflectionFourierBlock η (reflectionHalfAngle m ell) z) := by
let θ := reflectionHalfAngle m ell
have hplus (j : ZMod m) :
ZMod.stdAddChar ((ell : ZMod m) * (j + 1)) =
ZMod.stdAddChar ((ell : ZMod m) * j) * reflectionPhase (2 * θ) := by
rw [mul_add, mul_one, AddChar.map_add_eq_mul, reflectionChar_coeff]
have hminus (j : ZMod m) :
ZMod.stdAddChar ((ell : ZMod m) * (j - 1)) =
ZMod.stdAddChar ((ell : ZMod m) * j) * reflectionPhase (-(2 * θ)) := by
rw [mul_sub, mul_one, sub_eq_add_neg, AddChar.map_add_eq_mul, ← Int.cast_neg, reflectionChar_coeff]
simp only [θ, reflectionHalfAngle, Int.cast_neg]
ring_nf
have hpos : reflectionPhase θ * reflectionPhase θ = reflectionPhase (2 * θ) := by
rw [← reflectionPhase_add, two_mul]
have hneg : reflectionPhase θ * reflectionPhase (-(2 * θ)) = reflectionPhase (-θ) := by
rw [← reflectionPhase_add, show θ + -(2 * θ) = -θ by ring]
have hunit : reflectionPhase θ * reflectionPhase (-θ) = 1 := by
rw [← reflectionPhase_add, add_neg_cancel, reflectionPhase_zero]
funext j
apply Prod.ext
· simp only [cycleReflection, reflectionCellWave, hminus, reflectionFourierBlock]
change cycleForward η * (reflectionPhase θ * z.2 * ZMod.stdAddChar ((ell : ZMod m) * j)) +
cycleBackward η * (reflectionPhase θ * z.2 *
(ZMod.stdAddChar ((ell : ZMod m) * j) * reflectionPhase (-(2 * θ)))) = _
linear_combination
(cycleBackward η : ℂ) * z.2 * ZMod.stdAddChar ((ell : ZMod m) * j) * hneg
· simp only [cycleReflection, reflectionCellWave, hplus, reflectionFourierBlock]
change _ = reflectionPhase θ * ((cycleForward η * reflectionPhase (-θ) +
cycleBackward η * reflectionPhase θ) * z.1) * ZMod.stdAddChar ((ell : ZMod m) * j)
linear_combination -(cycleForward η : ℂ) * z.1 * ZMod.stdAddChar ((ell : ZMod m) * j) * hunit -
(cycleBackward η : ℂ) * z.1 * ZMod.stdAddChar ((ell : ZMod m) * j) * hpos
theorem reflectionCellWave_zero_nonzero {m : ℕ} [NeZero m] (ell : ℤ)
(z : ℂ × ℂ) (hz : z ≠ 0) : reflectionCellWave m ell z 0 ≠ 0 := by
unfold reflectionCellWave
simp only [mul_zero, AddChar.map_zero_eq_one, mul_one, ne_eq]
intro h
have h1 := congrArg Prod.fst h
have h2 := congrArg Prod.snd h
have hphase : reflectionPhase (reflectionHalfAngle m ell) ≠ 0 := Complex.exp_ne_zero _
exact hz (Prod.ext h1 ((mul_eq_zero.mp h2).resolve_left hphase))
end
end MarkovScattering.Spacetime
end
section
/-! Spatial Wilson vertices for the 3+1 massive nearest-link spinor readout.
The Clifford matrices are parameters in the algebraic result. The equal
on-site mass cancels from the Ward difference. -/
namespace MarkovScattering.ParticlePhoton
open Filter Topology
open scoped BigOperators
noncomputable section
abbrev Momentum := Fin 3 → ℝ
/-- Exact free spatial slope with the value at zero spacing filled in. -/
def freeSlope (a p : ℝ) : ℝ := p * Real.sinc (a*p)
/-- The coefficient of a link-center Fourier component in direction j. -/
def midpointFactor (a p k : ℝ) : ℝ := Real.cos (a*(p+k/2))
/-- The Wilson integral supplies the sinc factor missing from a bare
midpoint approximation to the continuum vector potential. -/
def wilsonFactor (a p k : ℝ) : ℝ :=
Real.sinc (a*k/2) * midpointFactor a p k
theorem freeSlope_eq_div {a : ℝ} (ha : a ≠ 0) (p : ℝ) :
freeSlope a p = Real.sin (a*p)/a := by
by_cases hp : p = 0
· simp [freeSlope, hp]
· rw [freeSlope, Real.sinc_of_ne_zero (mul_ne_zero ha hp)]
field_simp
/-- The line-integrated gradient is exact at every spacing. -/
theorem wilson_gradient (a p k : ℝ) :
k * wilsonFactor a p k = freeSlope a (p+k) - freeSlope a p := by
by_cases ha : a=0
· simp [ha, freeSlope, wilsonFactor, midpointFactor]
· rw [freeSlope_eq_div ha, freeSlope_eq_div ha]
by_cases hk : k=0
· simp [hk]
unfold wilsonFactor midpointFactor
rw [Real.sinc_of_ne_zero (div_ne_zero (mul_ne_zero ha hk) (by norm_num))]
have hp₁ : a*(p+k) = a*(p+k/2)+a*k/2 := by ring
have hp₂ : a*p = a*(p+k/2)-a*k/2 := by ring
rw [hp₁, hp₂, Real.sin_add, Real.sin_sub]
field_simp
ring
/-- The genuine Bloch symbol of the compensated Weyl/Dirac row, including
its momentum-independent four-orbital mass matrix. -/
def freeBlock (α : Fin 3 → ℂ) (mass a : ℝ) (β : ℂ) (p : Momentum) : ℂ :=
(mass : ℂ)*β + ∑ j, α j * (freeSlope a (p j) : ℂ)
/-- First order spatial vertex in any matrix entry. It keeps the full
nonzero photon momentum, so finite-spacing longitudinal insertions are exact. -/
def wilsonVertex (α : Fin 3 → ℂ) (q a : ℝ) (p k : Momentum)
(ε : Fin 3 → ℂ) : ℂ :=
-(q : ℂ) * ∑ j, α j * ε j * (wilsonFactor a (p j) (k j) : ℂ)
theorem wilsonWard (α : Fin 3 → ℂ) (q mass a : ℝ) (β : ℂ) (p k : Momentum) :
wilsonVertex α q a p k (fun j => (k j : ℂ)) =
-(q : ℂ) * (freeBlock α mass a β (p+k) - freeBlock α mass a β p) := by
unfold wilsonVertex freeBlock
congr 1
rw [add_sub_add_left_eq_sub, ← Finset.sum_sub_distrib]
apply Finset.sum_congr rfl
intro j _
have h := congrArg (fun x : ℝ => (x : ℂ)) (wilson_gradient a (p j) (k j))
simp only [Complex.ofReal_mul, Complex.ofReal_sub] at h
rw [mul_assoc, h, mul_sub]
rfl
theorem wilsonVertex_tendsto (α : Fin 3 → ℂ) (q : ℝ) (p k : Momentum)
(ε : Fin 3 → ℂ) :
Tendsto (fun a : ℝ => wilsonVertex α q a p k ε) (𝓝 0)
(𝓝 (-(q : ℂ) * ∑ j, α j * ε j)) := by
have hc (j : Fin 3) : Continuous (fun a : ℝ => (wilsonFactor a (p j) (k j) : ℂ)) := by
unfold wilsonFactor midpointFactor
fun_prop
have h : Continuous (fun a : ℝ => wilsonVertex α q a p k ε) := by
unfold wilsonVertex
exact continuous_const.mul (continuous_finset_sum _ (fun j _ => continuous_const.mul (hc j)))
simpa [wilsonVertex, wilsonFactor, midpointFactor] using h.continuousAt.tendsto (x := 0)
/-- A photon along z has an exact nonzero x insertion whenever the incoming
matter wave has zero x component and the chosen Dirac entry sees α_x. -/
theorem transverse_x_vertex (α : Fin 3 → ℂ) (q a : ℝ) (p k : Momentum)
(hp : p 0 = 0) (hk : k 0 = 0) :
wilsonVertex α q a p k (Pi.single 0 1) = -(q : ℂ)*α 0 := by
classical
unfold wilsonVertex
congr 1
have he (j : Fin 3) :
α j * (Pi.single (0 : Fin 3) 1 : Fin 3 → ℂ) j * (wilsonFactor a (p j) (k j) : ℂ) =
if j=0 then α 0 else 0 := by
by_cases hj : j=0
· subst j
simp [hp, hk, wilsonFactor, midpointFactor]
· simp [hj]
simp_rw [he]
simp
/-- The r-th term of a Wilson link exponential carries a factor a^r.
After the nearest-neighbor derivative's 1/a calibration, every higher
contact gate vanishes at zero spacing when its remaining multiplier
has a finite limit. -/
theorem higher_contact_tendsto (r : ℕ) (hr : 2 ≤ r)
(F : ℝ → ℂ) (L : ℂ) (hF : Tendsto F (𝓝 0) (𝓝 L)) :
Tendsto (fun a : ℝ => (a : ℂ)^(r-1) * F a) (𝓝 0) (𝓝 0) := by
have ha : Tendsto (fun a : ℝ => (a : ℂ)^(r-1)) (𝓝 0) (𝓝 0) := by
have h := ((Complex.continuous_ofReal.continuousAt (x := (0 : ℝ))).tendsto).pow (r-1)
simpa [zero_pow (show r-1 ≠ 0 by omega)] using h
simpa only [zero_mul] using ha.mul hF
end
end MarkovScattering.ParticlePhoton
end
section
namespace MarkovScattering.ParticlePhoton
open Spacetime
noncomputable section
/-- The Fourier component averaged over an oriented segment from its start. -/
def segmentAverage (a k : ℝ) (ε : ℂ) : ℂ :=
ε * (Real.sinc (a*k/2) : ℂ) * reflectionPhase (a*k/2)
/-- The two Bloch hops' derivatives of their oriented phase factors, after
the same compensation as the free nearest-neighbor slope. -/
theorem linkPair_derivative_reduces (a p k q : ℝ) (ε : ℂ) (ha : a ≠ 0) :
(reflectionPhase (a*p) * (-Complex.I*q*a*segmentAverage a k ε) -
reflectionPhase (-(a*p)) * (Complex.I*q*a*segmentAverage (-a) k ε)) /
(2*Complex.I*a) = -(q : ℂ)*ε*(wilsonFactor a p k : ℂ) := by
let t := a*(p+k/2)
have h₁ : a*p+a*k/2 = t := by dsimp [t]; ring
have h₂ : -(a*p)+ -(a*k/2) = -t := by dsimp [t]; ring
have hs : reflectionPhase t + reflectionPhase (-t) = 2*(Real.cos t : ℂ) := by
unfold reflectionPhase
rw [Complex.exp_mul_I, Complex.exp_mul_I, Complex.ofReal_neg, Complex.cos_neg, Complex.sin_neg]
push_cast
ring
have haC : (a : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr ha
unfold segmentAverage wilsonFactor midpointFactor
rw [show -a*k/2 = -(a*k/2) by ring, Real.sinc_neg, Complex.ofReal_mul]
rw [show a*(p+k/2) = t from rfl]
apply (div_eq_iff (by exact mul_ne_zero (mul_ne_zero (by norm_num) Complex.I_ne_zero) haC)).mpr
calc
_ = -(q : ℂ)*ε*(Real.sinc (a*k/2) : ℂ)*Complex.I*a *
(reflectionPhase (a*p)*reflectionPhase (a*k/2) +
reflectionPhase (-(a*p))*reflectionPhase (-(a*k/2))) := by ring
_ = _ := by rw [← reflectionPhase_add, ← reflectionPhase_add, h₁, h₂, hs]; ring
end
end MarkovScattering.ParticlePhoton
end
Source