Garrison–Seiler–Knowles Conjecture 5.2 proved
every weakly consecutive sequence begins or ends with 1 (Lean 4)
PDF built from iis-2611-00347.tex sha256 5470e69d7c50… by the site's TeX builder, 2026-11-28 20:21 UTC.
We prove Conjecture 5.2 of Garrison, Seiler, and Knowles (arXiv:2401.09497v1): every weakly consecutive permutation sigma of {1, ..., k} satisfies sigma(1) = 1 or sigma(k) = 1 for all k ≥ 1. Using a residue-class characterization and Chinese Remainder Theorem GCD representation sigma(i) = gcd(a + i, lcm(1, ..., k)), even k follows immediately from parity at m = k/2 + 1, while for odd k an assumed counterexample with 3 ≤ A = sigma(1) < B = sigma(k) pins a modulo the exact 2-power 2s dividing BR + 1 and yields u distinct multiples of 2s A inside [k] < u * 2s A, a contradiction. The proof is
A weakly consecutive sequence shuffles the numbers 1 through k so that divisibility patterns line up whenever positions are spaced apart by a divisor. We prove that every such shuffle must place the number 1 at either the very start or the very end, for all lengths k, and verify the complete proof in Lean 4.
4 numbered results: 1 checked in Lean, 3 that name no Lean theorem, so we cannot tell which the receipt covers.
- Theorem 1Garrison–Seiler–Knowles Conjecture 5.2✓ Lean
- Lemma 1Reversalno Lean name given
- Lemma 2Residue-class characterization; cf. Lemma 2.1 of `arXiv:2401.09497v1`no Lean name given
- Lemma 3GCD representationno Lean name given
- garrison_verify.py sha256 52dfad3f3421…
- garrison_check_independent.py sha256 c677c96bae6c…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
Overview and Main Results
We prove Conjecture 5.2 (conj:1 at end) of Thomas Garrison, Chris Seiler, and Andrew Knowles, "Weakly Consecutive Sequences" (arXiv:2401.09497v1, Section 5), for every integer \(k \ge 1\), and formalize the complete proof in Lean 4 + Mathlib (v4.36.0, zero sorry, standard axioms only).
Theorem 1 (Garrison–Seiler–Knowles Conjecture 5.2, OpenMath.Garrison240109497Conj52.garrison_conjecture_5_2). ✓ Lean
Let \(k \ge 1\) and let \(\sigma : [k] \to [k]\) be a weakly consecutive sequence (WCS), i.e., a permutation such that for all \(i, j \in [k]\) and all integers \(m\), \(m \mid \sigma(i)\) and \(m \mid (i - j)\) imply \(m \mid \sigma(j)\). Then \(\sigma(1) = 1\) or \(\sigma(k) = 1\).
Lean statement · garrison_conjecture_5_2
∀ {k : ℕ},1 ≤ k → ∀ {σ : ℕ → ℕ}, OpenMath.Garrison240109497Conj52.IsWeaklyConsecutive k σ → σ 1 = 1 ∨ σ k = 1In the Lean panel → · proof map →
Lean statement · garrison_conjecture_5_2_perm
∀ {k : ℕ} (hk : 1 ≤ k) (σ : Equiv.Perm (Fin k)),OpenMath.Garrison240109497Conj52.IsWeaklyConsecutivePerm σ → ↑(σ ⟨0, ⋯⟩) = 0 ∨ ↑(σ ⟨k - 1, ⋯⟩) = 0In the Lean panel → · proof map →
Lean statement · wcs_gcd_repr
∀ {k : ℕ} {σ : ℕ → ℕ},1 ≤ k →OpenMath.Garrison240109497Conj52.IsWeaklyConsecutive k σ →∃ a,(∀ i ∈ Set.Icc 1 k, σ i = (a + i).gcd (OpenMath.Garrison240109497Conj52.lcmIcc k)) ∧∀ i ∈ Set.Icc 1 k, ∀ m ∈ Set.Icc 1 k, m ∣ σ i ↔ m ∣ a + iIn the Lean panel → · proof map →
OpenMath.Garrison240109497Conj52.garrison_conjecture_5_2: 1-based bijection formulation (Set.BijOn σ (Set.Icc 1 k) (Set.Icc 1 k)).OpenMath.Garrison240109497Conj52.garrison_conjecture_5_2_perm: equivalentEquiv.Perm (Fin k)formulation.OpenMath.Garrison240109497Conj52.wcs_gcd_repr: GCD representation \(\sigma(i) = \gcd(a + i, \mathrm{lcm}(1, \dots, k))\) for every WCS.
Proof of Garrison–Seiler–Knowles (arXiv:2401.09497v1) Conjecture 5.2
Theorem
Let \(k \ge 1\) be a natural number and let \([k] = \{1, 2, \dots, k\}\). Following Definition 1.1 (\label{def:weak_consec}) of Thomas Garrison, Chris Seiler, and Andrew Knowles, "Weakly Consecutive Sequences" (arXiv:2401.09497v1, Section 1), a permutation \(\sigma : [k] \to [k]\) is weakly consecutive (a WCS) if for all \(i, j \in [k]\) and all integers \(m\),$$m \mid \sigma(i) \text{ and } m \mid (i - j) \implies m \mid \sigma(j).$$Then Conjecture 5.2 (\label{conj:1 at end}, Section 5) holds for every \(k \ge 1\):$$\sigma(1) = 1 \quad \text{or} \quad \sigma(k) = 1.$$
Proof
For \(k = 1\), \(\sigma(1) = 1\) holds trivially. For \(k = 2\), the only permutations of \([2]\) are \((1, 2)\) and \((2, 1)\), both of which satisfy \(\sigma(1) = 1\) or \(\sigma(2) = 1\). Assume henceforth that \(k \ge 3\).
1. Reversal, residue-class characterization, and the GCD representation
We collect three elementary properties of any WCS \(\sigma : [k] \to [k]\).
Lemma 1 (Reversal). no Lean name given The reversed permutation \(\sigma^{\mathrm{rev}}(i) := \sigma(k + 1 - i)\) is also a WCS, and satisfies \(\sigma^{\mathrm{rev}}(1) = \sigma(k)\) and \(\sigma^{\mathrm{rev}}(k) = \sigma(1)\).
Proof. If \(m \mid \sigma^{\mathrm{rev}}(i) = \sigma(k+1-i)\) and \(m \mid (i - j)\), then \(m \mid \bigl((k+1-i) - (k+1-j)\bigr) = -(i - j)\), so weak consecutiveness of \(\sigma\) yields \(m \mid \sigma(k+1-j) = \sigma^{\mathrm{rev}}(j)\). \(\square\)
Lemma 2 (Residue-class characterization; cf. Lemma 2.1 of arXiv:2401.09497v1). no Lean name given For every \(m \in [k]\), let \(S_m^\sigma := \{i \in [k] : i \equiv \sigma^{-1}(m) \pmod m\}\) and \(T_m^\sigma := \{i \in [k] : m \mid \sigma(i)\}\), and let \(c_m \in \{1, 2, \dots, m\}\) be the unique integer in \(\{1, \dots, m\}\) with \(c_m \equiv \sigma^{-1}(m) \pmod m\). Then \(S_m^\sigma = T_m^\sigma\), \(|S_m^\sigma| = |T_m^\sigma| = \lfloor k/m \rfloor\), and \(c_m > k \bmod m\) (where \(k \bmod m \in \{0, 1, \dots, m-1\}\) denotes the remainder of \(k\) upon division by \(m\)).
Proof. Because \(\sigma : [k] \to [k]\) is a bijection, \(T_m^\sigma\) is the preimage of the set of multiples of \(m\) in \([k]\), so \(|T_m^\sigma| = \lfloor k/m \rfloor\). For any \(i \in S_m^\sigma\), setting \(j = \sigma^{-1}(m)\) gives \(m \mid \sigma(j) = m\) and \(m \mid (j - i)\), so weak consecutiveness yields \(m \mid \sigma(i)\), i.e., \(S_m^\sigma \subseteq T_m^\sigma\). Write \(k = q m + r\) with \(q = \lfloor k/m \rfloor\) and \(r = k \bmod m \in \{0, \dots, m-1\}\). The elements of \(S_m^\sigma\) are the numbers \(c_m + t m\) (\(t \ge 0\)) not exceeding \(q m + r\); this holds for all \(t \in \{0, 1, \dots, q-1\}\) (since \(c_m + (q-1)m \le q m \le k\)), and additionally for \(t = q\) if and only if \(c_m \le r\). Thus \(|S_m^\sigma| = q\) if \(c_m > r\) and \(|S_m^\sigma| = q + 1\) if \(c_m \le r\). Since \(S_m^\sigma \subseteq T_m^\sigma\) and \(|T_m^\sigma| = q\), we must have \(c_m > r = k \bmod m\), \(|S_m^\sigma| = q = |T_m^\sigma|\), and hence \(S_m^\sigma = T_m^\sigma\). \(\square\)
Lemma 3 (GCD representation). no Lean name given Let \(L_k := \mathrm{lcm}(1, 2, \dots, k)\). For any WCS \(\sigma : [k] \to [k]\), there exists an integer \(a \in \{0, 1, \dots, L_k - 1\}\) such that$$\sigma(i) = \gcd(a + i, L_k) \qquad \text{for all } i \in [k],$$and for every \(m \in [k]\), \(m \mid \sigma(i) \iff m \mid (a + i)\).
Proof. Factor \(L_k = \prod_{p \le k} p^{e_p}\), where for each prime \(p \le k\) we have \(p^{e_p} \le k < p^{e_p + 1}\). By the Chinese Remainder Theorem, there is a unique \(a \in \{0, 1, \dots, L_k - 1\}\) satisfying$$a \equiv -c_{p^{e_p}} \pmod{p^{e_p}} \qquad \text{for every prime } p \le k.$$Fix any prime power \(p^e \le k\) (\(1 \le e \le e_p\)), and put \(i_0 := \sigma^{-1}(p^{e_p}) \in [k]\). Then \(p^e \mid p^{e_p} = \sigma(i_0)\), so Lemma 2 gives \(i_0 \in T_{p^e}^\sigma = S_{p^e}^\sigma\) and \(i_0 \in T_{p^{e_p}}^\sigma = S_{p^{e_p}}^\sigma\), whence$$c_{p^e} \equiv i_0 \equiv c_{p^{e_p}} \equiv -a \pmod{p^e}.$$Hence, for every \(i \in [k]\) and every prime power \(p^e \le k\),$$p^e \mid \sigma(i) \iff i \in T_{p^e}^\sigma = S_{p^e}^\sigma \iff i \equiv c_{p^e} \equiv -a \pmod{p^e} \iff p^e \mid (a + i).$$Now fix \(i \in [k]\) (note \(a + i \ge 1\)). For any prime \(p\) and exponent \(e \ge 1\):
- if \(p^e \mid \sigma(i)\), then \(p^e \le \sigma(i) \le k\), so \(p^e \mid L_k\) and \(p^e \mid (a + i)\), hence \(p^e \mid \gcd(a + i, L_k)\);
- conversely, if \(p^e \mid \gcd(a + i, L_k)\), then \(p^e \mid L_k\) implies \(p^e \le p^{e_p} \le k\), and \(p^e \mid (a + i)\) then implies \(p^e \mid \sigma(i)\).
Thus \(\sigma(i)\) and \(\gcd(a + i, L_k)\) have identical \(p\)-adic valuations for every prime \(p\), so \(\sigma(i) = \gcd(a + i, L_k)\). Finally, for any \(m \in [k]\), we have \(m \mid L_k\), so \(m \mid \sigma(i) \iff m \mid \gcd(a + i, L_k) \iff m \mid (a + i)\). \(\square\)
2. Case 1: \(k \ge 4\) is even
Let \(k \ge 4\) be even, and let \(\sigma : [k] \to [k]\) be a WCS. By Lemma 2 for \(m = 2\), \(c_2 \in \{1, 2\}\) satisfies \(2 \mid \sigma(i) \iff i \equiv c_2 \pmod 2\). Under reversal \(\sigma^{\mathrm{rev}}(i) = \sigma(k + 1 - i)\), since \(k\) is even, \(k + 1 - c_2 \equiv 1 - c_2 \pmod 2\) flips parity. Replacing \(\sigma\) by \(\sigma^{\mathrm{rev}}\) if necessary (Lemma 1), we may assume \(c_2 = 2\), so that \(\sigma(i) \equiv i \pmod 2\) for every \(i \in [k]\).
Consider \(m := \frac{k}{2} + 1\). Since \(k \ge 4\), we have \(\frac{k}{2} < m < k\), so \(\lfloor k/m \rfloor = 1\) and \(k \bmod m = k - m = \frac{k}{2} - 1\). Setting \(j := \sigma^{-1}(m)\), Lemma 2 gives \(|S_m^\sigma| = 1\) (so \(j = c_m\)) and$$\frac{k}{2} = (k \bmod m) + 1 \le j \le m = \frac{k}{2} + 1.$$Because \(\sigma(j) = m = \frac{k}{2} + 1\) has the same parity as \(j\), while \(\frac{k}{2}\) and \(\frac{k}{2} + 1\) have opposite parities, we must have \(j = \frac{k}{2} + 1\), i.e., \(\sigma\!\left(\frac{k}{2} + 1\right) = \frac{k}{2} + 1\).
Now set \(A := \sigma(1)\) and suppose for contradiction that \(A > 1\). Since \(1 \in T_A^\sigma = S_A^\sigma\), we have \(c_A = 1\); by Lemma 2, \(1 = c_A > k \bmod A \ge 0\), forcing \(k \bmod A = 0\), i.e., \(A \mid k\). Also \(A = \sigma(1) \equiv 1 \pmod 2\), so \(A\) is odd. Together with \(2 \mid k\) and \(A \mid k\), this implies \(A \mid \frac{k}{2}\). Since \(A \mid \sigma(1)\) and \(A \mid \left(\left(\frac{k}{2} + 1\right) - 1\right)\), weak consecutiveness gives$$A \;\Big|\; \sigma\!\left(\frac{k}{2} + 1\right) = \frac{k}{2} + 1.$$Combining \(A \mid \frac{k}{2}\) and \(A \mid \left(\frac{k}{2} + 1\right)\) gives \(A \mid 1\), contradicting \(A > 1\). Thus \(\sigma(1) = 1\), so the original sequence satisfied \(\sigma(1) = 1\) or \(\sigma(k) = 1\).
3. Case 2: \(k \ge 3\) is odd
Suppose for contradiction that \(k \ge 3\) is odd and \(\sigma : [k] \to [k]\) is a WCS with \(\sigma(1) > 1\) and \(\sigma(k) > 1\).
Step 1 (Endpoint divisors and normalization).
Apply Lemma 3 to \(\sigma\) to obtain \(a \in \{0, 1, \dots, L_k - 1\}\) with \(\sigma(i) = \gcd(a + i, L_k)\) for all \(i \in [k]\).
- Parity: Since \(k\) is odd, \(k \bmod 2 = 1\). By Lemma 2, \(c_2 \in \{1, 2\}\) satisfies \(c_2 > 1\), so \(c_2 = 2\). Hence \(a \equiv -c_2 \equiv 0 \pmod 2\), and \(2 \mid \sigma(i) \iff 2 \mid i\) for all \(i \in [k]\). Because \(1\) and \(k\) are odd, both \(\sigma(1)\) and \(\sigma(k)\) are odd integers \(\ge 3\).
- Divisibility into \(k\) and coprimality: Since \(1 \in T_{\sigma(1)}^\sigma = S_{\sigma(1)}^\sigma\), we have \(c_{\sigma(1)} = 1 > k \bmod \sigma(1) \ge 0\), so \(\sigma(1) \mid k\) and \(\sigma(1) \mid (a + 1)\). Similarly, \(k \in T_{\sigma(k)}^\sigma = S_{\sigma(k)}^\sigma\) implies \(k \equiv c_{\sigma(k)} \pmod{\sigma(k)}\); if \(r := k \bmod \sigma(k)\) were positive, then \(c_{\sigma(k)} = r\), contradicting \(c_{\sigma(k)} > r\) (Lemma 2). Hence \(\sigma(k) \mid k\), and since \(\sigma(k) \mid (a + k)\), we obtain \(\sigma(k) \mid a\). Any common divisor \(d\) of \(\sigma(1)\) and \(\sigma(k)\) divides \((a + 1) - a = 1\), so \(\gcd(\sigma(1), \sigma(k)) = 1\).
In particular, since \(\sigma(1), \sigma(k) \ge 3\) are coprime, \(\sigma(1) \ne \sigma(k)\). Replacing \(\sigma\) by \(\sigma^{\mathrm{rev}}\) if necessary (Lemma 1, which preserves \(k\) being odd and swaps \(\sigma(1)\) and \(\sigma(k)\)) and taking its corresponding integer \(a \in \{0, 1, \dots, L_k - 1\}\) from Lemma 3, we may assume without loss of generality that$$A := \sigma(1) < \sigma(k) =: B.$$Summarizing what we now have for this normalized \(\sigma\) and \(a\):
- \(A\) and \(B\) are odd integers with \(3 \le A < B\) (so \(B \ge 5\)) and \(\gcd(A, B) = 1\);
- \(A B \mid k\), so \(k = A B R\) for an odd integer \(R \ge 1\) (whence \(B R \ge 5\) and \(k \ge 15\));
- \(2 \mid a\), \(a \equiv -1 \pmod A\), and \(B \mid a\).
Step 2 (Mid-range fixed congruence).
Consider$$m := \frac{k + A}{2} = A \cdot \frac{B R + 1}{2}.$$Because \(B\) and \(R\) are odd, \(\frac{B R + 1}{2}\) is an integer. Since \(k = A B R \ge 5 A > A > 0\), we have \(\frac{k}{2} < m < k\), so \(\lfloor k/m \rfloor = 1\) and \(k \bmod m = k - m = \frac{k - A}{2}\). Setting \(j := \sigma^{-1}(m)\), Lemma 2 gives \(j = c_m\) and$$\frac{k - A}{2} + 1 \le j \le \frac{k + A}{2}.$$Since \(A \mid m = \sigma(j)\), Lemma 2 gives \(j \in T_A^\sigma = S_A^\sigma\), so \(j \equiv 1 \pmod A\). The left endpoint \(\frac{k - A}{2} + 1 = A \cdot \frac{B R - 1}{2} + 1\) satisfies \(\frac{k - A}{2} + 1 \equiv 1 \pmod A\) (as \(B R\) is odd), and \(0 \le j - \left(\frac{k - A}{2} + 1\right) \le A - 1 < A\). Therefore$$j = \frac{k - A}{2} + 1 \qquad \text{and} \qquad \sigma\!\left(\frac{k - A}{2} + 1\right) = \frac{k + A}{2}.$$By Lemma 3, \(m = \frac{k + A}{2}\) divides \(a + j = a + \frac{k - A}{2} + 1\), hence divides \((a + j) - m = a + 1 - A\). Because \(\frac{B R + 1}{2}\) divides \(m = A \cdot \frac{B R + 1}{2}\), we obtain$$\frac{B R + 1}{2} \;\Big|\; (a + 1 - A). \tag{1}$$
Step 3 (Pinning \(a\) modulo the exact \(2\)-power dividing \(B R + 1\)).
Since \(B R\) is odd, \(B R + 1\) is even; write$$B R + 1 = 2^s u, \qquad s \ge 1, \quad u \ge 1 \text{ odd}.$$Consider the index$$i_1 := (A - 1) B R = k - B R.$$Since \(A \ge 3\) and \(B R \ge 5\), we have \(1 \le 2 B R \le i_1 < k\), so \(i_1 \in [k]\). Observe the exact identity$$a + i_1 = a + (A - 1) B R = (a + 1 - A) + (A - 1)(B R + 1). \tag{2}$$By (1), \(u \mid \frac{B R + 1}{2} \mid (a + 1 - A)\), and \(u \mid (B R + 1)\), so \(u \mid (a + i_1)\). Also \(B \mid a\) and \(B \mid i_1\), so \(B \mid (a + i_1)\).
We claim that \(2^s \nmid (a + i_1)\). Suppose to the contrary that \(2^s \mid (a + i_1)\). Since \(u\) is odd, \(\gcd(2^s, u) = 1\), so \(B R + 1 = 2^s u \mid (a + i_1)\). Since \(\gcd(B, B R + 1) = 1\), this yields \(B (B R + 1) \mid (a + i_1)\). Moreover, \(B < k\) and \(B R + 1 < 3 B R \le A B R = k\) (as \(B R \ge 5 > 1\) and \(A \ge 3\)), so both \(B\) and \(B R + 1\) divide \(L_k\); by coprimality, \(B (B R + 1) \mid L_k\). Lemma 3 then gives$$B (B R + 1) \;\Big|\; \gcd(a + i_1, L_k) = \sigma(i_1) \le k = A B R,$$forcing \(B R + 1 \le A R\), which contradicts \(A < B\). Thus \(2^s \nmid (a + i_1)\).
Because \(A\) is odd, \(2 \mid (A - 1)\), and since \(2^s \mid (B R + 1)\), we have \(2^{s + 1} \mid (A - 1)(B R + 1)\); in particular, \(2^s \mid (A - 1)(B R + 1)\).
- If \(s = 1\), then \(2 \mid a\) and \(2 \mid (A - 1)\) imply \(2 \mid (a + 1 - A)\), whence (2) gives \(2 \mid (a + i_1)\), contradicting \(2^s \nmid (a + i_1)\). Hence \(s \ge 2\).
- Combining \(2^s \mid (A - 1)(B R + 1)\) and \(2^s \nmid (a + i_1)\) in (2) gives \(2^s \nmid (a + 1 - A)\). On the other hand, (1) gives \(2^{s - 1} \mid \frac{B R + 1}{2} \mid (a + 1 - A)\). Therefore$$a + 1 - A \equiv 2^{s - 1} \pmod{2^s}, \qquad \text{i.e.,} \qquad a \equiv A - 1 + 2^{s - 1} \pmod{2^s}. \tag{3}$$
Step 4 (Counting multiples of \(2^s A\) — contradiction).
Because \(2^s \le 2^s u = B R + 1 < k\) and \(A < k\), both \(2^s\) and \(A\) divide \(L_k\); since \(A\) is odd, \(\gcd(2^s, A) = 1\), and therefore$$2^s A \;\Big|\; L_k.$$For each \(t \in \{0, 1, \dots, u - 1\}\), define$$i_t := (2^{s - 1} - 1) A + 1 + t \cdot 2^s A.$$Since \(s \ge 2\) and \(A \ge 3\), we have \(i_0 = (2^{s - 1} - 1) A + 1 \ge A + 1 \ge 4 \ge 1\), and \(i_0 < i_1 < \dots < i_{u - 1}\). Using \(2^s u = B R + 1\) and \(A B R = k\), the largest index is$$i_{u - 1} = \bigl((u - 1) 2^s + 2^{s - 1} - 1\bigr) A + 1 = \bigl(2^s u - 2^{s - 1} - 1\bigr) A + 1 = (B R - 2^{s - 1}) A + 1 = k - 2^{s - 1} A + 1 \le k - 5 < k,$$as \(2^{s - 1} A \ge 2 \cdot 3 = 6\). Thus \(i_0, i_1, \dots, i_{u - 1}\) are \(u\) distinct elements of \([k]\).
For every \(t \in \{0, 1, \dots, u - 1\}\):
- modulo \(A\): \(a \equiv -1 \pmod A\) and \(i_t \equiv 1 \pmod A\), so \(A \mid (a + i_t)\);
- modulo \(2^s\): since \(A\) is odd, \(2^{s - 1} A \equiv 2^{s - 1} \pmod{2^s}\), so \(i_t \equiv 2^{s - 1} A - A + 1 \equiv 2^{s - 1} - A + 1 \pmod{2^s}\); adding (3) gives$$a + i_t \equiv (A - 1 + 2^{s - 1}) + (2^{s - 1} - A + 1) = 2^s \equiv 0 \pmod{2^s}.$$
Since \(\gcd(2^s, A) = 1\), it follows that \(2^s A \mid (a + i_t)\), and since \(2^s A \mid L_k\), Lemma 3 implies$$2^s A \;\Big|\; \gcd(a + i_t, L_k) = \sigma(i_t) \qquad \text{for all } t \in \{0, 1, \dots, u - 1\}.$$Because \(\sigma : [k] \to [k]\) is injective, \(\sigma(i_0), \sigma(i_1), \dots, \sigma(i_{u - 1})\) are \(u\) distinct positive multiples of \(2^s A\) in \([k]\). However,$$k = A B R = A (2^s u - 1) = (u - 1)(2^s A) + (2^s - 1) A < u \cdot (2^s A),$$so \([k]\) contains only \(u - 1\) positive multiples of \(2^s A\), a contradiction.
Combining Cases 1 and 2 completes the proof of Conjecture 5.2 for all \(k \ge 1\). \(\blacksquare\)
Lean 4 Formalization and Independent Verification
- Lean 4 module:
lean/OpenMath/Garrison240109497Conj52.lean(Leanv4.36.0+ Mathlibv4.36.0, zerosorry, zeronative_decide, axioms strictlypropext,Classical.choice,Quot.sound). - Lean receipt: isitsolved.com/lean/receipts/559c9600ef4e (commit
4b2f97a9d9ae2fe971a91fdbc8f9bf414ed4acff,subdir: "lean"). - Exact Python verifiers (attached):
garrison_verify.pyand independentgarrison_check_independent.py(stdlib exact integer arithmetic, zero floats; exhaustively checks all permutations for \(k \le 8\), all GCD representations for \(k \le 12\), and the Step 2–4 odd-composite congruence/pigeonhole mechanism across all 46 admissible triples \((A, B, R)\) with \(k = ABR \le 150\)). - Repository folder: github.com/kolinhuang0427/open-math-results/tree/4b2f97a9d9ae2fe971a91fdbc8f9bf414ed4acff/targets/garrison-2401.09497-conj5.2
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.36.0 · Mathlib fc4f59e
- 16/16 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 37 s
- 346 declarations
A weakly consecutive sequence shuffles the numbers 1 through k so that divisibility patterns line up whenever positions are spaced apart by a divisor. We prove that every such shuffle must place the number 1 at either the very start or the very end, for all lengths k, and verify the complete proof in Lean 4.
Theorem 1Garrison–Seiler–Knowles Conjecture 5.2✓ Leangarrison_conjecture_5_2 garrison_conjecture_5_2_perm wcs_gcd_repr
OpenMath.Garrison240109497Conj52.garrison_conjecture_5_2proof map →∀ {k : ℕ},1 ≤ k → ∀ {σ : ℕ → ℕ}, OpenMath.Garrison240109497Conj52.IsWeaklyConsecutive k σ → σ 1 = 1 ∨ σ k = 1
OpenMath.Garrison240109497Conj52.garrison_conjecture_5_2_permproof map →∀ {k : ℕ} (hk : 1 ≤ k) (σ : Equiv.Perm (Fin k)),OpenMath.Garrison240109497Conj52.IsWeaklyConsecutivePerm σ → ↑(σ ⟨0, ⋯⟩) = 0 ∨ ↑(σ ⟨k - 1, ⋯⟩) = 0
OpenMath.Garrison240109497Conj52.wcs_gcd_reprproof map →∀ {k : ℕ} {σ : ℕ → ℕ},1 ≤ k →OpenMath.Garrison240109497Conj52.IsWeaklyConsecutive k σ →∃ a,(∀ i ∈ Set.Icc 1 k, σ i = (a + i).gcd (OpenMath.Garrison240109497Conj52.lcmIcc k)) ∧∀ i ∈ Set.Icc 1 k, ∀ m ∈ Set.Icc 1 k, m ∣ σ i ↔ m ∣ a + i
OpenMath.Garrison240109497Conj52.IsWeaklyConsecutivePropOpenMath/Garrison240109497Conj52.lean:40
/-- Definition 1.1 (`arXiv:2401.09497v1`): `σ` is a weakly consecutive permutation of `[k] = {1..k}`. -/def IsWeaklyConsecutive (k : ℕ) (σ : ℕ → ℕ) : Prop :=Set.BijOn σ (Set.Icc 1 k) (Set.Icc 1 k) ∧∀ i ∈ Set.Icc 1 k, ∀ j ∈ Set.Icc 1 k, ∀ m : ℤ,m ∣ (σ i : ℤ) → m ∣ ((i : ℤ) - (j : ℤ)) → m ∣ (σ j : ℤ)
OpenMath.Garrison240109497Conj52.IsWeaklyConsecutivePermPropOpenMath/Garrison240109497Conj52.lean:46
/-- Weakly consecutive condition stated directly on `Equiv.Perm (Fin k)` (1-based values `val + 1`). -/def IsWeaklyConsecutivePerm {k : ℕ} (σ : Equiv.Perm (Fin k)) : Prop :=∀ i j : Fin k, ∀ m : ℤ,m ∣ ((σ i).val + 1 : ℤ) → m ∣ (((i.val + 1 : ℕ) : ℤ) - ((j.val + 1 : ℕ) : ℤ)) →m ∣ ((σ j).val + 1 : ℤ)
OpenMath.Garrison240109497Conj52.lcmIccOpenMath/Garrison240109497Conj52.lean:249
/-- `L_k = lcm(1, 2, ..., k)`. -/def lcmIcc (k : ℕ) : ℕ :=(Finset.Icc 1 k).lcm id
OpenMath.Li250512035Conj7.Hypergraph3OpenMath/Li250512035Conj7.lean:29
/-- A simple `[3]`-graph on vertex set `Fin n`: a finite set of hyperedges, each containingbetween `1` and `3` vertices (Section 1 of `arXiv:2505.12035v1`). -/structure Hypergraph3 (n : ℕ) whereedges : Finset (Finset (Fin n))edge_card : ∀ e ∈ edges, 1 ≤ e.card ∧ e.card ≤ 3
OpenMath.Vasilyev261120344Q73.IsDivergentOrbitPropOpenMath/Vasilyev261120344Q73.lean:73
/-- An orbit starting at `x` is divergent if it never repeats a value (equivalently is unboundedin `ℕ₊`, since every bounded orbit in `ℕ₊` is eventually periodic). -/def IsDivergentOrbit (f : ℕ → ℕ) (x : ℕ) : Prop :=Function.Injective (fun t : ℕ => f^[t] x)
OpenMath.Vasilyev261120344Q73.TOpenMath/Vasilyev261120344Q73.lean:60
/-- The generalized Collatz map `T_S(x) = U(x)` if `x ∈ S`, `D(x)` if `x ∉ S` (`eq:TS`). -/noncomputable def T (S : Set ℕ) (x : ℕ) : ℕ :=if x ∈ S then U x else D x
OpenMath.Vasilyev261120344Q73.IsPeriodicPointPropOpenMath/Vasilyev261120344Q73.lean:64
/-- `x` lies on a cycle (periodic orbit) of `f` (`∃ k ≥ 1, f^[k] x = x`). -/def IsPeriodicPoint (f : ℕ → ℕ) (x : ℕ) : Prop :=∃ k : ℕ, 1 ≤ k ∧ f^[k] x = x
OpenMath.Vasilyev261120344Q73.OrbitOpenMath/Vasilyev261120344Q73.lean:68
/-- Forward orbit `{ f^[k] x | k : ℕ }` of `x` under `f`. -/def Orbit (f : ℕ → ℕ) (x : ℕ) : Set ℕ :={ y : ℕ | ∃ k : ℕ, f^[k] x = y }
OpenMath.Vasilyev261120344Q73.EventuallyCoincidePropOpenMath/Vasilyev261120344Q73.lean:77
/-- Two orbits eventually coincide (`Remark 4.4` of `arXiv:2611.20344v2`). -/def EventuallyCoincide (f : ℕ → ℕ) (x y : ℕ) : Prop :=∃ i j : ℕ, f^[i] x = f^[j] y
OpenMath.Vasilyev261120344Q73.UOpenMath/Vasilyev261120344Q73.lean:53
/-- Up step `U(x) = ⌈3x/2⌉ = (3x + 1) / 2` for `x ∈ ℕ₊` (`Definition 1.1` of `arXiv:2611.20344v2`). -/def U (x : ℕ) : ℕ := (3 * x + 1) / 2
OpenMath.Vasilyev261120344Q73.trapMapOpenMath/Vasilyev261120344Q73.lean:244
/-- Trap map `f_B` on `[B + 1, 3B - 1] \ {2B}`: `U` on `[B + 1, 2B - 1]` and `D` on `[2B + 1, 3B - 1]`. -/def trapMap (B x : ℕ) : ℕ :=if x ≤ 2 * B - 1 then U x else D x
OpenMath.Vasilyev261120344Q73.DOpenMath/Vasilyev261120344Q73.lean:56
/-- Down step `D(x) = ⌈x/2⌉ = (x + 1) / 2` for `x ∈ ℕ₊` (`Definition 1.1` of `arXiv:2611.20344v2`). -/def D (x : ℕ) : ℕ := (x + 1) / 2
OpenMath.Ackelsberg260412864Ques163.intervalOneOpenMath/Ackelsberg260412864Ques163.lean:35
/-- `[n] = {1, ..., n}` (`arXiv:2604.12864v1`, Section 1 line 405). -/def intervalOne (n : ℕ) : Finset ℕ := Finset.Icc 1 n
OpenMath.Ackelsberg260412864Ques163.MeetsAllResiduesPropOpenMath/Ackelsberg260412864Ques163.lean:42
/-- `B` intersects every residue class modulo `D` (`D ≥ 1`). -/def MeetsAllResidues (B : Finset ℕ) (D : ℕ) : Prop :=∀ r : ℕ, r < D → ∃ b ∈ B, b % D = r
OpenMath.Ackelsberg260412864Ques163.finSumsetOpenMath/Ackelsberg260412864Ques163.lean:38
/-- Finite sumset `A + B = {a + b | a ∈ A, b ∈ B}`. -/def finSumset (A B : Finset ℕ) : Finset ℕ :=(A ×ˢ B).image (fun p => p.1 + p.2)
OpenMath.Ackelsberg260412864Ques164.PosGridOpenMath/Ackelsberg260412864Ques164.lean:43
/-- The positive integer grid `ℕ² = {(x, y) : 1 ≤ x ∧ 1 ≤ y}` (`arXiv:2604.12864v1`, Section 1 line 398). -/def PosGrid : Set (ℕ × ℕ) := { p | 1 ≤ p.1 ∧ 1 ≤ p.2 }
OpenMath.Ackelsberg260412864Ques164.lowerDensityOpenMath/Ackelsberg260412864Ques164.lean:64
/-- Lower density `d̲(A) = lim_{N → ∞} (inf_{n ≥ N, m ≥ N} |A ∩ ([n] × [m])| / (n * m))`,defined via `iSup` of the monotone bounded sequence `tailInf A (N + 1)` (`N : ℕ`). -/noncomputable def lowerDensity (A : Set (ℕ × ℕ)) : ℝ :=⨆ N : ℕ, tailInf A (N + 1)
OpenMath.Ackelsberg260412864Ques164.sumset2OpenMath/Ackelsberg260412864Ques164.lean:46
/-- Pointwise sumset `A + B = {a + b | a ∈ A, b ∈ B}` in `ℕ × ℕ`. -/def sumset2 (A B : Set (ℕ × ℕ)) : Set (ℕ × ℕ) :={ p | ∃ a ∈ A, ∃ b ∈ B, p = (a.1 + b.1, a.2 + b.2) }
OpenMath.Ackelsberg260412864Ques164.finiteUnionTranslatesOpenMath/Ackelsberg260412864Ques164.lean:81
/-- Finite union of translates `⋃_{v ∈ V} (v + H)`. -/def finiteUnionTranslates (V : Finset (ℤ × ℤ)) (H : Set (ℕ × ℕ)) : Set (ℕ × ℕ) :={ p | ∃ v ∈ V, p ∈ translateH v H } /-! ## Section 2: Counterexample Witness `A = (2ℕ × ℕ_{≥ 3}) ∪ {(2^j, 1) : j ≥ 1}` -/
OpenMath.Ackelsberg260412864Ques164.HposOpenMath/Ackelsberg260412864Ques164.lean:73
/-- Positive-quadrant restriction `H = H_{a,b,c} ∩ (ℕ × ℕ)`. -/def Hpos (a b c : ℕ) : Set (ℕ × ℕ) :={ p | 1 ≤ p.1 ∧ 1 ≤ p.2 ∧ ((p.1 : ℤ), (p.2 : ℤ)) ∈ H_abc a b c }
OpenMath.Bui250804602Conj81.PointConfigOpenMath/Bui250804602Conj81.lean:208
/-- A planar point set `Q` of size `2n` in general position (`n ≥ 3`) with `n` convex-hullvertices `Q 0, ..., Q (n - 1)` in counterclockwise cyclic order (indices modulo `n`) and`n` interior points `B 0, ..., B (n - 1)`. -/structure PointConfig (n : ℕ) [NeZero n] wherehn : 3 ≤ nQ : Fin n → PtB : Fin n → Ptinj : Function.Injective (Sum.elim Q B)general_position : ∀ p q r : Fin n ⊕ Fin n,p ≠ q → q ≠ r → p ≠ r →orient (Sum.elim Q B p) (Sum.elim Q B q) (Sum.elim Q B r) ≠ 0hull_ccw : ∀ k m : Fin n, m ≠ k → m ≠ k + 1 →0 < orient (Q k) (Q (k + 1)) (Q m)interior_pos : ∀ k r : Fin n, 0 < orient (Q k) (Q (k + 1)) (B r)
OpenMath.Ciobanu260422375Conj1.evalWordOpenMath/Ciobanu260422375Conj1.lean:46
/-- Canonical monoid homomorphism `π : Alph* → G` induced by `gen : Alph → G`. -/def evalWord {Alph G : Type*} [Monoid G] (gen : Alph → G) (w : List Alph) : G :=(w.map gen).prod
OpenMath.Ciobanu260422375Conj1.IsVPLForallPropOpenMath/Ciobanu260422375Conj1.lean:171
/-- `S ∈ VPL^∀(G)` relative to a generating alphabet `gen : Alph → G`: `π⁻¹(S) ∈ VPL`. -/def IsVPLForall {Alph G : Type*} [Monoid G] (gen : Alph → G) (S : Set G) : Prop :=IsVPL (evalWord gen ⁻¹' S)
OpenMath.Ciobanu260422375Conj1.IsREGForallPropOpenMath/Ciobanu260422375Conj1.lean:167
/-- `S ∈ REG^∀(G)` relative to a generating alphabet `gen : Alph → G`: `π⁻¹(S) ∈ REG`. -/def IsREGForall {Alph G : Type*} [Monoid G] (gen : Alph → G) (S : Set G) : Prop :=IsRegular (evalWord gen ⁻¹' S)
OpenMath.Dris220208116Conj51.densityRatioOpenMath/Dris220208116Conj51.lean:48
/-- The counting ratio `|S ∩ {1, ..., X}| / X` for asymptotic density. -/noncomputable def densityRatio (S : Set ℕ) (X : ℕ) : ℝ :=(((Finset.Icc 1 X).filter (· ∈ S)).card : ℝ) / (X : ℝ) /-! ## Section 1: Divergence of `∑_{p ≡ a [MOD q]} 1/p` from Mathlib's `PrimesInAP` -/
Supporting results on the receipt · 13
not_li_lu_luo_conjecture_7OpenMath.Li250512035Conj72 lines
¬∀ (n : ℕ) [inst : NeZero n],6 ≤ n → ∀ (H : Hypergraph3 n), H.SatisfiesOre 1 → H.HasHamiltonianBergeCycle
not_li_lu_luo_conjecture_7_linear_uniformOpenMath.Li250512035Conj74 lines
¬∀ (n : ℕ) [inst : NeZero n],6 ≤ n →∀ (H : Hypergraph3 n),H.IsUniform3 → H.IsLinear → H.ShadowDiamLeTwo → H.SatisfiesOre 1 → H.HasHamiltonianBergeCycle
vasilyev_question_7_3OpenMath.Vasilyev261120344Q739 lines
∃ S cyc x₀,(∀ x ∈ S, 1 ≤ x) ∧1 ≤ x₀ ∧IsDivergentOrbit (T S) x₀ ∧(∀ (m : ℕ),1 ≤ cyc m ∧ IsPeriodicPoint (T S) (cyc m)) ∧Pairwise fun m₁ m₂ =>Disjoint (Orbit (T S) (cyc m₁))(Orbit (T S) (cyc m₂))
vasilyev_question_7_3_orbit_type_infty_oneOpenMath.Vasilyev261120344Q7320 lines
∃ S cyc,(∀ x ∈ S, 1 ≤ x) ∧IsDivergentOrbit (T S) 1 ∧Filter.Tendsto (fun t => (T S)^[t] 1) Filter.atTop Filter.atTop ∧(∀ (m : ℕ),1 ≤ cyc m ∧IsPeriodicPoint (T S) (cyc m) ∧T S (cyc m) ≠ cyc m) ∧(Pairwise fun m₁ m₂ =>Disjoint (Orbit (T S) (cyc m₁))(Orbit (T S) (cyc m₂))) ∧(∀ (m : ℕ),Disjoint (Orbit (T S) (cyc m))(Orbit (T S) 1)) ∧∀ (x : ℕ),1 ≤ x →(∃ m t,(T S)^[t] x ∈Orbit (T S) (cyc m)) ∨EventuallyCoincide (T S) x 1
closed_box_trapOpenMath.Vasilyev261120344Q739 lines
∀ {R : Set ℕ} {B : ℕ},5 ≤ B →B % 6 = 5 →(∀ (x : ℕ), 1 ≤ x → x ∉ R → U x ∉ R) →(∀ (x : ℕ), B + 1 ≤ x → x ≤ U B - 1 → x ∉ R) →∃ c,IsPeriodicPoint (trapMap B) c ∧∀ y ∈ Orbit (trapMap B) c,B + 1 ≤ y ∧ y ≤ 3 * B - 1 ∧ y ∉ R ∧ y ≠ 2 * B ∧ trapMap B y ≠ y
not_ackelsberg_question_16_3OpenMath.Ackelsberg260412864Ques16325 lines
¬∀ (ε : ℝ),0 < ε →∀ (N₀ : ℕ),1 ≤ N₀ →∃ D N₁,1 ≤ D ∧1 ≤ N₁ ∧∀ (α β : ℝ) (N : ℕ) (A B : Finset ℕ),0 < α →0 < β →α + β < 1 →N₁ ≤ N →A ⊆ intervalOne N →B ⊆ intervalOne N →(∀ (n : ℕ),N₀ < n →n ≤ N → ↑(A ∩ intervalOne n).card / ↑n ≥ α) →(∀ (n : ℕ),N₀ < n →n ≤ N → ↑(B ∩ intervalOne n).card / ↑n ≥ β) →MeetsAllResidues B D →↑(finSumset A B ∩intervalOne N).card /↑N ≥α + β - ε
not_ackelsberg_question_16_4OpenMath.Ackelsberg260412864Ques16415 lines
¬∀ (A B : Set (ℕ × ℕ)),A ⊆ PosGrid →B ⊆ PosGrid →A.Nonempty →B.Nonempty →lowerDensity (sumset2 A B) ≥lowerDensity A +lowerDensity B ∨∃ a b c V,1 ≤ a ∧1 ≤ c ∧b < a ∧(symmDiff (sumset2 A B)(finiteUnionTranslates V(Hpos a b c))).Finite
bui_conjecture_8_2_acyclicOpenMath.Bui250804602Conj81.PointConfig2 lines
∀ {n : ℕ} [inst : NeZero n](cfg : OpenMath.Bui250804602Conj81.PointConfig n) (π : Equiv.Perm (Fin n)), ¬Relation.TransGen cfg.StateEdge π π
ciobanu_turaev_conjecture_1OpenMath.Ciobanu260422375Conj14 lines
∀ {Alph : Type u_1} {G : Type u_2} [inst : Group G](gen : Alph → G),Function.Surjective (evalWord gen) →∀ (S : Set G), IsVPLForall gen S ↔ IsREGForall gen S
dris_conjecture_5_1OpenMath.Dris220208116Conj512 lines
Filter.Tendsto(densityRatio DrisSet) Filter.atTop (nhds 0)
not_ferrero_conjecture_1_8OpenMath.Ferrero251116335Conj183 lines
¬∀ (n : ℕ) (G : SimpleGraph (Fin n)),G.Connected →upperPropTime G = 1 → IsStandardFastJoin G
not_wei_conjecture_1_5OpenMath.Wei231017337Conj157 lines
¬∀ (k : ℕ),3 ≤ k →∀ (n : ℕ) (G : SimpleGraph (Fin n)),G.Connected →¬Nonempty (G ≃g SimpleGraph.cycleGraph k) →↑(isolationNumber G (SimpleGraph.cycleGraph k)) ≤(↑(Nat.card ↑G.edgeSet) + 1) / (↑k + 2)
ziller_conjecture_6_2OpenMath.Ziller231015628Conj622 lines
∀ {x y : ℕ},0 < x → 0 < y → ↑x.totient / ↑x ^ 2 = ↑y.totient / ↑y ^ 2 → x = y
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2611-00347.pdf | 357 kB | sha256 eda6a6c6838238f7… .ots |
| garrison_verify.py | 12 kB | sha256 52dfad3f3421cffe… .ots |
| garrison_check_independent.py | 9 kB | sha256 c677c96bae6cb48e… .ots |