Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.GaussianNetRealization

Download original .lean · View on GitHub · Jump to source

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

11 project constants, including generated, internal and private declarations.

11 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.GaussianNormalization7import Nonadditivity.QuadraticNet89/-! Actual Gaussian channel construction from finitely many quadratic tests. -/10noncomputable section11set_option backward.isDefEq.respectTransparency false12set_option linter.unusedSectionVars false13namespace Nonadditivity.GaussianNetRealization14open scoped BigOperators Matrix Matrix.Norms.L2Operator Kronecker InnerProductSpace15open GaussianNormalization FiniteRealization Channels16variable {D B E : Type*} [Fintype D] [DecidableEq D] [Nonempty D]17  [Fintype B] [DecidableEq B] [Fintype E] [DecidableEq E]1819def quadratic (A : Matrix D D ℂ) (x : EuclideanSpace ℂ D) : ℝ :=20  (⟪(Matrix.toEuclideanCLM (n := D) (𝕜 := ℂ)) A x,x⟫_ℂ).re2122theorem quadratic_sub_one (A : Matrix D D ℂ) (x : EuclideanSpace ℂ D) (hx : ‖x‖=1) :23    quadratic (A-1) x = quadratic A x - 1 := by24  unfold quadratic25  rw [map_sub,map_one]26  simp only [ContinuousLinearMap.sub_apply,ContinuousLinearMap.one_apply,inner_sub_left,27    inner_self_eq_norm_sq_to_K,hx]28  norm_num2930theorem rawAdjoint_hermitian (G : Matrix (B×E) D ℂ) (A : Matrix B B ℂ) (hA : A.IsHermitian) :31    (rawAdjoint G A).IsHermitian := by32  apply Matrix.isHermitian_conjTranspose_mul_mul G33  change (A ⊗ₖ (1:Matrix E E ℂ)).conjTranspose = _34  simp [Matrix.conjTranspose_kronecker,hA.eq]3536theorem near_isometry_of_tests (G : Matrix (B×E) D ℂ)37    (inputs : Finset (EuclideanSpace ℂ D))38    (hunit : ∀x∈inputs,‖x‖=1) (hnet : UnitSphereNet inputs (1/4))39    (htests : ∀x∈inputs,|quadratic (gram G) x - 1|≤1/4) : ‖gram G-1‖≤1/2 := by40  have h := QuadraticNet.matrix_norm_le_of_unitSphereNet (gram G-1)41    ((gram_hermitian G).sub Matrix.isHermitian_one)42    (show (0:ℝ)≤1/4 by norm_num) (by norm_num) (by norm_num : (0:ℝ)≤1/4)43    hunit hnet (by44      intro x hx45      change |quadratic (gram G-1) x|≤1/446      rw [quadratic_sub_one _ _ (hunit x hx)]47      exact htests x hx)48  norm_num at h ⊢49  exact h5051/-- Both finite nets and every loss factor are discharged for the actual normalized channel. -/52theorem channel_certificate_of_tests (G : Matrix (B×E) D ℂ)53    (inputs : Finset (EuclideanSpace ℂ D)) (outputs : Finset (ObservableSpace B))54    (hunit : ∀x∈inputs,‖x‖=1) (hinput : UnitSphereNet inputs (1/4))55    (houtput : UnitSphereNet outputs (1/2)) (t : ℝ) (ht : 0≤t)56    (hgram : ∀x∈inputs,|quadratic (gram G) x - 1|≤1/4)57    (hraw : ∀a∈outputs,∀x∈inputs,|quadratic (rawAdjoint G (observableMatrix a)) x|≤t) :58    ∃T : KrausChannel D B E, ∀A : Matrix B B ℂ, A.IsHermitian → A.trace=0 →59      ‖T.adjointMap A‖≤(8*t)*AdjointPurity.hsLength A := by60  have hclose := near_isometry_of_tests G inputs hunit hinput hgram61  let T := channel G hclose62  refine ⟨T,matrix_certificate_of_observable_bound T (8*t) ?_⟩63  have htests : ∀a∈outputs,‖adjointOnObservables T a‖≤4*t := by64    intro a ha65    have hq := QuadraticNet.matrix_norm_le_of_unitSphereNet66      (rawAdjoint G (observableMatrix a))67      (rawAdjoint_hermitian G _ (observableMatrix_isHermitian a))68      (show (0:ℝ)≤1/4 by norm_num) (by norm_num) ht hunit hinput (hraw a ha)69    have hrawnorm : ‖rawAdjoint G (observableMatrix a)‖≤2*t := by70      norm_num at hq71      linarith72    change ‖(channel G hclose).adjointMap (observableMatrix a)‖≤4*t73    exact (channel_adjoint_norm_le G hclose (observableMatrix a)).trans (by linarith)74  intro a75  have h := norm_apply_le_of_unitSphereNet (adjointOnObservables T)76    (show (0:ℝ)≤1/2 by norm_num) (by norm_num) (show 0≤4*t by positivity)77    houtput htests a78  convert h using 179  ring8081end Nonadditivity.GaussianNetRealization