Offline · exact source
Exact Lean source

YoungUniformLocalDensity

formalization/Cloning/YoungUniformLocalDensity.lean

Source hash: 188668c357aff3e73a89064fcfdfc5c002348a75289c539ad94aa159c1ab763f

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.YoungUniformLocalGaussian
2import Cloning.YoungUniformLocalMultinomial
3 
4/-! Exact agreement between Gaussian lattice masses and the normalized
5Euclidean root-space Gaussian density. -/
6noncomputable section
7open scoped BigOperators Topology Classical
8open MeasureTheory Filter
9namespace Cloning.YoungHyperplane
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 800000
12 
13/-- The actual cell-volume multiplier turns the explicit Gaussian mass into
14the normalized covariance density, including every Jacobian factor. -/
15theorem scaled_gaussianMass_eq_covarianceGaussian (d N : ℕ) (hN : 0 < N)
16    (p : Fin (d + 1) → ℝ) (hp : ∑ i, p i = 1) (hp0 : ∀ i, 0 < p i)
17    (x : rootSpace d) :
18    (Real.sqrt (N : ℝ) ^ d / Real.sqrt ((d : ℝ) + 1)) *
19      YoungMultinomial.gaussianMass N p (fun i ↦ x.1 i) = covarianceGaussian d p hp x := by
20  have hn : (0 : ℝ) < N := by exact_mod_cast hN
21  have hc : 0 < Real.sqrt (N : ℝ) ^ d / Real.sqrt ((d : ℝ) + 1) := by positivity
22  rw [covarianceGaussian_eq_exp d p hp hp0 x]
23  conv_lhs => rw [← Real.exp_log hc]
24  rw [YoungMultinomial.gaussianMass, ← Real.exp_add]
25  congr 1
26  rw [Real.log_div (by positivity) (by positivity), Real.log_pow,
27    Real.log_sqrt hn.le, Real.log_sqrt (by positivity)]
28  simp only [YoungMultinomial.gaussianLogMass, Fintype.card_fin, Nat.cast_add, Nat.cast_one]
29  rw [Real.log_mul (mul_ne_zero (by norm_num : (2 : ℝ) ≠ 0) Real.pi_ne_zero) hn.ne']
30  simp only [div_mul_eq_div_mul_one_div, one_div]
31  have hquad : (∑ i, (x.1 i) ^ 2 / 2 * (p i)⁻¹) =
32      (1 / 2) * ∑ i, (x.1 i) ^ 2 / p i := by
33    rw [Finset.mul_sum]
34    apply Finset.sum_congr rfl
35    intro i _
36    ring
37  rw [hquad]
38  ring
39 
40/-- A direct local central limit for the density values at lattice centers. -/
41theorem uniform_multinomial_density_ratio (d : ℕ) (a R : ℝ) (ha : 0 < a) (hR : 0 ≤ R)
42    (ε : ℝ) (hε : 0 < ε) :
43    ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ (p : Fin (d + 1) → ℝ) (hp : ∑ i, p i = 1)
44      (hp0 : ∀ i, 0 < p i) (x : rootSpace d) (μ : Fin (d + 1) → ℕ),
45      (∀ i, a ≤ p i) → (∀ i, |x.1 i| ≤ R) →
46      (∀ i, (μ i : ℝ) = N * (p i + x.1 i / Real.sqrt N)) →
47      |(Real.sqrt (N : ℝ) ^ d / Real.sqrt ((d : ℝ) + 1)) *
48        YoungMultinomial.multinomialMass N p μ / covarianceGaussian d p hp x - 1| < ε := by
49  obtain ⟨N₀, hN₀⟩ := YoungMultinomial.uniform_multinomial_local_limit
50    (ι := Fin (d + 1)) a R ha hR ε hε
51  refine ⟨max N₀ 1, ?_⟩
52  intro N hN p hp hp0 x μ hpa hx hμ
53  have hn : 0 < N := by omega
54  have h := hN₀ N (le_trans (le_max_left _ _) hN) p (fun i ↦ x.1 i) μ hpa hp x.2 hx hμ
55  have hc : (Real.sqrt (N : ℝ) ^ d / Real.sqrt ((d : ℝ) + 1)) ≠ 0 := by positivity
56  rw [← scaled_gaussianMass_eq_covarianceGaussian d N hn p hp hp0 x, mul_div_mul_left _ _ hc]
57  exact h
58 
59end Cloning.YoungHyperplane