Offline · exact source
Exact Lean source

YoungUniformLocalPhysicalLattice

formalization/Cloning/YoungUniformLocalPhysicalLattice.lean

Source hash: 71301440a076a2b27d9d831cd53e307f5070767e802ee8a57fd29bb6528c0fad

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.TensorSchurDecompositionMultiplicity
2import Cloning.YoungHyperplaneSampling
3 
4/-! The actual physical Young probability law on the complete affine integer
5lattice, preserving the dependent last coordinate exactly. -/
6 
7noncomputable section
8open scoped BigOperators Topology Classical
9open MeasureTheory Filter
10namespace Cloning.YoungHyperplane
11open Cloning.TensorLie Cloning.YoungGeneral
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 800000
14 
15/-- Complete the head coordinates of any finite shape into the full affine
16lattice; the physical law gives zero mass to inconsistent finite shapes. -/
17def shapeLattice (d N : ℕ) (μ : Shape (d + 1) N) : Lattice d (N : ℤ) :=
18  latticeCoordinates d N (fun i ↦ (μ i.castSucc).val)
19 
20theorem shapeLattice_apply (d N : ℕ) (μ : Shape (d + 1) N)
21    (hμ : ∑ i, (μ i).val = N) (i : Fin (d + 1)) :
22    (shapeLattice d N μ).1 i = ((μ i).val : ℤ) := by
23  refine Fin.lastCases ?_ (fun j ↦ ?_) i
24  · have ht := (shapeLattice d N μ).2
25    change (∑ i, (shapeLattice d N μ).1 i) = (N : ℤ) at ht
26    rw [Fin.sum_univ_castSucc] at ht hμ
27    have heq : ∀ j : Fin d, (shapeLattice d N μ).1 j.castSucc = ((μ j.castSucc).val : ℤ) :=
28      fun j ↦ latticeCoordinates_head d N _ j
29    simp only [heq] at ht
30    have hcast : (∑ j : Fin d, ((μ j.castSucc).val : ℤ)) + ((μ (Fin.last d)).val : ℤ) = N := by
31      exact_mod_cast hμ
32    omega
33  · exact latticeCoordinates_head d N _ j
34 
35theorem shapeLattice_injective_of_sum (d N : ℕ) (μ ν : Shape (d + 1) N)
36    (hμ : ∑ i, (μ i).val = N) (hν : ∑ i, (ν i).val = N)
37    (he : shapeLattice d N μ = shapeLattice d N ν) : μ = ν := by
38  funext i
39  apply Fin.ext
40  have h := congrArg (fun z : Lattice d (N : ℤ) ↦ z.1 i) he
41  dsimp only at h
42  rw [shapeLattice_apply d N μ hμ, shapeLattice_apply d N ν hν] at h
43  exact_mod_cast h
44 
45/-- The normalized, genuinely physical law on every affine lattice label. -/
46def tensorYoungLatticePMF (d N : ℕ) (p : Fin (d + 1) → ℝ)
47    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : PMF (Lattice d (N : ℤ)) :=
48  (tensorYoungPMF N (d + 1) p hp hs).map (shapeLattice d N)
49 
50theorem tensorYoungLatticePMF_apply_shape (d N : ℕ) (p : Fin (d + 1) → ℝ)
51    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (μ : Shape (d + 1) N)
52    (hμ : ∑ i, (μ i).val = N) :
53    tensorYoungLatticePMF d N p hp hs (shapeLattice d N μ) =
54      tensorYoungPMF N (d + 1) p hp hs μ := by
55  rw [tensorYoungLatticePMF, PMF.map_apply, tsum_eq_single μ]
56  · simp
57  · intro ν hν
58    by_cases ht : ∑ i, (ν i).val = N
59    · have hn : shapeLattice d N μ ≠ shapeLattice d N ν := by
60        intro he
61        exact hν (shapeLattice_injective_of_sum d N ν μ ht hμ he.symm)
62      simp [hn]
63    · have hz : tensorYoungPMF N (d + 1) p hp hs ν = 0 :=
64        physicalYoungPMF_eq_zero_of_not_partition _ _ _ _ _ _ ν (Or.inr ht)
65      simp [hz]
66 
67/-- Actual physical law interpolated on the manuscript's rescaled cells. -/
68def tensorYoungDensity (d N : ℕ) (p : Fin (d + 1) → ℝ)
69    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) : rootSpace d → ℝ :=
70  sampleInterpolate d N p (fun μ ↦ (tensorYoungLatticePMF d N p hp hs μ).toReal)
71 
72theorem tensorYoungDensity_eq_on_cell (d N : ℕ) (hN : 0 < N)
73    (p : Fin (d + 1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1)
74    (μ : Shape (d + 1) N) (hμ : ∑ i, (μ i).val = N)
75    (x : rootSpace d) (hx : x ∈ sampleCell d N p (shapeLattice d N μ)) :
76    tensorYoungDensity d N p hp hs x =
77      (Real.sqrt (N : ℝ) ^ d / Real.sqrt ((d : ℝ) + 1)) *
78        (tensorYoungPMF N (d + 1) p hp hs μ).toReal := by
79  unfold tensorYoungDensity
80  rw [sampleInterpolate_eq_on_cell d N (by exact_mod_cast hN) p _ _ x hx,
81    tensorYoungLatticePMF_apply_shape d N p hp hs μ hμ]
82  norm_cast
83 
84/-- Exact normalization after smoothing the actual physical law. -/
85theorem integral_tensorYoungDensity (d N : ℕ) (hN : 0 < N)
86    (p : Fin (d + 1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) :
87    (∫ x, tensorYoungDensity d N p hp hs x ∂volume) = 1 := by
88  rw [tensorYoungDensity, sampleInterpolate_integral d N (by exact_mod_cast hN)]
89  · exact (YoungCompatibility.hasSum_probability (tensorYoungLatticePMF d N p hp hs)).tsum_eq
90  · exact (YoungCompatibility.hasSum_probability (tensorYoungLatticePMF d N p hp hs)).summable
91 
92 
93theorem tensorYoungDensity_nonneg (d N : ℕ) (p : Fin (d + 1) → ℝ)
94    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (x : rootSpace d) :
95    0 ≤ tensorYoungDensity d N p hp hs x := by
96  unfold tensorYoungDensity sampleInterpolate euclideanInterpolate interpolate
97    YoungRounding.affineDensity YoungRounding.interpolate
98  positivity
99 
100theorem integrable_tensorYoungDensity (d N : ℕ) (hN : 0 < N)
101    (p : Fin (d + 1) → ℝ) (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) :
102    Integrable (tensorYoungDensity d N p hp hs) volume := by
103  by_contra h
104  have heq := integral_tensorYoungDensity d N hN p hp hs
105  rw [integral_undef h] at heq
106  norm_num at heq
107 
108end Cloning.YoungHyperplane