Skip to content

fix(mechanic): wire annotations into partition-theorem-oq-03 index.ts#18853

Merged
rjwalters merged 1 commit into
mainfrom
fix/mechanic-partition-thm-oq03-1778675339
May 13, 2026
Merged

fix(mechanic): wire annotations into partition-theorem-oq-03 index.ts#18853
rjwalters merged 1 commit into
mainfrom
fix/mechanic-partition-thm-oq03-1778675339

Conversation

@rjwalters
Copy link
Copy Markdown
Owner

Fix

Replace 4-line stub index.ts (import meta; import annotations; export { meta, annotations }) with the canonical 44-line ProofData template so src/data/proofs/partition-theorem-oq-03/ renders correctly in the gallery.

Evidence

Before (index.ts, 4 lines, 109 bytes): only re-exports meta and annotations as named bindings; no default export. getProofAsync (src/data/proofs/index.ts:60-79) reads module.default and gets undefined, so ProofPage.tsx:111 destructures undefined.proof / undefined.annotations and renders broken despite a 7.8KB annotations.json sitting on disk.

After (44 lines): canonical template matching triangle-angle-sum-oq-01/index.ts (precedent PR #18749, in-flight class). Imports typed meta + annotations, defines partitionTheoremOq03Proof / partitionTheoremOq03Annotations / partitionTheoremOq03Data, exports partitionTheoremOq03Data as default, dynamically imports proofs/Proofs/PartitionTheoremOQ03.lean?raw for getProofSource().

Diff: 1 file changed, +43 -3.

Same class as in-flight mechanic PRs #18806 / #18810 / #18813 / #18815 / #18817 / #18820 / #18822 / #18823 / #18824 / #18827 / #18830 / #18834 / #18836 / #18837 / #18838 / #18839 / #18840 / #18841 / #18843 (per-slug PRs, one slug per PR by design).


Automated fix by lean-mechanic agent.

rjwalters added a commit that referenced this pull request May 13, 2026
The 4-line stub `export { meta, annotations }` left the gallery page
broken: `getProofAsync` consumed `module.default` (the truthy raw meta
dict) and never reached the fallback branch, so the page rendered with
proof/annotations/versionInfo undefined despite a 10.8KB annotations.json
on disk.

Replaced with the canonical 44-line template (matches PR #18749
triangle-angle-sum-oq-01 and PR #17885 lagrange-theorem-oq-02-oq-02):
imports annotationsJson, hardcodes `proofs/Proofs/Erdos1021OQ01.lean?raw`,
exports camelCase `erdos1021Oq01Proof`/`erdos1021Oq01Annotations`/
`erdos1021Oq01Data` plus `getProofSource()` for the async Lean fetch.

Restores: 5 keyInsights, 4 sections (header-imports, oq01-question,
trivial-vs-little-o, k3-settled, lower-bound), historicalContext,
problemStatement, proofStrategy, conclusion, 2 references
(Kővári-Sós-Turán 1954, Bondy-Simonovits 1974), 1 cross-reference
to parent erdos-1021, and the full 10.8KB annotation set.

Orthogonal to the in-flight wave (#18805 #18806 #18810 #18813 #18815
#18817 #18820 #18822 #18823 #18824 #18827 #18830 #18834 #18836 #18838
#18839 #18840 #18843 #18844 #18846 #18849 #18850 #18852 #18853) — each
PR fixes one slug; ~7 stubs remain after this one (gcd-algorithm-oq-02,
gcd-algorithm-oq-04, harmonic-divergence-oq-04, ramseys-theorem-oq-04,
erdos-114-oq-04, lagrange-theorem-oq-02-oq-02-oq-01,
angle-trisection-oq-05-oq-04, triangular-reciprocals-oq-01).

Co-authored-by: Robb Walters <r.j.walters@gmail.com>
@rjwalters rjwalters merged commit 698e210 into main May 13, 2026
@rjwalters rjwalters deleted the fix/mechanic-partition-thm-oq03-1778675339 branch May 13, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant