Compfiles/IntegersInACircle.lean
3 declarations, 0 contain sorry, 0 declared as axioms
There are 101 positive integers arranged in a circle. Suppose that the integers sum to 300. Prove that there exists a contiguous subarray that sums to 200.
https://mathstodon.xyz/@alexdbolton/110292738044661739https://math.stackexchange.com/questions/282589/101-positive-integers-placed-on-a-circle
Imports (5)
Imported by 1 file
- lemma
IntegersInACircle.lemma1line 33 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,Eq,HMod.hMod,OfNat.ofNat,LT.lt,Or9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
IntegersInACircle.lemma2line 37 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,Int,Eq,Finset.sum,Finset.univ,Finset.range,HAdd.hAddProof uses:
Membership.mem,Finset,Mathlib.Tactic.LinearCombination.eq_of_eq,Mathlib.Tactic.LinearCombination.eq_rearrange,Mathlib.Tactic.Ring.of_eq,HSub.hSub,Mathlib.Tactic.Ring.Common.sub_congr,HMul.hMul,HPow.hPow,Nat.rawCast,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.Common.atom_pf,rfl,Eq.mpr,id,congrArg,Eq.symm,Eq.refl,Mathlib.Tactic.Ring.Common.add_pf_add_lt,Mathlib.Tactic.Ring.Common.add_pf_zero_addand 57 more71 instances, coercions and auxiliary constants left out.
Tactic trace: 22 steps
Open to load the checked before-and-after goal states.
- problem
IntegersInACircle.integers_in_a_circleline 62 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,Int,LE.le,Eq,Finset.sum,Finset.univ,Exists,Finset.range,HAdd.hAddProof uses:
ZMod.val,And,Ne,Function.comp,Fintype.exists_ne_map_eq_of_card_lt,Nat.lt_add_one,Fintype.card,LT.lt,Not,Or,Classical.em,Int.ModEq,Finset.Ico,Finset.sum_pos,Membership.mem,Finset,Eq.mp,Iff.mpr,Finset.Nonempty,Finset.nonempty_Icoand 63 more94 instances, coercions and auxiliary constants left out.
Tactic trace: 76 steps
Open to load the checked before-and-after goal states.