Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.RegularFubini

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

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

37 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.CollinsYounTensor78/-! # Fubini isometry for the actual regular representation910Square-summable functions on a product group are identified isometrically11with square-summable Hilbert-valued functions on its first factor. This12identification intertwines the actual bounded regular polynomials.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false1718namespace Nonadditivity.RegularFubini1920open scoped BigOperators ENNReal21open RegularCoefficientEnergy (VectorHilbert)2223variable {F G E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]2425/-- A square-summable slice at the first coordinate. -/26def slice (f : VectorHilbert (F × G) E) (x : F) : VectorHilbert G E :=27  ⟨fun y => f (x, y), by28    apply memℓp_gen29    exact (f.property.summable (by norm_num)).prod_factor x⟩3031omit [NormedSpace ℂ E] in32@[simp] theorem slice_apply (f : VectorHilbert (F × G) E) (x : F) (y : G) :33    slice f x y = f (x, y) := rfl3435/-- Currying preserves square summability, including the outer summation. -/36def curry (f : VectorHilbert (F × G) E) : VectorHilbert F (VectorHilbert G E) :=37  ⟨slice f, by38    apply memℓp_gen39    simp only [ENNReal.toReal_ofNat, Real.rpow_two]40    have hs : Summable (fun p : F × G => ‖f p‖ ^ 2) := by41      simpa using f.property.summable (by norm_num)42    convert hs.prod using 143    funext x44    exact MatrixRegularRestriction.norm_sq (slice f x)⟩4546omit [NormedSpace ℂ E] in47@[simp] theorem curry_apply (f : VectorHilbert (F × G) E) (x : F) (y : G) :48    curry f x y = f (x, y) := rfl4950/-- Uncurrying preserves square summability by the nonnegative Fubini theorem. -/51def uncurry (f : VectorHilbert F (VectorHilbert G E)) : VectorHilbert (F × G) E :=52  ⟨fun p => f p.1 p.2, by53    apply memℓp_gen54    simp only [ENNReal.toReal_ofNat, Real.rpow_two]55    apply (summable_prod_of_nonneg (fun _ => sq_nonneg _)).mpr56    constructor57    · intro x58      simpa using (f x).property.summable (by norm_num)59    · have hs : Summable (fun x => ‖f x‖ ^ 2) := by60        simpa using f.property.summable (by norm_num)61      convert hs using 162      funext x63      exact (MatrixRegularRestriction.norm_sq (f x)).symm⟩6465omit [NormedSpace ℂ E] in66@[simp] theorem uncurry_apply (f : VectorHilbert F (VectorHilbert G E)) (x : F) (y : G) :67    uncurry f (x, y) = f x y := rfl6869omit [NormedSpace ℂ E] in70theorem curry_norm (f : VectorHilbert (F × G) E) : ‖curry f‖ = ‖f‖ := by71  apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp72  rw [MatrixRegularRestriction.norm_sq, MatrixRegularRestriction.norm_sq]73  have hs : Summable (fun p : F × G => ‖f p‖ ^ 2) := by74    simpa using f.property.summable (by norm_num)75  rw [hs.tsum_prod]76  apply tsum_congr77  intro x78  exact MatrixRegularRestriction.norm_sq (curry f x)7980/-- The actual complex linear isometric equivalence implementing Fubini. -/81def curryIsometry : VectorHilbert (F × G) E ≃ₗᵢ[ℂ]82    VectorHilbert F (VectorHilbert G E) where83  toFun := curry84  invFun := uncurry85  left_inv := by intro f; ext p; rfl86  right_inv := by intro f; ext x y; rfl87  map_add' := by intro f g; ext x y; rfl88  map_smul' := by intro z f; ext x y; rfl89  norm_map' := curry_norm9091@[simp] theorem curryIsometry_apply (f : VectorHilbert (F × G) E) (x : F) (y : G) :92    curryIsometry f x y = f (x, y) := rfl9394@[simp] theorem curryIsometry_symm_apply (f : VectorHilbert F (VectorHilbert G E))95    (x : F) (y : G) : curryIsometry.symm f (x, y) = f x y := rfl9697section Group9899variable [Group F] [Group G]100101/-- Fubini turns a product-group regular shift into a first-factor shift102with the second-factor shift as its operator coefficient. -/103theorem curry_leftRegular (g : F × G) (f : FreeModel.Hilbert (F × G)) :104    curry (FreeModel.leftRegular g f) =105      (RegularCoefficientEnergy.liftOperator (FreeModel.leftRegular g.2)).comp106        (MatrixRegularRestriction.leftRegular g.1) (curry f) := by107  ext x y108  rfl109110/-- Exact polynomial intertwining for arbitrary finite scalar coefficients. -/111theorem curry_polynomial {I : Type*} [Fintype I] (u : I → F) (v : I → G)112    (a : I → ℂ) (f : FreeModel.Hilbert (F × G)) :113    curry ((∑ i, a i • FreeModel.leftRegular (u i, v i)) f) =114      MatrixRegularRestriction.coefficientPolynomial u115        (fun i => a i • FreeModel.leftRegular (v i)) (curry f) := by116  ext x y117  simp only [curry_apply, ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply,118    lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply,119    MatrixRegularRestriction.coefficientPolynomial_apply, FreeModel.leftRegular_apply]120  rfl121122/-- The scalar regular norm on a product group is exactly the corresponding123operator-coefficient regular norm on the first group. -/124theorem polynomial_norm_eq {I : Type*} [Fintype I] (u : I → F) (v : I → G)125    (a : I → ℂ) :126    ‖∑ i, a i • FreeModel.leftRegular (u i, v i)‖ =127      ‖MatrixRegularRestriction.coefficientPolynomial u128        (fun i => a i • FreeModel.leftRegular (v i))‖ := by129  apply le_antisymm130  · apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)131    intro f132    rw [← curry_norm, curry_polynomial]133    exact ((MatrixRegularRestriction.coefficientPolynomial u134      (fun i => a i • FreeModel.leftRegular (v i))).le_opNorm (curry f)).trans_eq135      (by rw [curry_norm])136  · apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)137    intro f138    obtain ⟨g, rfl⟩ := (curryIsometry (F := F) (G := G) (E := ℂ)).surjective f139    change ‖MatrixRegularRestriction.coefficientPolynomial u140      (fun i => a i • FreeModel.leftRegular (v i)) (curry g)‖ ≤141        ‖∑ i, a i • FreeModel.leftRegular (u i, v i)‖ * ‖curry g‖142    rw [← curry_polynomial, curry_norm, curry_norm]143    exact (∑ i, a i • FreeModel.leftRegular (u i, v i)).le_opNorm g144145end Group146147section OperatorCoefficients148149variable {α H : Type*} [Fintype α] [NormedAddCommGroup H] [NormedSpace ℂ H]150151/-- Amplifying a coefficient operator on an ℓ² index set cannot increase its norm. -/152theorem liftOperator_norm_le (T : H →L[ℂ] H) :153    ‖RegularCoefficientEnergy.liftOperator (G := F) T‖ ≤ ‖T‖ := by154  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)155  exact RegularCoefficientEnergy.liftFunction_norm_le T156157/-- The diagonal terms are exactly one amplified sum of coefficient operators. -/158theorem coefficientPolynomial_diagonal_split [Group F] [DecidableEq α]159    (u : α → F) (B : α → α → H →L[ℂ] H) :160    MatrixRegularRestriction.coefficientPolynomial161      (fun p : α × α => (u p.1)⁻¹ * u p.2) (fun p => B p.1 p.2) =162      RegularCoefficientEnergy.liftOperator (∑ i, B i i) +163        MatrixRegularRestriction.coefficientPolynomial164          (fun p : α × α => (u p.1)⁻¹ * u p.2)165          (fun p => if p.1 = p.2 then 0 else B p.1 p.2) := by166  ext f x167  simp only [MatrixRegularRestriction.coefficientPolynomial_apply,168    ContinuousLinearMap.add_apply, lp.coeFn_add, Pi.add_apply,169    RegularCoefficientEnergy.liftOperator_apply, ContinuousLinearMap.sum_apply,170    Fintype.sum_prod_type]171  have hd : (∑ i, B i i (f x)) =172      ∑ i, ∑ j, if i = j then B i j (f (((u i)⁻¹ * u j)⁻¹ * x)) else 0 := by173    simp174  rw [hd, ← Finset.sum_add_distrib]175  apply Finset.sum_congr rfl176  intro i _177  rw [← Finset.sum_add_distrib]178  apply Finset.sum_congr rfl179  intro j _180  by_cases hij : i = j <;> simp [hij]181182end OperatorCoefficients183184section HilbertCoefficients185186variable {α H : Type*} [Fintype α] [DecidableEq α] [NormedAddCommGroup H]187    [InnerProductSpace ℂ H] [CompleteSpace H]188189/-- A general operator-valued length-two polynomial separates into its exact190diagonal sum and an off-diagonal term bounded by three coefficient energies. -/191theorem coefficientPolynomial_norm_le_diagonal_offDiagonal192    (B : α → α → H →L[ℂ] H) :193    ‖MatrixRegularRestriction.coefficientPolynomial194      (fun p : α × α => (FreeGroup.of p.1)⁻¹ * FreeGroup.of p.2) (fun p => B p.1 p.2)‖ ≤195      ‖∑ i, B i i‖ +196        3 * Real.sqrt (∑ i, ∑ j, if i = j then 0 else ‖B i j‖ ^ 2) := by197  rw [coefficientPolynomial_diagonal_split]198  refine (norm_add_le (RegularCoefficientEnergy.liftOperator (∑ i, B i i))199    (MatrixRegularRestriction.coefficientPolynomial200      (fun p : α × α => (FreeGroup.of p.1)⁻¹ * FreeGroup.of p.2)201      (fun p => if p.1 = p.2 then 0 else B p.1 p.2))).trans ?_202  apply add_le_add (liftOperator_norm_le _)203  have he (C : α → α → H →L[ℂ] H) :204      MatrixRegularRestriction.coefficientPolynomial205        (fun p : α × α => (FreeGroup.of p.1)⁻¹ * FreeGroup.of p.2) (fun p => C p.1 p.2) =206        CollinsYounTensor.localPolynomial C := by207    ext f x208    simp [MatrixRegularRestriction.coefficientPolynomial_apply,209      CollinsYounTensor.localPolynomial_apply, Fintype.sum_prod_type]210  rw [he (fun i j => if i = j then 0 else B i j)]211  have hb := CollinsYounTensor.local_polynomial_norm_le_three_coeff212    (fun i j => if i = j then 0 else B i j) (fun i => by simp)213  convert hb using 1214  congr 2215  apply Finset.sum_congr rfl216  intro i _217  apply Finset.sum_congr rfl218  intro j _219  by_cases hij : i = j <;> simp [hij]220221end HilbertCoefficients222223section Successor224225open FreeModel226227/-- Splitting the first coordinate of a tuple of free-group elements. -/228def groupSuccEquiv (K n : ℕ) : ProductFreeGroup K (n+1) ≃*229    FreeGroup (Fin K) × ProductFreeGroup K n where230  toFun g := (g 0, fun j => g j.succ)231  invFun p := Fin.cons p.1 p.2232  left_inv g := by ext j; exact Fin.cases rfl (fun _ => rfl) j233  right_inv p := by ext <;> rfl234  map_mul' g h := rfl235236private def branchSuccEquiv (K n : ℕ) : Branch K (n+1) ≃ Fin K × Branch K n where237  toFun a := (a 0, fun j => a j.succ)238  invFun p := Fin.cons p.1 p.2239  left_inv a := by ext j; exact Fin.cases rfl (fun _ => rfl) j240  right_inv p := by ext <;> rfl241242private theorem sum_branch_succ {K n : ℕ} {M : Type*} [AddCommMonoid M]243    (f : Branch K (n+1) → M) :244    (∑ a, f a) = ∑ i, ∑ a, f (Fin.cons i a) := by245  rw [← (branchSuccEquiv K n).symm.sum_comp]246  exact Fintype.sum_prod_type _247248@[simp] theorem groupSuccEquiv_branchWord_cons {K n : ℕ} (i : Fin K) (a : Branch K n) :249    groupSuccEquiv K n (branchWord (Fin.cons i a)) = (FreeGroup.of i, branchWord a) := by250  rfl251252/-- Exact first-coordinate recurrence for the unnormalized product polynomial. -/253theorem polynomial_succ_norm_eq {K n : ℕ}254    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :255    ‖∑ a, ∑ b, A a b • leftRegular ((branchWord a)⁻¹ * branchWord b)‖ =256      ‖MatrixRegularRestriction.coefficientPolynomial257        (fun p : Fin K × Fin K => (FreeGroup.of p.1)⁻¹ * FreeGroup.of p.2)258        (fun p => ∑ a : Branch K n, ∑ b : Branch K n,259          A (Fin.cons p.1 a) (Fin.cons p.2 b) •260            leftRegular ((branchWord a)⁻¹ * branchWord b))‖ := by261  have he := RegularRestriction.regularPolynomial_equiv_norm_eq262    (groupSuccEquiv K n)263    (fun p : Branch K (n+1) × Branch K (n+1) => (branchWord p.1)⁻¹ * branchWord p.2)264    (fun p => A p.1 p.2)265  simp only [RegularRestriction.regularPolynomial, Fintype.sum_prod_type] at he266  rw [← he]267  have hs : (∑ a, ∑ b, A a b •268      leftRegular (groupSuccEquiv K n ((branchWord a)⁻¹ * branchWord b))) =269      ∑ p : (Fin K × Branch K n) × (Fin K × Branch K n),270        A (Fin.cons p.1.1 p.1.2) (Fin.cons p.2.1 p.2.2) •271          leftRegular ((FreeGroup.of p.1.1)⁻¹ * FreeGroup.of p.2.1,272            (branchWord p.1.2)⁻¹ * branchWord p.2.2) := by273    rw [sum_branch_succ]274    simp_rw [sum_branch_succ]275    simp only [Fintype.sum_prod_type, map_mul, map_inv, groupSuccEquiv_branchWord_cons,276      Prod.inv_mk, Prod.mk_mul_mk]277  rw [hs, polynomial_norm_eq]278  congr 1279  ext f x y280  simp only [MatrixRegularRestriction.coefficientPolynomial_apply,281    Fintype.sum_prod_type, ContinuousLinearMap.smul_apply, ContinuousLinearMap.sum_apply,282    lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply, leftRegular_apply]283  apply Finset.sum_congr rfl284  intro i _285  exact Finset.sum_comm286287end Successor288289end Nonadditivity.RegularFubini