Exact Lean source
Nonadditivity.BellOutput
Download original .lean · View on GitHub · Jump to source
Catalog entries: Bell-output entropy bound
Direct imports
Imported by project modules
3 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
69 project constants, including generated, internal and private declarations.
69 declarations
Nonadditivity.BellOutput.MergedLabelNonadditivity.BellOutput.OffDiagonalNonadditivity.BellOutput.bellStateNonadditivity.BellOutput.bellState._proof_1internal/detail/privateNonadditivity.BellOutput.bellState._proof_2internal/detail/privateNonadditivity.BellOutput.bellState.congr_simpNonadditivity.BellOutput.bellState_entropy_zeroNonadditivity.BellOutput.bellState_eq_pureStateNonadditivity.BellOutput.bellState_matrixNonadditivity.BellOutput.complementary_bell_entropy_leNonadditivity.BellOutput.conjugateUnitaryNonadditivity.BellOutput.conjugateUnitary._proof_1internal/detail/privateNonadditivity.BellOutput.conjugateUnitary.eq_1internal/detail/privateNonadditivity.BellOutput.conjugate_unitary_fixes_bellStateNonadditivity.BellOutput.conjugate_unitary_fixes_normalizedBellVectorNonadditivity.BellOutput.conjugation_vecMulVecNonadditivity.BellOutput.diagonalEquivNonadditivity.BellOutput.diagonalEquiv._proof_1internal/detail/privateNonadditivity.BellOutput.diagonalEquiv._proof_2internal/detail/privateNonadditivity.BellOutput.diagonalEquiv._proof_3internal/detail/privateNonadditivity.BellOutput.diagonalEquiv._proof_4internal/detail/privateNonadditivity.BellOutput.mergedStatesNonadditivity.BellOutput.mergedStates.congr_simpNonadditivity.BellOutput.mergedStates.eq_1internal/detail/privateNonadditivity.BellOutput.mergedStates.eq_2internal/detail/privateNonadditivity.BellOutput.mergedStates_entropy_zeroNonadditivity.BellOutput.mergedWeightsNonadditivity.BellOutput.mergedWeights.eq_1internal/detail/privateNonadditivity.BellOutput.mergedWeights.eq_2internal/detail/privateNonadditivity.BellOutput.mergedWeights.match_1internal/detail/privateNonadditivity.BellOutput.mergedWeights_nonnegNonadditivity.BellOutput.mergedWeights_shannonNonadditivity.BellOutput.mergedWeights_shannon._simp_1_10internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_4internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_5internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_6internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_7internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_8internal/detail/privateNonadditivity.BellOutput.mergedWeights_shannon._simp_1_9internal/detail/privateNonadditivity.BellOutput.mergedWeights_sumNonadditivity.BellOutput.normalizedBellVectorNonadditivity.BellOutput.normalizedBellVector.congr_simpNonadditivity.BellOutput.normalizedBellVector.eq_1internal/detail/privateNonadditivity.BellOutput.normalizedBellVector_normSq_sumNonadditivity.BellOutput.offDiagonal_cardNonadditivity.BellOutput.pairStateNonadditivity.BellOutput.pairState.congr_simpNonadditivity.BellOutput.pairState.eq_1internal/detail/privateNonadditivity.BellOutput.pairState_diagonalNonadditivity.BellOutput.pairState_entropy_zeroNonadditivity.BellOutput.pairedChannelNonadditivity.BellOutput.pairedChannel.congr_simpNonadditivity.BellOutput.pairedChannel_bell_entropy_leNonadditivity.BellOutput.pairedChannel_bell_eq_mergedNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_2internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_3internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_4internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_5internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_6internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_7internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_eq_merged._simp_1_8internal/detail/privateNonadditivity.BellOutput.pairedChannel_bell_matrixNonadditivity.BellOutput.pairedChannel_krausNonadditivity.BellOutput.split_pair_sumNonadditivity.BellOutput.star_mulVecNonadditivity.Entropy.bellVector.congr_simp_private.Nonadditivity.BellOutput.0.Nonadditivity.BellOutput.mergedWeights.match_1.eq_1internal/detail/private_private.Nonadditivity.BellOutput.0.Nonadditivity.BellOutput.mergedWeights.match_1.eq_2internal/detail/private_private.Nonadditivity.BellOutput.0.Nonadditivity.BellOutput.mergedWeights.match_1.splitterinternal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.EntropyMixtures7import Nonadditivity.PureChannelEntropy8import Nonadditivity.ChannelReindex910/-!11# Concrete normalized Bell states and conjugate-unitary invariance1213The Bell vectors and density matrices below are actual finite complex14vectors and positive trace-one matrices. No Bell entropy estimate is15postulated.16-/1718noncomputable section1920namespace Nonadditivity.BellOutput2122open Nonadditivity.Entropy23open scoped BigOperators ComplexOrder ComplexConjugate Kronecker Matrix2425variable {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]2627/-- The normalized maximally entangled vector. -/28def normalizedBellVector : ι × ι → ℂ :=29(Real.sqrt (1 / (Fintype.card ι : ℝ)) : ℂ) • bellVector3031theorem normalizedBellVector_normSq_sum :32∑ z : ι × ι, Complex.normSq (normalizedBellVector z) = 1 := by33have hd : (Fintype.card ι : ℝ) ≠ 0 := by exact_mod_cast Fintype.card_ne_zero34simp only [normalizedBellVector, Pi.smul_apply, smul_eq_mul,35Complex.normSq_mul, Complex.normSq_ofReal, Real.mul_self_sqrt (by positivity :360 ≤ 1 / (Fintype.card ι : ℝ)), Fintype.sum_prod_type, bellVector]37simp [hd]3839/-- The Bell density matrix as a normalized rank-one Gram matrix. -/40def bellState : DensityMatrix (ι × ι) where41matrix := Matrix.vecMulVec normalizedBellVector (star normalizedBellVector)42positive := by43let V : Matrix (ι × ι) Unit ℂ := fun z _ => normalizedBellVector z44have h := Matrix.posSemidef_self_mul_conjTranspose V45convert h using 146ext z w47simp [V, Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.vecMulVec]48normalized := by49rw [Matrix.trace_vecMulVec]50have h := congrArg Complex.ofReal51(normalizedBellVector_normSq_sum (ι := ι))52simpa [dotProduct, map_sum, Complex.mul_conj] using h5354theorem bellState_matrix :55(bellState (ι := ι)).matrix =56Matrix.vecMulVec normalizedBellVector (star normalizedBellVector) := rfl5758omit [Nonempty ι] in59/-- The normalized Bell vector is fixed by `U tensor conjugate(U)`. -/60theorem conjugate_unitary_fixes_normalizedBellVector61(U : unitary (Matrix ι ι ℂ)) :62((U : Matrix ι ι ℂ) ⊗ₖ (U : Matrix ι ι ℂ).map (starRingEnd ℂ)) *ᵥ63normalizedBellVector = normalizedBellVector := by64exact unitary_kronecker_conjugate_fixes_scaled_bell U _6566/-- Entrywise conjugation of an actual unitary is an actual unitary. -/67def conjugateUnitary (U : unitary (Matrix ι ι ℂ)) : unitary (Matrix ι ι ℂ) :=68⟨(U : Matrix ι ι ℂ).map (starRingEnd ℂ), by69rw [Unitary.mem_iff]70constructor71· ext i j72have h := congrArg (fun M : Matrix ι ι ℂ => star (M i j))73(Unitary.coe_star_mul_self U)74simpa [Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.star_apply,75Matrix.map_apply, Matrix.one_apply, map_sum, mul_comm] using h76· ext i j77have h := congrArg (fun M : Matrix ι ι ℂ => star (M i j))78(Unitary.coe_mul_star_self U)79simpa [Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.star_apply,80Matrix.map_apply, Matrix.one_apply, map_sum, mul_comm] using h⟩8182omit [Fintype ι] [DecidableEq ι] [Nonempty ι] in83theorem star_mulVec {κ : Type*} [Fintype κ] (A : Matrix ι κ ℂ) (v : κ → ℂ) :84star (A *ᵥ v) = star v ᵥ* A.conjTranspose := by85ext i86simp [Matrix.mulVec, Matrix.vecMul, dotProduct, Matrix.conjTranspose_apply,87mul_comm]8889omit [Fintype ι] [DecidableEq ι] [Nonempty ι] in90/-- Conjugation transports the rank-one matrix of a vector. -/91theorem conjugation_vecMulVec {κ : Type*} [Fintype κ]92(A : Matrix ι κ ℂ) (v : κ → ℂ) :93A * Matrix.vecMulVec v (star v) * A.conjTranspose =94Matrix.vecMulVec (A *ᵥ v) (star (A *ᵥ v)) := by95rw [Matrix.mul_vecMulVec, Matrix.vecMulVec_mul, star_mulVec]9697/-- The Bell density matrix is fixed by the conjugate unitary action. -/98theorem conjugate_unitary_fixes_bellState (U : unitary (Matrix ι ι ℂ)) :99(bellState (ι := ι)).unitaryConjugate (tensorUnitary U (conjugateUnitary U)) =100bellState := by101apply DensityMatrix.ext102change _ * Matrix.vecMulVec normalizedBellVector (star normalizedBellVector) * _ = _103rw [Matrix.star_eq_conjTranspose, conjugation_vecMulVec]104have h := conjugate_unitary_fixes_normalizedBellVector U105simp only [tensorUnitary, conjugateUnitary, h, bellState_matrix]106107end Nonadditivity.BellOutput108109namespace Nonadditivity.BellOutput110111open Nonadditivity.Entropy Nonadditivity.Channels112open scoped BigOperators ComplexOrder ComplexConjugate Kronecker Matrix113114variable {ι κ : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]115[Fintype κ] [DecidableEq κ] [Nonempty κ]116117abbrev OffDiagonal (κ : Type*) := {z : κ × κ // z.1 ≠ z.2}118abbrev MergedLabel (κ : Type*) := Option (OffDiagonal κ)119120def diagonalEquiv (κ : Type*) : {z : κ × κ // z.1 = z.2} ≃ κ where121toFun := fun z => z.val.1122invFun := fun i => ⟨(i,i), rfl⟩123left_inv := by124rintro ⟨⟨i,j⟩, h⟩125cases h126rfl127right_inv := fun _ => rfl128129omit [Nonempty κ] in130theorem offDiagonal_card :131Fintype.card (OffDiagonal κ) = Fintype.card κ * (Fintype.card κ - 1) := by132have hd : Fintype.card {z : κ × κ // z.1 = z.2} = Fintype.card κ :=133Fintype.card_congr (diagonalEquiv κ)134change Fintype.card {z : κ × κ // ¬z.1 = z.2} = _135rw [Fintype.card_subtype_compl, Fintype.card_prod, hd, Nat.mul_sub_left_distrib,136Nat.mul_one]137138def mergedWeights : MergedLabel κ → ℝ139| none => 1 / (Fintype.card κ : ℝ)140| some _ => 1 / (Fintype.card κ : ℝ) ^ 2141142omit [DecidableEq κ] [Nonempty κ] in143theorem mergedWeights_nonneg (z : MergedLabel κ) : 0 ≤ mergedWeights z := by144cases z <;> simp [mergedWeights]145146theorem mergedWeights_sum : ∑ z : MergedLabel κ, mergedWeights z = 1 := by147have hk : (Fintype.card κ : ℝ) ≠ 0 := by exact_mod_cast Fintype.card_ne_zero148have hK : 1 ≤ Fintype.card κ := Fintype.card_pos149have hm : ((Fintype.card κ - 1 : ℕ) : ℝ) = (Fintype.card κ : ℝ) - 1 := by150rw [Nat.cast_sub hK]151simp152simp only [Fintype.sum_option, mergedWeights, Finset.sum_const, Finset.card_univ,153nsmul_eq_mul]154rw [offDiagonal_card]155push_cast156rw [hm]157field_simp158ring159160theorem mergedWeights_shannon :161shannon (mergedWeights (κ := κ)) =1622 * Real.log (Fintype.card κ) - Real.log (Fintype.card κ) / Fintype.card κ := by163have hk : (Fintype.card κ : ℝ) ≠ 0 := by exact_mod_cast Fintype.card_ne_zero164have hK : 1 ≤ Fintype.card κ := Fintype.card_pos165have hm : ((Fintype.card κ - 1 : ℕ) : ℝ) = (Fintype.card κ : ℝ) - 1 := by166rw [Nat.cast_sub hK]167simp168simp only [shannon, Fintype.sum_option, mergedWeights, Finset.sum_const,169Finset.card_univ, nsmul_eq_mul]170rw [offDiagonal_card]171push_cast172rw [hm]173simp only [one_div, Real.log_inv, Real.log_pow]174field_simp175ring176177/-- The pure state associated with a unitary pair acting on a Bell input. -/178def pairState (U : κ → unitary (Matrix ι ι ℂ)) (z : κ × κ) :179DensityMatrix (ι × ι) :=180bellState.unitaryConjugate (tensorUnitary (U z.1) (conjugateUnitary (U z.2)))181182omit [Fintype κ] [DecidableEq κ] [Nonempty κ] in183theorem pairState_diagonal (U : κ → unitary (Matrix ι ι ℂ)) (i : κ) :184pairState U (i,i) = bellState := conjugate_unitary_fixes_bellState (U i)185186def mergedStates (U : κ → unitary (Matrix ι ι ℂ)) :187MergedLabel κ → DensityMatrix (ι × ι)188| none => bellState189| some z => pairState U z190191def pairedChannel (U : κ → unitary (Matrix ι ι ℂ)) :192KrausChannel (ι × ι) (ι × ι) (κ × κ) :=193(KrausChannel.uniformUnitary U).tensor (KrausChannel.uniformUnitary U).conjugate194195omit [Nonempty ι] [DecidableEq κ] in196theorem pairedChannel_kraus (U : κ → unitary (Matrix ι ι ℂ)) (z : κ × κ) :197(pairedChannel U).kraus z = (1 / (Fintype.card κ : ℂ)) •198(tensorUnitary (U z.1) (conjugateUnitary (U z.2)) : Matrix (ι × ι) (ι × ι) ℂ) := by199have hs : (Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ) *200(Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ) = 1 / (Fintype.card κ : ℂ) := by201rw [← Complex.ofReal_mul,202Real.mul_self_sqrt (by positivity : 0 ≤ 1 / (Fintype.card κ : ℝ))]203simp204ext ⟨a,b⟩ ⟨c,d⟩205change ((Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ) *206(U z.1 : Matrix ι ι ℂ) a c) *207star ((Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ) *208(U z.2 : Matrix ι ι ℂ) b d) =209(1 / (Fintype.card κ : ℂ)) *210((U z.1 : Matrix ι ι ℂ) a c * star ((U z.2 : Matrix ι ι ℂ) b d))211rw [star_mul]212simp only [Complex.star_def, Complex.conj_ofReal]213calc214_ = ((Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ) *215(Real.sqrt (1 / (Fintype.card κ : ℝ)) : ℂ)) *216((U z.1 : Matrix ι ι ℂ) a c * conj ((U z.2 : Matrix ι ι ℂ) b d)) := by ring217_ = _ := by rw [hs]218219omit [DecidableEq κ] in220/-- The tensor random-unitary output has the actual pure-pair ensemble. -/221theorem pairedChannel_bell_matrix (U : κ → unitary (Matrix ι ι ℂ)) :222((pairedChannel U).output bellState).matrix =223∑ z : κ × κ, ((1 / (Fintype.card κ : ℝ) ^ 2 : ℝ) : ℂ) •224(pairState U z).matrix := by225simp only [KrausChannel.output_matrix, KrausChannel.map]226apply Finset.sum_congr rfl227intro z _228rw [pairedChannel_kraus]229simp only [Matrix.conjTranspose_smul, Matrix.smul_mul, Matrix.mul_smul, smul_smul,230pairState, DensityMatrix.unitaryConjugate, Matrix.star_eq_conjTranspose]231congr 1232simp [pow_two]233234omit [Nonempty κ] in235theorem split_pair_sum {E : Type*} [AddCommMonoid E] (f : κ × κ → E) :236(∑ z : κ × κ, f z) = (∑ i : κ, f (i,i)) + ∑ z : OffDiagonal κ, f z := by237have h := Fintype.sum_subtype_add_sum_subtype (fun z : κ × κ => z.1 = z.2) f238have hd : (∑ z : {z : κ × κ // z.1 = z.2}, f z) = ∑ i : κ, f (i,i) := by239apply Fintype.sum_equiv (diagonalEquiv κ)240rintro ⟨⟨i,j⟩, h⟩241cases h242rfl243rw [hd] at h244exact h.symm245246/-- All diagonal branches coincide, so their weights merge into one `1/K`. -/247theorem pairedChannel_bell_eq_merged (U : κ → unitary (Matrix ι ι ℂ)) :248(pairedChannel U).output bellState =249DensityMatrix.mixture mergedWeights mergedWeights_nonneg mergedWeights_sum250(mergedStates U) := by251apply DensityMatrix.ext252rw [pairedChannel_bell_matrix, split_pair_sum]253have hdiag : (∑ _i : κ, ((1 / (Fintype.card κ : ℝ) ^ 2 : ℝ) : ℂ) •254(bellState (ι := ι)).matrix) =255((1 / (Fintype.card κ : ℝ) : ℝ) : ℂ) • bellState.matrix := by256have hk : (Fintype.card κ : ℂ) ≠ 0 := by exact_mod_cast Fintype.card_ne_zero257ext i j258simp only [Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul, Finset.sum_const,259Finset.card_univ, nsmul_eq_mul, Complex.ofReal_div, Complex.ofReal_one,260Complex.ofReal_pow, Complex.ofReal_natCast]261field_simp262simp only [pairState_diagonal, hdiag,263DensityMatrix.mixture_matrix, Fintype.sum_option, mergedWeights, mergedStates]264265theorem bellState_eq_pureState :266(bellState (ι := ι)) =267pureState normalizedBellVector normalizedBellVector_normSq_sum := by268apply DensityMatrix.ext269rfl270271theorem bellState_entropy_zero : (bellState (ι := ι)).vonNeumann = 0 := by272rw [bellState_eq_pureState]273exact pureState_entropy_zero _ _274275omit [Fintype κ] [DecidableEq κ] [Nonempty κ] in276theorem pairState_entropy_zero (U : κ → unitary (Matrix ι ι ℂ)) (z : κ × κ) :277(pairState U z).vonNeumann = 0 := by278rw [pairState, DensityMatrix.unitaryConjugate_entropy, bellState_entropy_zero]279280omit [Fintype κ] [DecidableEq κ] [Nonempty κ] in281theorem mergedStates_entropy_zero (U : κ → unitary (Matrix ι ι ℂ))282(z : MergedLabel κ) : (mergedStates U z).vonNeumann = 0 := by283cases z284· exact bellState_entropy_zero285· exact pairState_entropy_zero U _286287/-- The actual mixed-unitary Bell output obeys the manuscript's entropy bound. -/288theorem pairedChannel_bell_entropy_le (U : κ → unitary (Matrix ι ι ℂ)) :289((pairedChannel U).output bellState).vonNeumann ≤2902 * Real.log (Fintype.card κ) - Real.log (Fintype.card κ) / Fintype.card κ := by291rw [pairedChannel_bell_eq_merged]292have h := EntropyMixtures.densityMatrix_mixture_entropy_upper mergedWeights293mergedWeights_nonneg mergedWeights_sum (mergedStates U)294simp_rw [mergedStates_entropy_zero] at h295simpa [mergedWeights_shannon] using h296297/-- The local complementary-channel Bell estimate for arbitrary finite unitaries.298This proves the quantum claim, rather than assuming a Bell-output entropy bound. -/299theorem complementary_bell_entropy_le (U : κ → unitary (Matrix ι ι ℂ)) :300(((KrausChannel.uniformUnitary U).complementary.tensor301(KrausChannel.uniformUnitary U).complementary.conjugate).output bellState).vonNeumann ≤3022 * Real.log (Fintype.card κ) - Real.log (Fintype.card κ) / Fintype.card κ := by303have hstate : (pairedChannel U).complementary.output bellState =304((KrausChannel.uniformUnitary U).complementary.tensor305(KrausChannel.uniformUnitary U).complementary.conjugate).output bellState := by306apply DensityMatrix.ext307rfl308have he := (pairedChannel U).pure_output_complementary_entropy_eq309normalizedBellVector normalizedBellVector_normSq_sum310rw [← bellState_eq_pureState, hstate] at he311rw [← he]312exact pairedChannel_bell_entropy_le U313314end Nonadditivity.BellOutput