Skip to content

feat(conway): import vihdzp/combinatorial-games + CGT tour in Lean-14a - #2302

Merged
jsboige merged 4 commits into
mainfrom
feat/conway-cgt-combinatorial-games-tour
Jun 5, 2026
Merged

jsboige merged 4 commits into
mainfrom
feat/conway-cgt-combinatorial-games-tour

Conversation

@jsboige

@jsboige jsboige commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

Following the Peters pattern (social_choice_lean_peters/), this PR imports the external repository vihdzp/combinatorial-games as a Lake dependency and presents its formalized results.

New: conway_cgt_lean/ project

File Content
lakefile.lean Lake project importing vihdzp/combinatorial-games + Mathlib
lean-toolchain leanprover/lean4:v4.31.0-rc1 (matching combinatorial-games)
CGTTour.lean 13 #check statements (0 sorry) presenting surreals, games, nimbers
.gitignore Standard Lean gitignore

Build: lake build CGTTour SUCCESS in WSL (1675 jobs, 0 error, 0 sorry)

Updated: Lean-14a notebook

  • Section 3.9 (new): CGT Tour — reads CGTTour.lean, shows 13 #check, attempts lake build CGTTour (TIMEOUT expected at cold start via /mnt/c/)
  • Section 3.8 (updated): MathlibMap now references §3.9 for CGT content
  • Section 3 intro table (updated): lists both conway_lean/ and conway_cgt_lean/ projects
  • Conclusion (updated): mentions CGT tour + vihdzp reference

Execution proof

  • Papermill SUCCESS: 16/16 code cells executed, 0 errors
  • conway_lean/ builds: lake build Conway SUCCESS (existing, unchanged)
  • conway_cgt_lean/ reads: CGTTour.lean detected, 13 #check extracted, 0 sorry
  • conway_cgt_lean/ build: TIMEOUT (expected — cross-filesystem WSL cold start)

Key formalized results (13 #check)

Domain Result
Games IGame -> Game quotient, AddCommGroupWithOne, PartialOrder
Surreals LinearOrder, simplicity theorem, CommRing, dyadic/ordinal embeddings
Nimbers add_def (mex), exists_of_lt_add, Field (characteristic 2)

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

…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 clusterManager-Myia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 sorry dans HashlifeMemo.lean et Pillars.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.

jsboige and others added 2 commits June 5, 2026 14:37
…lls preserved)

Main changes since merge-base (cc9d977 cross-platform, 240612c MathlibMap, 83d6a9d renumber) are superseded by the CGT-tour additions in this branch. The notebook will be re-executed to incorporate cross-platform fixes and MathlibMap references.

See #2302
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>
@github-actions

github-actions Bot commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: undefined
  • Code cells validated: undefined
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

@clusterManager-Myia clusterManager-Myia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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/ and conway_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
@jsboige
jsboige merged commit 487a54a into main Jun 5, 2026
6 checks passed
@jsboige
jsboige deleted the feat/conway-cgt-combinatorial-games-tour branch June 5, 2026 17:11
jsboige added a commit that referenced this pull request Jun 5, 2026
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>
jsboige added a commit that referenced this pull request Jun 5, 2026
#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>
jsboige added a commit that referenced this pull request Jun 5, 2026
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>
myia-ai-01 pushed a commit that referenced this pull request Nov 21, 2026
…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>
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.

2 participants