CompactPosteriorStability.lean
1module23public import SubentropyCertificates.EnsembleContinuity4public import SubentropyCertificates.TraceDistanceContinuity56/-! The final compactness statement of Section 3.5. A positive lower7bound on the guessing error excludes the zero-error equality branch. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11set_option backward.isDefEq.respectTransparency false12open Set Filter13open scoped Topology BigOperators14namespace SubentropyCertificates.CompactStability15open D5.S3.Quantum.Foundation.FiniteStateChannel16open D5.S3.Quantum.Information.OrthogonalRecordEntropy17open D5.S3.Quantum.Subentropy.ClassicalQuantumGram18open D5.S3.Quantum.Subentropy.GuessingProbability19open SubentropyCertificates.Discrimination20open SubentropyCertificates.ClassicalCurve21open SubentropyCertificates.MixedQubit (traceDistance)2223variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]2425/-- CQ states attaining the sharp curve at their own positive error.26The candidate prior and signal family range over all ensembles on X,B. -/27def equalityRecords (m : ℕ) : Set (DensityState (X × B)) :=28 {τ | ∃ F : Ensemble X B, 0 < guessingError F ∧ gap m F=0 ∧ record F=τ}2930theorem equalityRecords_iff (m : ℕ) (hn : Fintype.card X=m+2) (τ : DensityState (X × B)) :31 τ ∈ equalityRecords m ↔ ∃ F : Ensemble X B, 0 < guessingError F ∧32 extremalPureEnsemble m F.1 (fun x => asState (F.2 x)) (guessingError F) ∧ record F=τ := by33 have eqv (F : Ensemble X B) (hF : 0 < guessingError F) : gap m F=0 ↔34 extremalPureEnsemble m F.1 (fun x => asState (F.2 x)) (guessingError F) := by35 rw [gap,sub_eq_zero,eq_comm]36 exact sharp_equality_iff_of_positive_error m hn F.1 F.1.property.1 F.1.property.2 _ hF37 constructor38 · rintro ⟨F,hF,hgap,ht⟩; exact ⟨F,hF,(eqv F hF).mp hgap,ht⟩39 · rintro ⟨F,hF,hpure,ht⟩; exact ⟨F,hF,(eqv F hF).mpr hpure,ht⟩4041/-- On two binary registers this is exactly the equality set used for the42mixed-qubit counterexample immediately preceding the compactness result. -/43theorem equalityRecords_two_qubits :44 equalityRecords (X := Fin 2) (B := Fin 2) 0 = MixedQubit.positiveEqualityRecords := by45 ext τ46 constructor47 · rintro ⟨F, hpos, hgap, rfl⟩48 exact ⟨F.1, F.1.property.1, F.1.property.2, fun x => asState (F.2 x),49 hpos, (sub_eq_zero.mp hgap).symm, rfl⟩50 · rintro ⟨q, hq, hs, σ, hpos, heq, rfl⟩51 exact ⟨ofEnsemble q hq hs σ, hpos, sub_eq_zero.mpr heq.symm, rfl⟩5253/-- Trace distance from a joint state to the entire positive-error equality set. -/54def distanceToEquality (m : ℕ) (ρ : DensityState (X × B)) : ℝ :=55 sInf (traceDistance ρ '' equalityRecords m)5657/-- For fixed registers, an error floor a>0 and a requested trace distance58ε>0 determine one δ>0 valid for every normalized ensemble on those registers. -/59theorem uniform_closeness (m : ℕ) (hn : Fintype.card X=m+2) {a ε : ℝ} (ha : 0<a) (hε : 0<ε) :60 ∃ δ : ℝ, 0<δ ∧ ∀ E : Ensemble X B, a ≤ guessingError E → gap m E < δ →61 ∃ τ ∈ equalityRecords m, traceDistance (record E) τ < ε := by62 let _ : CompactSpace (Ensemble X B) := compact_ensembles X B63 let K := {E : Ensemble X B | a ≤ guessingError E ∧64 ∀ τ : ↥(equalityRecords (X := X) (B := B) m), ε ≤ traceDistance (record E) τ.val}65 have closed : IsClosed K := by66 apply IsClosed.inter (isClosed_le continuous_const guessingError_continuous)67 change IsClosed {E : Ensemble X B | ∀ τ : ↥(equalityRecords (X := X) (B := B) m),68 ε ≤ traceDistance (record E) τ.val}69 rw [Set.ofPred_forall]70 apply isClosed_iInter71 intro τ72 exact isClosed_le continuous_const73 (traceDistance_continuous record (fun _ => τ.val) record_continuous continuous_const)74 have positive (E : Ensemble X B) (hE : E ∈ K) : 0 < gap m E := by75 by_contra! h76 have hzero := le_antisymm h (gap_nonneg m hn E)77 have hmem : record E ∈ equalityRecords m := ⟨E,ha.trans_le hE.1,hzero,rfl⟩78 have hfar := hE.2 ⟨record E,hmem⟩79 rw [traceDistance_self] at hfar80 exact (not_le_of_gt hε) hfar81 obtain ⟨δ,hδ,hmin⟩ := closed.isCompact.exists_forall_le' (gap_continuous m hn).continuousOn positive82 refine ⟨δ,hδ,?_⟩83 intro E he hg84 by_contra! hfar85 exact (not_le_of_gt hg) (hmin E ⟨he,fun τ => hfar τ.val τ.property⟩)8687/-- Along any sequence in the fixed dimensions with an eventual positive88error floor, a vanishing deficit implies vanishing distance to equality. -/89theorem distanceToEquality_tendsto (m : ℕ) (hn : Fintype.card X=m+2)90 (u : ℕ → Ensemble X B) {a : ℝ} (ha : 0<a)91 (herr : ∀ᶠ k in atTop, a ≤ guessingError (u k))92 (hlim : Tendsto (fun k => gap m (u k)) atTop (𝓝 0)) :93 Tendsto (fun k => distanceToEquality m (record (u k))) atTop (𝓝 0) := by94 apply Metric.tendsto_nhds.mpr95 intro ε hε96 obtain ⟨δ,hδ,hclose⟩ := uniform_closeness (B := B) m hn ha hε97 filter_upwards [herr,hlim (Iio_mem_nhds hδ)] with k he hg98 obtain ⟨τ,hτ,hd⟩ := hclose (u k) he hg99 let S := traceDistance (record (u k)) '' equalityRecords m100 have hmem : traceDistance (record (u k)) τ ∈ S := ⟨τ,hτ,rfl⟩101 have hlo : 0 ∈ lowerBounds S := by102 rintro _ ⟨σ,_,rfl⟩; exact traceDistance_nonneg _ _103 have hnonneg : 0 ≤ sInf S := le_csInf ⟨_,hmem⟩ hlo104 change dist (sInf S) 0 < ε105 rw [Real.dist_eq,sub_zero,abs_of_nonneg hnonneg]106 exact (csInf_le ⟨0,hlo⟩ hmem).trans_lt hd107108/-- The sequence statement with the paper's priors, mixed signals,109operational guessing probability, conditional subentropy and CQ record. -/110theorem fixed_dimension_stability (m : ℕ) (hn : Fintype.card X=m+2)111 (p : ℕ → X → ℝ) (hp : ∀ k x,0 ≤ p k x) (hs : ∀ k,∑ x,p k x=1)112 (ρ : ℕ → X → DensityState B) {a : ℝ} (ha : 0<a)113 (herr : ∀ᶠ k in atTop, a ≤ 1-pGuess (p k) (ρ k))114 (hlim : Tendsto (fun k => phi m (1-pGuess (p k) (ρ k)) -115 conditionalSubentropy (p k) (hp k) (hs k) (ρ k)) atTop (𝓝 0)) :116 Tendsto (fun k => distanceToEquality m (recordState (p k) (hp k) (hs k) (ρ k))) atTop (𝓝 0) :=117 distanceToEquality_tendsto m hn (fun k => ofEnsemble (p k) (hp k) (hs k) (ρ k)) ha herr hlim118119end SubentropyCertificates.CompactStability
Axioms used
Choose a statement to see which axioms its proof uses.