module public import SubentropyCertificates.UniformAncillaLimit public import SubentropyCertificates.CurveInverse /-! The original (uncalibrated) inverse after extending a finite CQ ensemble by I/K. -/ @[expose] public section noncomputable section open Filter Set open scoped BigOperators Topology namespace SubentropyCertificates.AncillaExamples open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState) open D5.S3.Quantum.Information.PartialTraceMutualInformation (productState) open D5.S3.Quantum.Subentropy.ClassicalQuantumGram (conditionalSubentropy) open SubentropyCertificates.AncillaLimit (uniform_ancilla_conditional_tendsto) open SubentropyCertificates.ClassicalCurve open SubentropyCertificates.Discrimination open SubentropyCertificates.SpectralContinuity (maximallyMixed) /-- On the closed range of the ordinary curve, inputs tending to zero have inverse values tending to zero. The inputs can equal zero at any index. -/ theorem ordinary_inverse_tendsto_zero (m : ℕ) (q : ℕ → ℝ) (hq : ∀ k, q k ∈ curveRange m) (h : Tendsto q atTop (𝓝 0)) : Tendsto (fun k ↦ phiInverse m (q k) (hq k)) atTop (𝓝 0) := by apply tendsto_order.mpr constructor · intro a ha exact .of_forall fun k ↦ ha.trans_le (phiInverse_mem m _ (hq k)).1 · intro b hb by_cases hout : uniformError m < b · exact .of_forall fun k ↦ (phiInverse_mem m _ (hq k)).2.trans_lt hout have hmem : b ∈ Icc 0 (uniformError m) := ⟨hb.le, le_of_not_gt hout⟩ have hz : (0 : ℝ) ∈ Icc 0 (uniformError m) := ⟨le_rfl, (uniformError_mem m).1⟩ have hpos := phi_strictMono m hz hmem hb rw [phi_zero] at hpos filter_upwards [h (Iio_mem_nhds hpos)] with k hk have hlt := phiInverse_strictMono m (hq k) (phi_maps_to_curveRange m hmem) hk rwa [phiInverse_phi] at hlt variable {X B : Type*} [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B] /-- Both the extended conditional subentropy and the ordinary inverse lower bound vanish as the independent maximally mixed ancillary dimension K=k+1 tends to infinity. -/ theorem uncalibrated_ancilla_inverse_tendsto (m : ℕ) (hn : Fintype.card X = m + 2) (p : X → ℝ) (hp : ∀ x, 0 ≤ p x) (hs : ∑ x, p x = 1) (ρ : X → DensityState B) : let σ := fun (k : ℕ) x ↦ productState (ρ x) (maximallyMixed (Fin (k + 1))) let q := fun k ↦ conditionalSubentropy p hp hs (σ k) Tendsto q atTop (𝓝 0) ∧ Tendsto (fun k ↦ phiInverse m (q k) (conditional_subentropy_range m hn p hp hs (σ k))) atTop (𝓝 0) := by intro σ q have hsmall : Tendsto (fun k : ℕ ↦ 1 / ((k + 1 : ℕ) : ℝ)) atTop (𝓝 0) := by simpa using (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) have h := (uniform_ancilla_conditional_tendsto p hp hs ρ).mul hsmall rw [mul_zero] at h have hq : Tendsto q atTop (𝓝 0) := h.congr fun k ↦ by change ((k + 1 : ℕ) : ℝ) * q k * (1 / ((k + 1 : ℕ) : ℝ)) = q k field_simp exact ⟨hq, ordinary_inverse_tendsto_zero m q _ hq⟩ end SubentropyCertificates.AncillaExamples