Offline · exact source
Exact Lean source

PhysicalFlatPinchingTrace

formalization/Cloning/PhysicalFlatPinchingTrace.lean

Source hash: 77f83ff428f1d84d7132fef917d976e9818899337774e95e544f15dcbcf6f473

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.PhysicalFlatPinchingInflation
2import Cloning.TensorCloningAchievabilityProbability
3import Cloning.YoungFlatFidelityBounds
4 
5/-! The trace of the actual supported inflated input is exactly the physical
6rank-flat expectation of the ambient/support dimension ratio. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace Classical ComplexOrder
9namespace Cloning.PhysicalFlatConverse
10open Cloning.PCT Cloning.TensorLie Cloning.TensorLAN Cloning.InfiniteTraceClass
11open Cloning.YoungGeneral Cloning.YoungDimensionRatio
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1400000
14 
15theorem rankFlat_highest_pad {r : ℕ} (μ : Fin r → ℕ) (k : ℕ) :
16    (∏ a, rankFlatSpectrum r k a ^ padPartition μ k a) = (1/(r:ℝ)) ^ (∑ a,μ a) := by
17  rw [Fin.prod_univ_add]
18  simp only [padPartition_left, padPartition_right, pow_zero, Finset.prod_const_one, mul_one]
19  have he (a : Fin r) : rankFlatSpectrum r k (Fin.castAdd k a) = 1/(r:ℝ) := by
20    simp [rankFlatSpectrum, a.isLt]
21  simp only [he]
22  rw [Finset.prod_pow_eq_pow_sum]
23 
24theorem rankFlat_highest_dimension_pad {r : ℕ} (μ : Fin r → ℕ) (hμ : Antitone μ) (k : ℕ) :
25    (∏ a, rankFlatSpectrum r k a ^ padPartition μ k a) *
26      (partitionDimension (padPartition μ k) (padPartition_antitone μ hμ k) : ℝ) =
27    physicalSectorCharacter (padPartition μ k) (rankFlatSpectrum r k) *
28      dimensionRatio r k (fun a => (μ a : ℝ)) := by
29  rw [rankFlat_highest_pad, physicalSectorCharacter_rankFlat μ hμ k, ← partitionDimension_pad_ratio μ hμ k,
30    one_div_pow]
31  have hD : (partitionDimension μ hμ : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (partitionDimension_pos μ hμ).ne'
32  field_simp
33 
34/-- The scalar identity also holds on unsupported partitions: both sides
35vanish there because the literal rank-flat tensor has a zero eigenvalue. -/
36theorem rankFlat_highest_dimension {r k : ℕ} (μ : Fin (r+k) → ℕ) (hμ : Antitone μ) :
37    (∏ a, rankFlatSpectrum r k a ^ μ a) * (partitionDimension μ hμ : ℝ) =
38      physicalSectorCharacter μ (rankFlatSpectrum r k) *
39        dimensionRatio r k (fun a => (μ (Fin.castAdd k a) : ℝ)) := by
40  by_cases ht : ∀ a : Fin k, μ (Fin.natAdd r a) = 0
41  · let ν : Fin r → ℕ := fun a => μ (Fin.castAdd k a)
42    have hν : Antitone ν := fun a b hab => hμ (show Fin.castAdd k a ≤ Fin.castAdd k b from hab)
43    have he : padPartition ν k = μ := by
44      funext a
45      induction a using Fin.addCases with
46      | left a => simp only [padPartition_left, ν]
47      | right a => simpa only [padPartition_right] using (ht a).symm
48    have hh := rankFlat_highest_dimension_pad ν hν k
49    simpa only [he, ν] using hh
50  · push_neg at ht
51    obtain ⟨a,ha⟩ := ht
52    have hc := physicalSectorCharacter_rankFlat_zero μ (Fin.natAdd r a) (by simp [Fin.val_natAdd]) ha
53    have hz : (∏ b, rankFlatSpectrum r k b ^ μ b) = 0 := by
54      apply Finset.prod_eq_zero (Finset.mem_univ (Fin.natAdd r a))
55      simp [rankFlatSpectrum, Fin.val_natAdd, ha]
56    rw [hz,hc,zero_mul,zero_mul]
57 
58/-- The inflation coefficient is exactly r^(-n) on every supported copy. -/
59theorem rankFlat_copy_highest_supported {n r k : ℕ} (H : PhysicalHighestTensor n (r+k))
60    (ht : ∀ a : Fin k, H.weight (Fin.natAdd r a) = 0) :
61    (∏ a, rankFlatSpectrum r k a ^ H.weight a) = (1/(r:ℝ))^n := by
62  let μ : Fin r → ℕ := fun a => H.weight (Fin.castAdd k a)
63  have he : padPartition μ k = H.weight := by
64    funext a
65    induction a using Fin.addCases with
66    | left a => simp only [padPartition_left, μ]
67    | right a => simpa only [padPartition_right] using (ht a).symm
68  have hs : ∑ a,μ a = n := by
69    rw [← sum_padPartition μ k, he, H.weight_sum]
70  rw [← he,rankFlat_highest_pad,hs]
71 
72theorem rankFlat_copy_highest_unsupported {n r k : ℕ} (H : PhysicalHighestTensor n (r+k))
73    (ht : ¬ ∀ a : Fin k, H.weight (Fin.natAdd r a) = 0) :
74    (∏ a, rankFlatSpectrum r k a ^ H.weight a) = 0 := by
75  push_neg at ht
76  obtain ⟨a,ha⟩ := ht
77  apply Finset.prod_eq_zero (Finset.mem_univ (Fin.natAdd r a))
78  simp [rankFlatSpectrum, Fin.val_natAdd, ha]
79 
80/-- Exact physical trace, including multiplicities and the padded rank-r
81Young law. No classical probability law is assumed. -/
82theorem flatInflatedInput_trace (n r k : ℕ) (hr : 0 < r) :
83    (traceCLM (flatInflatedInput n r k)).re =
84      ∑ μ : Shape r n, (tensorFlatYoungPMF n r hr μ).toReal *
85        dimensionRatio r k (fun a => ((μ a).val : ℝ)) := by
86  rw [flatInflatedInput, inflatedTensor_trace]
87  simp only [Complex.re_sum, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,
88    mul_zero, sub_zero]
89  simp_rw [rankFlat_highest_dimension]
90  let f : Shape (r+k) n → ℝ := fun μ => dimensionRatio r k (fun a => ((μ (Fin.castAdd k a)).val : ℝ))
91  have he := TensorCloning.tensorYoungPMF_sum_eq_copies n (r+k) (rankFlatSpectrum r k)
92    (rankFlatSpectrum_nonneg r k) (rankFlatSpectrum_sum hr) f
93  have hc (i : SchurCopy n (r+k)) :
94      TensorCloning.knownCopyWeight n (r+k) (rankFlatSpectrum r k) i =
95        physicalSectorCharacter ((recursivePhysicalDecomposition n (r+k)).get i).weight
96          (rankFlatSpectrum r k) := by
97    simp only [TensorCloning.knownCopyWeight, PhysicalHighestTensor.character,
98      physicalSectorCharacter, dif_pos ((recursivePhysicalDecomposition n (r+k)).get i).weight_antitone]
99  simp only [hc, f, PhysicalHighestTensor.shape] at he
100  rw [← he]
101  change (∑ μ : Shape (r+k) n, (tensorRankFlatYoungPMF n r k hr μ).toReal * f μ) = _
102  rw [tensorRankFlatYoungPMF_eq_map hr]
103  rw [← Cloning.YoungFlat.pmf_sum_map]
104  simp only [f, padShape, Fin.append_left]
105 
106end Cloning.PhysicalFlatConverse