CalibratedAttainment.lean
1module23public import SubentropyCertificates.CalibratedCoordinate4public import SubentropyCertificates.CalibratedIdenticalPure5public import SubentropyCertificates.IdenticalPureSignals67/-! Equality witnesses for Proposition 25 at every admissible error. -/8@[expose] public section9noncomputable section10open Set11open scoped BigOperators1213namespace 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.Discrimination2021variable {X B C : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]22 [Fintype C] [DecidableEq C]2324/-- Any common unit vector and any distinguished label realize the calibrated curve.25The prescribed error may be zero or the uniform-prior endpoint. -/26theorem calibrated_curve_attainable (ν : DensityState C) (m : ℕ) (hn : Fintype.card X = m + 2)27 (i : X) (v : B → ℂ) (hv : ∑ b, star (v b) * v b = 1)28 (r : ℝ) (hr : r ∈ Icc 0 (uniformError m)) :29 ∃ (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1),30 p i = 1 - r ∧ (∀ x, x ≠ i → p x = r / (m + 1 : ℕ)) ∧31 1 - pGuess p (fun _ ↦ pureSignal v hv) = r ∧32 conditionalSubentropy p hp hs (fun _ ↦ productState (pureSignal v hv) ν) =33 calibratedPhi ν m r := by34 classical35 let g : X ≃ Option (Fin (m + 1)) := Fintype.equivOfCardEq (by simp [hn, Nat.add_assoc])36 let f := g.trans (Equiv.swap (g i) none)37 have hfi : f i = none := by simp [f]38 let p := extremalVector m r ∘ f39 have hp := simplex_reindex _ (extremal_probability_admissible m hr) f40 have hi : p i = 1 - r := by simp only [p, Function.comp_apply, hfi, extremalVector]41 have hmax (x : X) : p x ≤ p i := by42 change extremalVector m r (f x) ≤ extremalVector m r (f i)43 rw [hfi]44 exact extremal_none_largest m hr (f x)45 refine ⟨p, hp.1, hp.2, hi, ?_, ?_, ?_⟩46 · intro x hxi47 have hx : f x ≠ none := fun h ↦ hxi (f.injective (h.trans hfi.symm))48 change extremalVector m r (f x) = _49 cases h : f x with50 | none => exact (hx h).elim51 | some j => rfl52 · rw [pGuess_identical p hp.1 hp.2 (pureSignal v hv) i hmax, hi]53 ring54 · exact (conditional_product_identical_pure p hp.1 hp.2 v hv ν).trans55 (calibratedSubentropy_reindex ν (extremalVector m r) f)5657end SubentropyCertificates.AncillaCalibration
Axioms used
Choose a statement to see which axioms its proof uses.