A statement before a tactic
In “theorem identity (n : Nat) : n = n”, n is a natural number and the goal is its equality with itself. “by rfl” supplies a proof by reflexivity. This is a teaching explanation, not live goal output.
Who this path is for
Use these lessons if you know basic mathematical notation and want short, explicit steps. For Mathlib development, multi-file repositories or full IDE support, use the official installation and documentation. The experimental workspace checks core-library code in a browser worker; it has no full Mathlib environment.
Make the next move
Read the first worked proof, then open it in the workspace and change one side of the equality. Download it for a trusted local Lean installation. No installation or account is needed for reading and editing here.