Exact Lean source
Nonadditivity.HaarProfilePadding
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
2 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
12 project constants, including generated, internal and private declarations.
12 declarations
Nonadditivity.HaarProfilePadding.PaletteNonadditivity.HaarProfilePadding.columnGram_extend_zeroNonadditivity.HaarProfilePadding.embedWordsNonadditivity.HaarProfilePadding.embedWords._proof_1internal/detail/privateNonadditivity.HaarProfilePadding.embedWords._proof_2internal/detail/privateNonadditivity.HaarProfilePadding.embedWords_injectiveNonadditivity.HaarProfilePadding.norm_extend_zero_leNonadditivity.HaarProfilePadding.padded_endpoint_boundsNonadditivity.HaarProfilePadding.padded_singleton_boundNonadditivity.HaarProfilePadding.rowGram_extend_zeroNonadditivity.HaarProfilePadding.sum_extend_zeroNonadditivity.HaarProfilePadding.sum_map_extend_zero
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileCoefficient78/-! # Padding different profile palettes into one finite register alphabet910Extending a coefficient family by zero through an injection preserves its sum11and both Gram factors exactly. Hence arbitrary finite profile palettes can use12the same register type without changing any of the coefficient budgets.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false1718namespace Nonadditivity.HaarProfilePadding1920open scoped BigOperators21open NoncommutativeCS HaarProfileCoefficient HaarOperatorPolynomial HaarPathProfiles2223variable {I J R S : Type*} [Fintype I] [Fintype J] [Zero R] [AddCommMonoid S]2425/-- Exact finite sum preservation under zero padding, including nonlinear26functions such as the two Gram summands. -/27theorem sum_map_extend_zero (e : I → J) (he : Function.Injective e)28(A : I → R) (F : R → S) (hF : F 0 = 0) :29∑ j, F (Function.extend e A 0 j) = ∑ i, F (A i) := by30classical31calc32_ = ∑ j ∈ Finset.univ.image e, F (Function.extend e A 0 j) := by33symm34apply Finset.sum_subset (Finset.subset_univ _)35intro j hj hjnot36have hr : j ∉ Set.range e := by37rintro ⟨i,rfl⟩38exact hjnot (Finset.mem_image.mpr ⟨i,Finset.mem_univ _,rfl⟩)39rw [Function.extend_apply' _ _ _ hr]40exact hF41_ = _ := by42rw [Finset.sum_image he.injOn]43simp only [he.extend_apply]4445theorem sum_extend_zero (e : I → J) (he : Function.Injective e) (A : I → S) :46∑ j, Function.extend e A 0 j = ∑ i, A i :=47sum_map_extend_zero e he A id rfl4849variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]5051/-- Column Gram factors are unchanged, even when unused register values exist. -/52theorem columnGram_extend_zero (e : I → J) (he : Function.Injective e)53(A : I → E →L[ℂ] E) : columnGram (Function.extend e A 0) = columnGram A := by54exact sum_map_extend_zero e he A (fun B => B.adjoint ∘L B) (by simp)5556/-- Row Gram factors are unchanged as well. -/57theorem rowGram_extend_zero (e : I → J) (he : Function.Injective e)58(A : I → E →L[ℂ] E) : rowGram (Function.extend e A 0) = rowGram A := by59exact sum_map_extend_zero e he A (fun B => B ∘L B.adjoint) (by simp)6061/-- Pointwise power bounds are also preserved by zero padding. -/62theorem norm_extend_zero_le (e : I → J) (he : Function.Injective e)63(A : I → E →L[ℂ] E) (C : ℝ) (hC : 0 ≤ C) (hA : ∀ i, ‖A i‖ ≤ C) (j : J) :64‖Function.extend e A 0 j‖ ≤ C := by65classical66by_cases hj : j ∈ Set.range e67· obtain ⟨i,rfl⟩ := hj68rw [he.extend_apply]69exact hA i70· rw [Function.extend_apply' _ _ _ hj]71simpa using hC7273/-- A common finite alphabet for every signed word of length at most `m`. -/74abbrev Palette (d m : ℕ) := Σ k : Fin (m + 1), Fin k.val → Color d7576/-- Every actual fixed-length reduced profile family injects into that common palette. -/77def embedWords {d k m : ℕ} {p : Profile (Color d)} (hk : k ≤ m) :78Words d k p → Palette d m := fun w => ⟨⟨k, by omega⟩, w.val⟩7980theorem embedWords_injective {d k m : ℕ} {p : Profile (Color d)} (hk : k ≤ m) :81Function.Injective (embedWords (p := p) hk) := by82intro a b h83exact Subtype.ext (Sigma.mk.inj_iff.mp h |>.2 |> eq_of_heq)8485/-- Common-register endpoint factors retain the same sharp bound. -/86theorem padded_endpoint_bounds {d k m : ℕ} (p : Profile (Color d)) (hk : k ≤ m)87(A : Polynomial (FreeGroup (Fin d)) E)88(hA : ∀ a ∈ A.support, a.toWord.length ≤ 1) (n : ℕ) :89Real.sqrt ‖columnGram (Function.extend (embedWords hk)90(returningCoefficients (k := k) A n p) 0)‖ ≤91(n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) ∧92Real.sqrt ‖rowGram (Function.extend (embedWords hk)93(returningCoefficients (k := k) A n p) 0)‖ ≤94(n + 1 : ℕ) * ‖regular A‖ ^ (n + 1) := by95rw [columnGram_extend_zero _ (embedWords_injective hk),96rowGram_extend_zero _ (embedWords_injective hk)]97exact returning_endpoint_bounds A hA n p9899/-- Common-register singleton factors retain the original small palette count. -/100theorem padded_singleton_bound {d k m : ℕ} (p : Profile (Color d)) (hk : k ≤ m)101(A : Polynomial (FreeGroup (Fin d)) E)102(hA : ∀ a ∈ A.support, a.toWord.length ≤ 1) (n : ℕ) :103‖∑ j : Palette d m, Function.extend (embedWords hk)104(returningCoefficients (k := k) A n p) 0 j‖ ≤105Real.sqrt (((2 * d) ^ k : ℕ) : ℝ) *106((n + 1 : ℕ) * ‖regular A‖ ^ (n + 1)) := by107rw [sum_extend_zero _ (embedWords_injective hk)]108exact returning_singleton_bound A hA n p109110end Nonadditivity.HaarProfilePadding