Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.RegularFactorization

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

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

93 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FiniteSetFactorization7import Nonadditivity.RegularShiftedDilation89/-! # Finite-set factorization at the actual infinite regular representation1011Rectangular coefficient matrices act pointwise on vector-valued square-summable12functions. Their lifted adjoints and products agree with the literal matrix13operations. This permits evaluation of the same positive Gram matrix used for14finite-dimensional representations at the infinite left regular representation.1516The constructed square factor has exactly squared norm `‖P(λ)‖ + θ`, with the17same coefficients and scalar as its finite-representation evaluation. The scalar18bound `θ ≤ |S| ‖P(λ)‖` and both norm identities therefore yield the concrete19backward relative-error bound `e(P) ≤ 6 |S| e(Q)`.20-/2122noncomputable section23set_option backward.isDefEq.respectTransparency false24set_option linter.unusedSectionVars false2526namespace Nonadditivity.RegularFactorization27open RegularCoefficientEnergy28open scoped BigOperators ENNReal Matrix Matrix.Norms.L2Operator ComplexOrder MatrixOrder Kronecker2930section Lift31variable {G E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]32  [NormedAddCommGroup F] [NormedSpace ℂ F]3334def liftFunction (T : E →L[ℂ] F) (f : VectorHilbert G E) : VectorHilbert G F :=35  ⟨fun g => T (f g), by36    apply memℓp_gen37    simp only [ENNReal.toReal_ofNat, Real.rpow_two]38    refine Summable.of_nonneg_of_le (f := fun g => ‖T‖ ^ 2 * ‖f g‖ ^ 2)39      (fun _ => sq_nonneg _) (fun g => ?_) ?_40    · simpa only [mul_pow] using pow_le_pow_left₀ (norm_nonneg _) (T.le_opNorm (f g)) 241    · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using42        (f.property.summable (by norm_num)).mul_left (‖T‖ ^ 2)⟩4344theorem liftFunction_norm_le (T : E →L[ℂ] F) (f : VectorHilbert G E) :45    ‖liftFunction T f‖ ≤ ‖T‖ * ‖f‖ := by46  apply lp.norm_le_of_tsum_le (by norm_num) (mul_nonneg (norm_nonneg _) (norm_nonneg _))47  simp only [ENNReal.toReal_ofNat, Real.rpow_two]48  calc49    (∑' g, ‖T (f g)‖ ^ 2) ≤ ∑' g, ‖T‖ ^ 2 * ‖f g‖ ^ 2 := by50      apply Summable.tsum_le_tsum51      · intro g52        simpa only [mul_pow] using pow_le_pow_left₀ (norm_nonneg _) (T.le_opNorm (f g)) 253      · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using54          (liftFunction T f).property.summable (by norm_num)55      · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using56          (f.property.summable (by norm_num)).mul_left (‖T‖ ^ 2)57    _ = (‖T‖ * ‖f‖) ^ 2 := by58      rw [tsum_mul_left, mul_pow]59      congr 160      simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using61        (lp.norm_rpow_eq_tsum (by norm_num) f).symm6263def lift (T : E →L[ℂ] F) : VectorHilbert G E →L[ℂ] VectorHilbert G F :=64  LinearMap.mkContinuous65    { toFun := liftFunction T66      map_add' := by intro f h; ext g; exact T.map_add _ _67      map_smul' := by intro c f; ext g; exact T.map_smul _ _ }68    ‖T‖ (liftFunction_norm_le T)6970@[simp] theorem lift_apply (T : E →L[ℂ] F) (f : VectorHilbert G E) (g : G) :71    lift T f g = T (f g) := rfl7273end Lift7475section Matrix76variable {G ι κ μ : Type*} [Group G] [DecidableEq G]77  [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype μ] [DecidableEq μ]7879def rectLift (A : Matrix ι κ ℂ) : Hilbert G κ →L[ℂ] Hilbert G ι :=80  lift (Matrix.toEuclideanLin A).toContinuousLinearMap8182@[simp] theorem rectLift_apply (A : Matrix ι κ ℂ) (f : Hilbert G κ) (g : G) :83    rectLift A f g = Matrix.toEuclideanLin A (f g) := rfl8485@[simp] theorem rectLift_zero : rectLift (G := G) (0 : Matrix ι κ ℂ) = 0 := by86  ext f g i87  simp [rectLift_apply]8889@[simp] theorem rectLift_add (A B : Matrix ι κ ℂ) :90    rectLift (G := G) (A+B) = rectLift A + rectLift B := by91  ext f g i92  simp [rectLift_apply]9394@[simp] theorem rectLift_smul (r : ℝ) (A : Matrix ι κ ℂ) :95    rectLift (G := G) (r • A) = r • rectLift A := by96  ext f g i97  simp [rectLift_apply, Matrix.smul_mulVec]9899@[simp] theorem rectLift_one : rectLift (G := G) (1 : Matrix ι ι ℂ) = 1 := by100  ext f g i101  change ((1 : Matrix ι ι ℂ) *ᵥ (f g).ofLp) i = f g i102  simp103104@[simp] theorem rectLift_mul (A : Matrix ι κ ℂ) (B : Matrix κ μ ℂ) :105    rectLift (G := G) (A*B) = (rectLift A).comp (rectLift B) := by106  ext f g i107  change ((A*B) *ᵥ (f g).ofLp) i = (A *ᵥ (B *ᵥ (f g).ofLp)) i108  rw [Matrix.mulVec_mulVec]109110@[simp] theorem rectLift_adjoint (A : Matrix ι κ ℂ) :111    rectLift (G := G) A.conjTranspose = (rectLift A).adjoint := by112  apply ContinuousLinearMap.ext113  intro f114  apply ext_inner_right ℂ115  intro h116  rw [ContinuousLinearMap.adjoint_inner_left, lp.inner_eq_tsum, lp.inner_eq_tsum]117  apply tsum_congr118  intro g119  simp only [rectLift_apply, Matrix.toEuclideanLin_conjTranspose_eq_adjoint,120    LinearMap.adjoint_inner_left]121122@[simp] theorem rectLift_sum {α : Type*} (s : Finset α) (A : α → Matrix ι κ ℂ) :123    rectLift (G := G) (∑ a ∈ s, A a) = ∑ a ∈ s, rectLift (A a) := by124  classical125  induction s using Finset.induction_on with126  | empty => simp127  | insert a s ha ih => simp [ha, ih]128129theorem rectLift_square (A : Matrix ι ι ℂ) :130    rectLift (G := G) A = liftOperator (coefficientOperator A) := by131  ext f g i132  rfl133134theorem rectLift_shift (A : Matrix ι κ ℂ) (g : G) :135    (rectLift A).comp (leftRegular g) = (leftRegular g).comp (rectLift (G := G) A) := by136  ext f h i137  rfl138139@[simp] theorem shift_mul (g h : G) :140    (leftRegular (ι := ι) g).comp (leftRegular h) = leftRegular (g*h) := by141  ext f w i142  simp [mul_assoc]143144@[simp] theorem shift_one : leftRegular (G := G) (ι := ι) 1 = 1 := by145  ext f w i146  simp147148@[simp] theorem shift_adjoint (g : G) : (leftRegular (ι := ι) g).adjoint = leftRegular g⁻¹ := by149  apply lp.ext_continuousLinearMap (by norm_num : (2 : ℝ≥0∞) ≠ ⊤)150  intro h151  apply ContinuousLinearMap.ext152  intro x153  apply ext_inner_right ℂ154  intro f155  change inner ℂ ((leftRegular g).adjoint (lp.single 2 h x)) f =156    inner ℂ (leftRegular g⁻¹ (lp.single 2 h x)) f157  rw [ContinuousLinearMap.adjoint_inner_left, lp.inner_single_left, leftRegular_single,158    lp.inner_single_left]159  rfl160161/-- A single rectangular coefficient times a genuine regular translation. -/162def term (A : Matrix ι κ ℂ) (g : G) : Hilbert G κ →L[ℂ] Hilbert G ι :=163  (rectLift A).comp (leftRegular g)164165@[simp] theorem term_add (A B : Matrix ι κ ℂ) (g : G) :166    term (A+B) g = term A g + term B g := by simp [term, ContinuousLinearMap.add_comp]167168@[simp] theorem term_smul (r : ℝ) (A : Matrix ι κ ℂ) (g : G) :169    term (r • A) g = r • term A g := by simp [term, ContinuousLinearMap.smul_comp]170171@[simp] theorem term_zero (g : G) : term (0 : Matrix ι κ ℂ) g = 0 := by simp [term]172173@[simp] theorem term_one (g : G) : term (1 : Matrix ι ι ℂ) g = leftRegular g := by174  ext f h i175  simp [term]176177@[simp] theorem term_identity (A : Matrix ι κ ℂ) : term (G := G) A 1 = rectLift A := by178  ext f h i179  simp [term]180181theorem term_mul (A : Matrix ι κ ℂ) (B : Matrix κ μ ℂ) (g h : G) :182    (term A g).comp (term B h) = term (A*B) (g*h) := by183  simp only [term, rectLift_mul, ContinuousLinearMap.comp_assoc]184  rw [← ContinuousLinearMap.comp_assoc (leftRegular g), ← rectLift_shift,185    ContinuousLinearMap.comp_assoc, shift_mul]186187theorem term_adjoint (A : Matrix ι κ ℂ) (g : G) :188    (term A g).adjoint = term A.conjTranspose g⁻¹ := by189  simp only [term, ContinuousLinearMap.adjoint_comp, shift_adjoint, ← rectLift_adjoint]190  exact (rectLift_shift _ _).symm191192end Matrix193194section Assembly195open FiniteSetFactorization196variable {G ι : Type*} [Group G] [DecidableEq G] [Fintype ι] [DecidableEq ι]197198/-- The actual column of regular translations on the given finite support. -/199def column (S : Finset G) : Hilbert G ι →L[ℂ] Hilbert G (Support S × ι) :=200  ∑ g : Support S, term (selector g).conjTranspose g.val201202def evaluate (S : Finset G) (A : Matrix (Support S × ι) (Support S × ι) ℂ) :203    Hilbert G ι →L[ℂ] Hilbert G ι :=204  (column S).adjoint.comp ((rectLift A).comp (column S))205206theorem select_column (S : Finset G) (g : Support S) :207    (rectLift (selector (ι := ι) g)).comp (column S) = leftRegular g.val := by208  rw [column, ContinuousLinearMap.comp_finset_sum]209  conv_lhs => arg 2; ext h; rw [← term_identity (G := G), term_mul, one_mul,210    selector_mul_adjoint]211  rw [Finset.sum_eq_single g]212  · simp213  · intro h hh hne214    simp [Ne.symm hne]215  · simp216217@[simp] theorem evaluate_add (S : Finset G)218    (A B : Matrix (Support S × ι) (Support S × ι) ℂ) :219    evaluate S (A+B) = evaluate S A + evaluate S B := by220  simp [evaluate, ContinuousLinearMap.add_comp, ContinuousLinearMap.comp_add]221222@[simp] theorem evaluate_smul (S : Finset G) (r : ℝ)223    (A : Matrix (Support S × ι) (Support S × ι) ℂ) :224    evaluate S (r • A) = r • evaluate S A := by225  simp [evaluate, ContinuousLinearMap.smul_comp, ContinuousLinearMap.comp_smul]226227theorem evaluate_sum {α : Type*} (S : Finset G) (s : Finset α)228    (A : α → Matrix (Support S × ι) (Support S × ι) ℂ) :229    evaluate S (∑ a ∈ s, A a) = ∑ a ∈ s, evaluate S (A a) := by230  simp [evaluate, ContinuousLinearMap.finset_sum_comp, ContinuousLinearMap.comp_finset_sum]231232theorem evaluate_place (S : Finset G) (g h : Support S) (A : Matrix ι ι ℂ) :233    evaluate S (place g h A) = term A (g.val⁻¹*h.val) := by234  have heq : evaluate S (place g h A) =235      ((rectLift (selector g)).comp (column S)).adjoint.comp236        ((rectLift A).comp ((rectLift (selector h)).comp (column S))) := by237    simp only [evaluate, place, rectLift_mul, rectLift_adjoint,238      ContinuousLinearMap.adjoint_comp, ContinuousLinearMap.comp_assoc]239  rw [heq, select_column, select_column, shift_adjoint, ← ContinuousLinearMap.comp_assoc, ← rectLift_shift,240    ContinuousLinearMap.comp_assoc, shift_mul]241  rfl242243theorem evaluate_polarInsertion (S : Finset G) (g h : Support S) (c : Matrix ι ι ℂ) :244    evaluate S (polarInsertion g h c) =245      rectLift (CFC.abs c.conjTranspose) + term c (g.val⁻¹*h.val) +246      term c.conjTranspose (h.val⁻¹*g.val) + rectLift (CFC.abs c) := by247  rw [polarInsertion_eq]248  simp only [evaluate_add, evaluate_place, inv_mul_cancel, term_identity]249250theorem evaluate_representative (S : Finset G) (c : G → Matrix ι ι ℂ)251    (w : NonidentityWords S) :252    evaluate S (polarInsertion (representative S w).1 (representative S w).2 (c w.val)) =253      rectLift (CFC.abs (c w.val).conjTranspose) + term (c w.val) w.val +254      term (c w.val).conjTranspose w.val⁻¹ + rectLift (CFC.abs (c w.val)) := by255  rw [evaluate_polarInsertion, representative_spec]256  have hinv : (representative S w).2.val⁻¹ * (representative S w).1.val = w.val⁻¹ := by257    rw [← representative_spec S w]258    simp259  rw [hinv]260261theorem evaluate_nonconstantGram (S : Finset G) (c : G → Matrix ι ι ℂ)262    (hstar : ∀ w ∈ Linearization.differenceSupport S, c w⁻¹ = (c w).conjTranspose) :263    evaluate S (nonconstantGram S c) =264      (∑ w : NonidentityWords S, term (c w.val) w.val) + rectLift (diagonalCorrection S c) := by265  have hmod : (∑ w : NonidentityWords S, CFC.abs (c w.val).conjTranspose) =266      diagonalCorrection S c := by267    unfold diagonalCorrection268    apply Fintype.sum_equiv (inverseWords S)269    intro w270    rw [← hstar w.val (Finset.mem_erase.mp w.property).2]271    rfl272  have hinv : (∑ w : NonidentityWords S, term (c w.val).conjTranspose w.val⁻¹) =273      ∑ w : NonidentityWords S, term (c w.val) w.val := by274    apply Fintype.sum_equiv (inverseWords S)275    intro w276    rw [← hstar w.val (Finset.mem_erase.mp w.property).2]277    rfl278  unfold nonconstantGram279  rw [evaluate_sum]280  simp only [evaluate_smul, evaluate_representative]281  rw [← Finset.smul_sum]282  simp only [Finset.sum_add_distrib]283  rw [← rectLift_sum, hmod, hinv, ← rectLift_sum]284  change (1 / 2 : ℝ) •285    (rectLift (diagonalCorrection S c) +286      (∑ w : NonidentityWords S, term (c w.val) w.val) +287      (∑ w : NonidentityWords S, term (c w.val) w.val) +288      rectLift (diagonalCorrection S c)) = _289  module290291theorem polynomial_eq (S : Finset G) (c : G → Matrix ι ι ℂ) :292    regularPolynomial S c = ∑ w ∈ S, term (c w) w := by293  simp only [regularPolynomial, term, rectLift_square]294295theorem polynomial_decompose (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :296    regularPolynomial (Linearization.differenceSupport S) c =297      (∑ w : NonidentityWords S, term (c w.val) w.val) + rectLift (c 1) := by298  have h1 : (1:G) ∈ Linearization.differenceSupport S :=299    Linearization.mem_differenceSupport.mpr ⟨1,hS,1,hS,by simp⟩300  rw [polynomial_eq]301  have hs : (∑ w : NonidentityWords S, term (c w.val) w.val) =302      ∑ w ∈ (Linearization.differenceSupport S).erase 1, term (c w) w :=303    (Finset.sum_subtype (p := fun w => w ∈ (Linearization.differenceSupport S).erase 1)304      ((Linearization.differenceSupport S).erase 1) (fun _ => Iff.rfl) (fun w => term (c w) w)).symm305  rw [hs, ← term_identity (G := G) (c 1)]306  exact (Finset.sum_erase_add _ _ h1).symm307308@[simp] theorem rectLift_algebraMap (r : ℝ) :309    rectLift (G := G) (algebraMap ℝ (Matrix ι ι ℂ) r) =310      algebraMap ℝ (Hilbert G ι →L[ℂ] Hilbert G ι) r := by311  simp only [Algebra.algebraMap_eq_smul_one, rectLift_smul, rectLift_one]312313/-- Infinite regular evaluation of the actual finite positive Gram matrix. -/314theorem evaluate_gramMatrix (S : Finset G) (hS : (1:G) ∈ S)315    (c : G → Matrix ι ι ℂ)316    (hstar : ∀ w ∈ Linearization.differenceSupport S, c w⁻¹ = (c w).conjTranspose) :317    evaluate S (gramMatrix S hS c) =318      regularPolynomial (Linearization.differenceSupport S) c +319        algebraMap ℝ (Hilbert G ι →L[ℂ] Hilbert G ι) (theta S c) := by320  rw [gramMatrix, evaluate_add, evaluate_nonconstantGram S c hstar, evaluate_place]321  simp only [inv_one, one_mul, term_identity]322  rw [add_assoc, ← rectLift_add]323  have hc : diagonalCorrection S c + constantCorrection S c =324      c 1 + algebraMap ℝ (Matrix ι ι ℂ) (theta S c) := by325    unfold constantCorrection326    abel327  rw [hc, rectLift_add, rectLift_algebraMap, polynomial_decompose S hS c]328  abel329330/-- Rectangular square-root factor evaluated at the actual regular representation. -/331def factor (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :332    Hilbert G ι →L[ℂ] Hilbert G (Support S × ι) :=333  ∑ g : Support S, term (factorCoefficient S hS c g) g.val334335theorem factor_eq (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :336    factor S hS c = (rectLift (CFC.sqrt (gramMatrix S hS c))).comp (column S) := by337  unfold factor factorCoefficient column term338  rw [ContinuousLinearMap.comp_finset_sum]339  apply Finset.sum_congr rfl340  intro g hg341  rw [rectLift_mul, ContinuousLinearMap.comp_assoc]342343/-- The Gram identity holds on the true infinite regular Hilbert space. -/344theorem factor_gram (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ)345    (hstar : ∀ w ∈ Linearization.differenceSupport S, c w⁻¹ = (c w).conjTranspose) :346    (factor S hS c).adjoint.comp (factor S hS c) =347      regularPolynomial (Linearization.differenceSupport S) c +348        algebraMap ℝ (Hilbert G ι →L[ℂ] Hilbert G ι) (theta S c) := by349  have hG := gramMatrix_posSemidef S hS c hstar350  have hR := Linearization.positive_sqrt_gram (gramMatrix S hS c) hG351  rw [factor_eq, ContinuousLinearMap.adjoint_comp, ← rectLift_adjoint]352  rw [ContinuousLinearMap.comp_assoc, ← ContinuousLinearMap.comp_assoc (rectLift _),353    ← rectLift_mul, hR]354  exact evaluate_gramMatrix S hS c hstar355356/-- Padding into the identity coefficient block preserves any rectangular357operator norm, also in infinite dimension. -/358theorem norm_comp_coisometry {E F H : Type*}359    [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]360    [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F]361    [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]362    (Q : E →L[ℂ] F) (V : H →L[ℂ] E)363    (hV : V.comp V.adjoint = 1) : ‖Q.comp V‖ = ‖Q‖ := by364  have hgram : (Q.comp V).comp (Q.comp V).adjoint = Q.comp Q.adjoint := by365    rw [ContinuousLinearMap.adjoint_comp]366    simp only [ContinuousLinearMap.comp_assoc]367    rw [← ContinuousLinearMap.comp_assoc V, hV]368    rfl369  have hnorm (A : H →L[ℂ] F) : ‖A.comp A.adjoint‖ = ‖A‖ * ‖A‖ := by370    simpa using ContinuousLinearMap.norm_adjoint_comp_self A.adjoint371  have hQ : ‖Q.comp Q.adjoint‖ = ‖Q‖ * ‖Q‖ := by372    simpa using ContinuousLinearMap.norm_adjoint_comp_self Q.adjoint373  have hQV := hnorm (Q.comp V)374  rw [hgram, hQ] at hQV375  nlinarith [norm_nonneg Q, norm_nonneg (Q.comp V)]376377/-- The very same padded coefficients as in the finite representation theorem,378evaluated on actual infinite vector-valued square-summable functions. -/379def padded (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :380    Hilbert G (Support S × ι) →L[ℂ] Hilbert G (Support S × ι) :=381  ∑ g : Support S, term (paddedCoefficient S hS c g) g.val382383/-- Extend the constructed supported coefficients by zero to the whole group. -/384def paddedCoefficients (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ)385    (g : G) : Matrix (Support S × ι) (Support S × ι) ℂ :=386  if hg : g ∈ S then paddedCoefficient S hS c ⟨g,hg⟩ else 0387388/-- The regular factor is exactly the established literal regular-polynomial API. -/389theorem padded_eq_regularPolynomial (S : Finset G) (hS : (1:G) ∈ S)390    (c : G → Matrix ι ι ℂ) :391    padded S hS c = regularPolynomial S (paddedCoefficients S hS c) := by392  rw [polynomial_eq]393  unfold padded394  rw [← Finset.sum_coe_sort S (fun g => term (paddedCoefficients S hS c g) g)]395  apply Finset.sum_congr rfl396  intro g hg397  simp [paddedCoefficients, g.property]398399theorem padded_eq (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :400    padded S hS c = (factor S hS c).comp (rectLift (selector (⟨1,hS⟩ : Support S))) := by401  unfold padded factor paddedCoefficient402  rw [ContinuousLinearMap.finset_sum_comp]403  apply Finset.sum_congr rfl404  intro g hg405  rw [← term_identity (G := G) (selector (⟨1,hS⟩ : Support S)), term_mul, mul_one]406407theorem padded_norm (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ) :408    ‖padded S hS c‖ = ‖factor S hS c‖ := by409  rw [padded_eq]410  apply norm_comp_coisometry411  rw [← rectLift_adjoint, ← rectLift_mul, selector_mul_adjoint]412  simp413414/-- Squared norm of the factor from its proved, literal infinite Gram identity. -/415theorem padded_norm_sq (S : Finset G) (hS : (1:G) ∈ S) (c : G → Matrix ι ι ℂ)416    (hstar : ∀ w ∈ Linearization.differenceSupport S, c w⁻¹ = (c w).conjTranspose) :417    ‖padded S hS c‖ ^ 2 =418      ‖regularPolynomial (Linearization.differenceSupport S) c +419        algebraMap ℝ (Hilbert G ι →L[ℂ] Hilbert G ι) (theta S c)‖ := by420  rw [padded_norm, pow_two, ← ContinuousLinearMap.norm_adjoint_comp_self,421    factor_gram S hS c hstar]422423/-- Exact norm of the square factor for the infinite left regular representation. -/424theorem padded_dilation_norm_sq [Nonempty ι] (S : Finset G) (hS : (1:G) ∈ S)425    (a : G → Matrix ι ι ℂ) :426    ‖padded S hS (dilationCoefficient a)‖ ^ 2 =427      ‖regularPolynomial (Linearization.differenceSupport S) a‖ +428        theta S (dilationCoefficient a) := by429  rw [padded_norm_sq S hS (dilationCoefficient a)430    (fun w _ => dilationCoefficient_inverse a w)]431  exact RegularShiftedDilation.shifted_dilation_polynomial_norm432    (Linearization.differenceSupport S)433    (fun _ hw => Linearization.inv_mem_differenceSupport hw) a _ (theta_nonneg S _)434435/-- The exact Appendix A identity now holds at the genuine infinite regular representation. -/436theorem padded_dilation_norm_identity [Nonempty ι] (S : Finset G) (hS : (1:G) ∈ S)437    (a : G → Matrix ι ι ℂ) :438    ‖regularPolynomial (Linearization.differenceSupport S) a‖ =439      ‖padded S hS (dilationCoefficient a)‖ ^ 2 - theta S (dilationCoefficient a) := by440  linarith [padded_dilation_norm_sq S hS a]441442/-- The shared actual coefficients satisfy both the finite representation and443infinite regular norm identities, together with the original regular norm bound. -/444theorem exists_factorization [Nonempty ι] {ν : Type*}445    [Fintype ν] [DecidableEq ν] [Nonempty ν]446    (S : Finset G) (hS : (1:G) ∈ S) (a : G → Matrix ι ι ℂ) :447    ∃ (θ : ℝ)448      (b : Support S → Matrix (Support S × (ι ⊕ ι)) (Support S × (ι ⊕ ι)) ℂ),449      0 ≤ θ ∧ θ ≤ (S.card : ℝ) *450        ‖regularPolynomial (Linearization.differenceSupport S) a‖ ∧451      ‖regularPolynomial (Linearization.differenceSupport S) a‖ =452        ‖∑ g : Support S, term (b g) g.val‖ ^ 2 - θ ∧453      ∀ π : G →* unitary (Matrix ν ν ℂ),454        ‖polynomial S a π‖ =455          ‖∑ g : Support S, b g ⊗ₖ (π g.val : Matrix ν ν ℂ)‖ ^ 2 - θ := by456  refine ⟨theta S (dilationCoefficient a), paddedCoefficient S hS (dilationCoefficient a),457    theta_nonneg S _, theta_dilation_le_card_mul_regularNorm S hS a,458    padded_dilation_norm_identity S hS a, ?_⟩459  intro π460  exact paddedPolynomial_dilation_norm_identity S hS a π461462/-- Quantitative finite-to-regular transfer for the actual constructed factors.463Every Gram identity and the scalar correction bound is discharged internally. -/464theorem finite_regular_error_transfer [Nonempty ι] {ν : Type*}465    [Fintype ν] [DecidableEq ν] [Nonempty ν]466    (S : Finset G) (hS : (1:G) ∈ S) (a : G → Matrix ι ι ℂ)467    (π : G →* unitary (Matrix ν ν ℂ)) (ε : ℝ) (hε : 0 ≤ ε) (hε1 : ε ≤ 1)468    (hQ : ‖paddedPolynomial S hS (dilationCoefficient a) π‖ ≤469      (1+ε) * ‖padded S hS (dilationCoefficient a)‖) :470    ‖polynomial S a π‖ ≤ (1 + 6 * (S.card : ℝ) * ε) *471      ‖regularPolynomial (Linearization.differenceSupport S) a‖ := by472  have hB : (1:ℝ) ≤ S.card := by473    exact_mod_cast Finset.one_le_card.mpr ⟨1,hS⟩474  exact Linearization.backward_error_transfer _ _ _ _475    (theta S (dilationCoefficient a)) (S.card : ℝ) ε476    (norm_nonneg _) (norm_nonneg _) (norm_nonneg _)477    (theta_nonneg S _) hB hε hε1478    (paddedPolynomial_dilation_norm_sq S hS a π)479    (padded_dilation_norm_sq S hS a)480    (theta_dilation_le_card_mul_regularNorm S hS a) hQ481482/-- The literal relative-error inequality from Appendix A, now for concrete483finite and infinite regular evaluations of the same constructed polynomial. -/484theorem relative_error_transfer [Nonempty ι] {ν : Type*}485    [Fintype ν] [DecidableEq ν] [Nonempty ν]486    (S : Finset G) (hS : (1:G) ∈ S) (a : G → Matrix ι ι ℂ)487    (π : G →* unitary (Matrix ν ν ℂ))488    (hP : 0 < ‖regularPolynomial (Linearization.differenceSupport S) a‖)489    (hQ : Linearization.relativeNormError490      ‖paddedPolynomial S hS (dilationCoefficient a) π‖491      ‖padded S hS (dilationCoefficient a)‖ ≤ 1) :492    Linearization.relativeNormError ‖polynomial S a π‖493      ‖regularPolynomial (Linearization.differenceSupport S) a‖ ≤494      6 * (S.card : ℝ) * Linearization.relativeNormError495        ‖paddedPolynomial S hS (dilationCoefficient a) π‖496        ‖padded S hS (dilationCoefficient a)‖ := by497  have hB : (1:ℝ) ≤ S.card := by498    exact_mod_cast Finset.one_le_card.mpr ⟨1,hS⟩499  exact Linearization.relative_backward_error_transfer _ _ _ _500    (theta S (dilationCoefficient a)) (S.card : ℝ)501    (norm_nonneg _) (norm_nonneg _) hP502    (theta_nonneg S _) hB503    (paddedPolynomial_dilation_norm_sq S hS a π)504    (padded_dilation_norm_sq S hS a)505    (theta_dilation_le_card_mul_regularNorm S hS a) hQ506507/-- One representation-independent factor, including its uniform error transfer508from every finite representation to the infinite regular representation. -/509theorem exists_factorization_with_error_transfer [Nonempty ι] {ν : Type*}510    [Fintype ν] [DecidableEq ν] [Nonempty ν]511    (S : Finset G) (hS : (1:G) ∈ S) (a : G → Matrix ι ι ℂ) :512    ∃ (θ : ℝ)513      (b : Support S → Matrix (Support S × (ι ⊕ ι)) (Support S × (ι ⊕ ι)) ℂ),514      0 ≤ θ ∧ θ ≤ (S.card : ℝ) *515        ‖regularPolynomial (Linearization.differenceSupport S) a‖ ∧516      ‖regularPolynomial (Linearization.differenceSupport S) a‖ =517        ‖∑ g : Support S, term (b g) g.val‖ ^ 2 - θ ∧518      ∀ π : G →* unitary (Matrix ν ν ℂ),519        ‖polynomial S a π‖ =520          ‖∑ g : Support S, b g ⊗ₖ (π g.val : Matrix ν ν ℂ)‖ ^ 2 - θ ∧521        ∀ ε : ℝ, 0 ≤ ε → ε ≤ 1 →522          ‖∑ g : Support S, b g ⊗ₖ (π g.val : Matrix ν ν ℂ)‖ ≤523            (1+ε) * ‖∑ g : Support S, term (b g) g.val‖ →524          ‖polynomial S a π‖ ≤ (1 + 6 * (S.card : ℝ) * ε) *525            ‖regularPolynomial (Linearization.differenceSupport S) a‖ := by526  refine ⟨theta S (dilationCoefficient a), paddedCoefficient S hS (dilationCoefficient a),527    theta_nonneg S _, theta_dilation_le_card_mul_regularNorm S hS a,528    padded_dilation_norm_identity S hS a, ?_⟩529  intro π530  refine ⟨paddedPolynomial_dilation_norm_identity S hS a π, ?_⟩531  intro ε hε hε1 hQ532  exact finite_regular_error_transfer S hS a π ε hε hε1 hQ533534end Assembly535end Nonadditivity.RegularFactorization