All proofs
Project-declaredLean 4.28.0 · mathlib@8f9d9cff6bd7

Expect val eq mixable mix

ProbDistribution.expect_val_eq_mixable_mix

Plain-language statement

The expectation value of a random variable over α = Fin 2 is the same as Mixable.mix with probabiliy weight X.distr 0

Exact Lean statement

theorem expect_val_eq_mixable_mix (d : ProbDistribution (Fin 2)) (x₁ x₂ : T) : expect_val ⟨![x₁, x₂], d⟩ = Mixable.mix (d 0) x₁ x₂

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem expect_val_eq_mixable_mix (d : ProbDistribution (Fin 2)) (x₁ x₂ : T) : expect_val ![x₁, x₂], d = Mixable.mix (d 0) x₁ x₂ := by  apply Mixable.to_U_inj  simp only [Mixable.mix, expect_val, DFunLike.coe, Mixable.to_U_of_mkT]  calc    ∑ i : Fin (Nat.succ 0).succ, (d i : ) • Mixable.to_U (![x₁, x₂] i) = ∑ i, (d i : ) • Mixable.to_U (![x₁, x₂] i) := by      simp    _ = (d 0 : ) • Mixable.to_U (![x₁, x₂] 0) + (d 1 : ) • Mixable.to_U (![x₁, x₂] 1) := by      simp    _ = (d 0 : ) • Mixable.to_U x₁ + (1 - d 0).val • Mixable.to_U x₂ := by      congr      simpa only [Subtype.ext_iff, Prob.coe_one_minus, eq_sub_iff_add_eq, add_comm,        fun_eq_val, Fin.sum_univ_two] using d.property
Project
quantumInfo
License
MIT
Commit
56e83a9288a3
Source
ClassicalInfo/Distribution.lean:244-255

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