Exact Lean source
Nonadditivity.HaarProfileDecodedCoefficients
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
5 project constants, including generated, internal and private declarations.
5 declarations
Nonadditivity.HaarProfileAssignmentBound.embedAssignment.congr_simpNonadditivity.HaarProfileAssignmentBound.embedAssignment.eq_1internal/detail/privateNonadditivity.HaarProfileDecodedCoefficients.blockFactor_validNonadditivity.HaarProfileDecodedCoefficients.blockFactors_congr_on_assignmentNonadditivity.HaarProfileDecodedCoefficients.blockFactors_valid
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileAssignmentBound78/-! # Eliminate profile padding on valid decoded assignments910On the actual dependent profile palettes the block factory is exactly the11ordinary/non-returning coefficient at the decoded whole group word. The only12decoder condition is its defining value on a singleton segment.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false17set_option linter.unusedSectionVars false18namespace Nonadditivity.HaarProfileDecodedCoefficients19open scoped BigOperators20open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarProfilePadding21HaarProfileCoefficient HaarPathProfiles NoncommutativeCS HaarProfilePatternBound22HaarProfileAssignmentBound2324variable {I E : Type*} [DecidableEq I]25variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]26variable {d M : ℕ}2728/-- Zero padding disappears on every valid profile assignment. -/29theorem blockFactor_valid30(B : Polynomial (FreeGroup (Fin d)) E)31(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)32(ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)33(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))34(σ : ∀ i, Words d (size i) (profile i)) (k : ℕ)35(hdecode : ∀ i, decode k [i] [embedAssignment size profile hsize σ i] =36orientedWord (forward k i) (σ i)) (labels : List I) :37blockFactor B size profile hsize ordinary duration forward decode k labels38(labels.map (embedAssignment size profile hsize σ)) =39blockPolynomial B (ordinary k) (duration k)40(decode k labels (labels.map (embedAssignment size profile hsize σ))) := by41cases labels with42| nil => rfl43| cons i l =>44cases l with45| nil =>46simp only [List.map_cons, List.map_nil, blockFactor, paddedFamily, embedAssignment]47rw [(embedWords_injective (p := profile i) (hsize i)).extend_apply]48exact congrArg (blockPolynomial B (ordinary k) (duration k)) (hdecode i).symm49| cons j l => rfl5051/-- Factor-list congruence only needs equality at the actual named assignment,52not equality of the coefficient factories on malformed profile lists. -/53theorem blockFactors_congr_on_assignment {J : Type*} {m n : ℕ}54{a : Fin m → I} {b : Fin n → I} (P : EndpointSkeleton I a b)55(A C : ℕ → List I → List J → E →L[ℂ] E) (σ : I → J)56(h : ∀ k labels, A k labels (labels.map σ) = C k labels (labels.map σ)) (k : ℕ) :57P.blockFactors A k σ = P.blockFactors C k σ := by58induction P generalizing k with59| done => rfl60| first i P ih =>61simpa [EndpointSkeleton.blockFactors, ih] using62congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [i])63| @last m n a b p P ih =>64simpa [EndpointSkeleton.blockFactors, ih] using65congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [a p])66| @middle m n a b v P ih =>67simpa [EndpointSkeleton.blockFactors, ih, List.map_map] using68congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k (v.map a))69| singleton i P ih =>70simpa [EndpointSkeleton.blockFactors, ih] using71congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [i])7273/-- The entire literal ordered product is the corresponding product of74actual whole-word coefficients after decoding the valid profile assignment. -/75theorem blockFactors_valid {m n : ℕ} {a : Fin m → I} {b : Fin n → I}76(P : EndpointSkeleton I a b)77(B : Polynomial (FreeGroup (Fin d)) E)78(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)79(ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)80(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))81(σ : ∀ i, Words d (size i) (profile i))82(hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =83orientedWord (forward k i) (σ i)) (k : ℕ) :84P.blockFactors (blockFactor B size profile hsize ordinary duration forward decode) k85(embedAssignment size profile hsize σ) =86P.blockFactors (fun k labels choices =>87blockPolynomial B (ordinary k) (duration k) (decode k labels choices)) k88(embedAssignment size profile hsize σ) := by89apply blockFactors_congr_on_assignment90intro s labels91exact blockFactor_valid B size profile hsize ordinary duration forward decode σ s (hdecode s) labels9293end Nonadditivity.HaarProfileDecodedCoefficients