Offline · exact source
Exact Lean source

TensorLANEmbeddingCopyTail

formalization/Cloning/TensorLANEmbeddingCopyTail.lean

Source hash: 5e9a59fc1004314cb40c02964acd97e448194bb17d0ed412bfcacdb8f4f9dd46

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.TensorLANEmbeddingSchurWeights
2import Cloning.TensorLANEmbeddingTypical
3 
4/-! The exceptional weight of the literal physical copy mixture is exactly
5the actual Young tail, hence has a uniform vanishing bound. -/
6noncomputable section
7open scoped BigOperators Topology Classical NNReal ENNReal
8open Filter
9namespace Cloning.TensorLAN
10open Cloning.TensorLie Cloning.YoungGeneral
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13 
14theorem physicalCopy_expectation (N d : ℕ) (p : Fin d → ℝ)
15    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (f : Shape d N → ℝ) :
16    (∑ mu, (tensorYoungPMF N d p hp hs mu).toReal*f mu) =
17      ∑ i : SchurCopy N d, ((recursivePhysicalDecomposition N d).get i).character p *
18        f ((recursivePhysicalDecomposition N d).get i).shape := by
19  classical
20  rw [tensorYoungPMF_eq_map_copies]
21  simp_rw [PMF.map_apply, tsum_fintype]
22  have he (mu : Shape d N) :
23      (∑ i : SchurCopy N d, if mu = ((recursivePhysicalDecomposition N d).get i).shape then
24        physicalCopyPMF N d p hp hs i else 0).toReal =
25      ∑ i : SchurCopy N d, if mu = ((recursivePhysicalDecomposition N d).get i).shape then
26        ((recursivePhysicalDecomposition N d).get i).character p else 0 := by
27    rw [ENNReal.toReal_sum (by
28      intro i _
29      split_ifs
30      · exact (physicalCopyPMF N d p hp hs).apply_ne_top i
31      · exact ENNReal.zero_ne_top)]
32    apply Finset.sum_congr rfl
33    intro i _
34    split_ifs <;> simp
35  calc
36    _ = ∑ mu : Shape d N, (∑ i : SchurCopy N d,
37        if mu = ((recursivePhysicalDecomposition N d).get i).shape then
38          ((recursivePhysicalDecomposition N d).get i).character p else 0)*f mu := by
39      apply Finset.sum_congr rfl
40      intro mu _
41      apply congrArg (fun x : ℝ => x*f mu)
42      convert he mu using 1 <;> congr 1
43      apply Finset.sum_congr rfl
44      intro i _
45      by_cases hi : mu = ((recursivePhysicalDecomposition N d).get i).shape
46      · simp only [if_pos hi]
47      · simp only [if_neg hi]
48    _ = _ := by
49      simp_rw [Finset.sum_mul]
50      rw [Finset.sum_comm]
51      apply Finset.sum_congr rfl
52      intro i _
53      simp
54 
55def physicalCopyTail (N d : ℕ) (p : Fin d → ℝ) : ℝ :=
56  ∑ i : SchurCopy N d,
57    if TypicalLabel N p ((recursivePhysicalDecomposition N d).get i).weight then 0
58    else ((recursivePhysicalDecomposition N d).get i).character p
59 
60theorem physicalCopyTail_eq_young_tail (N d : ℕ) (p : Fin d → ℝ)
61    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) :
62    physicalCopyTail N d p = tailProbability (tensorYoungPMF N d p hp hs) p (shrinkingRadius N) := by
63  have he := physicalCopy_expectation N d p hp hs (fun mu =>
64    if ∃ a, (N : ℝ)*shrinkingRadius N ≤ |((mu a).val : ℝ)-(N : ℝ)*p a| then 1 else 0)
65  simp only [mul_ite, mul_one, mul_zero] at he
66  rw [tailProbability, he]
67  unfold physicalCopyTail
68  apply Finset.sum_congr rfl
69  intro i _
70  have hn : (¬ TypicalLabel N p ((recursivePhysicalDecomposition N d).get i).weight) ↔
71      ∃ a, (N : ℝ)*shrinkingRadius N ≤
72        |(((recursivePhysicalDecomposition N d).get i).shape a).val-(N : ℝ)*p a| := by
73    simp [TypicalLabel, PhysicalHighestTensor.shape]
74  by_cases ht : TypicalLabel N p ((recursivePhysicalDecomposition N d).get i).weight
75  · have hnot : ¬ ∃ a, (N : ℝ)*shrinkingRadius N ≤
76        |(((recursivePhysicalDecomposition N d).get i).shape a).val-(N : ℝ)*p a| :=
77      fun h => hn.mpr h ht
78    rw [if_pos ht, if_neg hnot]
79  · simp only [if_neg ht, if_pos (hn.mp ht)]
80 
81def physicalCopyTailEnvelope (d N : ℕ) : ℝ :=
82  ((d : ℝ)+1)^Fintype.card (PositiveRoot d) *
83    (((N : ℝ)+1)^Fintype.card (PositiveRoot d)*concentrationEnvelope d N)
84 
85theorem physicalCopyTail_le (N d : ℕ) (hN : 1 ≤ N) (p : Fin d → ℝ)
86    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (horder : Antitone p) :
87    physicalCopyTail N d p ≤ physicalCopyTailEnvelope d N := by
88  rw [physicalCopyTail_eq_young_tail N d p hp hs]
89  exact tensorYoungPMF_tail_shrinking_le N hN p hp hs horder
90 
91theorem physicalCopyTailEnvelope_tendsto_zero (d : ℕ) :
92    Tendsto (physicalCopyTailEnvelope d) atTop (𝓝 0) := by
93  simpa only [physicalCopyTailEnvelope, mul_zero] using
94    (polynomial_concentrationEnvelope_tendsto_zero d (Fintype.card (PositiveRoot d))).const_mul
95      (((d : ℝ)+1)^Fintype.card (PositiveRoot d))
96 
97end Cloning.TensorLAN