Pratik Patil

SpecifiedAncillaTheorem.lean

1module23public import SubentropyCertificates.CalibratedAttainment4public import SubentropyCertificates.CalibratedInverse5public import SubentropyCertificates.AncillaGuessing67/-! Proposition 25 for a fixed independent ancilla and a fixed original signal dimension. -/8@[expose] public section9noncomputable section10open Matrix Set11open scoped BigOperators MatrixOrder ComplexOrder1213namespace SubentropyCertificates.AncillaCalibration14open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)15open D5.S3.Quantum.Information.PartialTraceMutualInformation (productState)16open D5.S3.Quantum.Subentropy.ClassicalQuantumGram (conditionalSubentropy)17open D5.S3.Quantum.Subentropy.GuessingProbability (pGuess)18open SubentropyCertificates.ClassicalCurve19open SubentropyCertificates.MeasurementPosterior20open SubentropyCertificates.Discrimination2122/-- Calibrated conditional subentropy values of ensembles on the specified spaces whose23original optimal guessing error equals `r`. -/24def calibratedValuesAtError (X B : Type*) [Fintype X] [DecidableEq X]25    [Fintype B] [DecidableEq B] {C : Type*} [Fintype C] [DecidableEq C]26    (ν : DensityState C) (r : ℝ) : Set ℝ :=27  {q | ∃ (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B),28    1 - pGuess p ρ = r ∧ conditionalSubentropy p hp hs (fun x ↦ productState (ρ x) ν) = q}2930variable {X B C Y : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]31  [Fintype C] [DecidableEq C]3233/-- At each admissible error the calibrated curve is the attained maximum, with the34ancilla, the label set, and the positive dimension of the original signal space fixed. -/35theorem calibrated_curve_isGreatest [Nonempty B] (ν : DensityState C) (m : ℕ)36    (hn : Fintype.card X = m + 2) (r : ℝ) (hr : r ∈ Icc 0 (uniformError m)) :37    IsGreatest (calibratedValuesAtError X B ν r) (calibratedPhi ν m r) := by38  classical39  constructor40  · have hX : Nonempty X := Fintype.card_pos_iff.mp (by omega)41    let b₀ := Classical.arbitrary B42    let v (b : B) : ℂ := if b = b₀ then 1 else 043    have hv : ∑ b, star (v b) * v b = 1 := by simp [v]44    obtain ⟨p, hp, hs, _, _, he, hc⟩ :=45      calibrated_curve_attainable ν m hn (Classical.choice hX) v hv r hr46    exact ⟨p, hp, hs, fun _ ↦ pureSignal v hv, he, hc⟩47  · rintro q ⟨p, hp, hs, ρ, he, rfl⟩48    simpa only [he] using ancilla_optimal_curve_bound ν m hn p hp hs ρ4950variable [Fintype Y]5152/-- The measurement, optimal-error, inverse, and sharpness clauses of Proposition 25.53The error `e` refers to the original ensemble, and `c` to its independent extension by `ν`. -/54structure SpecifiedAncillaConclusion (ν : DensityState C) (m : ℕ) (p : X → ℝ)55    (ρ : X → DensityState B) (F : Y → Matrix B B ℂ) (e c : ℝ) : Prop where56  measurement :57    let q y := outcomeProbability p ρ (F y)58    let b y := posterior p ρ (F y)59    let S := Finset.univ.filter (fun y ↦ 0 < q y)60    let avg := ∑ y ∈ S, q y * calibratedSubentropy ν (b y)61    let error := ∑ y ∈ S, q y * (1 - sSup (Set.range (b y)))62    0 ≤ c ∧ c ≤ avg ∧ avg ≤ calibratedPhi ν m error63  error_invariance : 1 - pGuess p (fun x ↦ productState (ρ x) ν) = e64  optimal_bound : c ≤ calibratedPhi ν m e65  increasing : StrictMonoOn (calibratedPhi ν m) (Icc 0 (uniformError m))66  inverse_domain : c ∈ calibratedCurveRange ν m67  inverse_bound : calibratedPhiInverse ν m c inverse_domain ≤ e68  sharp : ∀ r ∈ Icc 0 (uniformError m),69    IsGreatest (calibratedValuesAtError X B ν r) (calibratedPhi ν m r)70  identical_pure : ∀ (i : X) (v : B → ℂ) (hv : ∑ b, star (v b) * v b = 1)71      (r : ℝ), r ∈ Icc 0 (uniformError m) →72    ∃ (w : X → ℝ) (hw : ∀ x, 0 ≤ w x) (hsw : ∑ x, w x = 1),73      w i = 1 - r ∧ (∀ x, x ≠ i → w x = r / (m + 1 : ℕ)) ∧74      1 - pGuess w (fun _ ↦ pureSignal v hv) = r ∧75      conditionalSubentropy w hw hsw (fun _ ↦ productState (pureSignal v hv) ν) =76        calibratedPhi ν m r7778/-- Proposition 25 (sharp curve for a specified ancilla), for n = m+2 labels. -/79theorem sharp_curve_specified_ancilla (ν : DensityState C) (m : ℕ) (hn : Fintype.card X = m + 2)80    (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B)81    (F : Y → Matrix B B ℂ) (hF : ∀ y, (F y).PosSemidef) (hsF : ∑ y, F y = 1) :82    SpecifiedAncillaConclusion ν m p ρ F (1 - pGuess p ρ)83      (conditionalSubentropy p hp hs (fun x ↦ productState (ρ x) ν)) := by84  have hX : Nonempty X := Fintype.card_pos_iff.mp (by omega)85  have : Nonempty B := by86    by_contra h87    have : IsEmpty B := not_nonempty_iff.mp h88    have ht := (ρ (Classical.choice hX)).2.289    simp [Matrix.trace] at ht90  exact {91    measurement := ancilla_measurement_curve_bound ν m hn p hp hs ρ F hF hsF92    error_invariance := guessing_error_product_right p ρ ν93    optimal_bound := ancilla_optimal_curve_bound ν m hn p hp hs ρ94    increasing := calibratedPhi_strictMono ν m95    inverse_domain := conditional_product_mem_calibratedRange ν m hn p hp hs ρ96    inverse_bound := ancilla_inverse_discrimination_bound ν m hn p hp hs ρ97    sharp := calibrated_curve_isGreatest ν m hn98    identical_pure := calibrated_curve_attainable ν m hn }99100end SubentropyCertificates.AncillaCalibration

Axioms used

Choose a statement to see which axioms its proof uses.