This is a template for creating a game with lean4game. It contains a single Level plus the files needed for a local development setup.
The documentation about how to use this template are at the lean4game repository:
New version of the CAP Game in Lean 4. Created as material for the course computer assisted proofs at the Vrije Universiteit Amsterdam. Original found at https://alexjbest.github.io/CAP-game/
License: MIT License
This is a template for creating a game with lean4game. It contains a single Level plus the files needed for a local development setup.
The documentation about how to use this template are at the lean4game repository:
I have to go now, so hopefully these short notes help!
As discussed: rw
does a refl
and rewrite
does not.
Note the first word lemma is a keyword (highlighted in blue) and means we are stating a new lemma.
This is not blue for me. Maybe you need to enable syntax highlighting for the code snippets? I think you can write:
```lean
lemma add_comm : ∀ (x : ℕ) (y : ℕ), x + y = y + x
```
The following sequence of tactics causes a goal that the player cannot solve:
rewrite [hPQ]
rewrite [hQR]
rewrite [not_not]
rewrite [iff_self]
rewrite [iff_true]
rewrite [iff_self]
Maybe you can add a hint saying how to undo the last move (to do rfl
instead)?
Should there be a note that P ∧ Q ∧ R = P ∧ (Q ∧ R)
? Otherwise they might get confused why their rewrites are not working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.