prioritized_borel_padding_nonzero_frequently
Inserting L minus one occurrences of the lowest priority between successive priorities preserves which nonzero priorities occur infinitely often, for every positive block length L.
Statement
theorem prioritized_borel_padding_nonzero_frequently (L : ℕ) (hL : 0 < L) (f : ℕ → Fin 3) (p : Fin 3) (hp : p ≠ 0) : (Filter.Frequently (fun n => (if n % L = 0 then f (n / L) else 0) = p) Filter.atTop) ↔ Filter.Frequently (fun n => f n = p) Filter.atTop
- Source
- Padding step for the state-history encoding route for arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The proof characterizes occurring frequently along Filter.atTop as having arbitrarily large index witnesses. In the forward direction, any witness m ≥ N * L where the padded sequence equals the nonzero priority p must be a multiple of L, which produces a witness m / L ≥ N for f. In the reverse direction, an index m ≥ N with f m = p scales up to m * L ≥ N, where the padded sequence evaluates directly to f m = p.
The equivalence reduces to showing that arbitrarily large indices attaining value p can be transferred between the padded sequence and f.
Rewriting both sides with Filter.frequently_atTop translates the filter statement into standard unboundedness: a property holds frequently along Filter.atTop on ℕ if and only if for every bound a, there is some index b ≥ a satisfying it. Splitting the bi-implication yields two separate directions to prove.
uses
Filter.frequently_atToprw [Filter.frequently_atTop, Filter.frequently_atTop] constructor
If the padded sequence takes value p infinitely often, then so does f.
Given any lower bound N, applying the assumption to N * L yields an index m ≥ N * L where the padded sequence equals p. By case analysis on whether m is divisible by L, the non-divisible branch implies 0 = p, which contradicts p ≠ 0 and is eliminated via False.elim. Hence m is divisible by L, giving f (m / L) = p, and Nat.le_div_iff_mul_le ensures N ≤ m / L, so m / L is the required witness.
uses
Nat.le_div_iff_mul_le,False.elim· 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)
If f takes value p infinitely often, then so does the padded sequence.
Given any lower bound N, the assumption provides an index m ≥ N with f m = p. Choosing m * L as the index for the padded sequence, we have N ≤ m * L by transitivity (le_trans) together with Nat.le_mul_of_pos_right since L > 0. The padded sequence at m * L evaluates to f m = p because m * L % L = 0 by Nat.mul_mod_right and (m * L) / L = m by Nat.mul_div_cancel.
uses
le_trans,Nat.le_mul_of_pos_right,Nat.mul_mod_right,Nat.mul_div_cancel· intro h N obtain ⟨m, hm, hmval⟩ := h N refine ⟨m * L, ?_, ?_⟩ · exact le_trans hm (Nat.le_mul_of_pos_right _ hL) · simpa [Nat.mul_mod_right, Nat.mul_div_cancel _ hL] using hmval
Filter.frequently_atTop- A property holds frequently along the atTop filter on a directed preorder if and only if for every lower bound a, there exists some b ≥ a satisfying the property.
Nat.le_div_iff_mul_le- For positive k, a division inequality x ≤ y / k is equivalent to the multiplication inequality x * k ≤ y.
False.elim- The principle of explosion: from False, any proposition follows.
le_trans- Inequality in a preorder is transitive: a ≤ b and b ≤ c imply a ≤ c.
Nat.le_mul_of_pos_right- Multiplying any natural number n by a positive natural number yields a result at least n.
Nat.mul_mod_right- For all natural numbers m and n, the remainder of m * n modulo m is 0.
Nat.mul_div_cancel- For any positive divisor n, (m * n) / n = m.
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_nonzero_frequently (L : ℕ) (hL : 0 < L) (f : ℕ → Fin 3) (p : Fin 3) (hp : p ≠ 0) : (Filter.Frequently (fun n => (if n % L = 0 then f (n / L) else 0) = p) Filter.atTop) ↔ Filter.Frequently (fun n => f n = p) Filter.atTop := by 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 ⟨m * L, ?_, ?_⟩ · exact le_trans hm (Nat.le_mul_of_pos_right _ hL) · simpa [Nat.mul_mod_right, Nat.mul_div_cancel _ hL] using hmval