Constant of exists one
ProbDistribution.constant_of_exists_one
Plain-language statement
If a distribution has an element with probability 1, the distribution has a constant.
Exact Lean statement
theorem constant_of_exists_one {D : ProbDistribution α} {x : α} (h : D x = 1) : D = ProbDistribution.constant xFormal artifact
Lean source
theorem constant_of_exists_one {D : ProbDistribution α} {x : α} (h : D x = 1) : D = ProbDistribution.constant x := by ext y by_cases h₂ : x = y · simp [h, ← h₂] · simp only [constant_eq, h₂, ↓reduceIte, Prob.coe_zero] by_contra h₃ replace h₃ : 0 < (D y : ℝ) := by linarith (config := {splitNe := true}) only [h₃, @Prob.zero_le_coe (D y)] have := D.normalized rw [← Finset.add_sum_erase _ _ (Finset.mem_univ x), h, Prob.coe_one] at this rw [← Finset.add_sum_erase _ _ (a := y) (by simpa using (Ne.symm h₂))] at this have : 0 ≤ ∑ x ∈ Finset.erase (Finset.erase Finset.univ x) y, (D x : ℝ) := Finset.sum_nonneg' (fun _ ↦ Prob.zero_le_coe) linarith- Project
- quantumInfo
- License
- MIT
- Commit
- 56e83a9288a3
- Source
- ClassicalInfo/Distribution.lean:100-113
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
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...
Source project: quantumInfo
Person-level attribution pending.
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 ψ).
Source project: quantumInfo
Person-level attribution pending.
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).
Source project: quantumInfo
Person-level attribution pending.