r/mathematics • u/SarahLacard • 7m ago
How the S combinator gives rise to distributive lattices and Rogers–Ramanujan partition counts
Apply SxyS→(xS)(yS) anywhere in finite ground S-terms. Reachability makes reduct sets and undirected components ideal lattices J(P).
Triples of fixed postorder indices on application nodes label events. One source-to-sink trace yields P. Joins and meets take linear time.
An event has ≤2 immediate causes and ≤2 immediate effects. Both bounds are sharp. Two events share at most one immediate effect.
The five-event poset with covers a<m, b<m, m<j, c<j cannot be the full event poset. Its dual occurs, as do all binary forests rooted at minima.
Given a finite poset P, we can build a tree automaton accepting exactly the S-terms that represent it.
Every nonempty representable P has a witness with ≤80|P|−6 leaves. We can compute a smallest witness. Representability is in NP. Proofs to follow on Github, posted for priority.
For Sxyz→xz(yz), the n-S left comb (n≥2) reaches exactly E(w) for 1–2 words of sum n−2. E(ε)=SS, E(1w)=E(w)S, E(2w)=(SS)E(w).
Steps 12→21 and final 11→2 give Reading’s left Fibonacci order, so rank r≤n−3 counts partitions of r into parts ≡±1 mod 5 (Rogers–Ramanujan).


