Documentation

ReflectiveSubsystems.NoisyWindowChain

The noisy window chain: an explicit source whose mixing constant is derived #

Fix a window length k ≥ 1 over the alphabet Bool. The noisy window chain is the process

o_{t+k} = ¬ o_t ⊕ ξ_{t+k},

with the initial window o_0, …, o_{k−1} and the noise bits ξ_k, ξ_{k+1}, … supplied by one mutually independent family. Noiselessly (ξ ≡ false) the length-k window evolves by the permutation w ↦ (w_2, …, w_k, ¬w_1), whose k-th power is bitwise complement, so its order divides 2k and the uniform law on windows is stationary; the noise preserves that stationarity and supplies exactly the window-noise rate η that [SQ] §3.1's budget 2η ≤ τ tolerates.

This module gives that chain a derived single-orbit Hoeffding constant. Until now the corpus discharged MixingHoeffding only at the independent end (mixingHoeffding_of_iid, c = 1); mixingHoeffding_noisyWindowChain below discharges it for a genuinely dependent source, at the named constant

c = 4k,

for coordinate query ensembles Z i o = φ (o i) with φ valued in [−1, 1]. A second theorem, mixingHoeffding_noisyWindowChain_pair, discharges it for the two-offset ensembles Z t o = ψ (o_{t+a}, o_{t+b}) that a learner of single-literal decision lists schedules ([SQ] §3.1), at the named constant

c = pairConst k η = O(k/η),

whenever the two offsets read distinct residue classes mod k.

The constant, and what it does not contain #

The constant carries no dependence on the noise rate. That is not an artefact of a crude bound but the shape of this chain: the k-step transition operator sends the character χ_S to (−λ)^{|S|} χ_S with λ = 1 − 2η, so on the single-coordinate characters the eigenvalue is negative. The Birkhoff sums therefore cancel in consecutive pairs instead of accumulating, and what governs them is 1 + λ ≥ 1, not the spectral gap 1 − λ = 2η. A generic spectral-gap bound of Fan–Jiang–Sun shape would read c = (1+λ')/(1−λ') ≈ k/η at the per-step norm λ' = λ^{1/k}; that estimate is correct as a bound and pessimistic here by exactly the factor the sign saves. Only the window length survives, as the boundary allowance of the interleaving.

The trade-off η ↔ c that [SQ] §3.1's budget appears to price therefore does not exist for this chain at coordinate observables: the noise rate may be taken as small as the budget 2η ≤ τ allows without inflating the sample complexity n ≥ (2c/τ²)·log(2/δ) at all.

At two-offset observables it does exist, and is priced. A cross-class pair character is the product of two coordinate characters, and under one chain step the two complements cancel (chi_pairObs_add): the eigenvalue is λ² ≥ 0, the walk is persistent rather than alternating, and the telescope divides by the gap 1 − λ² = 4η(1−η) instead of being helped by 1 + λ. Hence pairConst k η = O(k/η) (pairConst_le), and the 0 < η hypothesis is load-bearing.

Main results #

Scope #

Three query classes are covered, and they behave differently. A coordinate query reads one observation and sees a character χ_S with |S| = 1, whose k-step eigenvalue −λ is negative: the cancellation described above is available and the constant 4k carries no noise rate. A cross-class two-offset query — offsets in distinct residue classes — sees a character with |S| = 2 whose eigenvalue λ² is positive: nothing cancels, and pairConst k η is genuinely noise-rate-dependent — provably so, since not_mixingHoeffding_noisyWindowChain_pair_frozen refutes the predicate at η = 0 at every positive constant, on a trajectory law that satisfies every hypothesis of the coordinate theorem. A same-class two-offset query at the chain's own lag — offsets (a, a + k) — is a third case again: its pair character is a single noise character, so the constant 48k is free of the noise rate, but the stationary answer is displaced by pairCoefAB ψ · m. There the noise rate is provably load-bearing in the ANSWER (not_mixingHoeffding_noisyWindowChain_samePair_flatMean) and provably absent from the constant.

Not covered: queries reading three or more observations at once, and same-class offsets at the lags 2k, 3k, … (whose multiplier is a product over a block of noise bits, and which the single-literal schedule does not use).

No SubstrateL inhabitation is claimed: this module supplies one clause (E1, at a named base, ensemble and constant) and says nothing about window sufficiency or Assumption A.

The observation process, defined by its interleaving #

def ReflectiveSubsystems.obs (k : ℕ) (ξ : ℕ → Bool) (u : ℕ) :

The observation process of the noisy window chain.

It is defined by the interleaving: the observation at time u is the residue class u % k's two-state parity walk, started at the initial bit ξ (u % k) and advanced u / k steps by the noise bits ξ (u % k + k·(j+1)). The chain's own recursion o_{u+k} = ¬o_u ⊕ ξ_{u+k} is then a lemma (obs_add), not the definition — which is what makes the residue-class decomposition transparent rather than something to be recovered.

Equations
Instances For
    theorem ReflectiveSubsystems.obs_interleave {k : ℕ} (hk : 0 < k) (ξ : ℕ → Bool) {r : ℕ} (hr : r < k) (j : ℕ) :
    obs k ξ (r + k * j) = walk (ξ r) (fun (i : ℕ) => ξ (r + k * (i + 1))) j

    The interleaving reduction, deterministic half: along the residue class r the chain is a two-state parity walk driven by that class's own noise bits.

    theorem ReflectiveSubsystems.obs_of_lt {k : ℕ} (ξ : ℕ → Bool) {u : ℕ} (hu : u < k) :
    obs k ξ u = ξ u

    Before the first step the observations are the initial window: the noise word's first k bits are the chain's initial window, which is what makes a loaded initial state and a noise word the same datum.

    theorem ReflectiveSubsystems.obs_add {k : ℕ} (hk : 0 < k) (ξ : ℕ → Bool) (u : ℕ) :
    obs k ξ (u + k) = !(obs k ξ u ^^ ξ (u + k))

    The chain's recursion. The observation k steps on is the complement of the present one, xored with the noise bit written at that time.

    theorem ReflectiveSubsystems.obs_xor_obs_add_mul {k : ℕ} (hk : 0 < k) (ξ : ℕ → Bool) (u d : ℕ) :
    (obs k ξ u ^^ obs k ξ (u + k * d)) = par (fun (i : ℕ) => ξ (u + k * (i + 1))) d

    The same-class telescoping of obs. Two observations in the same residue class, d class-steps apart, differ by exactly the parity of the complemented tape bits at the d class positions strictly between them — a set of size d, independent of how far u sits from the origin. At d = 1 this is obs_add in xor-of-parity form; the general statement is ReflectiveSubsystems.par_add transported across the interleaving (obs_interleave).

    The derived-noise bridge #

    Every Boolean sequence, fed back as its own window-k noise ([Growth] §5). o's first k values are its own; past that, derivedNoise k o u is the noise bit obs_add would need to carry o's own window-k chain from o (u - k) to o u.

    Equations
    Instances For
      theorem ReflectiveSubsystems.obs_derivedNoise {k : ℕ} (hk : 0 < k) (o : ℕ → Bool) :
      obs k (derivedNoise k o) = o

      The window-k chain on derivedNoise k o reproduces o exactly ([Growth] §5). Strong induction on u: below k both sides are o's own value (obs_of_lt); past k, obs_add and derivedNoise's own definition combine to the Boolean identity !(a ⊕ !(a ⊕ b)) = b. So every Boolean sequence is the window-k chain's own observation of its own derived noise — ReflectiveSubsystems.subNoise is derivedNoise 8 subObs (ReflectiveSubsystems.subNoise_eq_derivedNoise), and this is that fact's k-generic, source-generic form.

      The noiseless window map #

      def ReflectiveSubsystems.windowMap (k : ℕ) [NeZero k] (w : Fin k → Bool) :
      Fin k → Bool

      The noiseless window map w ↦ (w_2, …, w_k, ¬w_1) on length-k windows over Bool.

      Equations
      Instances For
        theorem ReflectiveSubsystems.windowMap_iterate_len (k : ℕ) [NeZero k] (w : Fin k → Bool) :
        (windowMap k)^[k] w = fun (i : Fin k) => !w i

        The k-th power of the window map is bitwise complement.

        The window map has order dividing 2k.

        The window map is a permutation of the window space — an immediate consequence of having a finite order.

        The noisy step and the stationarity of the uniform law #

        def ReflectiveSubsystems.noisyStep (k : ℕ) [NeZero k] (w : Fin k → Bool) (b : Bool) :
        Fin k → Bool

        One step of the noisy window chain on windows: the noiseless window map, with the freshly written observation xored by the noise bit b.

        Equations
        Instances For

          Each noise value acts as a permutation of the window space. This is why the uniform law is stationary at every noise law: the noise selects among bijections, and a bijection of a finite set preserves the uniform measure.

          theorem ReflectiveSubsystems.uniform_stationary (k : ℕ) [NeZero k] (p : Bool → ℝ) (hp : p false + p true = 1) (v : Fin k → Bool) :
          (∑ w : Fin k → Bool, ∑ b : Bool, if noisyStep k w b = v then p b else 0) * (2 ^ k)⁻¹ = (2 ^ k)⁻¹

          The uniform law on windows is stationary for the noisy step, at every noise law p : Bool → ℝ summing to 1: the one-step mass landing on a window v is again 2^{-k}.

          This is the stationarity equation itself, not a corollary of one: the inner sum over w is the kernel's mass, the outer factor 2^{-k} the uniform weight.

          The chain's window is the window map's orbit #

          def ReflectiveSubsystems.windowAt (k : ℕ) (ξ : ℕ → Bool) (t : ℕ) :
          Fin k → Bool

          The chain's window at time t.

          Equations
          Instances For
            theorem ReflectiveSubsystems.windowAt_succ {k : ℕ} [NeZero k] (ξ : ℕ → Bool) (t : ℕ) :
            windowAt k ξ (t + 1) = noisyStep k (windowAt k ξ t) (ξ (t + k))

            windowMap really is this chain's window map. The window one step on is the noisy step applied to the present window, with the noise bit the chain writes at that time.

            The derived mixing constant #

            def ReflectiveSubsystems.chainTraj {Ω : Type u_1} (k : ℕ) (ξ : ℕ → Ω → Bool) (ω : Ω) :
            ℕ → Bool

            The chain's trajectory, as a point of the SQ trajectory space ℕ → Bool.

            Equations
            Instances For
              def ReflectiveSubsystems.coordEnsemble (φ : Bool → ℝ) :
              ℕ → (ℕ → Bool) → ℝ

              A coordinate query ensemble: read a bounded observable of the observation at each time.

              Equations
              Instances For
                noncomputable def ReflectiveSubsystems.coordMean (φ : Bool → ℝ) :

                The stationary answer to a coordinate query under the uniform window law.

                Equations
                Instances For
                  theorem ReflectiveSubsystems.measurable_chainTraj {Ω : Type u_1} [MeasurableSpace Ω] {ξ : ℕ → Ω → Bool} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) :

                  The chain's trajectory map is measurable: each observation reads finitely many noise bits.

                  The interleaving as an independence decomposition #

                  def ReflectiveSubsystems.classProc {Ω : Type u_1} (k r : ℕ) (ξ : ℕ → Ω → Bool) (ω : Ω) :
                  ℕ → Bool

                  The residue class r's own process: the chain read along r, r+k, r+2k, ….

                  Equations
                  Instances For
                    def ReflectiveSubsystems.restClasses {Ω : Type u_1} (k r : ℕ) (ξ : ℕ → Ω → Bool) (ω : Ω) :
                    ℕ → Bool

                    The joint reading of every residue class other than r: the noise word with class r's own coordinates blanked out.

                    Equations
                    Instances For
                      theorem ReflectiveSubsystems.indepFun_residueClass {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {ξ : ℕ → Ω → Bool} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) {r : ℕ} (hr : r < k) :

                      The interleaving is an independence decomposition. The residue class r's process is independent of the joint reading of all the other classes: the two are driven by disjoint index sets of the noise family, and ReflectiveSubsystems.indepFun_noiseAlg_compl turns that into independence.

                      Together with obs_interleave this is the full content of the interleaving: k two-state parity walks, each independent of everything the others see.

                      theorem ReflectiveSubsystems.indepFun_residueClass_pair {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {ξ : ℕ → Ω → Bool} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) {r r' : ℕ} (hr : r < k) (hr' : r' < k) (hne : r' ≠ r) :

                      Two distinct residue classes are independent. Immediate from indepFun_residueClass: the other class is a measurable reading of the blanked noise word.

                      theorem ReflectiveSubsystems.mixingHoeffding_noisyWindowChain {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {m : ℝ} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) (hmean : ∀ (u : ℕ), ∫ (ω : Ω), zeta (ξ (u + k) ω) ∂P = m) (hm0 : -1 ≤ m) (hm : m ≤ 0) (φ : Bool → ℝ) (hφ : ∀ (b : Bool), |φ b| ≤ 1) :

                      The derived mixing constant. The noisy window chain of window length k ≥ 1, at any noise rate, satisfies the FJS-shaped single-orbit Hoeffding hypothesis at the explicit constant c = 4k for every coordinate query ensemble with a [−1, 1]-valued observable.

                      Two things are absent from the constant and are meant to be. The noise rate is absent: the hypothesis -1 ≤ m ≤ 0 on the noise character's mean allows every rate from deterministic alternation (m = -1) to unbiased (m = 0), and the bound is uniform over it. And the horizon enters only through n, exactly as in the i.i.d. case; the window length appears alone, as the boundary allowance the interleaving costs.

                      Until this theorem MixingHoeffding was discharged only at c = 1 for i.i.d. ensembles (ReflectiveSubsystems.mixingHoeffding_of_iid); this is the first dependent source whose constant the corpus derives.

                      theorem ReflectiveSubsystems.not_mixingHoeffding_noisyWindowChain_pinned {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) :
                      ¬MixingHoeffding (MeasureTheory.Measure.map (chainTraj k ξ) P) (fun (x : ℕ) (x_1 : ℕ → Bool) => 1) 0 (4 * ↑k)

                      The standing vacuity guard. At this same trajectory law and this same constant, the predicate is refutable: the pinned ensemble of ReflectiveSubsystems.not_mixingHoeffding_pinned fails it. So mixingHoeffding_noisyWindowChain is a statement about the chain and its query ensemble, not an artefact of a constant that carries no content (contrast ReflectiveSubsystems.mixingHoeffding_of_nonpos, which holds for everything at c ≤ 0).

                      The two-offset query class #

                      The scope note above records that a query reading two observations is not covered by the coordinate constant. The rest of this module covers exactly that case, for the class a learner of single-literal decision lists actually schedules: each of its queries correlates one window literal with the label, so it reads two observations at fixed offsets ([SQ] §3.1).

                      def ReflectiveSubsystems.pairEnsemble (ψ : Bool → Bool → ℝ) (a b : ℕ) :
                      ℕ → (ℕ → Bool) → ℝ

                      A two-offset query ensemble: at each query time, read a bounded observable of the observations at two fixed offsets ahead.

                      Equations
                      Instances For
                        noncomputable def ReflectiveSubsystems.pairMean (ψ : Bool → Bool → ℝ) :

                        The stationary answer to a two-offset query whose offsets read distinct residue classes: the two observations are then independent and uniform under the stationary window law, so the answer is the flat average of ψ over its four argument pairs.

                        Equations
                        Instances For
                          noncomputable def ReflectiveSubsystems.pairChar (u v : Bool) :

                          The pair character χ(u)·χ(v): the two-offset observable that isolates the genuinely two-coordinate part of a query, and the one the guard below is pinned at.

                          Equations
                          Instances For

                            The guard: at zero noise no constant covers the two-offset class #

                            At noise rate η = 0 each residue class's walk alternates deterministically, so a cross-class pair character is frozen at its initial value: the empirical answer never moves, and the tail bound 2·exp(−nτ²/(2c)) — which tends to 0 in n at every positive c — cannot dominate it. The witness below pins one such configuration completely.

                            Two things make this a genuine perturbation test of mixingHoeffding_noisyWindowChain rather than a degenerate instance. The pinned noise word satisfies every hypothesis of that theorem, at m = -1; and dropping only the distinct-class requirement recovers the coordinate case, where the landed constant c = 4k does cover the same trajectory law. So the noise-rate dependence of the pair constant is a fact about the query class, not slack in a proof.

                            The guard's noise word: the initial window (false, true, false) at window length 3, and no noise at all — frozenWord i = false for every i ≥ 3.

                            Equations
                            Instances For

                              At zero noise the observation complements every k steps: the chain's recursion with the noise bit switched off.

                              The frozen pair identity. Offsets 0 and 2 read distinct residue classes mod 3, yet with this initial window the two observations agree at every time — so their pair character is pinned at +1 forever. (Both sides complement together every three steps, and the three base values agree.)

                              A two-offset query reads two coordinates of the trajectory, hence is measurable.

                              theorem ReflectiveSubsystems.not_mixingHoeffding_pinned_pair {Ω : Type u_2} [MeasurableSpace Ω] (P : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure P] {k a b : ℕ} (hk : 1 ≤ k) (w : ℕ → Bool) (ψ : Bool → Bool → ℝ) {v ans c : ℝ} (hc : 0 < c) (hpin : ∀ (t : ℕ), ψ (obs k w (t + a)) (obs k w (t + b)) = v) (hd : 1 ≤ |v - ans|) :
                              ¬MixingHoeffding (MeasureTheory.Measure.map (chainTraj k fun (i : ℕ) (x : Ω) => w i) P) (pairEnsemble ψ a b) ans c

                              A pinned two-offset answer refutes E1 at every positive constant. Read along one deterministic noise word w, if a two-offset query's value never moves off v, then its empirical answer is v at every horizon; a declared answer at distance 1 or more from v then sits outside a deviation event of probability 1, and the tail 2·exp(−nτ²/(2c)) — which tends to 0 in n at every positive c — cannot dominate it.

                              This is the shape every two-offset refutation in this module takes; what changes between them is which pinned value sits how far from which declared answer. It is the only refutation device here, so a new guard is a new pinning computation and nothing else.

                              theorem ReflectiveSubsystems.not_mixingHoeffdingTo_pinned_pair {Ω : Type u_2} [MeasurableSpace Ω] (P : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure P] {k a b : ℕ} (hk : 1 ≤ k) (w : ℕ → Bool) (ψ : Bool → Bool → ℝ) {v ans c : ℝ} (hc : 0 < c) {N : ℕ} (hN : ⌈2 * c * Real.log 2⌉₊ + 1 ≤ N) (hpin : ∀ (t : ℕ), ψ (obs k w (t + a)) (obs k w (t + b)) = v) (hd : 1 ≤ |v - ans|) :

                              The finite-horizon device. The bounded twin of not_mixingHoeffding_pinned_pair: the same pinned witness refutes MixingHoeffding.MixingHoeffdingTo N at every horizon N clearing ReflectiveSubsystems.not_mixingHoeffdingTo_pinned's own threshold, at c. The proof is the unbounded one with the horizon hypothesis threaded through every application of hmix, landing on the ported pinned device instead of the unbounded one at the end.

                              The guard. At window length 3, offsets 0 and 2 (distinct residue classes) and the noise rate η = 0, the two-offset predicate is refutable at every positive constant. So no noise-free constant covers the two-offset class, and in particular the coordinate constant 4k of mixingHoeffding_noisyWindowChain does not extend to it: the η-dependence of mixingHoeffding_noisyWindowChain_pair below is forced, not an artefact of its proof.

                              The pair process and its persistent multiplier #

                              pairObs combines the two observations a two-offset query reads by xor, so that its character is their product. Under the chain's own recursion both observations complement, and the two complements cancel: the pair character is multiplied by a product of two noise characters, whose mean is m² ≥ 0. So where each coordinate alone alternates — the negative eigenvalue that makes mixingHoeffding_noisyWindowChain's constant noise-rate-free — a cross-class pair is a persistent walk, and its constant must pay for the gap. The frozen refutation above is the proof that it must.

                              def ReflectiveSubsystems.pairObs (k a b : ℕ) (ξ : ℕ → Bool) (t : ℕ) :

                              The pair process: the two observations a two-offset query reads, combined by xor.

                              Equations
                              Instances For
                                theorem ReflectiveSubsystems.chi_pairObs_add {k : ℕ} (hk : 0 < k) (a b : ℕ) (ξ : ℕ → Bool) (t : ℕ) :
                                chi (pairObs k a b ξ t) * (zeta (ξ (t + a + k)) * zeta (ξ (t + b + k))) = chi (pairObs k a b ξ (t + k))

                                The pair recursion at one chain step, and the sign cancellation. Both observations complement and pick up their own noise character; the two complements cancel, leaving the pair character multiplied by a product of two distinct noise characters.

                                Arithmetic of the two residue classes #

                                Measurability of the pair data #

                                The multiplier's mean: the two sign flips cancel #

                                The Walsh split of a two-offset observable #

                                A [−1, 1]-valued function of two bits is its flat mean plus three characters: the two coordinate characters, and the pair character. The first two are covered by the coordinate machinery at the noise-rate-free constant; only the third needs the persistent tail.

                                noncomputable def ReflectiveSubsystems.pairCoefAB (ψ : Bool → Bool → ℝ) :

                                The pair Walsh coefficient of a two-offset observable: the amplitude of its genuinely two-coordinate part, i.e. the coefficient of χ(u)·χ(v) in the Walsh expansion of ψ.

                                It is the one of the three coefficients that is public, because samePairMean — the stationary answer to a same-class query — is stated in terms of it. Its two single-coordinate siblings are consumed only inside this file and stay private.

                                Equations
                                Instances For
                                  @[simp]

                                  pairChar's own pair Walsh coefficient is 1: the pair character IS its genuinely two-coordinate part, with none of its mass on the flat or single-coordinate terms.

                                  theorem ReflectiveSubsystems.empiricalMean_deviation_le_of_window_bounds (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) (a b : ℕ) {n : ℕ} (hn : 1 ≤ n) (o : ℕ → Bool) (ρ S W : ℝ) (hSa : |∑ t ∈ Finset.range n, chi (o (t + a))| ≤ S) (hSb : |∑ t ∈ Finset.range n, chi (o (t + b))| ≤ S) (hW : |∑ t ∈ Finset.range n, chi (o (t + a)) * chi (o (t + b)) - ↑n * ρ| ≤ W) :
                                  ↑n * |SQOracle.empiricalMean (pairEnsemble ψ a b) n o - (pairMean ψ + pairCoefAB ψ * ρ)| ≤ 2 * S + W

                                  The query's deviation from a displaced same-class answer, bounded by two single-site window sums and one pair-correlation window. The public interface to the private three-way character decomposition (empiricalMean_sub_pairMean and the pairCoefA/pairCoefB/pairCoefAB triple, which all stay private): given single-site window bounds S at both offsets and a pair-correlation window bound W against a declared correlation ρ, the two-offset query's n-scaled deviation from pairMean ψ + pairCoefAB ψ · ρ (samePairMean ψ ρ, definitionally) is at most 2S + W.

                                  The blocking length, and the constant #

                                  noncomputable def ReflectiveSubsystems.pairBlockLen (η : ℝ) :

                                  The blocking length: the number of chain steps over which a cross-class pair character's persistence (1−2η)² decays below 1/2. It is Θ(1/η), and it is the only place the noise rate enters the constant.

                                  Equations
                                  Instances For
                                    noncomputable def ReflectiveSubsystems.pairConst (k : ℕ) (η : ℝ) :

                                    The two-offset mixing constant: linear in the window length and in the blocking length, hence in the inverse noise rate (pairConst_le).

                                    Equations
                                    Instances For
                                      theorem ReflectiveSubsystems.pairConst_le (k : ℕ) {η : ℝ} (hη : 0 < η) :
                                      pairConst k η ≤ 108 * ↑k / η + 432 * ↑k

                                      The constant is O(k/η). This is the η ↔ c trade-off [SQ] §3.1's budget 2η ≤ τ prices, made explicit: it is real for the two-offset class, where the coordinate case has none.

                                      The two character tails, at a common horizon #

                                      The capstone #

                                      theorem ReflectiveSubsystems.mixingHoeffding_noisyWindowChain_pair {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) {η : ℝ} (hη0 : 0 < η) (hη1 : η ≤ 1 / 2) (hmean : ∀ (u : ℕ), ∫ (ω : Ω), zeta (ξ (u + k) ω) ∂P = 2 * η - 1) {a b : ℕ} (hab : ¬a ≡ b [MOD k]) (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) :

                                      E1 for the two-offset query class. The noisy window chain of window length k ≥ 1 at noise rate η > 0 satisfies the FJS-shaped single-orbit Hoeffding hypothesis at the explicit constant pairConst k η = O(k/η), for every query that reads two observations at fixed offsets in distinct residue classes, with a [−1, 1]-valued observable.

                                      This is the query class a learner of single-literal decision lists schedules ([SQ] §3.1): each of its queries correlates one window literal with the label. Where mixingHoeffding_noisyWindowChain covers a query reading one observation at a constant free of the noise rate, this covers a query reading two — and its constant must carry the noise rate, because not_mixingHoeffding_noisyWindowChain_pair_frozen refutes the predicate at η = 0 for every positive constant. So the η ↔ c trade-off that [SQ] §3.1's budget 2η ≤ τ prices is real here, and pairConst_le prices it: c ≤ 108·k/η + 432·k.

                                      The hypothesis 0 < η is therefore load-bearing and is kept honest rather than absorbed into a junk value of the constant.

                                      Three ingredients meet. The observable splits into its flat mean and three characters, of which the two coordinate characters are handled at the noise-rate-free constant and only the pair character needs the gap. The pair character is a persistent two-state walk — the two coordinates' sign flips cancel, integral_pairMult — read at the blocking lag k·L that brings its persistence below 1/2. And the k·L residue classes of the time axis, whose noise blocks overlap across classes, are combined without any independence between them (ReflectiveSubsystems.hasSubgaussianMGF_sum_range).

                                      The same-class pair: the pair character IS the noise character #

                                      The scope note above records two-offset queries inside one residue class as not covered. This section covers the one same-class lag a learner of single-literal decision lists actually schedules ([SQ] §3.1): offsets (a, a + k) — the rule's own literal read against the label it predicts.

                                      The mechanism is different from the cross-class one, and simpler. At lag exactly k the chain's own recursion makes the two observations xor to the complement of a single noise bit, so their pair character is that bit's character (chi_pairObs_lagK): an i.i.d. sequence, with none of the walk structure a cross-class pair has. Nothing needs blocking and no gap is divided by, so the constant stays free of the noise rate — as at coordinate observables, and for the same reason.

                                      What moves instead is the answer. An i.i.d. pair character has mean m, not 0, so the stationary answer is samePairMean ψ m = pairMean ψ + pairCoefAB ψ · m and not the flat pairMean ψ. The noise rate that left the constant reappears there, and not_mixingHoeffding_noisyWindowChain_samePair_flatMean makes that displacement a theorem: at the flat answer the predicate is refutable at every positive constant, on a trajectory law that mixingHoeffding_noisyWindowChain_pair_lagK covers at the correct answer (mixingHoeffding_frozen_samePair_correctMean — the perturbation test, sharp: the same configuration satisfies the predicate at every constant once the answer is right).

                                      theorem ReflectiveSubsystems.chi_pairObs_lagK {k : ℕ} (hk : 0 < k) (a : ℕ) (ξ : ℕ → Bool) (t : ℕ) :
                                      chi (pairObs k a (a + k) ξ t) = zeta (ξ (t + a + k))

                                      The same-class pair character is the noise character. At lag exactly k the chain's recursion o_{u+k} = ¬o_u ⊕ ξ_{u+k} makes the two observations xor to the complement of one noise bit, so the pair character is that bit's character outright — the character of a single independent coordinate, not of a walk.

                                      theorem ReflectiveSubsystems.chi_pairObs_lag_mul {k : ℕ} (hk : 0 < k) (a d : ℕ) (ξ : ℕ → Bool) (t : ℕ) :
                                      chi (pairObs k a (a + k * d) ξ t) = ∏ i ∈ Finset.range d, zeta (ξ (t + a + k * (i + 1)))

                                      The same-class pair character at lag k·d. pairObs at offsets (a, a + k·d) is, by definition, the xor of two same-class observations d class-steps apart; obs_xor_obs_add_mul rewrites that xor as the noise parity over the d intervening class positions, and chi_par turns its character into a product of the d noise characters at those positions. chi_pairObs_lagK is this theorem at d = 1.

                                      noncomputable def ReflectiveSubsystems.samePairMean (ψ : Bool → Bool → ℝ) (m : ℝ) :

                                      The stationary answer to a same-class two-offset query at lag k.

                                      For offsets in distinct residue classes the two observations are independent and uniform under the stationary window law, and the answer is the flat pairMean ψ. Inside one class at lag k they are not: their pair character is the noise character itself, of mean m, so the answer is displaced by pairCoefAB ψ · m. This is where the noise rate lives for the same-class class — in the answer, not in the constant.

                                      Equations
                                      Instances For
                                        noncomputable def ReflectiveSubsystems.samePairConst (k : ℕ) :

                                        The same-class two-offset mixing constant: 48·k, carrying no dependence on the noise rate — the same shape as the coordinate constant 4k of mixingHoeffding_noisyWindowChain, and for the same reason (there is nothing persistent whose gap must be divided by).

                                        Equations
                                        Instances For
                                          theorem ReflectiveSubsystems.abs_samePairMean_sub {ψ : Bool → Bool → ℝ} (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) (m m' : ℝ) :

                                          The answer displacement is at most the mean's own displacement. This is the inequality [SQ] §3.1's window-noise budget consumes: moving the noise character's mean by 2η moves the same-class answer by at most 2η, met with equality at ψ = pairChar.

                                          The guard, written first: at the flat answer the predicate fails #

                                          The cross-class guard refutes the predicate at zero noise, where the pair freezes. The same-class pair does not freeze at zero noise — it is deterministic and correct there — so the guard that bites here is a different one: the wrong answer. At the pinned configuration below the noise character's mean is m = -1 and the same-class pair character sits at -1 forever, while the flat answer pairMean pairChar is 0. So the predicate at the flat answer is refutable at every positive constant, and the design claim it tests — that the noise rate moved out of the constant and into the answer — is a theorem rather than a reading of the proof.

                                          The wrong-mean refutation. At window length 3, the same-class offsets (0, 3) and the pinned noise word — a Dirac trajectory law whose noise character has mean m = -1 — the two-offset predicate at the FLAT answer pairMean ψ is refutable at every positive constant.

                                          Contrast not_mixingHoeffding_noisyWindowChain_pair_frozen, whose content is that no constant covers the cross-class pair at zero noise. Here the constant is not at fault at all: the same configuration satisfies the predicate at every constant once the answer is the displaced samePairMean (mixingHoeffding_frozen_samePair_correctMean). What fails is the flat answer, so this theorem says exactly that the same-class noise dependence lives in the answer.

                                          The perturbation test, sharp. The very configuration the wrong-mean guard refutes satisfies the predicate at the correct answer samePairMean pairChar (-1) = -1 — at every constant, the deviation being identically zero. So the guard above is about the answer and nothing else.

                                          The two tails, and the capstone #

                                          theorem ReflectiveSubsystems.mixingHoeffding_noisyWindowChain_pair_lagK {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {m : ℝ} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) (hmean : ∀ (u : ℕ), ∫ (ω : Ω), zeta (ξ (u + k) ω) ∂P = m) (hm0 : -1 ≤ m) (hm : m ≤ 0) (a : ℕ) (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) :

                                          E1 for the same-class two-offset query class. The noisy window chain of window length k ≥ 1, at EVERY noise rate, satisfies the FJS-shaped single-orbit Hoeffding hypothesis at the explicit constant samePairConst k = 48k for every query reading two observations at offsets (a, a + k) — the same residue class, at the chain's own lag — with a [−1, 1]-valued observable.

                                          This is the query the witness's learner schedules against the true literal: the rule's own coordinate read against the label it predicts ([SQ] §3.1). Two things distinguish it from mixingHoeffding_noisyWindowChain_pair, and they are the same thing seen twice.

                                          The constant carries no noise rate, and the hypothesis 0 < η is gone with it: -1 ≤ m ≤ 0 is all that is asked, exactly as in the coordinate theorem. The reason is chi_pairObs_lagK — at this lag the pair character is a single noise character, an i.i.d. sequence, so the persistent walk that forced pairConst k η = O(k/η) is simply not present.

                                          The answer carries it instead. An i.i.d. pair character has mean m, so the stationary answer is samePairMean ψ m, displaced from the flat pairMean ψ by pairCoefAB ψ · m. That is not slack: not_mixingHoeffding_noisyWindowChain_samePair_flatMean refutes the predicate at the flat answer at every positive constant, on a law this theorem covers at the displaced one. And abs_samePairMean_sub prices the displacement at exactly [SQ] §3.1's own budget — writing m = 2η − 1, the noisy answer sits within 2η of the noiseless rule's answer.

                                          The mixing constant at same-class lag k·d #

                                          chi_pairObs_lagK's pair character is a single noise character; at the general lag k·d, chi_pairObs_lag_mul makes it a product of d noise characters. Two query times t, t′ share a noise bit in that product iff t ≡ t′ [MOD k] and |t − t′| < k·d, so the query splits into k·d subsequences: k residue classes mod k, genuinely independent of one another (the same decomposition indepFun_residueClass already uses); and, inside one class, a further split by index mod d removes the remaining overlap, since two steps of the same class at distance ≥ d read disjoint windows. The k classes combine at no cost (HasSubgaussianMGF.add_of_indepFun, additive in the parameter); the d phases inside one class do not avoid overlap with each other, so they combine via HasSubgaussianMGF.add (no independence needed, quadratic in the parameter). That asymmetry is why the constant below is linear in k but quadratic in d.

                                          noncomputable def ReflectiveSubsystems.samePairMeanMul (ψ : Bool → Bool → ℝ) (m : ℝ) (d : ℕ) :

                                          The stationary answer to a same-class two-offset query at lag k·d: samePairMean at the noise character's mean raised to the d-th power, chi_pairObs_lag_mul's own mean.

                                          Equations
                                          Instances For
                                            noncomputable def ReflectiveSubsystems.samePairConstMul (k d : ℕ) :

                                            The same-class lag-k·d mixing constant. Linear in the window length k — the same boundary-allowance source as samePairConst's own 48·k — and quadratic in the interleave depth d, from combining d pairwise-overlapping phases without independence (HasSubgaussianMGF.add). At d = 1 the quadratic factor vanishes and this is exactly samePairConst k (samePairConstMul_one), which is the constant the commissioning design record asked for; landing on d² rather than d for d ≥ 2 is the finding this file reports (see the module boundary note at mixingHoeffding_noisyWindowChain_pair_lag_mul), not a claim d² is optimal.

                                            Equations
                                            Instances For

                                              The k·d-way split: residue class r < k, phase q < d, step w #

                                              Class r's own times are r, r + k, r + 2k, …; phase q further selects the steps ≡ q [MOD d], so phaseTime below is exactly the arithmetic progression with common difference k·d starting at r + k·q — the residue-(r + k·q) class modulo k·d. Two steps w ≠ w' of one (r, q) phase sit ≥ k·d apart, past the width-k·d window chi_pairObs_lag_mul reads, so their windows (phaseBlock) are disjoint: this is the same arithmetic eq_of_block_index already proves for the cross-class blocking, reused here at the single-track window instead of the two-track one.

                                              The k classes, combined at no cost: they are genuinely independent #

                                              Every noise index phaseBlock k a d r q w reads is ≡ r + a [MOD k], regardless of q, w. So class r's whole partial sum is a reading of the single residue set {i | i % k = (r + a) % k}, and distinct classes r ≠ r' read disjoint residue sets — the same fact indepFun_residueClass already uses, at the level of one scalar sum rather than a whole trajectory. That lets the k classes combine via HasSubgaussianMGF.add_of_indepFun, additive in the parameter: no cost, unlike the d-phase combination above.

                                              The reindexing: range n regrouped by residue mod k·d #

                                              Every t < n has a UNIQUE representation t = phaseTime k d (t % k) ((t / k) % d) (t / (k · d)) — the standard mixed-radix split of t into a class, a phase, and a step. So range n and the filtered triples {(r, q, w) : r < k, q < d, w < n, phaseTime k d r q w < n} are in bijection, and regrouping the pair-character sum along it — with paddedPhaseChar's padding absorbing the triples whose phaseTime overshoots n — turns the single sum over range n into the triple sum hasSubgaussianMGF_sum_classes already bounds.

                                              theorem ReflectiveSubsystems.mixingHoeffding_noisyWindowChain_pair_lag_mul {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {m : ℝ} {k d : ℕ} (hk : 1 ≤ k) (hd : 1 ≤ d) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) (hmean : ∀ (u : ℕ), ∫ (ω : Ω), zeta (ξ (u + k) ω) ∂P = m) (hm0 : -1 ≤ m) (hm : m ≤ 0) (a : ℕ) (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) :

                                              E1 for the same-class two-offset query class, at the general interleave lag k·d. The noisy window chain of window length k ≥ 1, at EVERY noise rate, satisfies the FJS-shaped single-orbit Hoeffding hypothesis for every query reading two observations at offsets (a, a+k·d) — the same residue class, d chain-steps apart — with a [-1, 1]-valued observable, at the constant samePairConstMul k d.

                                              At d = 1 this is exactly mixingHoeffding_noisyWindowChain_pair_lagK, which is re-derived from this theorem's d = 1 instance (mixingHoeffding_noisyWindowChain_pair_lagK_eq) rather than left standing on its own proof.

                                              Boundary. The constant is 48·k·d², quadratic in d rather than linear, and the reason is the shape of the k·d-way split: the k residue classes genuinely are mutually independent and combine in the sub-Gaussian parameter at no cost (hasSubgaussianMGF_sum_classes, HasSubgaussianMGF.add_of_indepFun), but the d phases inside one residue class are not — two phases can and do share a noise bit — so combining them (hasSubgaussianMGF_classSum) goes through HasSubgaussianMGF.add, whose parameter is quadratic, not linear, in the number of pieces. A tight O(k·d) bound would need a variance-additive argument for the d-way combination as well, and the phases being pairwise dependent, it is not immediate that one exists; this file does not attempt it. Nothing downstream turns on the difference: a larger mixing constant costs only a longer horizon ([SQ] §3.3's sample threshold is linear in c).

                                              theorem ReflectiveSubsystems.mixingHoeffding_noisyWindowChain_pair_lag_mul_one {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {ξ : ℕ → Ω → Bool} {m : ℝ} {k : ℕ} (hk : 1 ≤ k) (hmeas : ∀ (i : ℕ), Measurable (ξ i)) (hindep : ProbabilityTheory.iIndepFun ξ P) (hmean : ∀ (u : ℕ), ∫ (ω : Ω), zeta (ξ (u + k) ω) ∂P = m) (hm0 : -1 ≤ m) (hm : m ≤ 0) (a : ℕ) (ψ : Bool → Bool → ℝ) (hψ : ∀ (u v : Bool), |ψ u v| ≤ 1) :

                                              The d = 1 reduction, checked. Specializing mixingHoeffding_noisyWindowChain_pair_lag_mul at d = 1 gives exactly mixingHoeffding_noisyWindowChain_pair_lagK's own conclusion: the constant matches on the nose (samePairConstMul k 1 = samePairConst k, samePairConstMul_one), not merely up to an inequality. Left as a check rather than a re-derivation of that theorem's own proof — mixingHoeffding_noisyWindowChain_pair_lagK precedes the k·d-way machinery in this file, so retargeting it through this theorem would need reordering it after the whole SamePairLagMul section, a restructuring this file does not make for its own sake.

                                              Axiom audit #

                                              The window-map order fact, the stationarity equation, the independence decomposition, the derived mixing constant and its vacuity guard are all #print axioms-clean on the standard triple, and the guards below make that build-enforced.