Concept map
Arrows point from a prerequisite to the concept that builds on it. Select a concept to open the lesson that teaches it.
Text view
- PropositionNot started
A statement that is either true or false.
What is a statement? - Examples and counterexamplesNot started
Why examples cannot prove a claim about every case, but one counterexample can refute it.
Needs: Proposition
Examples are not proofs - Negation (NOT)Not started
¬P is true exactly when P is false.
Needs: Proposition
NOT and AND - Conjunction (AND)Not started
P ∧ Q is true exactly when both P and Q are true.
Needs: Proposition
NOT and AND - Disjunction (OR)Not started
P ∨ Q is true when at least one of P, Q is true.
Needs: Proposition
OR: at least one - Implication (IF … THEN)Not started
P → Q is false only when P is true and Q is false.
Needs: Proposition
IF … THEN: implication - Truth tables and equivalenceNot started
Two formulas are equivalent when they agree in every situation; a tautology is true in every situation.
Needs: Negation (NOT), Conjunction (AND), Disjunction (OR), Implication (IF … THEN)
Truth tables, tautologies and equivalence - Reading formulasNot started
Symbols, grouping, precedence and the main connective of a formula.
Needs: Negation (NOT), Conjunction (AND), Disjunction (OR), Implication (IF … THEN)
Reading formulas: symbols and grouping - For all (∀)Not started
∀ x, P x is true when every object satisfies P; one counterexample makes it false.
Needs: Proposition, Examples and counterexamples
All and some: ∀ and ∃ - There exists (∃)Not started
∃ x, P x is true when at least one object (a witness) satisfies P.
Needs: Proposition
All and some: ∀ and ∃ - Lean basics: values, types, #eval, #checkNot started
Every Lean expression has a type; Lean can evaluate programs and check statements.
Needs: Proposition
Meet Lean: evaluate, check, define - Proving implications: intro and exactNot started
To prove P → Q, assume P (intro) and then prove Q; close a goal with a matching hypothesis (exact).
Needs: Implication (IF … THEN), Reading formulas, Lean basics: values, types, #eval, #check
Your first proof: P → Q → P - Proving and using ANDNot started
Prove P ∧ Q by proving both parts; use h : P ∧ Q through h.1, h.2 or obtain.
Needs: Conjunction (AND), Proving implications: intro and exact
Proving and using AND - Proving and using ORNot started
Prove P ∨ Q by proving one side; use h : P ∨ Q by handling both cases.
Needs: Disjunction (OR), Proving implications: intro and exact
Proving and using OR - Natural deductionNot started
Building proofs from introduction and elimination rules, one justified step at a time.
Needs: Implication (IF … THEN), Conjunction (AND), Disjunction (OR), Negation (NOT), Reading formulas
Natural deduction: the rules of proof - Sets and membershipNot started
Sets, membership, ∩ ∪ \ and complement, and their link to ∧ ∨ ¬.
Needs: Conjunction (AND), Disjunction (OR), Negation (NOT), For all (∀)
Sets, membership and Venn diagrams - Functions: injective, surjective, bijectiveNot started
A function gives each input exactly one output; injective, surjective and bijective describe how outputs are hit.
Needs: Sets and membership, For all (∀), There exists (∃)
Functions: one-to-one, onto, and both - RecursionNot started
Defining a function in terms of itself on smaller inputs, with a base case that stops.
Needs: Lean basics: values, types, #eval, #check
Recursion: functions that use themselves - Mathematical inductionNot started
Prove P(0), and P(k) → P(k+1) for every k; then P(n) holds for every natural number n.
Needs: Recursion, For all (∀), Proving implications: intro and exact, Examples and counterexamples
Mathematical induction: proving infinitely many cases - Relations: equivalence and orderNot started
Relations as sets of pairs; reflexive, symmetric, antisymmetric and transitive; equivalence relations and partial orders.
Needs: Sets and membership, For all (∀), Implication (IF … THEN)
Relations: equivalence and order - Direct proofNot started
Assume the hypotheses and chain justified steps to the conclusion.
Needs: Proving implications: intro and exact, There exists (∃), Proving and using AND
Writing proofs: direct proof and proof by cases - Proof by casesNot started
Split into cases that cover every possibility and prove the goal in each.
Needs: Direct proof, Proving and using OR
Writing proofs: direct proof and proof by cases - Proof by contradictionNot started
Assume the opposite and derive something impossible; know when this needs classical logic.
Needs: Direct proof, Negation (NOT), Natural deduction
Proof by contradiction - Proving with ∀ and ∃Not started
Introduce and use universal and existential statements: arbitrary objects, witnesses, specialisation.
Needs: For all (∀), There exists (∃), Proving implications: intro and exact
Proving with ∀ and ∃ - Equality and rewritingNot started
Prove equalities by computation (rfl), by rewriting with equations (rw), and by chains (calc).
Needs: Lean basics: values, types, #eval, #check, Proving implications: intro and exact
Equality and rewriting - Structures and inductive typesNot started
Define your own data types, compute on them by pattern matching, and prove facts by cases and structural induction.
Needs: Recursion, Mathematical induction, Lean basics: values, types, #eval, #check
Your own data types - Lists, maps and foldsNot started
Process lists by recursion and higher-order functions (map, filter, fold) and prove their properties by list induction.
Needs: Structures and inductive types, Mathematical induction, Functions: injective, surjective, bijective
Lists, maps and folds - Recursion and terminationNot started
Why Lean requires every function to terminate; structural recursion, well-founded recursion with termination_by and decreasing_by, and fuel.
Needs: Recursion, Structures and inductive types
Recursion and termination - Specifications and correctnessNot started
State what a program must do as a theorem, and prove that the implementation meets it; tests versus proofs.
Needs: Proving with ∀ and ∃, Structures and inductive types, Lists, maps and folds
Specifications: programs you can trust - Choosing tacticsNot started
Read the shape of the goal and the hypotheses to choose the next tactic; structure proofs with have and bullets; know when to use automation.
Needs: Proving with ∀ and ∃, Proving and using AND, Proving and using OR
Choosing the next tactic - Propositions as typesNot started
A proposition is a type and a proof is a term of that type: implications are functions, conjunctions are pairs, ∀ is a dependent function.
Needs: Proving implications: intro and exact, Proving and using AND, Proving with ∀ and ∃
Propositions as types - Notation and macrosNot started
How Lean turns text into terms: parsing, macro expansion, elaboration and the kernel; defining notation and simple tactic macros, and why they matter for trust.
Needs: Lean basics: values, types, #eval, #check, Choosing tactics
Notation and macros - Necessary and sufficient conditionsNot started
P is sufficient for Q when P guarantees Q (P → Q); Q is then necessary for P. Both together: P ↔ Q.
Needs: Implication (IF … THEN)
Necessary and sufficient - FallaciesNot started
Tempting but invalid patterns of reasoning: affirming the consequent, denying the antecedent, hasty generalisation, correlation taken as causation, circular reasoning.
Needs: Implication (IF … THEN), Truth tables and equivalence, Examples and counterexamples
Fallacies: reasoning that only looks right - Modelling a stateNot started
Describe a system by the data that determines it (pieces, slots, orientations) and state what 'correct' means for that data.
Needs: Specifications and correctness
Cube Quest 1 · Specify: what is a cube? - Moves as composable dataNot started
A move is a state change; composing moves is a multiplication; repeating one returns to the start after its order.
Needs: Modelling a state
Cube Quest 3 · Mechanize: moves as data