Compfiles/Imo2020P5.lean
5 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 2020, Problem 5
A deck of n > 1 cards is given. A positive integer is written on each card. The deck has the property that the arithmetic mean of the numbers on each pair of cards is also the geometric mean of the numbers on some collection of one or more cards.
For which n does it follow that the numbers on the cards are all equal?
Imported by 1 file
- determine
Imo2020P5.SolutionSetline 30 sourceno axioms what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,LT.lt,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
- def
Imo2020P5.geometric_meanline 32 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,PNat,Finset,RealProof uses:
HPow.hPow,Finset.prod,HDiv.hDiv,OfNat.ofNat,Finset.card11 instances, coercions and auxiliary constants left out.
- lemma
Imo2020P5.rpow_inv_eq_iffline 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,LE.le,OfNat.ofNat,Nat,Ne,Iff,Eq,HPow.hPow,HDiv.hDivProof uses:
Eq.mpr,Inv.inv,id,congrArg,one_div,Iff.intro,Eq.symm,Real.rpow_inv_natCast_pow,Eq.refl,Real.rpow_natCast,HMul.hMul,Real.rpow_mul,mul_inv_cancel₀,cast,Not,Eq.trans,Nat.cast_zero,Real.rpow_one66 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
Imo2020P5.all_equalline 59 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Fin,PNat,Pairwise,Exists,Finset,And,Finset.Nonempty,Eq,Real, Imo2020P5.geometric_mean,HDiv.hDiv,HAdd.hAddProof uses:
Finset.gcd,Finset.univ,rfl,Dvd.dvd,Finset.gcd_dvd,Finset.mem_univ,Fin.mk,Nat.pos_of_dvd_of_pos,PNat.pos,Subtype.mk,Nat.div_pos,Nat.le_of_dvd,HMul.hMul,Eq.mpr,id,congrArg,Eq.symm,Nat.mul_div_cancel',Ne,Exists.introand 152 more200 instances, coercions and auxiliary constants left out.
Tactic trace: 128 steps
Open to load the checked before-and-after goal states.
- problem
Imo2020P5.imo2020_p5line 206 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Iff,Membership.mem,Set, Imo2020P5.SolutionSet,And,LT.lt,OfNat.ofNat,Fin,PNat,Pairwise,Exists,Finset,Finset.Nonempty,Eq,Real, Imo2020P5.geometric_mean,HDiv.hDiv,HAdd.hAddProof uses:
Iff.intro,And.intro, Imo2020P5.all_equal,And.left28 instances, coercions and auxiliary constants left out.