Compfiles/Imo1966P1.lean
6 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1966, Problem 1.
In a mathematical contest, three problems, A, B, C were posed. Among the participants there were 25 students who solved at least one problem each. Of all the contestants who did not solve problem A, the number who solved B was twice the number who solved C. The number of students who solved only problem A was one more than the number of students who solved A and at least one other problem. Of all students who solved just one problem, half did not solve problem A. How many students solved only problem B?
Imports (2)
Imported by 1 file
- example
Imo1966P1.(example at line 36)line 36 sourceSource comment
outline of the proof, modified from https://prase.cz/kalva/imo/isoln/isoln661.htmlexample (a b c d e : ℕ) (_ : a + b + c + d + e = 25) (h2 : b + d = 2 * (c + d)) (h3 : a = 1 + 25 - a - b - c - d) (h4 : a = b + c) : b = 6 := by lia
- lemma
Imo1966P1.lemma2line 42 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Eq,Union.union,Inter.inter,SDiff.sdiffProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,Or,And,Not,id,congrArg,Eq.trans,congr,Iff.intro,Iff.mpr,Classical.or_iff_not_imp_left,And.intro,False,Iff.mp,Decidable.not_and_iff_not_or_not',False.elim14 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1966P1.lemma4line 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Eq,SDiff.sdiff,Inter.interProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,And,Not,id,congr,congrArg,Eq.trans,congrFun',Iff.intro,And.intro9 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Imo1966P1.lemma5line 49 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Eq,Inter.inter,SDiff.sdiffProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,Not,id,Eq.trans,And,congr,congrArg,congrFun',implies_congr,Eq.refl,False.elim,False11 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- determine
Imo1966P1.solutionline 55 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- problem
Imo1966P1.imo1966_p1line 57 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Eq,Nat,Finset.card,Union.union,OfNat.ofNat,SDiff.sdiff,HMul.hMul,HAdd.hAdd,Inter.inter, Imo1966P1.solutionProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,Or,And,Not,id,congr,congrArg,Eq.trans,congrFun',Finset.union_assoc,Iff.intro,Iff.mpr,Classical.or_iff_not_imp_left,Iff.mp,Decidable.not_and_iff_not_or_not',False.elim,Decidable.of_not_notand 20 more47 instances, coercions and auxiliary constants left out.
Tactic trace: 48 steps
Open to load the checked before-and-after goal states.