Exact Lean source
Nonadditivity.HaarDecodedCoefficientBound
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
6 project constants, including generated, internal and private declarations.
6 declarations
Nonadditivity.HaarDecodedCoefficientBound.blockFactors_segmentedListProductNonadditivity.HaarDecodedCoefficientBound.blockFactors_segmentedListProduct._proof_1_1internal/detail/privateNonadditivity.HaarDecodedCoefficientBound.coefficient_eq_composition_sumNonadditivity.HaarDecodedCoefficientBound.coefficient_eq_composition_sum._proof_1_1internal/detail/privateNonadditivity.HaarDecodedCoefficientBound.decoded_coefficient_sum_norm_leNonadditivity.HaarProfileCompositionBound.compositionCoefficient.eq_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarSkeletonSegmentation7import Nonadditivity.HaarNonbacktrackingListSegmentation89/-! # The literal coefficient sum over independent profile words1011This final analytic bridge identifies the actual group-polynomial coefficient12with the compressed register expression and applies its proved norm estimate.13The remaining inputs concern only which reduced group words the blocks decode.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false18namespace Nonadditivity.HaarDecodedCoefficientBound19open scoped BigOperators20open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarNonbacktracking21NoncommutativeCS HaarProfileCompositionBound HaarProfileDecodedCoefficients22HaarProfilePatternBound HaarProfileAssignmentBound HaarProfilePadding23HaarProfileCoefficient HaarPathProfiles HaarTimeCompositions HaarSkeletonSegmentation2425variable {I E : Type*} [DecidableEq I] [Fintype I]26variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]27variable {d M : ℕ}2829theorem blockFactors_segmentedListProduct30(P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))31(hblocks : 1 ≤ P.markedFlags.length)32(B : Polynomial (FreeGroup (Fin d)) E)33(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)34(forward : ℕ → I → Bool)35(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))36(σ : ∀ i, Words d (size i) (profile i))37(hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =38orientedWord (forward k i) (σ i))39(t : List ℕ) (ht : t.length = P.markedFlags.length) :40(P.blockFactors41(blockFactor B size profile hsize (fun k => decide (k = 0)) (durationOf t) forward decode)420 (embedAssignment size profile hsize σ)).prod =43segmentedListProduct B (scanWords P decode (embedAssignment size profile hsize σ)).reverse44t.reverse := by45rw [blockFactors_valid P B size profile hsize (fun k => decide (k = 0))46(durationOf t) forward decode σ hdecode 0]47have hne : (scanWords P decode (embedAssignment size profile hsize σ)).reverse ≠ [] := by48intro he49have hl := congrArg List.length he50simp only [List.length_reverse, length_scanWords, List.length_nil] at hl51omega52generalize he : (scanWords P decode (embedAssignment size profile hsize σ)).reverse = gs53cases gs with54| nil => exact False.elim (hne he)55| cons g gs =>56have h := raw_blockFactors_segmentedProduct P B (durationOf t) decode57(embedAssignment size profile hsize σ) g gs he58rw [times_durationOf P t ht] at h59exact h6061theorem coefficient_eq_composition_sum62(P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))63(hblocks : 1 ≤ P.markedFlags.length)64(B : Polynomial (FreeGroup (Fin d)) E)65(hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)66(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)67(forward : ℕ → I → Bool)68(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))69(σ : ∀ i, Words d (size i) (profile i))70(hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =71orientedWord (forward k i) (σ i))72(target : FreeGroup (Fin d))73(htarget : (scanWords P decode (embedAssignment size profile hsize σ)).reverse.prod = target)74(hne : ∀ g ∈ (scanWords P decode (embedAssignment size profile hsize σ)).reverse, g ≠ 1)75(hred : FreeGroup.IsReduced76((scanWords P decode (embedAssignment size profile hsize σ)).reverse.flatMap FreeGroup.toWord))77(q : ℕ) :78(B ^ q) target = ∑ t ∈ compositions (P.markedFlags.length - 1) q,79(P.blockFactors80(blockFactor B size profile hsize (fun k => decide (k = 0)) (durationOf t) forward decode)810 (embedAssignment size profile hsize σ)).prod := by82let gs := (scanWords P decode (embedAssignment size profile hsize σ)).reverse83have hgs : gs ≠ [] := by84intro he85have hl : gs.length = P.markedFlags.length := by simp [gs]86simp [he] at hl87omega88rw [← htarget]89change (B ^ q) gs.prod = _90rw [coefficient_factorization_list B hB gs hgs hne hred q]91have hl : gs.length = P.markedFlags.length := by simp [gs]92rw [hl, ← sum_reverse (P.markedFlags.length - 1) q (segmentedListProduct B gs)]93apply Finset.sum_congr rfl94intro t ht95have htlen : t.length = P.markedFlags.length := by96simpa only [Nat.sub_add_cancel hblocks] using length_of_mem ht97exact (blockFactors_segmentedListProduct P hblocks B size profile hsize forward decode σ98hdecode t htlen).symm99100/-- The sum is the literal coefficient of the original word for each101independent dependent-profile assignment. No operator-norm estimate, kernel102identity or factorization is assumed: all three are proved in the preceding103modules and used here. -/104theorem decoded_coefficient_sum_norm_le105(P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))106(hP : P.Compressed) (hn : P.profileLabels.Nodup) (hc : ∀ i : I, i ∈ P.profileLabels)107(hblocks : 1 ≤ P.markedFlags.length)108(B : Polynomial (FreeGroup (Fin d)) E)109(hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)110(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)111(forward : ℕ → I → Bool)112(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))113(hdecode : ∀ (σ : ∀ i, Words d (size i) (profile i)) k i,114decode k [i] [embedAssignment size profile hsize σ i] = orientedWord (forward k i) (σ i))115(q : ℕ) (hq : 1 ≤ q)116(target : (∀ i, Words d (size i) (profile i)) → FreeGroup (Fin d))117(htarget : ∀ σ, (scanWords P decode (embedAssignment size profile hsize σ)).reverse.prod = target σ)118(hne : ∀ σ g, g ∈ (scanWords P decode (embedAssignment size profile hsize σ)).reverse → g ≠ 1)119(hred : ∀ σ, FreeGroup.IsReduced120((scanWords P decode (embedAssignment size profile hsize σ)).reverse.flatMap FreeGroup.toWord)) :121‖∑ σ, (B ^ q) (target σ)‖ ≤122P.singletonWeight size d * (q : ℝ) ^ (6 * Fintype.card I - 1) * ‖regular B‖ ^ q := by123have he : (∑ σ, (B ^ q) (target σ)) =124∑ t ∈ compositions (P.markedFlags.length - 1) q,125compositionCoefficient P B size profile hsize (fun k => decide (k = 0)) forward decode t := by126simp only [compositionCoefficient]127rw [Finset.sum_comm]128apply Finset.sum_congr rfl129intro σ _130exact coefficient_eq_composition_sum P hblocks B hB size profile hsize forward decode σ131(hdecode σ) (target σ) (htarget σ) (hne σ) (hred σ) q132rw [he]133exact composition_sum_norm_le P hP hn hc hblocks B hB size profile hsize134(fun k => decide (k = 0)) forward decode q hq135136end Nonadditivity.HaarDecodedCoefficientBound