Blueprint

🗺️ Map of How Many Dyck Words Do the Divisors of an Integer Make? Exact Counts and Quasipolynomial Growth

🏷️ Combinatorics on words · divisors of integers · enumeration of hyperplane arrangements
58 results ✅ 0 entirely in Lean ◐ 5 partly in Lean ✅ 2 in Isabelle 💻 25 checked by a program written proof only (a result can carry several tags)

Dependencies in the written proof: an arrow A → B means that this proof of B uses A. Every result rests on its written proof; the tags record what was checked besides, and each statement's “Evidence & scope” block says how far. The colour of a box is its strongest tag, in the order above; the tags in the box give the rest. Boxes with a thick border are the main results; click a box to read the statement.

cluster_0 Introduction cluster_1 Reduction to an arrangement of hyperplanes cluster_2 Maximal refinement cluster_3 Decidability and complexity cluster_4 The number of cells cluster_5 Quasipolynomial growth for every fixed exponent cluster_6 Three mechanisms of coincidence cluster_7 Theorem A: semilength 2q cluster_8 Theorem B: semilength 3q cluster_9 The values of |Lₖ| for small k cluster_10 Open questions cluster_11 A reformulation through the Kassel–Reutenauer polynomials auto:definition-1.1 Definition 1.1 lem:reduction Lemma 2.1 reduction to the odd part: Dₙ∖2Dₙ = Dₘ, 2Dₙ∖Dₙ = tDₘ, semilength τ(m) ✅ Isabelle · 💻 program def:wf Definition 2.2 the arrangement 𝒜f and the word wf(x) of a point lem:reduction->def:wf lem:realise Lemma 2.3 every open cell of the arrangement 𝒜f is realised by distinct odd primes (Bertrand) 💻 program lem:reduction->lem:realise thm:refinement Theorem 3.1 maximal refinement: Lₖ is the set of words of the finest pattern (q₁−1, …, qᵣ−1) ◐ part in Isabelle · 💻 program lem:reduction->thm:refinement lem:triple Lemma 8.1 for a = 1 the word depends only on the triple (ν, β, γ): C(n) = S(ν,β) ⊎ S(ν,γ) 💻 program lem:reduction->lem:triple prop:KR Observation A.1 the coefficients of Pₙ(q) are runs of the heights h₁, …, h_(2K−1) of the Dyck path of n ◐ part in Isabelle · 💻 program lem:reduction->prop:KR q:frequencies Question 11.8 how often does each word occur among n ≤ N? def:wf->q:frequencies cor:refinement Corollary 3.3 |Lq| = q (words Oq(N)) and |Lₚq| = W(p−1, q−1) 💻 program lem:realise->cor:refinement cor:decidable Corollary 4.2 membership in L is decidable, in time exp(O((log k)²)) lem:realise->cor:decidable thm:quasi Theorem 6.1 for fixed a, W(a,b) is eventually a quasipolynomial in b of degree ≤ 2 (via Woods) ◐ part in Isabelle lem:realise->thm:quasi thm:quadratic Theorem 6.3 W(a,b) ≥ #(u,v): 2u+v ≥ b, u+2v ≥ b ≥ ⌊2b/3⌋², so W(a,b) = Θₐ(b²) 💻 program lem:realise->thm:quadratic lem:O0 Lemma 7.1 the empty-graph fibre: |Φ(O(0))| = 1 + Σ_(h≤a) #j ≤ b : gcd(j,h) = 1 💻 program lem:realise->lem:O0 lem:realisable Lemma 8.2 the realisable triples are the clippings of (ν₀, ν₀ − u, ν₀ + u + ε) lem:realise->lem:realisable lem:vec Lemma 9.1 a = 2: C(n) = Z(c), and the vectors that occur are the cells of the lines Λ + hθ = ρ lem:realise->lem:vec lem:realise->q:frequencies thm:refinement->cor:refinement thm:refinement->cor:decidable rem:complexity Remark 4.3 complexity: membership decided in time exp(O((log k)²)), polynomial for a bounded number of prime factors thm:refinement->rem:complexity q:several Question 11.6 several primes: is W(a₁, …, a_(r−1), b) eventually a quasipolynomial of degree r? thm:refinement->q:several lem:radix Lemma 3.2 mixed radix: N = i + (u+1)j is a bijection 0..u×0..v → 0..F ✅ Isabelle lem:radix->thm:refinement prop:box Proposition 4.1 every open cell meets the box 0 < xᵢ < r!·M^(r−1) + 1 (this makes Table 1 exact) 💻 program thm:A Theorem 8.12 Theorem A: W(1,b) = ⌊(9b²+8b+12)/4⌋, so |L₂q| = (9q²−10q+13)/4 ◐ part in Isabelle · 💻 program cor:refinement->thm:A thm:B Theorem 9.4 Theorem B: W(2,b) = (44b²+19b+e_(b mod 6))/6, so |L₃q| = (44q²−69q+58−3(q/3))/6 💻 program cor:refinement->thm:B prop:box->cor:decidable rem:earliercounts Remark 10.1 the earlier public counts 27 (k = 9) and 42 (k = 10) were lower bounds; the exact values are 28 and 47 prop:box->rem:earliercounts cor:decidable->rem:complexity q:membership Question 11.7 membership in polynomial time, inside Peano arithmetic, or by forbidden factors? cor:decidable->q:membership thm:Rformula Theorem 5.1 a direct count of the number R(a,b) of cells of the pattern pᵃ p′ᵇ (a known count: Proposition 5.3) 💻 program cor:Ca Corollary 5.2 R(a,b) is a quasipolynomial of degree 2 with leading coefficient Cₐ   12a²/π² 💻 program thm:Rformula->cor:Ca prop:alekseyev Proposition 5.3 the cells are threshold functions: R(a,b) = (N(2b,2a) + 4a + 4b + 6)/8 (Alekseyev), so R(a,b) = R(b,a) 💻 program thm:Rformula->prop:alekseyev rem:alekseyev25 Remark 5.4 the leading term lem:R Lemma 9.2 R(2,b) = (22b² + 31b + 9 + [b ≡ 1 (3)])/3 💻 program thm:Rformula->lem:R cor:Ca->rem:alekseyev25 rem:A335678 Remark 5.5 the drawing of K_(m,n) cor:Ca->thm:quadratic cor:degree2 Corollary 6.4 every constituent has degree exactly 2, leading coefficient in [2/3, Cₐ] cor:Ca->cor:degree2 q:rigidity Question 11.1 rigidity: is the loss E(a,b) = R − W linear in b for every a ≥ 2? cor:Ca->q:rigidity q:leading Question 11.2 is the leading coefficient of W(a,b) the same on every residue class, and equal to Cₐ for a ≥ 2? cor:Ca->q:leading q:a3 Question 11.3 conjecture cor:Ca->q:a3 q:period Question 11.4 does the minimal period of W(a,b) divide lcm(1, …, 2a)? cor:Ca->q:period prop:alekseyev->rem:alekseyev25 prop:alekseyev->rem:A335678 thm:quasi->thm:quadratic thm:quasi->lem:O0 lem:reflection Lemma 7.5 reflection inside integer levels (a ≥ 2): pairs u^(p,k), v^(p,k) with the same word, height p+1 💻 program thm:quasi->lem:reflection thm:quasi->q:rigidity thm:quasi->q:period thm:quasi->q:several auto:remark-6.2 Remark 6.2 rem:square Remark 6.5 the smaller square [⌈2b/3⌉, ⌊3b/4⌋]² already gives a quadratic lower bound thm:quadratic->cor:degree2 thm:quadratic->rem:square thm:quadratic->q:leading auto:remark-7.4 Remark 7.4 what the exchange adds auto:remark-7.6 Remark 7.6 lem:O0->auto:remark-7.6 q:fibres Question 11.5 lem:O0->q:fibres lem:exchange Lemma 7.2 exchange of arithmetic progressions between rows (a = 1): Z(ξ) = Z(T(ξ)) 💻 program cor:exchange Corollary 7.3 T is injective and produces exactly the pairs of the family Q and b pairs of O(s) 💻 program lem:exchange->cor:exchange lem:exchange->auto:remark-7.4 lem:exchange->q:fibres lem:reflection-q Lemma 7.7 reflection around a rational slope m/q: realisable distinct c^± with the same word 💻 program lem:reflection->lem:reflection-q auto:remark-7.8 Remark 7.8 lem:reflection->q:rigidity lem:reflection->q:fibres lem:reflection-q->q:fibres lem:triple->thm:quasi lem:triple->lem:realisable lem:S Lemma 8.4 the multisets S(p,p′) in closed form (three cases) lem:triple->thm:A lem:triple->lem:vec lem:realisable->lem:exchange lem:count-triples Lemma 8.3 R(1,b) = (5b+4)(b+1)/2 realisable triples 💻 program lem:realisable->lem:count-triples cor:profiles Corollary 8.5 profiles X and Y of the families P′, N′₁, N′₂ 💻 program lem:O Lemma 8.6 the triples with word O(s) (five cases) lem:realisable->lem:O lem:realisable->thm:A lem:realisable->lem:vec lem:count-triples->thm:A rem:ratio Remark 9.5 how many cells are redundant lem:count-triples->rem:ratio lem:S->lem:exchange lem:S->cor:profiles lem:Q Lemma 8.7 the triples I₁, I₂, J(τ,d) with word Q(τ,d) cor:profiles->lem:O cor:profiles->lem:Q lem:7 Lemma 8.8 a = 1: two realisable triples have the same word iff they have the same label 💻 program lem:zeros Lemma 8.9 the zeros of the profile, by type (P±, P⁰, Pᶜ, N±, N⁰, Nᶜ, N′₂) 💻 program cor:profiles->lem:zeros lem:O->cor:exchange lem:O->lem:7 lem:n0zero Lemma 8.10 n₀ = 0 exactly on the list of Lemma 8.6 (label O(τ−1)) lem:O->lem:n0zero lem:Q->cor:exchange lem:Q->lem:7 lem:n0pos Lemma 8.11 equal keys with n₀ ≥ 1: the same triple or a pair I, J(τ,d) 💻 program lem:Q->lem:n0pos lem:7->thm:A lem:zeros->lem:n0zero lem:zeros->lem:n0pos lem:n0zero->lem:7 rem:statusA Remark 8.13 status of Theorem A: by hand, each lemma also checked by computer (b ≤ 20) lem:n0pos->lem:7 thm:A->rem:statusA thm:A->rem:ratio thm:A->q:rigidity lem:vec->thm:quasi lem:vec->lem:R lem:7prime Lemma 9.3 a = 2: the classes of size ≥ 2 are exactly the listed ones (O, A–F), pairwise disjoint ◐ part in Isabelle · 💻 program lem:vec->lem:7prime lem:R->thm:B lem:7prime->thm:B thm:B->rem:ratio thm:B->q:rigidity q:rigidity->q:leading ex:n3 Example A.2 n = 3: P₃(q) = 1 + q + q³ + q⁴, coefficient runs 1, 0, 1 = the heights of the word prop:KR->ex:n3 cor:KRbijection Corollary A.3 Lₖ is in bijection with the compressed coefficient profiles of the Pₙ(q) with τ(odd part of n) = k prop:KR->cor:KRbijection

What the paper contributes

The language $L$ of the words $\langle\!\langle n\rangle\!\rangle_2$ and the question of describing it are Rodríguez Caballero's. Starting from the reduction to the odd part, the paper counts the words of each semilength:

  • Part I (structure). The words of a pattern are the words of the cells of a hyperplane arrangement in the logarithms of the primes, and every cell is realised by primes (Lemma 2.3). $L_k$ is produced by the single finest pattern $p_1^{q_1-1}\cdots p_r^{q_r-1}$, $k=q_1\cdots q_r$ (Theorem 3.1), so membership in $L$ is decidable (Corollary 4.2). Written proofs.
  • Part II (general enumeration). The number $R(a,b)$ of cells of the pattern $p^ap'^b$ is a known count: $R(a,b)=(N(2b,2a)+4a+4b+6)/8$, with $N$ Alekseyev's number of two-dimensional threshold functions on a grid (Proposition 5.3; Acketa–Žunić, Alekseyev); the paper gives a direct proof, with leading coefficient $C_a\sim12a^2/\pi^2$ (Theorem 5.1, Corollary 5.2); $W(a,b)$ is eventually a quasipolynomial in $b$ of degree exactly two (Theorem 6.1, an application of Woods' theorem, existence only; Theorem 6.3, Corollary 6.4); three mechanisms by which distinct cells give the same word (Section 7). Written proofs.
  • Part III (explicit counts). $|L_{2q}|=(9q^2-10q+13)/4$ for odd primes $q$ (Theorem A, written proof) and $|L_{3q}|=(44q^2-69q+58-3(\tfrac q3))/6$ for primes $q\ge5$ (Theorem B: one lemma is decided by exact SMT queries with Z3, without a checked proof object); a table of $|L_k|$ for small $k$ by exact enumeration.

The paper claims no novelty for the Kassel–Reutenauer reformulation of the appendix, which is implicit in Rodríguez Caballero's work (JNT 2018). The arrangements and their link with semiorders go back to Stanley; counting cells through vertices is the planar case of Zaslavsky's face-count formula; the quasipolynomiality rests on a theorem of Woods.

🚀 Start here: Lemma 2.1: reduction to the odd part: Dₙ∖2Dₙ = Dₘ, 2Dₙ∖Dₙ = tDₘ, semilength τ(m).

Main results:

  • Theorem 3.1: maximal refinement: Lₖ is the set of words of the finest pattern (q₁−1, …, qᵣ−1)
  • Proposition 5.3: the cells are threshold functions: R(a,b) = (N(2b,2a) + 4a + 4b + 6)/8 (Alekseyev), so R(a,b) = R(b,a)
  • Theorem 6.1: for fixed a, W(a,b) is eventually a quasipolynomial in b of degree ≤ 2 (via Woods)
  • Theorem 8.12: Theorem A: W(1,b) = ⌊(9b²+8b+12)/4⌋, so |L₂q| = (9q²−10q+13)/4
  • Theorem 9.4: Theorem B: W(2,b) = (44b²+19b+e_(b mod 6))/6, so |L₃q| = (44q²−69q+58−3(q/3))/6

🧭 Fields: where the paper lives and what it connects

Tools taken from other branches

  • Language of divisor words (Rodríguez Caballero) → the word ⟨⟨n⟩⟩₂, its Dyck property and symmetry, the reduction to the odd part, the decision problem (FOM 2020) and the link with the Kassel–Reutenauer polynomials are his — Lemma 2.1, Corollary 4.2, A.1
  • Hyperplane arrangements (Stanley; Zaslavsky; Beck–Zaslavsky) → the word is the cell of a point in an arrangement α·x = 1; cells are counted through vertices (Euler’s relation, the planar case of Zaslavsky’s face count) — Lemma 2.3, Theorem 5.1
  • Two-dimensional threshold functions (Acketa–Žunić 1991; Alekseyev 2010) → the number of cells R(a,b) is (N(2b,2a) + 4a + 4b + 6)/8, with N Alekseyev’s exact count of threshold functions on a grid; its leading term is Alekseyev’s too — Proposition 5.3
  • Presburger arithmetic (Woods 2015) → W(a,b) as a Presburger counting function is eventually a quasipolynomial (existence only) — Theorem 6.1
  • Prime numbers (Bertrand’s postulate) and SMT solving (Z3, cvc5) → every open cell is realised by primes; the completeness and disjointness of the coincidence classes for a = 2 are decided by exact SMT queries — Lemma 2.3, Lemma 9.3

What the results serve