Offline · exact source
Exact Lean source

TensorLANEmbeddingAverageUniform

formalization/Cloning/TensorLANEmbeddingAverageUniform.lean

Source hash: f5aa44cf8040ed2b973fa6026c92ebeac1a33fb0ca64a2644898966042134fff

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.TensorLANEmbeddingStateBounds
2import Cloning.TensorLANEmbeddingCopyTail
3import Cloning.TensorLANEmbeddingMixtureError
4 
5/-! Compact-uniform control of the full physical copy averages, with all
6atypical labels absorbed by the actual vanishing Young tail. -/
7noncomputable section
8open scoped BigOperators Topology Classical InnerProductSpace
9open Filter
10namespace Cloning.TensorLAN
11open Cloning.TensorLie Cloning.Hybrid
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1200000
14variable {d : ℕ}
15 
16def physicalForwardAverage (N Q : ℕ) (r p : Fin d → ℝ) (z : PositiveRoot d → ℂ) : ℝ :=
17  ∑ i : SchurCopy N d, ((recursivePhysicalDecomposition N d).get i).character r *
18    physicalGibbsForwardError ((recursivePhysicalDecomposition N d).get i).weight
19      ((recursivePhysicalDecomposition N d).get i).weight_antitone r p z z Q
20 
21def physicalReverseAverage (N Q : ℕ) (r p : Fin d → ℝ) (z : PositiveRoot d → ℂ) : ℝ :=
22  ∑ i : SchurCopy N d, ((recursivePhysicalDecomposition N d).get i).character r *
23    physicalGibbsReverseError ((recursivePhysicalDecomposition N d).get i).weight
24      ((recursivePhysicalDecomposition N d).get i).weight_antitone r p z z Q
25 
26theorem exists_cutoff_uniform_physical_averages
27    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p) (hs : ∑ a, p a = 1)
28    (B : ℝ) (K : Set (PositiveRoot d → ℂ)) (hK : IsCompact K)
29    (ε : ℝ) (hε : 0 < ε) :
30    ∃ Q₀ : ℕ, ∀ Q ≥ Q₀, ∀ᶠ N in atTop, ∀ h : Fin d → ℝ, ‖h‖ ≤ B →
31      (∑ a, h a = 0) → (∀ a, 0 < localSpectrum p h N a) →
32      Antitone (localSpectrum p h N) → ∀ z ∈ K,
33      physicalForwardAverage N Q (localSpectrum p h N) p z < ε ∧
34      physicalReverseAverage N Q (localSpectrum p h N) p z < ε := by
35  obtain ⟨Q₀,hQ₀⟩ := exists_cutoff_uniform_typical_physical_gibbs p hp hord B K hK
36    (ε/4) (by positivity)
37  refine ⟨Q₀,?_⟩
38  intro Q hQ
39  obtain ⟨N₀,hN₀⟩ := hQ₀ Q hQ
40  have htail := (physicalCopyTailEnvelope_tendsto_zero d).eventually
41    (eventually_lt_nhds (show 0 < ε/8 by positivity))
42  filter_upwards [eventually_ge_atTop (max N₀ 1), htail] with N hN ht h hh hzero hr horder z hz
43  have hs' := localSpectrum_sum p h hs hzero N
44  have hw : (∑ i : SchurCopy N d, ((recursivePhysicalDecomposition N d).get i).character
45      (localSpectrum p h N)) = 1 := by
46    rw [sum_physical_characters _ (recursivePhysicalDecomposition_is_decomposition N d).1
47      (recursivePhysicalDecomposition_is_decomposition N d).2 _ (fun a => (hr a).le), hs', one_pow]
48  have hbad := physicalCopyTail_le N d ((le_max_right _ _).trans hN)
49    (localSpectrum p h N) (fun a => (hr a).le) hs' horder
50  have hgood (i : SchurCopy N d)
51      (hi : TypicalLabel N (localSpectrum p h N) ((recursivePhysicalDecomposition N d).get i).weight) :=
52    hN₀ N ((le_max_left _ _).trans hN) _
53      ((recursivePhysicalDecomposition N d).get i).weight_antitone
54      ((recursivePhysicalDecomposition N d).get i).weight_sum h hh z hz hi
55  have hf := weighted_error_good_bad
56    (fun i : SchurCopy N d => ((recursivePhysicalDecomposition N d).get i).character (localSpectrum p h N))
57    (fun i => physicalGibbsForwardError ((recursivePhysicalDecomposition N d).get i).weight
58      ((recursivePhysicalDecomposition N d).get i).weight_antitone (localSpectrum p h N) p z z Q)
59    (fun i => PhysicalHighestTensor.character_nonneg _ _) hw
60    (fun i => TypicalLabel N (localSpectrum p h N) ((recursivePhysicalDecomposition N d).get i).weight)
61    (ε/4) 2 (by positivity) (by norm_num)
62    (fun i hi => (hgood i hi).1.le)
63    (fun i => physicalGibbsForwardError_le_two _ _ _ p hr hp hord z Q)
64  have hr' := weighted_error_good_bad
65    (fun i : SchurCopy N d => ((recursivePhysicalDecomposition N d).get i).character (localSpectrum p h N))
66    (fun i => physicalGibbsReverseError ((recursivePhysicalDecomposition N d).get i).weight
67      ((recursivePhysicalDecomposition N d).get i).weight_antitone (localSpectrum p h N) p z z Q)
68    (fun i => PhysicalHighestTensor.character_nonneg _ _) hw
69    (fun i => TypicalLabel N (localSpectrum p h N) ((recursivePhysicalDecomposition N d).get i).weight)
70    (ε/4) 2 (by positivity) (by norm_num)
71    (fun i hi => (hgood i hi).2.le)
72    (fun i => physicalGibbsReverseError_le_two _ _ _ p hr hp hord z Q)
73  change physicalForwardAverage N Q (localSpectrum p h N) p z ≤
74    ε/4 + 2*physicalCopyTail N d (localSpectrum p h N) at hf
75  change physicalReverseAverage N Q (localSpectrum p h N) p z ≤
76    ε/4 + 2*physicalCopyTail N d (localSpectrum p h N) at hr'
77  constructor <;> linarith
78 
79end Cloning.TensorLAN