Exact Lean source
YoungGeneralFallback
formalization/Cloning/YoungGeneralFallback.lean
Source hash: 3034761f5d35637036d6e99ca587fb92018aeadeca58820daeaa374ad0f12b0f
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.YoungGeneralPMF
2import Cloning.YoungCompatibilityFallback
3
4/-!
5# General Young formula implies asymptotically negligible fallback
6
7The input law is a genuine finite PMF with the exact tableau formula. It is
8bound to the existing physical-label rounding kernel. The previous
9vanishing-atypical-mass premise is replaced by the proved general-rank
10concentration estimate.
11-/
12
13noncomputable section
14open scoped BigOperators Topology Classical
15open Filter
16
17namespace Cloning.YoungGeneral
18open YoungCompatibility
19
20def integerShape {d N : ℕ} (μ : Shape d N) : Fin d → ℤ := fun i ↦ (μ i).val
21
22theorem integerShape_isYoung {d N : ℕ} (P : PMF (Shape d N)) (p : Fin d → ℝ)
23 (hformula : ∀ μ, (P μ).toReal = youngWeight N p (fun i ↦ (μ i).val))
24 (μ : Shape d N) (hμ : (P μ).toReal ≠ 0) :
25 IsYoung N (integerShape μ) := by
26 have h := youngWeight_support N p (fun i ↦ (μ i).val) (by rwa [← hformula μ])
27 refine ⟨fun i ↦ Int.natCast_nonneg _, ?_, ?_⟩
28 · intro i j hij
29 dsimp only [integerShape]
30 exact_mod_cast h.1 hij
31 · dsimp only [integerShape]
32 exact_mod_cast h.2
33
34/-- The PMF's entire bad-label mass is bounded by the explicitly proved
35coordinate tail, including the partition-support condition. -/
36theorem badMass_integerShape_le_tail {d N : ℕ} (P : PMF (Shape (d + 1) N))
37 (p : Fin (d + 1) → ℝ)
38 (hformula : ∀ μ, (P μ).toReal = youngWeight N p (fun i ↦ (μ i).val)) (ε : ℝ) :
39 badMass P (fun μ ↦ Typical N p ε (integerShape μ)) ≤ tailProbability P p ε := by
40 classical
41 unfold badMass tailProbability
42 rw [tsum_fintype]
43 apply Finset.sum_le_sum
44 intro μ _
45 by_cases hz : (P μ).toReal = 0
46 · simp [probability, hz]
47 · have hyoung := integerShape_isYoung P p hformula μ hz
48 by_cases ht : Typical N p ε (integerShape μ)
49 · simp only [if_pos ht]
50 positivity
51 · have hex : ∃ i, (N : ℝ) * ε ≤ |((μ i).val : ℝ) - N * p i| := by
52 by_contra hn
53 push_neg at hn
54 apply ht
55 refine ⟨hyoung, fun i ↦ ?_⟩
56 simpa only [integerShape, Int.cast_natCast] using (hn i).le
57 simp [ht, hex, probability]
58
59/-- General-rank disappearance of the actual fallback. All statistical
60assumptions are exact spectrum/formula identifications; there is no input
61concentration or vanishing-error premise. -/
62theorem tableau_fallback_errors_tendsto_zero {d : ℕ} (hd : 1 ≤ d)
63 (K : Set (Fin (d + 1) → ℝ)) (hK : IsCompact K)
64 (hpos : ∀ p ∈ K, ∀ i, 0 < p i) (hanti : ∀ p ∈ K, StrictAnti p)
65 (m : ℕ → ℤ) (γn : ℕ → ℝ) (γ : ℝ) (hγ : 1 < γ)
66 (hγn : Tendsto γn atTop (𝓝 γ))
67 (hm : ∀ n, (m n : ℝ) = γn n * (n : ℝ))
68 (p : ℕ → Fin (d + 1) → ℝ) (hp : ∀ n, p n ∈ K)
69 (hs : ∀ n, ∑ i, p n i = 1)
70 (P : ∀ N, PMF (Shape (d + 1) N)) (Q : ℕ → PMF (Fin (d + 1) → ℤ))
71 (hformula : ∀ N μ, (P N μ).toReal = youngWeight N (p N) (fun i ↦ (μ i).val)) :
72 Tendsto (fun n ↦ CountableScheffe.l1Distance
73 (probability ((P n).bind (fun μ ↦ fallbackKernel (γn n) n (m n) (integerShape μ))))
74 (probability ((P n).bind (fun μ ↦ rawKernel (γn n) (m n) (integerShape μ))))) atTop (𝓝 0) ∧
75 Tendsto (fun n ↦ |CountableScheffe.affinity
76 (probability ((P n).bind (fun μ ↦ fallbackKernel (γn n) n (m n) (integerShape μ))))
77 (probability (Q n)) -
78 CountableScheffe.affinity
79 (probability ((P n).bind (fun μ ↦ rawKernel (γn n) (m n) (integerShape μ))))
80 (probability (Q n))|) atTop (𝓝 0) := by
81 have htail := tailProbability_tendsto_zero P p
82 (fun n i ↦ (hpos (p n) (hp n) i).le) hs (fun n ↦ (hanti (p n) (hp n)).antitone) hformula
83 have hbad : Tendsto (fun n ↦ badMass (P n)
84 (fun μ ↦ Typical n (p n) (shrinkingRadius n) (integerShape μ))) atTop (𝓝 0) := by
85 apply squeeze_zero (fun n ↦ badMass_nonneg _ _) (fun n ↦
86 badMass_integerShape_le_tail (P n) (p n) (hformula n) _) htail
87 have hbad2 := hbad.const_mul 2
88 simp only [mul_zero] at hbad2
89 obtain ⟨a, ha, hpK, hgap⟩ := compact_spectra_positive_gap K hK hpos hanti
90 have hevent := eventually_rounding_support_compatible hd m γn shrinkingRadius γ a ha
91 hγ hγn shrinkingRadius_tendsto_zero hm
92 have heq : ∀ᶠ n : ℕ in atTop, ∀ μ : Shape (d + 1) n,
93 Typical n (p n) (shrinkingRadius n) (integerShape μ) →
94 fallbackKernel (γn n) n (m n) (integerShape μ) =
95 rawKernel (γn n) (m n) (integerShape μ) := by
96 filter_upwards [hevent] with n hn
97 intro μ hμ
98 apply fallbackKernel_eq_raw_of_support
99 exact hn (p n) (hpK (p n) (hp n)) (hgap (p n) (hp n))
100 (integerShape μ) hμ.1.2.2 hμ.2
101 constructor
102 · apply squeeze_zero' (Eventually.of_forall (fun n ↦ tsum_nonneg (fun _ ↦ abs_nonneg _)))
103 (heq.mono (fun n hn ↦ bind_fallback_l1_bound (P n) _ _ _ hn)) hbad2
104 · apply squeeze_zero' (Eventually.of_forall (fun n ↦ abs_nonneg _))
105 (heq.mono (fun n hn ↦ bind_fallback_affinity_bound (P n) _ _ _ hn (Q n)))
106 simpa only [Real.sqrt_zero] using hbad2.sqrt
107
108end Cloning.YoungGeneral