prioritized_borel_padding_offset_nonzero_frequently
When each original priority is placed at the fixed offset r inside a length L block and all other positions contain zero, any nonzero priority occurs infinitely often exactly when it did before padding, provided r is less than L.
Statement
theorem prioritized_borel_padding_offset_nonzero_frequently (L r : ℕ) (hr : r < L) (f : ℕ → Fin 3) (p : Fin 3) (hp : p ≠ 0) : (Filter.Frequently (fun n => (if n % L = r then f (n / L) else 0) = p) Filter.atTop) ↔ Filter.Frequently (fun n => f n = p) Filter.atTop
- Source
- Priority padding for the state-history reduction of arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- prioritized_borel_padding_offset_max_priorityFor any three-priority sequence and fixed offset r within blocks of positive length L, replacing each value by a block with that value at…
The proof, explained
The proof unfolds the filter statement 'frequently at infinity' into the cofinality condition that arbitrarily large indices satisfy the property. In the forward direction, any occurrence of p in the padded sequence cannot fall on an unpadded position because p ≠ 0, so it must fall at offset r within some block, yielding an occurrence in the original sequence at or beyond N. In the reverse direction, an occurrence of p at index m in the original sequence maps to index r + m * L in the padded sequence, which is at least N and evaluates to f m = p because r < L.
L is positive, and the statement reduces to showing that both sequences attain p at arbitrarily large indices.
Since r < L, L is strictly positive (verified by linear arithmetic). Applying Filter.frequently_atTop to both sides converts the filter statements into the condition that for every threshold N, there exists an index at least N where the sequence equals p. The goal is then split into the two directions of the equivalence.
uses
Filter.frequently_atTophave hL : 0 < L := by omega rw [Filter.frequently_atTop, Filter.frequently_atTop] constructor
In the forward direction, given a bound N, there is an index m ≥ N * L where the padded sequence equals p.
Assuming the padded sequence achieves value p frequently, we instantiate this hypothesis with the threshold N * L to obtain an index m ≥ N * L at which the padded sequence takes the value p.
· intro h N obtain ⟨m, hm, hmval⟩ := h (N * L)
The block index m / L satisfies N ≤ m / L and f (m / L) = p.
By definition of the padding, the value at m is f (m / L) if m % L = r, and 0 otherwise. If m % L ≠ r, the value is 0, which contradicts p ≠ 0 (False.elim). Hence m % L = r, which means f (m / L) = p. Moreover, because m ≥ N * L and L > 0, division preserves the inequality, giving m / L ≥ N. Thus m / L is the required witness in the original sequence.
uses
Nat.le_div_iff_mul_le,False.elimsplit_ifs at hmval with hz · have hdiv : N ≤ m / L := (Nat.le_div_iff_mul_le hL).2 hm exact ⟨m / L, hdiv, hmval⟩ · exact False.elim (hp hmval.symm)
In the reverse direction, given N, there is an index m ≥ N such that f m = p.
Assuming f achieves value p frequently, we apply this hypothesis to N to obtain an index m ≥ N where f m = p.
· intro h N obtain ⟨m, hm, hmval⟩ := h N
The padded position r + m * L is at least N.
We propose r + m * L as the index in the padded sequence. By transitivity, since N ≤ m, m ≤ m * L (using L > 0), and m * L ≤ r + m * L, it follows that N ≤ r + m * L.
uses
le_trans,Nat.le_mul_of_pos_right,Nat.le_add_leftrefine ⟨r + m * L, ?_, ?_⟩ · exact le_trans hm (le_trans (Nat.le_mul_of_pos_right _ hL) (Nat.le_add_left _ _))
The padded sequence evaluates to p at position r + m * L.
Since r < L, dividing r + m * L by L yields quotient m and remainder r. Therefore, the padding condition (r + m * L) % L = r holds, and the value is f ((r + m * L) / L) = f m = p.
uses
Nat.mod_eq_of_lt,Nat.div_eq_of_lt,Nat.add_mul_div_right· simpa [Nat.mod_eq_of_lt hr, Nat.div_eq_of_lt hr, Nat.add_mul_div_right _ _ hL] using hmval
Filter.frequently_atTop- A predicate holds frequently with respect to the `atTop` filter on a directed preorder if and only if for every bound a, there exists b ≥ a satisfying the predicate.
Nat.le_div_iff_mul_le- For positive k, x ≤ y / k if and only if x * k ≤ y.
False.elim- From a contradiction (a proof of False), any proposition follows.
le_trans- Transitivity of inequality: if a ≤ b and b ≤ c, then a ≤ c.
Nat.le_mul_of_pos_right- For a positive natural number m, n ≤ n * m.
Nat.le_add_left- For any natural numbers n and m, n ≤ m + n.
Nat.mod_eq_of_lt- If a < b, then a % b = a.
Nat.div_eq_of_lt- If a < b, then integer division a / b equals 0.
Nat.add_mul_div_right- For positive z, (x + y * z) / z = x / z + y.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem prioritized_borel_padding_offset_nonzero_frequently (L r : ℕ) (hr : r < L) (f : ℕ → Fin 3) (p : Fin 3) (hp : p ≠ 0) : (Filter.Frequently (fun n => (if n % L = r then f (n / L) else 0) = p) Filter.atTop) ↔ Filter.Frequently (fun n => f n = p) Filter.atTop := by have hL : 0 < L := by omega rw [Filter.frequently_atTop, Filter.frequently_atTop] constructor · intro h N obtain ⟨m, hm, hmval⟩ := h (N * L) split_ifs at hmval with hz · have hdiv : N ≤ m / L := (Nat.le_div_iff_mul_le hL).2 hm exact ⟨m / L, hdiv, hmval⟩ · exact False.elim (hp hmval.symm) · intro h N obtain ⟨m, hm, hmval⟩ := h N refine ⟨r + m * L, ?_, ?_⟩ · exact le_trans hm (le_trans (Nat.le_mul_of_pos_right _ hL) (Nat.le_add_left _ _)) · simpa [Nat.mod_eq_of_lt hr, Nat.div_eq_of_lt hr, Nat.add_mul_div_right _ _ hL] using hmval