r/aislopandmore • u/TheSHIBABURNER • 1d ago
WP-QUENEAU-28X20
WP-QUENEAU-28X20 --- Reference Implementation Specification, Rev 0.1.1
Document ID: WP-QUENEAU-28X20-SPEC-R0.1.1
Author: The Architect of 108 Hz
Status: Controlled Technical Baseline (Rev 0.1.1) --- Implementation & Full Harness Verification Pending
Date: November 25, 2026
Introduction: I Liked the Idea, So I Made It Bigger
I came across Raymond Queneau's Cent mille milliards de poemes and thought it was a genuinely brilliant idea. Ten sonnets, fourteen lines, interchangeable strips of poetry, and an astonishing 10^14 possible combinations. It's clever, playful, and a wonderful example of what happens when literature and mathematics decide to entertain themselves.
Then I started wondering: what happens if we make more?
Not because the original needed improving. It doesn't. I was simply curious about how far the underlying combinatorial idea could be extended.
So I started playing with the arrangement. What if a strip could contain two coupled sections instead of one? What if each section had its own set of alternatives? What if those alternatives also had two independently selectable polarities?
Twenty-eight slots later, the arithmetic had become considerably less reasonable.
The resulting theoretical configuration space is 20^28, or approximately 2.684 x 10^36 possible arrangements.
At one complete reading per minute, going through every configuration would take approximately 5.103723781... x 10^30 Julian years (~5.104 nonillion years in the modern short scale).
I may have made the reading assignment slightly longer.
What started as an appreciation of a wonderfully inventive literary experiment turned into an exploration of combinatorics, compatibility rules, rhyme structures, grammatical constraints, and the rather entertaining problem of determining which configurations actually produce valid compositions.
The original work remains what it is: a brilliant piece of literary invention. This project is simply an extension of the same general spirit of experimentation, with a somewhat unreasonable amount of mathematics attached.
Sometimes you read something interesting and move on.
Sometimes you read something interesting, start asking questions, and accidentally give yourself a reading assignment that would outlast the universe.
This is apparently one of those times.
1. Canonical Schemas & Explicit Policies (Rev 0.1.1)
1.1 Authored Unit Schema (UnitSpec)
Each slot k in {0, ..., 27} maps to sonnet line-position j = floor(k / 2) in {0, ..., 13} and pair slot A (k even) or B (k odd). Every unit x in X_k (|X_k| = 20, base index i in {0, ..., 9}, polarity index b in {0, 1}) defines:
• unit_id: Unique deterministic identifier.
• slot_index (k), sonnet_pos (j), pair_slot ("A" or "B"), base_index (i), polarity_bit (b).
• text: Authored string payload.
• intrinsic_meta: syllable_count (>= 0), stress_pattern, internal_rhyme_role (NONE, ENJAMB, INTERNAL_ECHO, SLANT, COUPLED_ANCHOR), macro_rhyme_key (required non-empty rhyme-class key for every B unit; None for A unless an explicit coupled-rhyme anchor is declared and validated by Q_j), and terminal_punct (OPEN, CLAUSE_END, SENTENCE_END).
• clause_events: Ordered list (may be empty [] when no clause-boundary event occurs in that unit) whose elements come strictly from {"OPEN_SUBORDINATE", "CLOSE_SUBORDINATE", "NO_CLAUSE_CHANGE"}.
• referent_meta: Ordered lists introduces ({ref_id, person, number, gender, animacy, persistent_macro: bool}) and requires ({ref_id, person, number, gender, animacy}).
• tense_meta: tense_tag in {TIMELESS, PAST, PRESENT, FUTURE, SHIFT_OK} and target_tense in {None, PAST, PRESENT, FUTURE} (required whenever tense_tag == "SHIFT_OK").
1.2 Explicit Intra-Position, Inter-Position & Global Rules
• Intra-Position Pairing Q_j(A_j, B_j) (Q-J-001 & POS-RHYME-002): Ordered pair A_j -> B_j (Q_j(A_j, B_j) != Q_j(B_j, A_j) in general; i_A != i_B permitted) evaluates Q_j = S_j AND M_j AND R_j AND C_j AND T_j without duplicating any P_(2j) predicate.
• Inter-Position Boundary P_(2j+1)(B_j, A_(j+1)): Evaluates P_(2j+1) = P_meter AND P_rhyme AND P_syntax AND P_reference AND P_polarity AND P_clause across the boundary between B_j and A_(j+1) (j in {0, ..., 12}), defining T^(j)_(alpha, beta) = P_(2j+1)(B_(j,alpha), A_(j+1,beta)) in {0, 1}.
• Stanza Clause-Closure Policy (CLAUSE-BOUNDARY-04): Subordinate clause depth eta must never go negative during any intermediate event in clause_events (even if net delta is 0), and at every stanza boundary j in {3, 7, 10, 13} we require eta_j = 0.
• Referent Ordering & Scope (REF-ID-SCOPE-01): Within a single unit u, u.requires is checked against currently active in-scope referents before u.introduces adds new referents. Stanza-local referents expire after completing processing of the final unit of each stanza (j in {3, 7, 10}), while referents with persistent_macro=True persist across stanza boundaries.
• Tense Shift Policy (TENSE-BOUNDARY-02): SHIFT_OK is permitted only on stanza-entry A units (k in {0, 8, 16, 22}), immediately setting the locked tense to target_tense (including returning to an earlier tense), and remains locked throughout that stanza; mid-stanza SHIFT_OK is rejected.
• Sonnet-Wide Rhyme Policy (RHYME-GLOBAL-03): Unknown or missing macro_rhyme_key values on B units are rejected; repeated macro letters in Phi_macro = (A, B, A, B, C, D, C, D, E, E, F, G, G, F) must share the same rhyme class, and all seven distinct macro letters {A..G} must map to pairwise distinct rhyme classes across the whole sonnet.
• Canonical Sort Order (SORT-CANON-05): Admissible pairs alpha = (u, v) at position j are ordered deterministically by (u, v) lexicographically over 0..19 across all serialization, matrix, DP, and unranking stages.
2. Single-Evaluation DP Recurrence & Unranking Contract
Global state sigma = (tau, active_refs, eta, rhyme_map) starts at deterministic initial state sigma_init = (UNSET, empty, 0, empty). For each pair evaluation, evaluate transition sigma' = F_j(sigma, alpha) once and pass sigma' to every successor:
W_13(alpha, sigma) = 1 if (sigma' != REJECT and accepted at j = 13) else 0
W_j(alpha, sigma) = 0 if (sigma' == REJECT) else sum_{beta in A_(j+1) : T^(j)_(alpha,beta) = 1} W_(j+1)(beta, sigma')
N_valid = sum_{alpha in A_0} W_0(alpha, sigma_init)
Memoization keys must include the complete canonical global state sigma (not just pair index alpha), and the dense complexity bound O(sum_{j=0..12} |A_j| * |Sigma_j| * w_(j+1)) assumes bounded-cost state transitions and hashing. Whenever w_j = 0, N_adj = 0, or N_valid = 0, the engine returns EMPTY_VALID_SPACE.
3. Exact Numerical & Traversal Telemetry (T_cycle = 60 s)
• State Counts & Width: 10^14 = 100,000,000,000,000; 2^28 = 268,435,456; 10^28 = 10,000,000,000,000,000,000,000,000,000; 20^28 = 268,435,456 x 10^28 = 2,684,354,560,000,000,000,000,000,000,000,000,000 (37 digits, 122 bits inside a 128-bit unsigned integer); expansion factor 20^28 / 10^14 = 2.68435456 x 10^22.
• Julian Traversal (525,960 min/yr = 2^3 * 3^3 * 5 * 487, denominator 13,149 = 3^3 * 487, 486-digit recurring period via lcm(ord_27(10)=3, ord_487(10)=486) = 486):
- 10^14: 2,500,000,000,000 / 13,149 Julian years = 190,128,526 + 11,626 / 13,149 years.
- 2^28: 33,554,432 / 65,745 Julian years = 510 + 24,482 / 65,745 years (denominator 65,745 = 5 * 13,149 => 1-digit preperiod .3 plus 486-digit recurring cycle).
- 10^28: 250,000,000,000,000,000,000,000,000 / 13,149 Julian years = 19,012,852,688,417,370,142,216 + 1,816 / 13,149 years.
- 20^28: 67,108,864,000,000,000,000,000,000,000,000,000 / 13,149 Julian years = 5,103,723,781,276,142,672,446,573,883,945 + 7,195 / 13,149 years (~5.103723781... x 10^30 Julian years).
• Gregorian Traversal (525,949.2 min/yr, reduced denominator 1,314,873):
- 10^14: 250,000,000,000,000 / 1,314,873 years = 190,132,431 + 53,737 / 1,314,873 years.
- 2^28: 671,088,640 / 1,314,873 years = 510 + 503,410 / 1,314,873 years.
- 10^28: 25,000,000,000,000,000,000,000,000 / 1,314,873 years.
- 20^28: 6,710,886,400,000,000,000,000,000,000,000,000,000 / 1,314,873 years (integer quotient beginning 5,103,828,582,684,411,346,190,848,850,041, ~5.103828582... x 10^30 Gregorian years).
4. Evidence Ledger & Honest Distinctions
20^28 (possible indexed configurations) != N_valid (formally admissible compositions) != N_good (literary quality).
• MATHEMATICALLY VERIFIED: State counts (10^14, 2^28, 10^28, 20^28), expansion ratio 2.68435456 x 10^22, 122-bit / 128-bit range, exact Julian and Gregorian fractions, 486-digit recurring period modulo 13,149, 1-digit preperiod on 65,745, and nested bounds N_valid <= N_adj <= N_pair <= N_max.
• EXECUTED IN THIS THREAD: Supplementary 2x2 asymmetric Q test, 2x2 transition matrix with forbidden edge (Path A = Path B = 3 paths, all unranked uniquely), and zero-path EMPTY_VALID_SPACE test.
• REPORTED SYNTHETIC RESULTS (REPRODUCIBLE EXECUTION PENDING): Full 14-position synthetic fixture (16,384 checked trajectories, 2,048 valid trajectories, 25 memoized DP states) and expanded guardrail checks --- treated as reported until preserved with runnable source code, commands, and machine-readable logs.
• IMPLEMENTATION PENDING: Real 560-unit (28 x 20) corpus, actual M^(j) and T^(j) matrices, measured < 50 KB footprint, and production runtime/memory telemetry.
• MANUAL REVIEW: Literary merit and aesthetic quality (N_good vs. N_valid vs. 20^28).
This was done simply for fun and the math not to be disrespectful!