Exact Lean source
HybridProduct
formalization/Cloning/HybridProduct.lean
Source hash: 3e5540ea77ea9a1c8aa622705ff9ba35ddd650b0ba62cdf2292b90ea6e599d21
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
definition
Cloning.Hybrid.PositiveTraceClass.scaletheorem Cloning.Hybrid.PositiveTraceClass.continuous_scaletheorem Cloning.Hybrid.PositiveTraceClass.norm_scaledefinition Cloning.Hybrid.PositiveField.producttheorem Cloning.Hybrid.PositiveField.product_valuetheorem Cloning.Hybrid.PositiveField.mass_producttheorem Cloning.Hybrid.PositiveField.mass_product_one1import Cloning.HybridFidelity
2
3/-! Product classical–quantum densities and their exact normalization. -/
4noncomputable section
5open scoped ComplexOrder InnerProductSpace Topology
6open MeasureTheory Filter Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
7namespace Cloning.Hybrid
8set_option backward.isDefEq.respectTransparency false
9variable {Ω H : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
10 [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
11
12namespace PositiveTraceClass
13/-- Multiplying a positive trace-class fibre by a nonnegative scalar. -/
14def scale (a : NNReal) (A : PositiveTraceClass H) : PositiveTraceClass H :=
15 ⟨((a : ℝ) : ℂ) • A.1, by
16 change 0 ≤ ((a : ℝ) : ℂ) • A.1.1
17 rw [Complex.coe_smul]
18 exact smul_nonneg a.2 A.2⟩
19
20lemma continuous_scale (A : PositiveTraceClass H) : Continuous (fun a : NNReal => scale a A) := by
21 apply Continuous.subtype_mk
22 exact (Complex.continuous_ofReal.comp continuous_subtype_val).smul continuous_const
23
24@[simp] lemma norm_scale (a : NNReal) (A : PositiveTraceClass H) :
25 ‖(scale a A).1‖ = (a : ℝ) * ‖A.1‖ := by
26 rw [scale, norm_smul]
27 simp only [Complex.norm_real, Real.norm_eq_abs]
28 rw [abs_of_nonneg (NNReal.coe_nonneg a)]
29
30end PositiveTraceClass
31
32namespace PositiveField
33/-- The actual hybrid product state `g(y) T`; the density is an integrable
34real-valued nonnegative function and `T` is a genuine quantum density operator. -/
35def product (g : Ω → ℝ) (hg : Integrable g μ) (hgn : ∀ x, 0 ≤ g x)
36 (T : DensityState H) : PositiveField (H := H) μ where
37 value := fun x => PositiveTraceClass.scale (Real.toNNReal (g x))
38 ⟨TraceClass.ofOperator T.op T.traceClass, T.positive⟩
39 measurable := (PositiveTraceClass.continuous_scale _).comp_aestronglyMeasurable
40 (continuous_real_toNNReal.comp_aestronglyMeasurable hg.aestronglyMeasurable)
41 integrable := by
42 have h := (Complex.ofRealCLM.integrable_comp hg).smul_const
43 (TraceClass.ofOperator T.op T.traceClass)
44 simpa only [PositiveTraceClass.scale, Real.coe_toNNReal _ (hgn _)] using h
45
46@[simp] lemma product_value (g : Ω → ℝ) (hg : Integrable g μ) (hgn : ∀ x, 0 ≤ g x)
47 (T : DensityState H) (x : Ω) :
48 ((product g hg hgn T).value x).1 = (g x : ℂ) • TraceClass.ofOperator T.op T.traceClass := by
49 simp only [product, PositiveTraceClass.scale, Real.coe_toNNReal _ (hgn _)]
50
51@[simp] lemma mass_product (g : Ω → ℝ) (hg : Integrable g μ) (hgn : ∀ x, 0 ≤ g x)
52 (T : DensityState H) : (product g hg hgn T).mass = ∫ x, g x ∂μ := by
53 unfold mass
54 apply integral_congr_ae
55 exact Eventually.of_forall fun x => by
56 dsimp only
57 rw [product_value, norm_smul, TraceClass.norm_eq_trace_re_of_nonneg _ T.positive]
58 simp only [TraceClass.ofOperator_coe, T.trace_one, Complex.one_re, mul_one,
59 Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (hgn x)]
60
61/-- A classical probability density times a quantum state has total trace one. -/
62lemma mass_product_one (g : Ω → ℝ) (hg : Integrable g μ) (hgn : ∀ x, 0 ≤ g x)
63 (T : DensityState H) (hprob : ∫ x, g x ∂μ = 1) : (product g hg hgn T).mass = 1 := by
64 rwa [mass_product]
65
66end PositiveField
67end Cloning.Hybrid