Skip to content

fix: consolidate redundant theorem tabs (closes #13)#15

Merged
ZRTMRH merged 1 commit intomainfrom
fix-issue-13-tab-consolidation
Apr 18, 2026
Merged

fix: consolidate redundant theorem tabs (closes #13)#15
ZRTMRH merged 1 commit intomainfrom
fix-issue-13-tab-consolidation

Conversation

@ZRTMRH
Copy link
Copy Markdown
Owner

@ZRTMRH ZRTMRH commented Apr 18, 2026

Summary

Addresses #13 by eliminating two forms of redundant theorem tabs that Jad noticed while playing:

  1. SetSets tab. Set.union_subset was introduced via NewTheorem in VectorSpaceWorld/Level05.lean but its TheoremDoc … in "Sets" declaration lived in LinearIndependenceSpanWorld/Level07.lean. Between those worlds the game fell back to a namespace-default Set tab containing only that one theorem. Fix: move the TheoremDoc to VectorSpaceWorld/Level05.lean alongside the NewTheorem, so the theorem lands in Sets from first introduction.

  2. Unify / tabs. InnerProductWorld/Level03.lean mixed two naming conventions side-by-side: in "ℝ" / in "ℂ" vs in "Real Numbers" / in "Complex Numbers". Picked the Unicode form (matching TheoremTab "ℂ" in Level02.lean and other uses in the world). Changed 3x Real Numbers and 2x Complex Numbers.

Test plan

  • lake build — 3229 jobs, exit 0, no new warnings introduced
  • Verify in browser that Set.union_subset now appears in the Sets tab from Vector Space World Level 5 onward
  • Verify that the and tabs in Inner Product World Level 3 each contain all the relevant theorems with no duplicate Real Numbers / Complex Numbers tabs

Out of scope

🤖 Generated with Claude Code

- Move TheoremDoc for Set.union_subset from LinearIndependenceSpanWorld/Level07
  to VectorSpaceWorld/Level05, alongside its NewTheorem. Previously the
  theorem fell into a namespace-default "Set" tab (with only itself) when
  first introduced, before its TheoremDoc was seen. Now it lands in "Sets"
  immediately.
- In InnerProductWorld/Level03, unify tab names to the Unicode form used
  elsewhere in the world: "Real Numbers" → "ℝ" (3x), "Complex Numbers" → "ℂ"
  (2x). Eliminates side-by-side duplicate tabs for the same concept.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ZRTMRH ZRTMRH merged commit 285da79 into main Apr 18, 2026
2 checks passed
@ZRTMRH ZRTMRH deleted the fix-issue-13-tab-consolidation branch April 18, 2026 20:47
@JadAbouHawili
Copy link
Copy Markdown

after making commits , you need to go to the github actions that succeeded, go to build and deploy , then to 'What Next?' and click the trigger url which would update the game on the lean 4 game server for users to actually see.

@JadAbouHawili
Copy link
Copy Markdown

I verified the two remaining points in the test plan

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