Compfiles/Bulgaria1998P1.lean
10 declarations, 0 contain sorry, 0 declared as axioms
Bulgarian Mathematical Olympiad 1998, Problem 1
We will be considering colorings in 2 colors of n (distinct) points A₁, A₂, ..., Aₙ. Call such a coloring "good" if there exist three points Aᵢ, Aⱼ, A₂ⱼ₋ᵢ, 1 ≤ i < 2j - i ≤ n, which are colored the same color.
Find the least natural number n (n ≥ 3) such that all colorings of n points are good.
Imports (2)
Imported by 1 file
- abbrev
Bulgaria1998P1.coloring_is_goodline 30 sourceno axioms what this means
Statement uses:
Nat,Set.Icc,OfNat.ofNat,FinProof uses:
Exists,And,LT.lt,Membership.mem,Set,HSub.hSub,HMul.hMul,Eq,Subtype.mk14 instances, coercions and auxiliary constants left out.
- abbrev
Bulgaria1998P1.all_colorings_are_goodline 36 sourceno axioms what this means
Statement uses:
NatProof uses:
And,LE.le,OfNat.ofNat,Set.Icc,Fin, Bulgaria1998P1.coloring_is_good4 instances, coercions and auxiliary constants left out.
- lemma
Bulgaria1998P1.lemma1line 41 sourcestandard axioms: propext what this means
Statement uses:
Nat,LE.le, Bulgaria1998P1.all_colorings_are_goodProof uses:
And.intro,OfNat.ofNat,Set.Icc,Fin, Bulgaria1998P1.coloring_is_good,LE.le.trans,And.left,Subtype.mk,Membership.mem,Set,Eq.mpr,And,id,Eq,congrArg,propext,Set.mem_Icc,Subtype.prop,And.right,Existsand 14 more27 instances, coercions and auxiliary constants left out.
Tactic trace: 21 steps
Open to load the checked before-and-after goal states.
- def
Bulgaria1998P1.coloring_of_eightline 63 sourcestandard axioms: propext what this means
Statement uses:
Nat,Set.Icc,OfNat.ofNat,FinProof uses:
Bulgaria1998P1.coloring_of_eight.match_1,Membership.mem,Set9 instances, coercions and auxiliary constants left out.
- lemma
Bulgaria1998P1.lemma2line 74 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Exists,Nat,Set.Icc,OfNat.ofNat,Fin,Not, Bulgaria1998P1.coloring_is_goodProof uses:
Exists.intro, Bulgaria1998P1.coloring_of_eight,of_decide_eq_true,And,LT.lt,Membership.mem,Set,HSub.hSub,HMul.hMul,Eq,Subtype.mk,id,Bool,Decidable.decide,Bool.true,Eq.refl25 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- determine
Bulgaria1998P1.solution_valueline 81 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- def
Bulgaria1998P1.check9line 83 source - def
Bulgaria1998P1.toFin9line 91 source - lemma
Bulgaria1998P1.of_check9line 94 source - problem
Bulgaria1998P1.bulgaria1998_p1line 116 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
IsLeast,Nat,Set.ofPred, Bulgaria1998P1.all_colorings_are_good, Bulgaria1998P1.solution_valueProof uses:
And.intro,Membership.mem,Set,lowerBounds,Eq.mpr,id,Eq,congrArg,Set.mem_ofPred_eq,LE.le,OfNat.ofNat,Set.Icc,Fin, Bulgaria1998P1.coloring_is_good,Mathlib.Meta.NormNum.isNat_le_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.true,propextand 12 more24 instances, coercions and auxiliary constants left out.
Tactic trace: 16 steps
Open to load the checked before-and-after goal states.