Compfiles/Imo1999P4.lean
6 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1999, Problem 4
Determine all pairs of positive integers (n,p) such that p is a prime, n not exceeded 2p, and (p-1)ⁿ + 1 is divisible by of nᵖ⁻¹.
Imports (3)
Imported by 1 file
- lemma
Imo1999P4.exists_least_prime_factorline 29 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,OfNat.ofNat,Exists,And,Nat.Prime,Dvd.dvd,LE.leProof uses:
Exists.intro,Nat.minFac,And.intro,Nat.minFac_prime,Nat.minFac_dvd,Nat.minFac_le_of_dvd,Nat.Prime.two_le6 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1999P4.padicValNat_le_padicValNat_of_dvdline 35 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Ne,OfNat.ofNat,Nat.Prime,Dvd.dvd,LE.le,padicValNatProof uses:
Fact,Fact.mk,Eq.mpr,HPow.hPow,id,Eq,congrArg,Eq.symm,propext,padicValNat_dvd_iff_le,dvd_trans,pow_padicValNat_dvd11 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1999P4.aux₁line 42 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Nat.Prime,LT.lt,OfNat.ofNat,Nat.Coprime,HSub.hSub,Dvd.dvd,HAdd.hAdd,HPow.hPowProof uses:
Fact,Fact.mk,And,orderOf,ZMod,HMul.hMul,Not,Eq.mpr,Eq,id,congr,congrArg,Or,Neg.neg,congrFun',Eq.trans,pow_mul',And.intro,Or.inr,eq_neg_of_add_eq_zero_leftand 37 more110 instances, coercions and auxiliary constants left out.
Tactic trace: 24 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1999P4.aux₂line 69 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Nat.Prime,Dvd.dvd,LE.le,Nat.Coprime,HSub.hSub,OfNat.ofNatProof uses:
Nat.coprime_of_dvd',False.elim,Nat.Prime.two_le,Nat.le_of_dvd12 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- determine
Imo1999P4.SolutionSetline 81 sourcestandard axioms: propext what this means
Statement uses:
Set,Prod,NatProof uses:
Union.union,Insert.insert,Prod.mk,OfNat.ofNat,Singleton.singleton,Set.ofPred,Imo1999P4.SolutionSet.match_1,And,Eq,Nat.Prime4 instances, coercions and auxiliary constants left out.
- problem
Imo1999P4.imo1999_p4line 83 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Iff,Membership.mem,Prod,Set, Imo1999P4.SolutionSet,Prod.mk,And,LT.lt,OfNat.ofNat,LE.le,HMul.hMul,Nat.Prime,Dvd.dvd,HPow.hPow,HSub.hSub,HAdd.hAddProof uses:
Iff.intro,Eq.mpr,Or,Eq,id,implies_congr,Union.union,Insert.insert,Singleton.singleton,Set.ofPred,Imo1999P4.SolutionSet.match_1,Eq.trans,congrFun',congrArg,congr,Prod.mk.injEq,Eq.refl,of_eq_true,True,eq_trueand 137 more132 instances, coercions and auxiliary constants left out.
Tactic trace: 137 steps
Open to load the checked before-and-after goal states.