The two compressions of Lemma 2, and the closure theorem #
pChain p: chainsb, b p, b p², …withp ∤ b;pqChain p q(p < q): chainsb p^D, b p^(D-1) q, …, b q^Dwithp, q ∤ b.
Both satisfy the window condition Cons, so compression keeps every |A S t| from decreasing.
Taking a compression-stable set of minimal element sum gives exists_closed, the content of
Lemma 2 of the second proof.
theorem
RunsOfMultiples.ChainSys.gap
{κ : Type}
[DecidableEq κ]
{C : ChainSys κ}
{T : Finset ℕ}
(hT : ∀ n ∈ T, 0 < n)
{n u : ℕ}
(hn : n ∈ T)
(hu : u < C.pos n)
(hout : C.elt (C.key n) u ∉ T)
:
If a chain has an occupied position pos n and an empty valid position below it, the
chain's occupied set is not an initial segment.
Lemma 2: every finite set of positive integers can be replaced by a set of the same size,
closed under divisors and under replacing a prime factor by a smaller prime, without decreasing
any run count |A S t|.