EncounterActivity 1 of 10
Encounter
Lean is a computer language with two jobs:
- It is a programming language: you can write functions and run them.
- It is a proof assistant: you can state mathematical claims and write proofs, and Lean checks every step. If Lean accepts a proof, a small, carefully designed program at its heart, the kernel, has confirmed it.
You do not need to install anything: the boxes below send your code to a real Lean 4 installation and show you exactly what it answers.
A program is a list of instructions. Here, each line starting with # is a command
that asks Lean a question:
#eval emeans "compute e and show me the result".#check emeans "what type does e have?"