Compfiles/Imo1981P4.lean
12 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1981, Problem 4
(a) For which values of $n>2$ is there a set of $n$ consecutive positive integers such that the largest number in the set is a divisor of the least common multiple of the remaining $n-1$ numbers?
(b) For which values of $n>2$ is there exactly one set having the stated property?
Imports (2)
Imported by 1 file
- def
Imo1981P4.last_divides_lcm_remainingline 31 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Dvd.dvd,HAdd.hAdd,Finset.lcm,Finset.Icc,OfNat.ofNat,HSub.hSub,id11 instances, coercions and auxiliary constants left out.
- theorem
Imo1981P4.not_existsUnique_of_not_existsline 35 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not,Exists,ExistsUnique1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.not_existsUnique_of_exists_neline 38 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Ne,Not,ExistsUnique1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.dvd_factorialline 42 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat, Imo1981P4.last_divides_lcm_remaining,Dvd.dvd,HAdd.hAdd,Nat.factorial,HSub.hSub,OfNat.ofNatProof uses:
Finset.prod,Finset.Icc,id,dvd_trans,Finset.lcm,Finset.lcm_dvd_prod,Eq.mpr,Finset.range,Eq,congrArg,Nat.factorial_eq_prod_range_add_one,Eq.mp,Int,Eq.trans,Finset.prod_congr,Eq.refl,Finset,Membership.mem,Eq.symm,Nat.cast_oneand 33 more110 instances, coercions and auxiliary constants left out.
Tactic trace: 29 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.not_3line 66 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not,Exists,Nat, Imo1981P4.last_divides_lcm_remaining,OfNat.ofNatProof uses:
id,False,Dvd.dvd,HAdd.hAdd,Nat.factorial,HSub.hSub, Imo1981P4.dvd_factorial,LE.le,Nat.le_of_dvd,of_eq_true,LT.lt,Eq.trans,True,Eq.mp,congrArg,Eq,Eq.refl33 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.unique_4line 75 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ExistsUnique,Nat, Imo1981P4.last_divides_lcm_remaining,OfNat.ofNatProof uses:
Exists.intro,And,Eq,And.intro,id,of_decide_eq_true,Dvd.dvd,HAdd.hAdd,Finset.lcm,Finset.Icc,HSub.hSub,Bool,Decidable.decide,Bool.true,Eq.refl,Classical.byContradiction,Not,Exists,Ne,Falseand 11 more40 instances, coercions and auxiliary constants left out.
Tactic trace: 19 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.coprime_sub_succline 91 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,Nat.Coprime,HSub.hSub,HAdd.hAdd,OfNat.ofNatProof uses:
Eq.mpr,id,Eq,congrArg,Nat.succ,Nat.sub_succ',propext,Nat.coprime_self_sub_right,of_eq_true,Nat.coprime_one_right_eq_true13 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.lcm_sub_succline 96 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,Eq,Nat.lcm,HSub.hSub,HAdd.hAdd,OfNat.ofNat,HMul.hMulProof uses:
Nat.Coprime.lcm_eq_mul, Imo1981P4.coprime_sub_succ14 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- theorem
Imo1981P4.ge_5line 100 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,Or,Eq, Imo1981P4.last_divides_lcm_remaining,HSub.hSub,Nat.lcm,HAdd.hAddProof uses:
Eq.mpr,HMul.hMul,id,congrArg, Imo1981P4.lcm_sub_succ,Dvd.dvd,Finset.lcm,Finset.Icc,Nat.sub_add_cancel,Int,Eq.trans,Nat.cast_mul,Nat.cast_sub,sub_mul,mul_sub,Eq.symm,propext,sub_nonneg,Or.elim,congrFun'and 89 more143 instances, coercions and auxiliary constants left out.
Tactic trace: 57 steps
Open to load the checked before-and-after goal states.
- determine
Imo1981P4.values_aline 138 sourceno axioms what this means
Statement uses:
Set,NatProof uses:
Set.Ici,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
- determine
Imo1981P4.values_bline 140 sourceno axioms what this means
Statement uses:
Set,NatProof uses:
Singleton.singleton,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
- problem
Imo1981P4.imo1981_p4line 142 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,And,Iff,Membership.mem,Set, Imo1981P4.values_a,LT.lt,OfNat.ofNat,Exists, Imo1981P4.last_divides_lcm_remaining, Imo1981P4.values_b,ExistsUniqueProof uses:
And.intro,id,Iff.intro,Set.Ici,Or,Eq,LE.le,Or.elim,ExistsUnique.exists, Imo1981P4.unique_4,Eq.symm,Exists.intro,HSub.hSub,Nat.lcm,HAdd.hAdd, Imo1981P4.ge_5,of_eq_true,Eq.trans,True,Falseand 99 more144 instances, coercions and auxiliary constants left out.
Tactic trace: 76 steps
Open to load the checked before-and-after goal states.