Compfiles/Imo1989P1.lean
16 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1989, Problem 1
Prove that the integers from 1 to 1989 can be partitioned in 117 sets of 17 elements each, all with the same sum of elements.
Imports (2)
Imported by 1 file
- abbrev
Imo1989P1.Sline 26 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,NatProof uses:
Finset.Icc,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- def
Imo1989P1.nline 30 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- lemma
Imo1989P1.fin_n_cardline 32 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Fintype.card,Fin, Imo1989P1.n,OfNat.ofNatProof uses:
id,of_eq_true,Eq.trans,True,congrFun',congrArg,Fintype.card_fin,eq_self4 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- def
Imo1989P1.rowline 36 sourceno axioms what this means
Statement uses:
Nat,Fin, Imo1989P1.nProof uses:
ite,LT.lt,OfNat.ofNat,Eq,HMod.hMod,HAdd.hAdd,HMul.hMul,HSub.hSub13 instances, coercions and auxiliary constants left out.
- def
Imo1989P1.Aline 44 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin, Imo1989P1.n,Finset,NatProof uses:
Finset.image, Imo1989P1.row,Finset.range,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
- lemma
Imo1989P1.row_quotline 46 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Fin, Imo1989P1.n,Eq,HDiv.hDiv,HSub.hSub, Imo1989P1.rowProof uses:
id,dite,ite,HMod.hMod,HAdd.hAdd,HMul.hMul,Eq.mpr,congrFun',congrArg,ite_eq_left,add_tsub_cancel_right,Not,ite_eq_right,Eq.mp,LE.le47 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.row_injline 49 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin, Imo1989P1.n,LT.lt,OfNat.ofNat,Iff,Eq, Imo1989P1.row,AndProof uses:
Iff.intro,HDiv.hDiv,HSub.hSub, Imo1989P1.row_quot,Eq.trans,Eq.symm,Eq.mp,congrArg,And.intro,Fin.ext,dite,HMod.hMod,id,HAdd.hAdd,HMul.hMul,ite,congr,ite_eq_left,Not,ite_eq_rightand 1 more26 instances, coercions and auxiliary constants left out.
Tactic trace: 15 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.row_injOnline 57 source - lemma
Imo1989P1.row_image_injline 62 source - lemma
Imo1989P1.A_cardline 66 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin, Imo1989P1.n,Eq,Nat,Finset.card, Imo1989P1.A,OfNat.ofNatProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,Finset.image, Imo1989P1.row,Finset.range,Finset.card_image_of_injOn,Finset.card_range,eq_self4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.A_sumline 69 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin, Imo1989P1.n,Eq,Nat,Finset.sum, Imo1989P1.A,id,OfNat.ofNatProof uses:
Eq.mpr,Finset.image, Imo1989P1.row,Finset.range,congrArg,Finset.sum_image,Membership.mem,Set,Finset,HAdd.hAdd,ite,LT.lt,True,HMul.hMul,HSub.hSub,HMod.hMod,congrFun',Eq.trans,Finset.sum_range_succ,congrand 23 more42 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.A_injectiveline 77 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Function.Injective,Fin, Imo1989P1.n,Finset,Nat, Imo1989P1.AProof uses:
Eq,Membership.mem, Imo1989P1.row,OfNat.ofNat,Eq.rec,Iff.mpr,Finset.image,Finset.range,Exists,And,Finset.mem_image,Exists.intro,And.intro,of_eq_true,Eq.trans,LT.lt,True,rfl,Iff.mp,And.rightand 3 more19 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.A_le_Sline 83 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin, Imo1989P1.n,LE.le,Finset,Nat, Imo1989P1.A, Imo1989P1.SProof uses:
Membership.mem,And,Finset.range,OfNat.ofNat,Eq, Imo1989P1.row,Exists,Iff.mp,Finset.image,Finset.mem_image,id,Eq.mpr,ite,LT.lt,HMod.hMod,HAdd.hAdd,HMul.hMul,HSub.hSub,Finset.Icc,congrArgand 11 more67 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1989P1.A_disjointline 87 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin, Imo1989P1.n,Ne,Disjoint,Finset,Nat, Imo1989P1.AProof uses:
Eq.mpr,Membership.mem,Not,id,Eq,congrArg,propext,Finset.disjoint_left,And,Finset.range,OfNat.ofNat, Imo1989P1.row,Exists,False,Iff.mp,Finset.image,Finset.mem_image,And.right, Imo1989P1.row_inj,LT.ltand 2 more12 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- def
Imo1989P1.Pline 94 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finpartition,Finset,Nat, Imo1989P1.SProof uses:
Finpartition.mk,Finset.image,Fin, Imo1989P1.n, Imo1989P1.A,Finset.univ11 instances, coercions and auxiliary constants left out.
Tactic trace: 15 steps
Open to load the checked before-and-after goal states.
- problem
Imo1989P1.imo1989_p1line 114 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Exists,Finpartition,Finset,Nat, Imo1989P1.S,And,Eq,Finset.card,Finpartition.parts,OfNat.ofNat,Membership.mem,Finset.sum,idProof uses:
Exists.intro, Imo1989P1.P,And.intro,Eq.mpr,Finpartition.mk,Finset.image,Fin, Imo1989P1.n, Imo1989P1.A,Finset.univ,congrArg,Imo1989P1.P.eq_1,Finset.card_image_of_injective, Imo1989P1.A_injective,Imo1989P1.n.eq_1,of_eq_true,Eq.trans,True,congrFun',Fintype.card_finand 7 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.