Compfiles/Imo1981P6.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned compfiles documentation, Pinned compfiles corpus index
3 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1981, Problem 6
Suppose that f : ℕ × ℕ → ℕ satisfies
- f (0, y) = y + 1
- f (x + 1, 0) = f (x, 1),
- f (x + 1, y + 1) = f (x, f (x + 1, y))
for all x y ∈ ℕ.
Determine f (4, 1981).
Imports (2)
Imported by 1 file
- def
Imo1981P6.no_evalWrapper to prevent the Lean kernel from eagerly trying to normalize the solution value, which happens to be way too large to normalize line 39 sourceSource documentation
Wrapper to prevent the Lean kernel from eagerly trying to normalize the solution value, which happens to be way too large to normalize.
no axioms what this means
Statement uses:
Natdef no_eval (x : ℕ) : ℕ := x …
- determine
Imo1981P6.solution_valueline 43 sourcestandard axioms: propext what this means
Statement uses:
NatProof uses: Imo1981P6.no_eval,
HSub.hSub,Nat.iterate,HPow.hPow,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
- problem
Imo1981P6.imo1981_p6line 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,OfNat.ofNat,HAdd.hAdd, Imo1981P6.solution_valueProof uses:
Nat.strongRecOn,LT.lt,Nat.casesAuxOn,of_eq_true,Eq.trans,True,congr,congrArg,zero_add,eq_self,Eq.symm,Eq.mpr,id,Nat.lt_add_one,Eq.refl,HMul.hMul,Nat.recAux,congrFun',MulZeroClass.mul_zero,Mathlib.Tactic.Ring.of_eqand 33 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 42 steps
Open to load the checked before-and-after goal states.