abelianpi.dev/post/lean-prove-1080-sets
All of my friends know that I play Set at a level so beyond obsessive it almost integer overflows to mundane -- the simplicity and symmetry of the game makes for an easy way to reset the marbles in my brain, and it's a quick way to idly pass by a minute or two between subway stops. Because of the elegant (one could even say algebraic) nature of the game, it's also fun to use for combinatorics questions. Since I've been trying to get more used to Lean anyway, I decided to try proving some Set combinatorics in Lean. Let's first look at how many distinct sets there should be from the deck of 81 cards. The Fundamental Theorem of Set says that given two cards, we can uniquely determine the third card in the set (try it!). So there are ( 81 2 ) ⋅ 1 3 = 1080 ( 2 81 )⋅ 3 1 =1080 unique sets we can create (remember we divide by 3 to correctly account for the 3 different ways to choose the first 2 cards from the 3 cards in a set). I won't go into the rules of Set or how I chose the spec
Using Lean to Prove 1080 Sets abelianpi understanding through writing Search On this page No sections yet 🔴 🟡 🟢 Using Lean to Prove 1080 Sets ← Back to Posts Using Lean to Prove 1080 Sets All of my friends know that I play Set at a level so beyond obsessive it almost integer overflows to mundane -- the simplicity and symmetry of the game makes for an easy way to reset the marbles in my brain, and it's a quick way to idly pass by a minute or two between subway stops. Because of the elegant (one could even say algebraic) nature of the game, it's also fun to use for combinatorics questions. Si
Explore this link on the map →saved by
related reading
- 4. Sets and Functions - Mathematics in Lean v4.19.0 documentationleanprover-community.github.io
- Lean (proof assistant) - Wikipediaen.wikipedia.org
- 3. Logic - Mathematics in Lean v4.19.0 documentationleanprover-community.github.io
- A slightly longer Lean 4 proof tour | What's newterrytao.wordpress.com
- Two infinities that are surprisingly equal | Gowers's Webloggowers.wordpress.com
- What's new | Updates on my research and expository papers, discussion of open problems, and other maths-related topics. By Terence Taoterrytao.wordpress.com
- Mathematicians Play “Set” – Math with Bad Drawingsmathwithbaddrawings.com
- 2510.01346arxiv.org
- A Lean Syntax Primer — overreactedoverreacted.io
- AlphaProof Paperjulian.ac
- A recent experience with ChatGPT 5.5 Pro | Gowers's Webloggowers.wordpress.com
- Schröder–Bernstein theorem - Wikipediaen.wikipedia.org