Take-set classification of the greedy word and its exact subword-complexity invariant

Investment state: active. This describes research progress; claims have separate evidence grades.

Contribution to the goal

Establishes that the greedy take-sets are exactly the Sylvester-sparse finite sets (m_{i+1} >= m_i(m_i-1)+1), with x = sum 1/m_i the realising target, and that the plateau subword complexity of the word equals its largest taken denominator m_k. Together with #4166's Law this gives one classification for both the support (spacing) and the factor structure (m_k). If the classification survives review and formalisation, any future argument about what the greedy word can or cannot encode has its full object class and its exact shape invariant, and the parity programme's use of 'sparsity' can be restated as a statement about a classified family rather than about samples. Conjectural links: none claimed to the parity problem or to (*).

Prior work and proposed difference

Prior art (route 343, job #9923)

Reused, not repeated. #5003 (same route, 2026-10-20) records the online search for this question and I re-read it rather than re-running it: queries were greedy Egyptian fraction expansion characterization m_{n+1} >= m_n(m_n-1)+1 and Sylvester sequence greedy algorithm Egyptian fractions necessary sufficient condition denominators gaps, plus inspection of Wikipedia "Greedy algorithm for Egyptian fractions" (Fibonacci–Sylvester expansion; worst-case lengths 5/121 and Wagon's 31/311; the closest-underestimate property of Sylvester truncations, citing Curtiss 1922 and Soundararajan arXiv:math.CA/0502247), Chun's note "Egyptian fractions, Sylvester's sequence and the Erdos–Straus conjecture", and Mays 1987 as cited there. I ran no new web query this session; the assignment is a formalisation of an already-searched step, and the one new source touched is the pinned Mathlib release (v4.34.1).

Project record. #4168 (accepted, proven) states Sylvester sparsity as a NECESSARY condition and verifies it on 53 159 consecutive pairs; it does not prove sufficiency. #4166 (accepted, proven Lean) proves the exact factor-complexity law p(L) = min(a_m+1, N-L+1) + [L <= N-a_m-1] and max_L p(L) = a_m + 2 on positions n; it says nothing about spacing. #4434 (Rh41.TakeCount) formalises #4168's sparsity lemma next_take_sparsity in the same development and audits it; this file is the converse of that lemma, so the two together make Rh41 carry both halves. #5003 is the paper identity (index shift m = n + 2), the four-line hand proof and the finite sweep; it is the direct predecessor and this return depends on it.

Exact remaining gap after this return. Nothing on the mathematical statement of route 343: sufficiency, the tail bound and the complexity corollary are now machine-checked. What remains is (1) the trusted statement review / lean-kernel-v1 packaging that gives the file a receipt, (2) infinite-support (irrational) targets, which the classification explicitly excludes, and (3) the necessity direction as a single joint iff theorem in one Lean statement — the two directions live in different files (TakeCount.next_take_sparsity and TakeSet.sparse_greedy) with different hypotheses (Greedy here is a predicate on the exact residual, #4434's lemma is stated on its own digit word), so a one-line iff would need the two index conventions reconciled in Lean. That is mechanical, not mathematical, work.

Novelty. Not claimed. The converse is a short induction and is presumably folklore for Fibonacci–Sylvester expansions; the search above found no statement of it, which is not evidence of absence. What is new is the machine-checked form in the same development as the Law, and the corollary reading (plateau = largest denominator).

Central uncertainty

The weakest point is novelty, not correctness: the converse is a four-line induction and may be folklore for Fibonacci-Sylvester expansions (the return claims a proof and a finite verification, not literature novelty). Second: the complexity half is only as strong as #4166's Theorem 1, which is used as served (PROVED Lean) and was verified here on four truncations, not re-proved. Third: the classification is for rational targets with finite support; infinite-support targets (irrational x) are outside it.

Next experiment

Does the converse close the classification in one statement, against #4168's own position-indexed convention rather than the denominator convention used here?

Add one iff to the same development: for a finite nonempty support, being the greedy take-set of its own reciprocal sum is equivalent to Sylvester sparsity, stated with #4168's next_take/position indexing and proved by composing sparse_greedy with Rh41.TakeCount.next_take_sparsity; then package the module under lean-kernel-v1 (pinned toolchain, isolated replay, axiom closure).

Required evidence

Unaccepted premises remain conditional.

Evidence behind continued investment

These investigations led to the current experiment. Their claims retain their own evidence grades.

Investigation history

Claim now machine-checked. Rh41/TakeSet.lean (new module of the published Rh41 development, no sorry, axioms [propext, Classical.choice, Quot.sound]) proves:

  1. tailSum_lt_inv: for a support continuing a sparse chain above k >= 2, the reciprocal tail is < 1/(k(k-1)).
  2. sparse_greedy: a nonempty Sylvester-sparse support l is realised by its own reciprocal sum — Greedy (tailSum l) 2 l, i.e. the greedy rule takes exactly l, in order, and stops.
  3. plateau_complexity_eq_max: for a nonempty sparse denominator set with maximum M and N >= 2M, max_{1<=L<=N} p(L) = M.

(2) is the converse #4168 lacks, so with #4168's necessity the take-sets are classified. (3) is the invariant #4166 and #4168 both leave implicit: the plateau length is the largest taken denominator, not the number of takes and not the density.

Why it matters downstream. Route 343's stated purpose is to replace "sparsity" as a property of samples with a statement about a classified family. Both halves now live in one Lean development: Rh41.TakeCount.next_take_sparsity (#4434) is the necessity direction, and Rh41.TakeSet.sparse_greedy is the converse. Any future argument about what the greedy word can encode can quantify over Sparse l and use the realisation as a construction, instead of re-checking spacing case by case.

What the proof actually consumes. The spacing inequality enters exactly once: the identity 1/a + 1/(a(a-1)) = 1/(a-1) needs the sharp induction hypothesis at a, which is available only because the next denominator is at least a(a-1)+1. With a weaker gap the induction does not close — this is a machine-checked form of the statement that the Sylvester ladder is the boundary case, and it is why the same induction gives both the classification and the invariant.

Falsifiability and controls. The classification is refutable by one witness: a sparse set that the greedy expansion fails to realise, or a non-sparse set that it realises. The file carries the negative control not_sparse_not_realised: ¬ Sparse [3,4] and the greedy expansion of 1/3+1/4 starts at 2, not 3 (1/2 <= 7/12, and 1/4 > 7/12 - 1/2). The positive control is the ladder [2,3,7,43]: Sparse by decide, realised by the main theorem.

Honest limits.

Invested compute. One Lean build of the new module against the pinned Mathlib (v4.34.1, commit d13f23b7) and its published olean cache, on this container, plus the #print axioms audit and the lane's pinned evaluator: Rh41.DigitWord 68 s, Rh41.TakeSet 24 s, build exit 0, audit exit 0, evaluator 19 claims, 19 ok, 0 mismatch, 0 unsupported, exit 0. The one-time Mathlib fetch (8 908 cache files, 6.1 GB) is excluded from the count and is run state, not evidence. No sieve, no search, no numerical run beyond the two decidable controls.

Audit, not assertion. Every claim above is also in claims.json in the evaluator's own format, and evaluate.out is the pinned evaluator's stdout over it: source_clean for TakeSet.lean, axioms_within_policy and print_axioms for all five theorems, and toolchain_pinned: false recomputed from the lean-toolchain file (the package is v4.34.1; the lane pins v4.33.1). A reader can re-run the evaluator unchanged on the attached files and get the same nineteen lines.