Offline · exact source
Exact Lean source

YoungPhysicalRoundingFallback

formalization/Cloning/YoungPhysicalRoundingFallback.lean

Source hash: 970d6740ccd241806b799bb2a553b376d90e4b9cec088744ebdddc7ea5b4599a

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.TensorSchurDecompositionConcentration
2import Cloning.YoungGeneralFallback
3 
4/-! The actual physical Schur law makes the manuscript's fallback negligible. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open Filter
8namespace Cloning.YoungGeneral
9open Cloning.TensorLie YoungCompatibility
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 800000
12 
13/-- Every label with nonzero physical mass is an actual Young partition. -/
14theorem tensorYoung_integerShape_isYoung {d N : ℕ} (p : Fin d → ℝ)
15    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1)
16    (μ : Shape d N) (hμ : (tensorYoungPMF N d p hp hs μ).toReal ≠ 0) :
17    IsYoung N (integerShape μ) := by
18  have hvalid : Antitone (fun i ↦ (μ i).val) ∧ (∑ i, (μ i).val) = N := by
19    by_contra hh
20    have hz : tensorYoungPMF N d p hp hs μ = 0 :=
21      physicalYoungPMF_eq_zero_of_not_partition _ _ _ _ _ _ μ (not_and_or.mp hh)
22    exact hμ (by simp [hz])
23  refine ⟨fun i ↦ Int.natCast_nonneg _, ?_, ?_⟩
24  · intro i j hij
25    dsimp only [integerShape]
26    exact_mod_cast hvalid.1 hij
27  · dsimp only [integerShape]
28    exact_mod_cast hvalid.2
29 
30/-- Physical atypical probability is bounded by the proved concentration tail. -/
31theorem tensorYoung_badMass_le_tail {d N : ℕ} (p : Fin (d + 1) → ℝ)
32    (hp : ∀ i, 0 ≤ p i) (hs : ∑ i, p i = 1) (ε : ℝ) :
33    badMass (tensorYoungPMF N (d+1) p hp hs)
34      (fun μ ↦ Typical N p ε (integerShape μ)) ≤
35      tailProbability (tensorYoungPMF N (d+1) p hp hs) p ε := by
36  unfold badMass tailProbability
37  rw [tsum_fintype]
38  apply Finset.sum_le_sum
39  intro μ _
40  by_cases hz : (tensorYoungPMF N (d+1) p hp hs μ).toReal = 0
41  · simp [probability, hz]
42  · have hyoung := tensorYoung_integerShape_isYoung p hp hs μ hz
43    by_cases ht : Typical N p ε (integerShape μ)
44    · simp only [if_pos ht]
45      positivity
46    · have hex : ∃ i, (N : ℝ) * ε ≤ |((μ i).val : ℝ) - N * p i| := by
47        by_contra hn
48        push_neg at hn
49        apply ht
50        refine ⟨hyoung, fun i ↦ ?_⟩
51        simpa only [integerShape, Int.cast_natCast] using (hn i).le
52      simp [ht, hex, probability]
53 
54/-- The actual physical input law has vanishing fallback error against any target law,
55uniformly along every moving spectrum in a compact positive simple-spectrum set. -/
56theorem tensorYoung_fallback_errors_tendsto_zero {d : ℕ} (hd : 1 ≤ d)
57    (K : Set (Fin (d + 1) → ℝ)) (hK : IsCompact K)
58    (hpos : ∀ p ∈ K, ∀ i, 0 < p i) (hanti : ∀ p ∈ K, StrictAnti p)
59    (m : ℕ → ℤ) (γn : ℕ → ℝ) (γ : ℝ) (hγ : 1 < γ)
60    (hγn : Tendsto γn atTop (𝓝 γ))
61    (hm : ∀ n, (m n : ℝ) = γn n * (n : ℝ))
62    (p : ℕ → Fin (d + 1) → ℝ) (hp : ∀ n, p n ∈ K)
63    (hs : ∀ n, ∑ i, p n i = 1) (Q : ℕ → PMF (Fin (d + 1) → ℤ)) :
64    let P := fun n ↦ tensorYoungPMF n (d+1) (p n) (fun i ↦ (hpos _ (hp n) i).le) (hs n)
65    Tendsto (fun n ↦ CountableScheffe.l1Distance
66      (probability ((P n).bind (fun μ ↦ fallbackKernel (γn n) n (m n) (integerShape μ))))
67      (probability ((P n).bind (fun μ ↦ rawKernel (γn n) (m n) (integerShape μ))))) atTop (𝓝 0) ∧
68    Tendsto (fun n ↦ |CountableScheffe.affinity
69      (probability ((P n).bind (fun μ ↦ fallbackKernel (γn n) n (m n) (integerShape μ))))
70        (probability (Q n)) -
71      CountableScheffe.affinity
72        (probability ((P n).bind (fun μ ↦ rawKernel (γn n) (m n) (integerShape μ))))
73        (probability (Q n))|) atTop (𝓝 0) := by
74  dsimp only
75  let P := fun n ↦ tensorYoungPMF n (d+1) (p n) (fun i ↦ (hpos _ (hp n) i).le) (hs n)
76  have htail := tensorYoungPMF_tail_tendsto_zero p
77    (fun n i ↦ (hpos (p n) (hp n) i).le) hs (fun n ↦ (hanti (p n) (hp n)).antitone)
78  have hbad : Tendsto (fun n ↦ badMass (P n)
79      (fun μ ↦ Typical n (p n) (shrinkingRadius n) (integerShape μ))) atTop (𝓝 0) := by
80    apply squeeze_zero (fun n ↦ badMass_nonneg _ _) (fun n ↦
81      tensorYoung_badMass_le_tail (p n) _ (hs n) _) htail
82  have hbad2 := hbad.const_mul 2
83  simp only [mul_zero] at hbad2
84  obtain ⟨a, ha, hpK, hgap⟩ := compact_spectra_positive_gap K hK hpos hanti
85  have hevent := eventually_rounding_support_compatible hd m γn shrinkingRadius γ a ha
86    hγ hγn shrinkingRadius_tendsto_zero hm
87  have heq : ∀ᶠ n : ℕ in atTop, ∀ μ : Shape (d + 1) n,
88      Typical n (p n) (shrinkingRadius n) (integerShape μ) →
89        fallbackKernel (γn n) n (m n) (integerShape μ) =
90          rawKernel (γn n) (m n) (integerShape μ) := by
91    filter_upwards [hevent] with n hn
92    intro μ hμ
93    apply fallbackKernel_eq_raw_of_support
94    exact hn (p n) (hpK (p n) (hp n)) (hgap (p n) (hp n))
95      (integerShape μ) hμ.1.2.2 hμ.2
96  constructor
97  · apply squeeze_zero' (Eventually.of_forall (fun n ↦ tsum_nonneg (fun _ ↦ abs_nonneg _)))
98      (heq.mono (fun n hn ↦ bind_fallback_l1_bound (P n) _ _ _ hn)) hbad2
99  · apply squeeze_zero' (Eventually.of_forall (fun n ↦ abs_nonneg _))
100      (heq.mono (fun n hn ↦ bind_fallback_affinity_bound (P n) _ _ _ hn (Q n)))
101    simpa only [Real.sqrt_zero] using hbad2.sqrt
102 
103end Cloning.YoungGeneral