Offline · exact source
Exact Lean source

PhysicalFlatConverseMoments

formalization/Cloning/PhysicalFlatConverseMoments.lean

Source hash: d6bd8e8f79cb607ad25683958ecd96e8933722e8b3ba21b581949a5913b67801

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.TensorFlatProjectorMoments
2import Cloning.YoungFlatFidelity
3 
4/-! The exact physical dimension moments give the limiting finite-sample
5rank-flat converse bound. No moment convergence is assumed. -/
6noncomputable section
7open scoped BigOperators Topology
8open Filter
9namespace Cloning.PhysicalFlatConverse
10open Cloning.TensorLie Cloning.YoungGeneral Cloning.YoungDimensionRatio
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 800000
13 
14def flatConverseBound (r k : ℕ) (hr : 0 < r) (n m : ℕ) : ℝ :=
15  Real.sqrt ((∑ μ : Shape r n, (tensorFlatYoungPMF n r hr μ).toReal *
16    dimensionRatio r k (fun a => ((μ a).val : ℝ))) *
17    ∑ μ : Shape r m, (tensorFlatYoungPMF m r hr μ).toReal *
18      (dimensionRatio r k (fun a => ((μ a).val : ℝ)))⁻¹)
19 
20theorem flatConverseBound_factorization (r k : ℕ) (hr : 0 < r) (n m : ℕ)
21    (hn : 0 < n) (hm : 0 < m) :
22    flatConverseBound r k hr n m =
23      Real.sqrt (((n : ℝ)/(m : ℝ))^(r*k) *
24        (∑ μ, (tensorFlatYoungPMF n r hr μ).toReal * normalizedDimension r k n μ) *
25        (∑ μ, (tensorFlatYoungPMF m r hr μ).toReal * inverseNormalizedDimension r k m μ)) := by
26  let A := ∑ μ, (tensorFlatYoungPMF n r hr μ).toReal * normalizedDimension r k n μ
27  let B := ∑ μ, (tensorFlatYoungPMF m r hr μ).toReal * inverseNormalizedDimension r k m μ
28  let c := leadingConstant r k
29  have hc : leadingConstant r k ≠ 0 := (leadingConstant_pos r k hr).ne'
30  have hn' : (n : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hn.ne'
31  have hm' : (m : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hm.ne'
32  have hA : (∑ μ : Shape r n, (tensorFlatYoungPMF n r hr μ).toReal *
33      dimensionRatio r k (fun a => ((μ a).val : ℝ))) = c*(n:ℝ)^(r*k)*A := by
34    simp only [A,normalizedDimension,Finset.mul_sum]
35    apply Finset.sum_congr rfl
36    intro μ _
37    dsimp only [c,shapeRows]
38    field_simp [hc,hn']
39    <;> ring
40    all_goals rfl
41  have hB : (∑ μ : Shape r m, (tensorFlatYoungPMF m r hr μ).toReal *
42      (dimensionRatio r k (fun a => ((μ a).val : ℝ)))⁻¹) = B/(c*(m:ℝ)^(r*k)) := by
43    simp only [B,inverseNormalizedDimension,Finset.sum_div]
44    apply Finset.sum_congr rfl
45    intro μ _
46    dsimp only [c,shapeRows]
47    field_simp [hc,hm']
48    <;> ring
49    all_goals rfl
50  unfold flatConverseBound
51  rw [hA,hB]
52  congr 1
53  change c*(n:ℝ)^(r*k)*A*(B/(c*(m:ℝ)^(r*k))) = ((n:ℝ)/(m:ℝ))^(r*k)*A*B
54  rw [div_pow]
55  dsimp only [c]
56  field_simp [hc,hm']
57 
58/-- The actual finite projector upper bound tends to γ^(-r k/2). -/
59theorem flatConverseBound_tendsto (r k : ℕ) (hr : 0 < r)
60    (m : ℕ → ℕ) (hm : Tendsto m atTop atTop) (γ : ℝ) (hγ : 0 < γ)
61    (hratio : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 γ)) :
62    Tendsto (fun n => flatConverseBound r k hr n (m n)) atTop
63      (𝓝 (γ ^ (-(((r*k : ℕ) : ℝ)/2)))) := by
64  have hmom := tensorFlatYoungPMF_dimension_moments r k hr
65  have hpow := (hratio.inv₀ hγ.ne').pow (r*k)
66  simp only [inv_div] at hpow
67  have hall := ((hpow.mul hmom.1).mul (hmom.2.comp hm)).sqrt
68  simp only [mul_one,Cloning.YoungFlat.sqrt_inv_nat_pow γ hγ (r*k)] at hall
69  apply hall.congr'
70  filter_upwards [eventually_gt_atTop 0,hm.eventually (eventually_gt_atTop 0)] with n hn hmn
71  exact (flatConverseBound_factorization r k hr n (m n) hn hmn).symm
72 
73end Cloning.PhysicalFlatConverse