Offline · exact source
Exact Lean source

TensorLANEmbeddingCellRecovery

formalization/Cloning/TensorLANEmbeddingCellRecovery.lean

Source hash: a7a281a4570e64c3b21472bd426d1aec31da53efd39de7836aa6f52fd6ebd906

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.TensorLANEmbeddingSelectorRecovery
2import Cloning.TensorLANEmbeddingMixtureError
3 
4/-! Exact recovery of physical copy probabilities after classical smoothing
5and quantization in the fixed whitening chart. -/
6noncomputable section
7open scoped BigOperators Topology Classical InnerProductSpace
8open MeasureTheory Filter
9namespace Cloning.TensorLAN
10open Cloning.YoungHyperplane Cloning.TensorLie Cloning.PCTJointGaussianWhitening
11open Cloning.Hybrid Cloning.InfiniteTraceClass Cloning.PCT
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1400000
14variable {d : ℕ}
15local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17 
18variable (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 < p a)
19    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
20    (hb : b 0 = sqrtSpectrum p)
21 
22def physicalLabelDensity (N : ℕ) (r : Fin (d+1) → ℝ) : (Fin d → ℝ) → ℝ :=
23  fun y => ∑ i : SchurCopy N (d+1),
24    ((recursivePhysicalDecomposition N (d+1)).get i).character r *
25      physicalCellDensity p hp b hb N i y
26 
27theorem physicalLabelDensity_integrable (N : ℕ) (r : Fin (d+1) → ℝ) :
28    Integrable (physicalLabelDensity p hp b hb N r) :=
29  integrable_finset_sum _ (fun i _ => (physicalCellDensity_integrable p hp b hb N i).const_mul _)
30 
31theorem physicalLabelDensity_nonneg (N : ℕ) (r : Fin (d+1) → ℝ) (y : Fin d → ℝ) :
32    0 ≤ physicalLabelDensity p hp b hb N r y :=
33  Finset.sum_nonneg fun i _ => mul_nonneg (PhysicalHighestTensor.character_nonneg _ _)
34    (physicalCellDensity_nonneg p hp b hb N i y)
35 
36theorem physicalLabelDensity_integral (N : ℕ) (r : Fin (d+1) → ℝ)
37    (hr : ∀ a, 0 ≤ r a) (hs : ∑ a, r a = 1) :
38    ∫ y, physicalLabelDensity p hp b hb N r y = 1 := by
39  change (∫ y, ∑ i : SchurCopy N (d+1),
40    ((recursivePhysicalDecomposition N (d+1)).get i).character r *
41      physicalCellDensity p hp b hb N i y) = 1
42  rw [integral_finset_sum _
43    (fun i _ => (physicalCellDensity_integrable p hp b hb N i).const_mul _)]
44  simp_rw [integral_const_mul, physicalCellDensity_integral, mul_one]
45  rw [sum_physical_characters _ (recursivePhysicalDecomposition_is_decomposition N (d+1)).1
46    (recursivePhysicalDecomposition_is_decomposition N (d+1)).2 r hr, hs, one_pow]
47 
48theorem physicalLabelDensity_eq_whitened (N : ℕ) (hN : 0 < N)
49    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 ≤ r a) (hs : ∑ a, r a = 1) :
50    physicalLabelDensity p hp b hb N r =
51      whiteningDensity (rootWhitening p hp b hb) (fixedBaseYoungDensity d N p r hr hs) := by
52  funext y
53  exact sum_copy_physicalCellDensity N d hN p hp b hb r hr hs y
54 
55theorem physicalLabelDensity_selector_integral (N : ℕ) (hN : 0 < N)
56    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 ≤ r a) (hs : ∑ a, r a = 1)
57    (i : Option (SchurCopy N (d+1))) :
58    (∫ y, uniformLabelSelector (schurCopyLattice N d) (physicalCellQuantizer p hp b hb N) i y *
59      physicalLabelDensity p hp b hb N r y) =
60      i.elim 0 (fun i => ((recursivePhysicalDecomposition N (d+1)).get i).character r) := by
61  apply uniformLabelSelector_recovers _ _ (physicalCellQuantizer_measurable p hp b hb N)
62    _ (physicalLabelDensity_integrable p hp b hb N r)
63    (physicalLabelDensity_integral p hp b hb N r hr hs)
64  · rw [sum_physical_characters _ (recursivePhysicalDecomposition_is_decomposition N (d+1)).1
65      (recursivePhysicalDecomposition_is_decomposition N (d+1)).2 r hr, hs, one_pow]
66  · exact physicalCopy_character_eq_of_lattice_eq N d r
67  · intro a
68    rw [physicalLabelDensity_eq_whitened p hp b hb N hN r hr hs,
69      binMass_physicalCellQuantizer N d hN p hp b hb r hr hs,
70      tensorYoungLatticePMF_toReal_eq_sum_copies]
71 
72/-- Smoothing the physical Young law and then reading the actual selector
73recovers every copy with precisely its physical character probability. -/
74theorem physicalCellReverse_prepare_physicalLabelDensity (N R : ℕ) (hN : 0 < N)
75    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 ≤ r a) (hs : ∑ a, r a = 1)
76    (A : TraceClass (RootFock (d+1))) :
77    (physicalCellReverse p hp b hb N R).map
78      (prepareL1 (physicalLabelDensity p hp b hb N r)
79        (physicalLabelDensity_integrable p hp b hb N r) A) =
80      ∑ i : SchurCopy N (d+1),
81        (((recursivePhysicalDecomposition N (d+1)).get i).character r : ℂ) •
82          (fockToCopy N (d+1) R i).toLinearMap A := by
83  rw [physicalCellReverse, schurReverse, HybridToQuantum.finiteSelector_apply]
84  have hi (i : Option (SchurCopy N (d+1))) : Integrable (fun y =>
85      uniformLabelSelector (schurCopyLattice N d) (physicalCellQuantizer p hp b hb N) i y *
86        physicalLabelDensity p hp b hb N r y) := by
87    exact (physicalLabelDensity_integrable p hp b hb N r).bdd_mul
88      ((uniformLabelSelector_measurable _ _ (physicalCellQuantizer_measurable p hp b hb N) i).aestronglyMeasurable)
89      (Eventually.of_forall (finiteSelector_weight_bound _
90        (uniformLabelSelector_nonneg _ _) (uniformLabelSelector_sum _ _) i))
91  simp_rw [weightedL1Integral_prepare _ _ _ _ _ (hi _),
92    physicalLabelDensity_selector_integral p hp b hb N hN r hr hs]
93  rw [Fintype.sum_option]
94  simp only [Option.elim_none, Option.elim_some, Complex.ofReal_zero, zero_smul, map_zero,
95    zero_add, copyReverseWithFallback, map_smul]
96 
97end Cloning.TensorLAN