Compfiles/Imo2025P3.lean
7 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 2025, Problem 3
Let N denote the set of positive integers.
A function f : N → N is said to be bonza if f(a) divides b ^ a − f(b) ^ f(a) for all positive integers a and b.
Determine the smallest real constant c such that f(n) ⩽ cn for all bonza functions f and all positive integers n.
Imports (8)
Imported by 1 file
- lemma
fermat_little_theoremline 38 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PNat,Nat.Prime,Nat,Nat.ModEq,HPow.hPowProof uses:
dite,Dvd.dvd,OfNat.ofNat,Nat.ModEq.pow,Eq.mp,congrArg,Eq.symm,propext,Nat.modEq_zero_iff_dvd,Nat.ModEq.trans,zero_pow,of_eq_true,Not,Eq,Eq.trans,False,True,not_false_eq_true,Nat.ModEq.symm,Nat.Coprimeand 14 more28 instances, coercions and auxiliary constants left out.
Tactic trace: 17 steps
Open to load the checked before-and-after goal states.
- lemma
fermat_little_theorem2line 55 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PNat,Nat.Prime,Nat,Nat.ModEq,HPow.hPowProof uses:
Nat.recAux,Eq.mpr,OfNat.ofNat,id,Eq,congrFun',congrArg,Eq.trans,pow_zero,pow_one,Eq.refl,HMod.hMod,HAdd.hAdd,HMul.hMul,Nat.pow_add,Nat.mul_comm,Nat.pow_mul, fermat_little_theorem,Nat.ModEq.pow,Nat.ModEq.trans23 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
int_dvd_to_nat_dvdline 68 sourcestandard axioms: propext what this means
Statement uses:
PNat,Nat,Dvd.dvd,IntProof uses:
Iff.mp,Int.ofNat_dvd10 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- def
Bonzaline 74 sourcestandard axioms: propext what this means
Statement uses:
PNatProof uses:
Dvd.dvd,Int,HSub.hSub,HPow.hPow,Nat10 instances, coercions and auxiliary constants left out.
- def
is_valid_cline 78 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
PNat, Bonza,LE.le,HMul.hMul6 instances, coercions and auxiliary constants left out.
- determine
answerline 81 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- problem
imo2025_p3line 83 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
IsLeast,Real,Set.ofPred, is_valid_c, answerProof uses:
id,OfNat.ofNat,And.intro,Membership.mem,Set,lowerBounds,PNat, Bonza,Dvd.dvd,Int,HPow.hPow,Nat,of_eq_true,Eq.trans,Or,Ne,IsUnit,True,congrFun',congrArgand 215 more276 instances, coercions and auxiliary constants left out.
Tactic trace: 491 steps (first 200 of 491)
Open to load the checked before-and-after goal states.