Offline · exact source
Exact Lean source

PCTHybridFidelity

formalization/Cloning/PCTHybridFidelity.lean

Source hash: faa06156670bf57d1bb6673ea41ffde8f802c501c6d167182df2b3642a2873f2

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.HybridGaussianAttainmentFidelity
2import Cloning.MixedGaussianConverse
3import Cloning.Main
4 
5/-! The root fidelity of the literal PCT Gaussian comparison field.
6This computes an actual positive L1 state's fidelity. Identification with the
7physical PCT output still requires the joint mixture and mixed LAN arguments. -/
8noncomputable section
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10open MeasureTheory Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
11open Cloning.MultimodeCoherent Cloning.InfiniteDiagonalFidelity
12namespace Cloning.Hybrid
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15variable {k s : ℕ}
16 
17lemma pct_thermal_nonneg {g q : ℝ} (hg : 1 < g) (hq : 0 ≤ q) :
18    0 ≤ Thermal.pct g q := by
19  apply div_nonneg _ (Thermal.pct_denominator_pos hg hq).le
20  exact add_nonneg (sub_nonneg.mpr hg.le) (mul_nonneg (zero_lt_one.trans hg).le hq)
21 
22/-- The literal PCT comparison field: covariance broadened by `2 g - 1`
23and the PCT geometric thermal ratios. -/
24def pctGaussianThermalField
25    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
26    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
27    PositiveField (H := Fock s) (volume : Measure (Fin k → ℝ)) :=
28  gaussianThermalField (fun i => a i / (2 * g - 1))
29    (fun i => div_pos (ha i) (by linarith))
30    (fun i => Thermal.pct g (q i))
31    (fun i => pct_thermal_nonneg hg (hq0 i))
32    (fun i => Thermal.pct_lt_one hg (hq0 i) (hq1 i))
33 
34def pctGaussianThermalPositive
35    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
36    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) : HybridPositive k s :=
37  (pctGaussianThermalField a ha g hg q hq0 hq1).toPositiveL1
38 
39theorem norm_pctGaussianThermalPositive
40    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
41    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
42    ‖(pctGaussianThermalPositive a ha g hg q hq0 hq1).1‖ = 1 :=
43  Cloning.MixedLANTransfer.norm_gaussianThermalPositive _ _ _ _ _
44 
45/-- Exact field root fidelity, including seed vacuum modes and empty products. -/
46theorem pctGaussianThermalField_rootFidelity
47    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
48    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
49    (pctGaussianThermalField a ha g hg q hq0 hq1).rootFidelity
50      (gaussianThermalField a ha q hq0 hq1) =
51      Thermal.classicalBase (2 * g - 1) ^ ((k : ℝ) / 2) *
52        ∏ i, Thermal.fidelity (q i) (Thermal.pct g (q i)) := by
53  rw [PositiveField.rootFidelity_comm]
54  unfold pctGaussianThermalField gaussianThermalField
55  rw [PositiveField.rootFidelity_product, stateFidelity_productGeometric]
56  have hc := GaussianAffinity.integral_product_dilation a ha (by linarith : 0 < 2 * g - 1)
57  simpa only [Fintype.card_fin] using congrArg
58    (fun x => x * ∏ i, Thermal.fidelity (q i) (Thermal.pct g (q i))) hc
59 
60/-- The same value for genuine positive L1 equivalence classes. -/
61theorem pctGaussianThermalPositive_rootFidelity
62    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
63    (q : Fin s → ℝ) (hq0 : ∀ i, 0 ≤ q i) (hq1 : ∀ i, q i < 1) :
64    (pctGaussianThermalPositive a ha g hg q hq0 hq1).rootFidelity
65      (gaussianThermalPositive a ha q hq0 hq1) =
66      Thermal.classicalBase (2 * g - 1) ^ ((k : ℝ) / 2) *
67        ∏ i, Thermal.fidelity (q i) (Thermal.pct g (q i)) := by
68  change (pctGaussianThermalField a ha g hg q hq0 hq1).toPositiveL1.rootFidelity
69    (gaussianThermalField a ha q hq0 hq1).toPositiveL1 = _
70  rw [PositiveField.toPositiveL1_rootFidelity]
71  exact pctGaussianThermalField_rootFidelity a ha g hg q hq0 hq1
72 
73/-- For a physical simple spectrum, the actual product-field fidelity is
74exactly the manuscript's PCT scalar. No physical LAN limit is asserted here. -/
75theorem pctGaussianThermalPositive_rootFidelity_eq_pctValue
76    (a : Fin k → ℝ) (ha : ∀ i, 0 < a i) (g : ℝ) (hg : 1 < g)
77    (p : SimpleSpectrum (k + 1)) (e : Fin s ≃ PairIndex (k + 1)) :
78    (pctGaussianThermalPositive a ha g hg (fun i => p.ratio (e i))
79      (fun i => (p.ratio_pos (e i)).le) (fun i => p.ratio_lt_one (e i))).rootFidelity
80      (gaussianThermalPositive a ha (fun i => p.ratio (e i))
81        (fun i => (p.ratio_pos (e i)).le) (fun i => p.ratio_lt_one (e i))) = pctValue g p := by
82  rw [pctGaussianThermalPositive_rootFidelity, pctValue, classicalValue]
83  simp only [Nat.cast_add, Nat.cast_one, add_sub_cancel_right]
84  congr 1
85  exact e.prod_comp (fun ij => Thermal.fidelity (p.ratio ij) (Thermal.pct g (p.ratio ij)))
86 
87end Cloning.Hybrid