Skip to content

enrich(Conway-Lean): exercises + interpretations for Lean-15 and Lean-16 - #2550

Merged
jsboige merged 7 commits into
mainfrom
enrich/conway-3-pillars-2155
Jun 6, 2026
Merged

jsboige merged 7 commits into
mainfrom
enrich/conway-3-pillars-2155

Conversation

@jsboige

@jsboige jsboige commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

Pedagogical enrichment of 2 Conway notebooks in the Lean series.

Lean-15 Kochen-Specker

  • Exercise 2: verify experimental 18-vector limit (bases_compatibles function, R^4 vector compatibility)
  • Exercise 3: build best partial coloring (exhaustive 2^18 search, max 8/9 contexts)
  • Interpretation: after lake build -- SUCCESS status, sorry only in Life/* (out of scope)
  • Exercise count: 1 -> 3 (convention [Epic transverse] Convention 3 exercices par notebook #2161 met)

Lean-16 Conway Free Will Theorem

  • Exercise 2: formalize MIN constraint (independence simulation across direction pairs)
  • Exercise 3: describe Lean proof structure (tactic analysis table)
  • 5 interpretations: SPIN sampling result (0/200K), contradiction mechanics, declaration-to-proof transition, formal concision, port status
  • Header: standardized with Objectifs d'apprentissage heading
  • Fix: 3 consecutive code cells broken by transition markdown
  • Exercise count: 1 -> 3 (convention [Epic transverse] Convention 3 exercices par notebook #2161 met)

Compliance

  • All stubs: print("Exercice a completer") + variable = None / TODO etudiant (C.1)
  • No raise NotImplementedError / assert False / 1/0
  • 0 existing code cells modified (markdown + exercise stubs only)
  • No re-execution needed (rule C.3: markdown-only changes)
  • Catalog untouched (catalog-pr-hygiene respected)

See #2155 (Epic Conway NB2), See #2161 (3 exercises convention), See #2162 (Lean formalizations)

jsboige and others added 2 commits June 6, 2026 16:27
…and Lean-16 (FWT) (See #2155 #2161)

Lean-15 Kochen-Specker:
- Add Exercise 2: verify experimental 18-vector limit (bases_compatibles)
- Add Exercise 3: build best partial coloring (exhaustive search)
- Add interpretation after lake build (SUCCESS, sorry status)
- Exercise count: 1 -> 3 (convention #2161 met)

Lean-16 Conway Free Will Theorem:
- Add Exercise 2: formalize MIN constraint (independence simulation)
- Add Exercise 3: describe Lean proof structure (tactic analysis table)
- Add 5 interpretations after code outputs (SPIN sampling, contradiction
  mechanics, declaration-to-proof transition, concision, port status)
- Standardize header with Objectifs d'apprentissage heading
- Fix 3 consecutive code cells (add transition markdown)
- Exercise count: 1 -> 3 (convention #2161 met)

All stubs use print("Exercice a completer") + variable = None, no
raise NotImplementedError. Markdown-only + exercise stubs, 0 code
modification to existing cells.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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 6, 2026 •

Copy link
Copy Markdown
Contributor

Notebook PR Validation: FAIL

  • Notebooks checked: 4
  • Code cells validated: 54
  • Result: 2 notebook(s) with violations

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)

Violations

MyIA.AI.Notebooks/SymbolicAI/Lean/Lean-15-Kochen-Specker.ipynb (13 cells, python3)

  • cell 10: execution_count is null (H.3 violation)
  • cell 18: execution_count is null (H.3 violation)

MyIA.AI.Notebooks/SymbolicAI/Lean/Lean-16-Conway-Free-Will-Theorem.ipynb (14 cells, python3)

  • cell 14: execution_count is null (H.3 violation)
  • cell 25: execution_count is null (H.3 violation)

How to fix

# Re-execute the notebook
python scripts/notebook_tools/notebook_tools.py execute <path>

@clusterManager-Myia

Copy link
Copy Markdown
Collaborator

[NanoClaw]

Security scan: PASS

No secrets, API keys, tokens, or credentials detected in the diff.

Notebook content: GOOD

Lean-15 Kochen-Specker (+37/-3):

  • Exercises 2 and 3 are well-designed, with clear objectives, progressive hints, and stub cells following the standard pattern (print("Exercice a completer") + variable = None # TODO etudiant).
  • Exercise 2 (bases_compatibles function, R^4 vector compatibility) directly builds on the Cabello table analysis from earlier sections -- good pedagogical progression.
  • Exercise 3 (exhaustive 2^18 coloring search) connects to the parity argument proof -- meaningful follow-up.
  • Interpretation cell after the Lean build summarizes sorry status accurately (0 sorry in KS+FWT, residual sorry only in Life/* out of scope).
  • Exercise count: 1 -> 3. Convention [Epic transverse] Convention 3 exercices par notebook #2161 met.
  • All 4 new cells have execution_count: null and empty outputs -- correct for stubs.

Lean-16 Conway Free Will Theorem (+59/-41):

  • Header rewritten to add "Objectifs d'apprentissage" section -- good pedagogical structure.
  • Exercises 2 and 3 are substantive: MIN constraint simulation and Lean proof structure analysis.
  • 5 interpretation cells added throughout, bridging code outputs with conceptual understanding. The tables (SPIN sampling, contradiction mechanics, FWT chain depth, port status) are well-formatted and informative.
  • The "Verification" cell bridging declaration and proof is a nice structural addition.
  • Exercise count: 1 -> 3. Convention [Epic transverse] Convention 3 exercices par notebook #2161 met.
  • All 2 new code cells have execution_count: null and empty outputs.
  • 3 papermill metadata cells have cosmetic change duration: 0.0 -> duration: 0 -- harmless.

Catalog overwrite: CONCERN (#2161 pattern)

The PR body claims "Catalog untouched (catalog-pr-hygiene respected)" but COURSE_CATALOG.generated.json has 1019 additions and 1019 deletions. Of 515 catalog entries, 511 had their issue_pr_associee field blanket-replaced with #2499. Only 4 entries were preserved (the 2 Lean notebooks this PR touches, plus 2 unrelated entries).

This is the recurring #2161 overwrite pattern: the catalog regeneration script stamps every entry with the current PR number, erasing the actual provenance of each notebook. For example, an entry that previously referenced #2288, #2467 now shows only #2499.

Recommendation: Either (a) exclude the catalog from this PR entirely (the PR body already claims it's untouched), or (b) update the PR body to acknowledge the catalog change and document that this is an intentional regeneration. The current state -- blanket overwrite + body claiming "untouched" -- is inconsistent and makes the issue_pr_associee field unreliable for tracking which PRs actually modified a given notebook.

Verdict

Notebook content is solid -- exercises are well-scoped, interpretations add value, and stubs follow conventions. The catalog overwrite is the only blocker for a clean merge.

jsboige and others added 5 commits June 6, 2026 16:39
…2155)

- Add 6 interpretation cells after key code outputs:
  I1: Boite a outils operationnelle (RLE parser + B3/S23 setup)
  I2: Blinker as metapixel metaphor (ON/OFF at scale 700x)
  I3: OTCA Metapixel scale (2058x2058 for one cell)
  I4: Population staircase (each step = one glider, natural clock)
  I5: Machine de Turing in the grid (tape/head/transitions in Life)
  I6: Gemini universal constructor (genetic info vs physical realization)
- Enrich header with Objectifs d'apprentissage + Prerequis + Duree estimee
- Exercise count: 3 (already compliant, unchanged)
- Markdown-only, 0 code modification

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
…Lean-14a (See #2155)

- Add Objectifs d'apprentissage (4 points: panorama, Lean proofs, theorem mapping, CGT)
- Add Prerequis (Python 3.10+, WSL+Lake, no Lean prerequisite)
- Add Duree estimee (~90 minutes)
- All existing content preserved, only header enriched

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
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