Repository navigation
feat(conway): import vihdzp/combinatorial-games + CGT tour in Lean-14a - #2302
Conversation
…ial-games + CGT tour in Lean-14a - New Lake project conway_cgt_lean/ (pattern Peters) importing vihdzp/combinatorial-games as dependency (toolchain v4.31.0-rc1) - CGTTour.lean: 13 #check statements presenting surreals, games, nimbers from the external repo (0 sorry, build SUCCESS in WSL) - Lean-14a notebook: add section 3.9 (CGT Tour) with reading cell + build cell, update section 3.8 (MathlibMap) to reference 3.9, update conclusion with vihdzp reference - Papermill SUCCESS: 16/16 code cells executed, 0 errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
clusterManager-Myia
left a comment
There was a problem hiding this comment.
[NanoClaw]
[OK] Import vihdzp/combinatorial-games + CGT tour. Contenu pedagogique solide, bien structure.
CGTTour.lean : 169 lignes, 13 #check, 0 sorry. Documentation exhaustive (historique deprecation Mathlib, comparaison table). Les choix de #check couvrent les 3 piliers CGT (jeux, surreels, nimbers) plus le theoreme de simplicite.
Lake project : propre, pattern Peters respecte, dependance Apache-2.0 correctement referencee.
Notebook 14a : sections 3.8 (MathlibMap, 10 #check) et 3.9 (CGTTour) integrees. La section 3.9 build timeoute a froid (1500s) mais c’est honnetement documente — les builds a froid de combinatorial-games sont lourds (Mathlib + depot externe). Le build conway_lean principal (3350 jobs) passe.
Concerns mineurs :
CGTTour.lean:#check (inferInstance : LinearOrder Surreal)apparait deux fois (#5 et #8). Un seul suffit.- Build conway_lean signale des
sorrydansHashlifeMemo.leanetPillars.lean(nouveaux modules depuis dernier review). Ce n’est pas introduit par cette PR mais值得 noter. - Sortie Papermill expose
C:\dev\CoursIA\...— acceptable.
Aucun sorry introduit, pas de secrets, pas de chemins Windows dans le code source.
Keeps COURSE_CATALOG.generated.json and CATALOG-STATUS markers in sync. See #2433. Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
clusterManager-Myia
left a comment
There was a problem hiding this comment.
[NanoClaw]
Review: #2302 — feat(conway): import vihdzp/combinatorial-games + CGT tour
Scope: 9 files (+1963 / -1552), 3 commits (head 4b58720, last review at 48ee7b22)
New: conway_cgt_lean/ project (4 files)
| File | Assessment |
|---|---|
lakefile.lean |
Clean. Imports mathlib + vihdzp/combinatorial-games as Lake deps. Follows established Peters pattern. autoImplicit := false — good practice. |
lean-toolchain |
v4.31.0-rc1 — matches the upstream combinatorial-games dependency. Consistent. |
CGTTour.lean |
169 lines, 13 #check, 0 sorry. Well-documented with doc comments explaining mathematical context (IGame/Game quotient, surreals, simplicity theorem, nimbers). Attribution to vihdzp + historical note about Mathlib removal (PR #35550). |
.gitignore |
Standard Lean gitignore (.lake, *.olean, *.ilean, *.trace). Correct. |
Verified: vihdzp/combinatorial-games exists, is active (not archived), Apache-2.0 licensed.
Minor issues
1. Duplicate #check in CGTTour.lean (low severity)
LinearOrder Surreal is checked twice — once in the "Surreal Numbers" section (line 4363) and again in the "Surreal Arithmetic" section (line 4374). The second instance adds no information. Consider replacing it with a different check (e.g., @Subfield Surreal ℚ or another arithmetic property) to avoid redundancy.
2. Notebook not re-executed after merge commit (cosmetic)
The merge commit (c37f6d9, Jun 5) used "ours" strategy and did not re-run papermill. The notebook papermill timestamps are from Jun 3 (initial commit). This is benign — "ours" preserved the correct branch version with its valid papermill output — but the output_path in papermill metadata references a Windows path (C:\dev\CoursIA\..._output.ipynb) which differs from other notebooks. Worth noting for CI consistency.
3. Success message hardcoded "12" (trivial)
In the build cell's success branch: "SUCCESS : CGTTour compile (12 #check verifies, 0 sorry)" — should be 13 to match actual count.
Notebook changes (Lean-14a)
- Section 3.9 (new): markdown + 2 code cells (read CGTTour.lean + lake build). Build cell handles TIMEOUT gracefully (1500s timeout on WSL cold start).
- Section 3.8: MathlibMap text updated to reference vihdzp/combinatorial-games and section 3.9.
- Section 3 intro table: lists both
conway_lean/andconway_cgt_lean/. - Conclusion: updated with CGT tour + vihdzp reference.
- Section 3 intro markdown: updated table formatting (GameTheory row expanded).
- Output: 16/16 code cells executed, 0 errors. Outputs look genuine (not fabricated).
Catalog/README (auto-generated)
Changes to COURSE_CATALOG.generated.json and README markers are consistent with the auto-regeneration bot commit. Validation dates and PR references updated. No issues.
Security
No secrets, credentials, or API keys found in the diff.
Verdict
Clean PR. The CGTTour.lean is well-written with proper attribution, clear mathematical commentary, and correct Lean 4 syntax. The Peters pattern is correctly followed. The two minor issues (duplicate #check, hardcoded "12") are trivial and non-blocking.
# Conflicts: # MyIA.AI.Notebooks/Probas/README.md # MyIA.AI.Notebooks/README.md
Regenerated COURSE_CATALOG.generated.json on fresh origin/main (--json-only --git-tracked-only) to pick up notebook metadata frozen by the de-churn-in-place discipline during the deep-queue wave. 21 entries updated (515 total, no add/remove), each verified against git history: - SL-1..SL-7 (x7): #2483, #2488 (SymbolicLearning BETA->PROD re-exec) - Search App-4/7/10/11/15 (x5): #2161, #2492 (Papermill H.3 re-exec) - Lean-14a-Conway: #2302 (CGT tour; cells 41->44) - Infer-20 + PyMC-20 (x2): #2481 (Gittins enrichment; cells +3/+1) - PyMC-13 + Sudoku-5/6/11/15 (x5): #2477 Fields synced: issue_pr_associee (most-recent PR per file), last_validation (last commit date), cells_* (genuine content changes). No curated-field blanchiment: all flips move forward to the file's true latest PR ref. Co-authored-by: myia-ai-01 <noreply@anthropic.com>
#2302) * feat(conway): add conway_cgt_lean project importing vihdzp/combinatorial-games + CGT tour in Lean-14a - New Lake project conway_cgt_lean/ (pattern Peters) importing vihdzp/combinatorial-games as dependency (toolchain v4.31.0-rc1) - CGTTour.lean: 13 #check statements presenting surreals, games, nimbers from the external repo (0 sorry, build SUCCESS in WSL) - Lean-14a notebook: add section 3.9 (CGT Tour) with reading cell + build cell, update section 3.8 (MathlibMap) to reference 3.9, update conclusion with vihdzp reference - Papermill SUCCESS: 16/16 code cells executed, 0 errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(catalog): auto-regenerate catalog + README markers [skip ci] Keeps COURSE_CATALOG.generated.json and CATALOG-STATUS markers in sync. See #2433. Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Regenerated COURSE_CATALOG.generated.json on fresh origin/main (--json-only --git-tracked-only) to pick up notebook metadata frozen by the de-churn-in-place discipline during the deep-queue wave. 21 entries updated (515 total, no add/remove), each verified against git history: - SL-1..SL-7 (x7): #2483, #2488 (SymbolicLearning BETA->PROD re-exec) - Search App-4/7/10/11/15 (x5): #2161, #2492 (Papermill H.3 re-exec) - Lean-14a-Conway: #2302 (CGT tour; cells 41->44) - Infer-20 + PyMC-20 (x2): #2481 (Gittins enrichment; cells +3/+1) - PyMC-13 + Sudoku-5/6/11/15 (x5): #2477 Fields synced: issue_pr_associee (most-recent PR per file), last_validation (last commit date), cells_* (genuine content changes). No curated-field blanchiment: all flips move forward to the file's true latest PR ref. Co-authored-by: myia-ai-01 <noreply@anthropic.com>
…um +24, semantic-fleet +2 (ci labeler) — dérive R2 résorbée (#27711) * Chore(submodules,#13902): bump MetaGeneticSharp -> a2e989e (cma-es restarts #75), Argumentum -> d313ba5 (24 commits docs/i18n/NFC) R2 mesure sur ls-remote au 2026-11-21 ~06:2xZ : - MetaGeneticSharp : f3eb45f4 -> a2e989e9 (main, +1 : feat(cma-es) orchestrate increasing population restarts #75) - Argumentum : 9e954081 -> d313ba52 (master, +24/-0 : wiring illustrations 2173, grounding i18n #2297, NFC arabes #2302, retrait AutoMapper #2305, ...) Voir #13902 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Chore(submodules,#13902): bump semantic-fleet -> bf66412 (ci labeler v7, PR amont #116) Derive R2 mesuree a ~09:5xZ (posterieure a la mesure du matin, ou le pin etait FRESH) : +2 commits sur stable-from-v0343 -- 08966af Fix(ci) bump actions/labeler v4->v7 + migration labeler.yml v5+, bf66412 merge PR #116. Aucun commit dans le sous-module lui-meme (amont deja pousse). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Summary
Following the Peters pattern (
social_choice_lean_peters/), this PR imports the external repositoryvihdzp/combinatorial-gamesas a Lake dependency and presents its formalized results.New:
conway_cgt_lean/projectlakefile.leanvihdzp/combinatorial-games+ Mathliblean-toolchainleanprover/lean4:v4.31.0-rc1(matching combinatorial-games)CGTTour.lean#checkstatements (0 sorry) presenting surreals, games, nimbers.gitignoreBuild:
lake build CGTTourSUCCESS in WSL (1675 jobs, 0 error, 0 sorry)Updated: Lean-14a notebook
CGTTour.lean, shows 13#check, attemptslake build CGTTour(TIMEOUT expected at cold start via/mnt/c/)conway_lean/andconway_cgt_lean/projectsExecution proof
conway_lean/builds:lake build ConwaySUCCESS (existing, unchanged)conway_cgt_lean/reads: CGTTour.lean detected, 13#checkextracted, 0 sorryconway_cgt_lean/build: TIMEOUT (expected — cross-filesystem WSL cold start)Key formalized results (13
#check)IGame -> Gamequotient,AddCommGroupWithOne,PartialOrderLinearOrder, simplicity theorem,CommRing, dyadic/ordinal embeddingsadd_def(mex),exists_of_lt_add,Field(characteristic 2)Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com