Compfiles/Imo1977P2.lean
8 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 1977, Problem 2
In a finite sequence of real numbers the sum of any seven successive terms is negative and the sum of any eleven successive terms is positive. Determine the maximum number of terms in the sequence.
Imports (2)
Imported by 1 file
- def
Imo1977P2.sum_successive_termsline 27 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
AddCommMonoid,Nat,Fin,NeZero,LT.lt,HSub.hSub,HAdd.hAdd,OfNat.ofNatProof uses:
Finset.sum,Finset.Icc,Fin.mk21 instances, coercions and auxiliary constants left out.
- def
Imo1977P2.coeFunctionInt2Realline 37 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,Real2 instances, coercions and auxiliary constants left out.
- instance
Imo1977P2.(instance at line 39)line 39 source - theorem
Imo1977P2.sum_successive_terms_intCastline 43 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Int,NeZero,LT.lt,HSub.hSub,HAdd.hAdd,OfNat.ofNat,Eq,Real, Imo1977P2.sum_successive_termsProof uses:
id,Finset.sum,Finset.Icc,Fin.mk,of_eq_true,Eq.trans,True,congrFun',congrArg,Int.cast_sum,eq_self39 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- def
Imo1977P2.example_16_intline 48 sourcestandard axioms: propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,IntProof uses:
Matrix.vecCons,Neg.neg,Matrix.vecEmpty4 instances, coercions and auxiliary constants left out.
- def
Imo1977P2.example_16line 50 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,RealProof uses: Imo1977P2.example_16_int
3 instances, coercions and auxiliary constants left out.
- determine
Imo1977P2.max_num_termsline 56 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- problem
Imo1977P2.imo1977_p2line 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Maximal,Nat,Exists,Fin,Real,And,LT.lt,HSub.hSub,HAdd.hAdd,OfNat.ofNat, Imo1977P2.sum_successive_terms, Imo1977P2.max_num_termsProof uses:
Eq.mpr,Not,id,Eq,congrArg,propext,maximal_iff_forall_gt,And.intro,Exists.intro, Imo1977P2.example_16, Imo1977P2.example_16_int,Int,Eq.symm, Imo1977P2.sum_successive_terms_intCast,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl,NeZeroand 92 more188 instances, coercions and auxiliary constants left out.
Tactic trace: 60 steps
Open to load the checked before-and-after goal states.