Documentation

ReflectiveSubsystems.SubstitutionClass

The strict-spectral substitution class: a √n envelope hypothesis and its consumers #

([Growth] §5)

ProfileNat bounds every window character sum by a CONSTANT S (or W a), uniform in the horizon n. That is exactly what one non-eventually-periodic instance (subObs) delivers, but it is not what the wider class of primitive constant-length substitutions with a strict spectral gap on their order-2 substitution matrix delivers: for such a member the discrepancy dichotomy gives an order-√n bound, not a constant one. EnvelopeProfileNat is ProfileNat's twin with both right-hand sides scaled by Real.sqrt n, the hypothesis shape that dichotomy actually hands over (any power below the boundary exponent 1/2, with any log factor, is absorbed into a clean C · √n bound at every n ≥ 1).

Both of ProfileNat's consumers generalize cleanly to the envelope: EnvelopeProfileNat.deviation_bound is ProfileNat.deviation_bound's proof with the √n factor carried through, and EnvelopeProfileNat.mixingHoeffding / EnvelopeProfileNat.schedSurvivors_eq_singleton are the √n-twins of ReflectiveSubsystems.mixingHoeffding_dirac_of_deviation_bound and ProfileNat.schedSurvivors_eq_singleton_sharp, both routed through mixingHoeffding_dirac_iff's per-n reading instead of the constant-envelope lemma, since the deviation bound itself now shrinks as 1/√n rather than 1/n.

ProfileNat.toEnvelope shows a constant bound is a special case (S ≤ S · √n at n ≥ 1), so the landed instance (subObs_profile) inhabits the class hypothesis unconditionally — see subObs_envelopeProfile. EnvelopeProfileNat.trend_unique shows the declared trend data ρ is canonical given any envelope: two envelopes on the same observation with the same phase force the same ρ, since a bounded difference that shrinks as 1/√n at every horizon must be zero.

Main results #

Scope #

The class enters through the envelope hypothesis alone: nothing here defines an induced substitution, a Perron vector, or decides membership from a spectral condition. A member's own ρ, S, W are declared data, constrained by the envelope and pinned canonical by EnvelopeProfileNat.trend_unique; the dichotomy that DELIVERS the envelope for a strict-spectral member is a citation (Adamczewski, Symbolic discrepancy and self-similar dynamics, Ann. Inst. Fourier 54 (2004) 2201–2234), not machine-checked content.

The envelope profile #

structure ReflectiveSubsystems.EnvelopeProfileNat (o : ℕ → Bool) (S : ℝ) (ρ W : Fin 8 → ℝ) :

The √n-scaled window-deviation profile, over o : ℕ → Bool directly. ProfileNat's twin, with both right-hand sides scaled by Real.sqrt n: the hypothesis shape a primitive constant-length substitution member with second eigenvalue of its order-2 substitution strictly below √(length) delivers, by Adamczewski, Symbolic discrepancy and self-similar dynamics, Ann. Inst. Fourier 54 (2004) 2201–2234, Theorem 3 with Propositions 27/28 (any exponent strictly below 1/2, with any log factor, is absorbed into a clean C · √n bound at every n ≥ 1). Carried here as a hypothesis at declared trend data, not derived: defining the induced substitution and proving unique ergodicity would import machinery no consumer below needs.

  • single (c n : ℕ) : |∑ t ∈ Finset.range n, chi (o (c + t))| ≤ S * √↑n

    The single-site character sum, at every phase and horizon, is bounded by S · √n.

  • pair (c : ℕ) (a : Fin 8) (n : ℕ) : |∑ t ∈ Finset.range n, chi (o (c + t + ↑a)) * chi (o (c + t + 8)) - ↑n * ρ a| ≤ W a * √↑n

    The pair character sum at offsets (a, 8), at every phase and horizon, deviates from the linear trend n * ρ a by at most W a · √n.

Instances For
    theorem ReflectiveSubsystems.ProfileNat.toEnvelope {o : ℕ → Bool} {S : ℝ} {ρ W : Fin 8 → ℝ} (h : ProfileNat o S ρ W) :

    ProfileNat is the constant-bound special case of the envelope. A constant bound is ≤ C · √n at every n ≥ 1 (Real.one_le_sqrt); at n = 0 both sides of each field vanish. So every constant-profile source — in particular subObs_profile — inhabits the class hypothesis unconditionally.

    theorem ReflectiveSubsystems.EnvelopeProfileNat.trend_unique {o : ℕ → Bool} {S S' : ℝ} {ρ ρ' W W' : Fin 8 → ℝ} (h : EnvelopeProfileNat o S ρ W) (h' : EnvelopeProfileNat o S' ρ' W') :
    ρ = ρ'

    The declared trend ρ is canonical given any envelope. Two envelopes on the same observation, at the same phase, force the same ρ: their pair fields combine to n * |ρ a - ρ' a| ≤ (W a + W' a) * √n at every n ≥ 1, and a difference bounded that way at every horizon is forced to 0 (a witness n past (C / |ρ a - ρ' a|)² refutes any nonzero gap).

    The deviation bound, and E1 #

    theorem ReflectiveSubsystems.EnvelopeProfileNat.deviation_bound {o : ℕ → Bool} {S : ℝ} {ρ W : Fin 8 → ℝ} (h : EnvelopeProfileNat o S ρ W) (c : ℕ) (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) (a : Fin 8) {n : ℕ} (hn : 1 ≤ n) :
    ↑n * |(SQOracle.empiricalMean (pairEnsemble ψ (↑a) 8) n fun (t : ℕ) => o (c + t)) - (pairMean ψ + pairCoefAB ψ * ρ a)| ≤ (2 * S + W a) * √↑n

    The query's deviation from the envelope's own displaced answer, over ℕ, at the √n-scaled constant. ProfileNat.deviation_bound's proof with the √n factor carried through: the underlying combinator ReflectiveSubsystems.empiricalMean_deviation_le_of_window_bounds is generic in its S/W arguments, so it accepts S · √n and W a · √n exactly as it accepts a constant.

    theorem ReflectiveSubsystems.EnvelopeProfileNat.mixingHoeffding {o : ℕ → Bool} {S : ℝ} {ρ W : Fin 8 → ℝ} (h : EnvelopeProfileNat o S ρ W) (a : Fin 8) :
    MixingHoeffding (MeasureTheory.Measure.dirac o) (pairEnsemble pairChar (↑a) 8) (ρ a) ((2 * S + W a) ^ 2 / (2 * Real.log 2))

    Dirac E1 at every envelope member, at the constant (2S + W a)² / (2 ln 2) — the √n-twin of ReflectiveSubsystems.mixingHoeffding_dirac_of_deviation_bound, routed through mixingHoeffding_dirac_iff since the deviation bound here shrinks as 1/√n rather than being flat. At the degenerate constant 2S + W a = 0 the target constant is 0 and ReflectiveSubsystems.mixingHoeffding_of_nonpos discharges it directly, so no positivity hypothesis on 2S + W a is carried.

    The sharp identification window, √n form #

    theorem ReflectiveSubsystems.EnvelopeProfileNat.schedSurvivors_eq_singleton {o : ℕ → Bool} {S : ℝ} {ρ W : Fin 8 → ℝ} (h : EnvelopeProfileNat o S ρ W) (Wm : ℝ) (hW : ∀ (a : Fin 8), W a ≤ Wm) {η τ μ : ℝ} (hτ : 0 < τ) (hη : 0 ≤ η) (hρ0 : ρ 0 = 2 * η - 1) (hρ : ∀ (a : Fin 8), ↑a ≠ 0 → |ρ a| ≤ μ) (_hμ0 : 0 ≤ μ) (hbudget : 2 * η ≤ τ) (hμτ : μ < 2 * τ) (hsep : 2 * τ + μ < 1) (c : ℕ) {n : ℕ} (hn1 : 1 ≤ n) (hn : ((2 * S + Wm) / min (2 * τ - 2 * η) (min (2 * τ - μ) (1 - μ - 2 * τ))) ^ 2 < ↑n) :
    (schedSurvivors τ n fun (t : ℕ) => o (c + t)) = {0}

    The sharp identification window, over ℕ, at the √n-envelope. ProfileNat.schedSurvivors_eq_singleton_sharp's twin: the deterministic error is ε_n = (2S + Wm) / √n in place of (2S + Wm) / n, and the same three-margin argument closes.

    noncomputable def ReflectiveSubsystems.envelopeHorizon (S Wm η τ μ : ℝ) :

    The envelope identification horizon, as an explicit natural number: the least natural strictly above ((2S + Wm) / margin)², the squared form sharpHorizon's own horizon takes since the deterministic error here shrinks as 1/√n.

    Equations
    Instances For
      theorem ReflectiveSubsystems.EnvelopeProfileNat.identifies_of_lt_quarter {o : ℕ → Bool} {S : ℝ} {ρ W : Fin 8 → ℝ} (h : EnvelopeProfileNat o S ρ W) (Wm : ℝ) (hW : ∀ (a : Fin 8), W a ≤ Wm) {η μ : ℝ} (hη : 0 ≤ η) (hρ0 : ρ 0 = 2 * η - 1) (hρ : ∀ (a : Fin 8), ↑a ≠ 0 → |ρ a| ≤ μ) (hμ0 : 0 ≤ μ) (hμ : μ < 1 / 2) (hwin : η < (1 - μ) / 4) (c : ℕ) :
      ∃ (τ : ℝ), 0 < τ ∧ 2 * η ≤ τ ∧ ∀ (n : ℕ), envelopeHorizon S Wm η τ μ ≤ n → (schedSurvivors τ n fun (t : ℕ) => o (c + t)) = {0}

      The sharp identification window, at the envelope. At every density η < (1 - μ) / 4 with μ < 1 / 2, some admissible tolerance τ identifies the true literal from envelopeHorizon's horizon on — identifies_of_lt_quarter's twin, at the envelope hypothesis and its squared horizon.

      Axiom audit #

      Every capstone above is #print axioms-clean on the standard triple, and the guards below make that build-enforced.