All proofs
Project-declaredLean 4.28.0 · mathlib@8f9d9cff6bd7

Hₛ le log d

Hₛ_le_log_d

Plain-language statement

Shannon entropy of a distribution is at most ln d.

Exact Lean statement

theorem Hₛ_le_log_d (d : ProbDistribution α) : Hₛ d ≤ Real.log (Fintype.card α)

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem Hₛ_le_log_d (d : ProbDistribution α) : Hₛ d  Real.log (Fintype.card α) := by  --Thanks Aristotle  by_cases h : Fintype.card α = 0  · simp_all [Hₛ, Fintype.card_eq_zero_iff.mp h]  -- Since the sum of the probabilities is 1, we can apply Jensen's inequality for the convex function -x log x.  have h_jensen {p : α  } (hsum : ∑ i, p i = 1) (hp :  i, 0  p i  p i  1) :      -∑ i, p i * (p i).log  Real.log (Fintype.card α) := by    have h_jensen : (∑ i, (Fintype.card α : )⁻¹ * p i) * (∑ i, (Fintype.card α : )⁻¹ * p i).log           (∑ i, (Fintype.card α : )⁻¹ * (p i * (p i).log)) := by      have h_convex : ConvexOn  (Set.Icc 0 1) (fun x  x * Real.log x) :=        Real.convexOn_mul_log.subset Set.Icc_subset_Ici_self (convex_Icc 0 1)      convert h_convex.map_sum_le _ _ _ <;> aesop    simp_rw [ Finset.mul_sum, hsum, mul_one, Real.log_inv] at h_jensen    have : 0 < (Fintype.card α : )⁻¹ := by positivity    have := mul_inv_cancel₀ <| show (Fintype.card α : )  0 by positivity    nlinarith  simpa [Hₛ, H₁, Real.negMulLog] using h_jensen d.2 (by grind)
Project
quantumInfo
License
MIT
Commit
56e83a9288a3
Source
ClassicalInfo/Entropy.lean:90-106

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.28.0

Conj Transpose isometry mul isometry le one

conjTranspose_isometry_mul_isometry_le_one

Project documentation

The operator norm of the conjugate transpose is equal to the operator norm. -/ theorem Matrix.opNorm_conjTranspose_eq_opNorm {m n : Type*} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] (A : Matrix m n 𝕜) : Matrix.opNorm Aᴴ = Matrix.opNorm A := by unfold Matrix.opNorm rw [← ContinuousLinearMap.adjoint.norm_map (toEuclideanLin A).toContinuousLine...

quantum informationentropyquantum channels

Source project: quantumInfo

Person-level attribution pending.

View proof record
Project-declaredLean 4.28.0

Convex roof of pure

convex_roof_of_pure

Plain-language statement

The convex roof extension of g : KetUpToPhase d → ℝ≥0 applied to a pure state ψ is g (KetUpToPhase.mk ψ).

quantum informationentropyquantum channels

Source project: quantumInfo

Person-level attribution pending.

View proof record
Project-declaredLean 4.28.0

Id achieves Rate log dim

CPTPMap.id_achievesRate_log_dim

Plain-language statement

The identity channel on D dimensional space achieves a rate of log2(D).

quantum informationentropyquantum channels

Source project: quantumInfo

Person-level attribution pending.

View proof record