Pratik Patil

MaximallyMixedBlocks.lean

1module23public import SubentropyCertificates.PositiveBlockSegment4public import SubentropyCertificates.SubentropyMaximum56/-! Mixing CQ blocks with the maximally mixed joint state. -/7@[expose] public section8noncomputable section9set_option backward.isDefEq.respectTransparency false10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1213namespace SubentropyCertificates.ConditionalContinuity14open SubentropyCertificates.BinarySpectra (densityMatrix)15open SubentropyCertificates.SpectralContinuity (maximallyMixed maximallyMixed_matrix)1617/-- Each label receives the same block of the maximally mixed joint state. -/18def uniformBlocks (X D : Type*) [Fintype X] [Fintype D] [DecidableEq D] : X → Matrix D D ℂ :=19  fun _ ↦ (1 / (Fintype.card (D × X) : ℝ)) • 12021variable (X D : Type*) [Fintype X] [Fintype D] [DecidableEq X] [DecidableEq D]22  [Nonempty X] [Nonempty D]2324omit [DecidableEq X] in25theorem uniformBlocks_posDef (x : X) : (uniformBlocks X D x).PosDef := by26  have hp : 0 < (Fintype.card (D × X) : ℝ) := by exact_mod_cast Fintype.card_pos27  exact Matrix.PosDef.one.smul (one_div_pos.mpr hp)2829/-- The direct sum of the regularizing blocks is precisely the joint state I/(nm). -/30theorem uniformBlocks_blockDiagonal :31    blockDiagonal (uniformBlocks X D) = densityMatrix (maximallyMixed (D × X)) := by32  rw [maximallyMixed_matrix]33  change blockDiagonal ((1 / (Fintype.card (D × X) : ℝ)) • (1 : X → Matrix D D ℂ)) = _34  rw [blockDiagonal_smul, blockDiagonal_one]35  change ((1 / (Fintype.card (D × X) : ℝ) : ℝ) : ℂ) • (1 : Matrix _ _ ℂ) = _36  rw [Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_natCast]3738theorem uniformBlocks_trace : (∑ x, uniformBlocks X D x).trace = 1 := by39  rw [trace_sum, ← trace_blockDiagonal, uniformBlocks_blockDiagonal]40  exact (maximallyMixed (D × X)).2.24142omit [DecidableEq X] in43/-- A positive mixing weight gives positive definite blocks, including at any zero input block. -/44theorem uniformMix_posDef (A : X → Matrix D D ℂ) (ha : ∀ x, (A x).PosSemidef)45    {e : ℝ} (he : e ∈ Ioc 0 1) (x : X) :46    (blockSegment A (uniformBlocks X D) e x).PosDef :=47  Matrix.PosDef.posSemidef_add ((ha x).smul (sub_nonneg.mpr he.2))48    ((uniformBlocks_posDef X D x).smul he.1)4950end SubentropyCertificates.ConditionalContinuity

Axioms used

Choose a statement to see which axioms its proof uses.