Exact Lean source
Nonadditivity.HaarProfileCompositionBound
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarProfileAssignmentBoundMathlib.Data.List.GetDdependency
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
15 project constants, including generated, internal and private declarations.
15 declarations
Nonadditivity.HaarProfileCompositionBound.compositionCoefficientNonadditivity.HaarProfileCompositionBound.compositionCoefficient._proof_1internal/detail/privateNonadditivity.HaarProfileCompositionBound.compositionCoefficient_norm_leNonadditivity.HaarProfileCompositionBound.composition_sum_norm_leNonadditivity.HaarProfileCompositionBound.durationOfNonadditivity.HaarProfileCompositionBound.durationOf.eq_1internal/detail/privateNonadditivity.HaarProfileCompositionBound.durationOf_posNonadditivity.HaarProfileCompositionBound.durationOf_pos._proof_1_1internal/detail/privateNonadditivity.HaarProfileCompositionBound.ofFn_duration_succNonadditivity.HaarProfileCompositionBound.ofFn_duration_succ._proof_1_1internal/detail/privateNonadditivity.HaarProfileCompositionBound.times_durationOfNonadditivity.HaarProfileCompositionBound.times_eq_ofFnNonadditivity.HaarProfileCompositionBound.times_eq_ofFn._proof_1_1internal/detail/privateNonadditivity.HaarProfileCompositionBound.times_eq_ofFn._proof_1_2internal/detail/privateNonadditivity.HaarProfileCompositionBound.times_eq_ofFn._proof_1_3internal/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.HaarProfileAssignmentBound7import Mathlib.Data.List.GetD89/-! # Sum the actual profile coefficients over positive segment durations1011The literal dependent-profile sums are bounded uniformly over every positive12composition of the moment order. Only marked endpoint durations contribute13polynomial losses, giving the repaired exponent for the compiled core pattern.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option linter.unusedSectionVars false19namespace Nonadditivity.HaarProfileCompositionBound20open scoped BigOperators21open HaarOperatorPolynomial HaarProfilePadding HaarProfileCoefficient HaarPathProfiles22NoncommutativeCS HaarProfilePatternBound HaarProfileAssignmentBound HaarTimeCompositions23HaarMarkedCompositions2425def durationOf (t : List ℕ) (k : ℕ) : ℕ := t.getD k 12627theorem durationOf_pos {t : List ℕ} (ht : ∀ a ∈ t, 0 < a) (k : ℕ) :281 ≤ durationOf t k := by29unfold durationOf30by_cases hk : k < t.length31· rw [List.getD_eq_getElem t 1 hk]32exact ht _ (List.getElem_mem hk)33· rw [List.getD_eq_default t 1 (by omega)]3435variable {I : Type*}3637theorem ofFn_duration_succ (duration : ℕ → ℕ) (r k : ℕ) :38List.ofFn (fun i : Fin (r + 1) => duration (k + i.val)) =39duration k :: List.ofFn (fun i : Fin r => duration ((k + 1) + i.val)) := by40rw [List.ofFn_succ]41simp only [Fin.val_zero, Fin.val_succ, Nat.add_zero]42congr 143apply congrArg List.ofFn44funext i45congr 146omega4748theorem times_eq_ofFn {m n : ℕ} {a : Fin m → I} {b : Fin n → I}49(P : EndpointSkeleton I a b) (duration : ℕ → ℕ) (k : ℕ) :50P.times duration k = List.ofFn (fun i : Fin P.markedFlags.length => duration (k + i.val)) := by51induction P generalizing k <;>52simp_all [EndpointSkeleton.times, EndpointSkeleton.markedFlags] <;>53funext i <;> congr 1 <;> omega5455theorem times_durationOf {m n : ℕ} {a : Fin m → I} {b : Fin n → I}56(P : EndpointSkeleton I a b) (t : List ℕ) (ht : t.length = P.markedFlags.length) :57P.times (durationOf t) 0 = t := by58rw [times_eq_ofFn]59simp only [Nat.zero_add, durationOf]60rw [← ht]61convert (List.ofFn_getElem (xs := t)) using 162congr 163funext i64exact List.getD_eq_getElem t 1 i.isLt6566variable {E : Type*} [DecidableEq I] [Fintype I]67variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]68variable {d M : ℕ}6970/-- The literal operator obtained from the actual dependent profile choices71and one list of positive durations. -/72def compositionCoefficient73(P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))74(B : Polynomial (FreeGroup (Fin d)) E)75(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)76(ordinary : ℕ → Bool) (forward : ℕ → I → Bool)77(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d)) (t : List ℕ) : E →L[ℂ] E :=78∑ σ : ∀ i, Words d (size i) (profile i),79(P.blockFactors (blockFactor B size profile hsize ordinary (durationOf t) forward decode) 080(embedAssignment size profile hsize σ)).prod8182theorem compositionCoefficient_norm_le83(P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))84(hn : P.profileLabels.Nodup) (hc : ∀ i : I, i ∈ P.profileLabels)85(hblocks : 1 ≤ P.markedFlags.length)86(B : Polynomial (FreeGroup (Fin d)) E)87(hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)88(size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)89(ordinary : ℕ → Bool) (forward : ℕ → I → Bool)90(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))91{q : ℕ} {t : List ℕ} (ht : t ∈ compositions (P.markedFlags.length - 1) q) :92‖compositionCoefficient P B size profile hsize ordinary forward decode t‖ ≤93P.singletonWeight size d * (markedProduct P.markedFlags t : ℝ) * ‖regular B‖ ^ q := by94have hl : t.length = P.markedFlags.length := by95simpa only [Nat.sub_add_cancel hblocks] using length_of_mem ht96have h := dependent_profile_sum_norm_le P hn hc B hB size profile hsize ordinary (durationOf t)97forward decode (durationOf_pos (positive_of_mem ht)) 098rw [times_durationOf P t hl, sum_of_mem ht] at h99exact h100101/-- The actual grouped coefficient sum over all positive segment durations102has the repaired BC exponent. Every operator bound is proved upstream for103the literal ordinary/non-returning polynomial coefficients. -/104theorem composition_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(ordinary : ℕ → Bool) (forward : ℕ → I → Bool)112(decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))113(q : ℕ) (hq : 1 ≤ q) :114‖∑ t ∈ compositions (P.markedFlags.length - 1) q,115compositionCoefficient P B size profile hsize ordinary forward decode t‖ ≤116P.singletonWeight size d * (q : ℝ) ^ (6 * Fintype.card I - 1) * ‖regular B‖ ^ q := by117have hexp := P.coefficient_exponent_le hP118rw [P.profileLabels_length_eq_card hn hc] at hexp119have hnat := (marked_composition_sum_le q hq P.markedFlags).trans120(Nat.pow_le_pow_right hq hexp)121have hs : (∑ t ∈ compositions (P.markedFlags.length - 1) q,122(markedProduct P.markedFlags t : ℝ)) ≤ (q : ℝ) ^ (6 * Fintype.card I - 1) := by123exact_mod_cast hnat124calc125_ ≤ ∑ t ∈ compositions (P.markedFlags.length - 1) q,126‖compositionCoefficient P B size profile hsize ordinary forward decode t‖ :=127norm_sum_le _ _128_ ≤ ∑ t ∈ compositions (P.markedFlags.length - 1) q,129P.singletonWeight size d * (markedProduct P.markedFlags t : ℝ) * ‖regular B‖ ^ q := by130exact Finset.sum_le_sum fun t ht => compositionCoefficient_norm_le P hn hc hblocks131B hB size profile hsize ordinary forward decode ht132_ = P.singletonWeight size d *133(∑ t ∈ compositions (P.markedFlags.length - 1) q, (markedProduct P.markedFlags t : ℝ)) *134‖regular B‖ ^ q := by rw [← Finset.sum_mul, ← Finset.mul_sum]135_ ≤ _ := mul_le_mul_of_nonneg_right136(mul_le_mul_of_nonneg_left hs (P.singletonWeight_nonneg size d)) (by positivity)137138end Nonadditivity.HaarProfileCompositionBound