Compfiles/Usa1998P4.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned compfiles documentation, Pinned compfiles corpus index
48 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 1998, Problem 4
A computer screen shows a 98 × 98 chessboard, colored in the usual way. One can select with a mouse any rectangle with sides on the lines of the chessboard and click the mouse button: as a result, the colors in the selected rectangle switch (black becomes white, white becomes black). Find, with proof, the minimum number of mouse clicks needed to make the chessboard all one color.
Imported by 1 file
- def
Usa1998P4.chessboardline 32 sourceno axioms what this means
Proof uses:
Prod,Fin,OfNat.ofNat,Nat1 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.coloringline 34 sourceno axioms what this means
Proof uses: Usa1998P4.chessboard,
ZMod,OfNat.ofNat,Nat1 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.all_same_colorline 36 sourceno axioms what this means
Statement uses: Usa1998P4.coloring
Proof uses:
Exists,ZMod,OfNat.ofNat,Nat, Usa1998P4.chessboard,Eq1 instances, coercions and auxiliary constants left out.
- structure
Usa1998P4.Rectangleline 39 sourceno axioms what this means
- def
Usa1998P4.recolor_rectline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring, Usa1998P4.Rectangle
Proof uses: Usa1998P4.chessboard,
Usa1998P4.recolor_rect.match_1,ZMod,OfNat.ofNat,Nat,Fin,ite,And,LE.le,Usa1998P4.Rectangle.x,Usa1998P4.Rectangle.y,LT.lt,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.height,Prod.mk22 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.start_coloringline 55 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring
Proof uses: Usa1998P4.chessboard,
Usa1998P4.recolor_rect.match_1,ZMod,OfNat.ofNat,Nat,Fin,HAdd.hAdd16 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.possible_num_clicksline 57 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,Exists,List, Usa1998P4.Rectangle,And, Usa1998P4.all_same_color,List.foldl, Usa1998P4.coloring, Usa1998P4.recolor_rect, Usa1998P4.start_coloring,Eq,List.length - determine
Usa1998P4.min_clicksline 62 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.rectColorThe indicator coloring of a rectangle line 86 sourceSource documentation
The indicator coloring of a rectangle.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.Rectangle, Usa1998P4.coloring
Proof uses: Usa1998P4.chessboard,
ite,ZMod,OfNat.ofNat,Nat,And,LE.le,Usa1998P4.Rectangle.x,Prod.fst,Fin,Usa1998P4.Rectangle.y,Prod.snd,LT.lt,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.height23 instances, coercions and auxiliary constants left out.
def rectColor (r : Rectangle) : coloring := …
Mentions: Usa1998P4.Rectangle, Usa1998P4.coloring
- lemma
Usa1998P4.recolor_rect_applyline 91 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring, Usa1998P4.Rectangle, Usa1998P4.chessboard,
Eq,ZMod,OfNat.ofNat,Nat, Usa1998P4.recolor_rect,HAdd.hAdd, Usa1998P4.rectColorProof uses:
Fin,id,Prod.mk,Usa1998P4.recolor_rect.match_1,ite,And,LE.le,Usa1998P4.Rectangle.x,Usa1998P4.Rectangle.y,LT.lt,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.height,Prod.fst,Prod.snd,dite,Eq.mpr,congr,congrArg,ite_eq_left,of_eq_trueand 6 more37 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.foldl_recolor_applyline 98 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
List, Usa1998P4.Rectangle, Usa1998P4.coloring, Usa1998P4.chessboard,Eq,ZMod,OfNat.ofNat,Nat,List.foldl, Usa1998P4.recolor_rect,HAdd.hAdd,List.sum,List.map, Usa1998P4.rectColorProof uses:
List.rec,of_eq_true,List.nil,Eq.trans,True,congrArg,List.map_nil,add_zero,eq_self,Eq.mpr,List.cons,id,List.foldl_cons,List.map_cons,List.sum_cons, Usa1998P4.recolor_rect_apply,Mathlib.Tactic.Ring.of_eq,HMul.hMul,HPow.hPow,Nat.rawCastand 7 more39 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- abbrev
Usa1998P4.Cornerline 108 sourceno axioms what this means
Proof uses:
Prod,Fin,OfNat.ofNat,Nat1 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.cellValueExtend a coloring by zero outside the board line 111 sourceSource documentation
Extend a coloring by zero outside the board.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring,
Nat,ZMod,OfNat.ofNatProof uses:
dite,LT.lt,Prod.mk,Fin,Fin.mk,Not12 instances, coercions and auxiliary constants left out.
def cellValue (f : coloring) (x y : ℕ) : ZMod 2 := …
Mentions: f, Usa1998P4.coloring
- def
Usa1998P4.addColoringline 118 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring
Proof uses: Usa1998P4.chessboard,
HAdd.hAdd,ZMod,OfNat.ofNat,Nat9 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.cellValue_addline 121 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring,
Nat,Eq,ZMod,OfNat.ofNat, Usa1998P4.cellValue, Usa1998P4.addColoring,HAdd.hAddProof uses:
id,dite,LT.lt,Prod.mk,Fin,Fin.mk,Not,Eq.mpr,congr,congrArg,dite_eq_left,of_eq_true,eq_self,dite_eq_right,Eq.trans,True,add_zero29 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.maskedCellline 126 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Decidable, Usa1998P4.coloring,Nat,ZMod,OfNat.ofNatProof uses:
ite, Usa1998P4.cellValue10 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.maskedCell_addline 129 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Decidable, Usa1998P4.coloring,Nat,Eq,ZMod,OfNat.ofNat, Usa1998P4.maskedCell, Usa1998P4.addColoring,HAdd.hAddProof uses:
id,ite, Usa1998P4.cellValue,Not,Eq.mpr,congr,congrArg,ite_eq_right,of_eq_true,Eq.trans,True,add_zero,eq_self,ite_eq_left,congrFun', Usa1998P4.cellValue_add28 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.cornerDeltaThe sum of the values of the four cells touching a grid-line corner line 135 sourceSource documentation
The sum of the values of the four cells touching a grid-line corner.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring, Usa1998P4.Corner,
ZMod,OfNat.ofNat,NatProof uses:
HAdd.hAdd, Usa1998P4.maskedCell,And,LT.lt,Prod.fst,Fin,Prod.snd,HSub.hSub16 instances, coercions and auxiliary constants left out.
def cornerDelta (f : coloring) (c : Corner) : ZMod 2 := …
Mentions: f, Usa1998P4.coloring, Usa1998P4.Corner
- lemma
Usa1998P4.cornerDelta_addline 141 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring, Usa1998P4.Corner,
Eq,ZMod,OfNat.ofNat,Nat, Usa1998P4.cornerDelta, Usa1998P4.addColoring,HAdd.hAddProof uses:
id,Eq.mpr, Usa1998P4.maskedCell,And,LT.lt,Prod.fst,Fin,Prod.snd,HSub.hSub,congrArg, Usa1998P4.maskedCell_add,congr,Eq.trans,congrFun',Usa1998P4.maskedCell.congr_simp,Lean.Data.AC.Context.eq_of_norm,Lean.Data.AC.Context.mk,Option.some,PLift,Std.Commutativeand 13 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.cornerSupportline 147 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring,
Finset, Usa1998P4.CornerProof uses:
Finset.filter,Ne,ZMod,OfNat.ofNat,Nat, Usa1998P4.cornerDelta,Eq,Finset.univ,Fin13 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.mem_cornerSupportline 150 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring, Usa1998P4.Corner,
Iff,Membership.mem,Finset, Usa1998P4.cornerSupport,Ne,ZMod,OfNat.ofNat,Nat, Usa1998P4.cornerDeltaProof uses:
of_eq_true,Not,Eq,Eq.trans,True,congrFun',congrArg,And,Finset.univ,Fin,Finset.filter,Finset.filter_congr,Iff.of_eq,Eq.refl,true_and,iff_self28 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.ne_zero_or_ne_zero_of_add_ne_zeroline 154 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,Ne,HAdd.hAdd,OrProof uses:
Mathlib.Tactic.Contrapose.contrapose₂,Eq,Eq.mpr,Not,And,id,implies_congr,Eq.trans,congr,congrArg,Eq.refl,of_eq_true,True,congrFun',And.left,And.right,add_zero,eq_self32 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerSupport_add_subsetline 159 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.coloring,
LE.le,Finset, Usa1998P4.Corner, Usa1998P4.cornerSupport, Usa1998P4.addColoring,Union.union,Fin,OfNat.ofNat,NatProof uses:
Eq.mpr,Membership.mem,Ne,ZMod, Usa1998P4.cornerDelta,id,Eq,congrArg,propext, Usa1998P4.mem_cornerSupport,HAdd.hAdd, Usa1998P4.cornerDelta_add,Or,Finset.mem_union, Usa1998P4.ne_zero_or_ne_zero_of_add_ne_zero24 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.clipline 168 sourcestandard axioms: propext what this means
Statement uses:
Nat,Fin,OfNat.ofNatProof uses:
Fin.mk,Min.min4 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.maskedCell_rectColorline 170 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Decidable, Usa1998P4.Rectangle,Nat,Eq,ZMod,OfNat.ofNat, Usa1998P4.maskedCell, Usa1998P4.rectColor,ite,And,LT.lt,LE.le,Usa1998P4.Rectangle.x,Usa1998P4.Rectangle.y,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.heightProof uses:
id, Usa1998P4.cellValue,dite,Prod.mk,Fin,Fin.mk,Not,Prod.fst,Prod.snd,Eq.mpr,congrFun',congrArg,ite_eq_left,dite_eq_left,Eq.refl,ite_eq_right,Or,Iff.mp,Decidable.not_and_iff_not_or_not',False.elimand 1 more47 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerDelta_rectColor_eq_zero_xline 178 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.Rectangle, Usa1998P4.Corner,
Ne,Nat,OfNat.ofNat,Prod.fst,Fin,Min.min,Usa1998P4.Rectangle.x,HAdd.hAdd,Usa1998P4.Rectangle.width,Eq,ZMod, Usa1998P4.cornerDelta, Usa1998P4.rectColorProof uses:
Prod.mk,LT.lt,Fin.isLt,id, Usa1998P4.maskedCell,And,Prod.snd,HSub.hSub,Eq.mpr,ite,LE.le,Usa1998P4.Rectangle.y,Usa1998P4.Rectangle.height,congrArg, Usa1998P4.maskedCell_rectColor,Iff,Decidable.byContradiction,Not,if_congr,rfland 5 more49 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerDelta_rectColor_eq_zero_yline 206 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.Rectangle, Usa1998P4.Corner,
Ne,Nat,OfNat.ofNat,Prod.snd,Fin,Min.min,Usa1998P4.Rectangle.y,HAdd.hAdd,Usa1998P4.Rectangle.height,Eq,ZMod, Usa1998P4.cornerDelta, Usa1998P4.rectColorProof uses:
Prod.mk,LT.lt,Fin.isLt,id, Usa1998P4.maskedCell,And,Prod.fst,HSub.hSub,Eq.mpr,ite,LE.le,Usa1998P4.Rectangle.x,Usa1998P4.Rectangle.width,congrArg, Usa1998P4.maskedCell_rectColor,Iff,Decidable.byContradiction,Not,if_congr,rfland 5 more49 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerSupport_rectColor_card_leline 233 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.Rectangle,
LE.le,Nat,Finset.card, Usa1998P4.Corner, Usa1998P4.cornerSupport, Usa1998P4.rectColor,OfNat.ofNatProof uses:
Finset,SProd.sprod,Fin,Prod,Insert.insert, Usa1998P4.clip,Usa1998P4.Rectangle.x,Singleton.singleton,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.y,Usa1998P4.Rectangle.height,Eq.mpr,Membership.mem,Ne,ZMod, Usa1998P4.cornerDelta,id,Eq,congrArgand 29 more31 instances, coercions and auxiliary constants left out.
Tactic trace: 18 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerSupport_zeroline 261 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Finset, Usa1998P4.Corner, Usa1998P4.cornerSupport, Usa1998P4.chessboard,OfNat.ofNat,ZMod,Nat,EmptyCollection.emptyCollectionProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,Ne, Usa1998P4.cornerDelta,id,congrArg,propext, Usa1998P4.mem_cornerSupport,of_eq_true,Eq.trans,False,True,congr,congrFun',HAdd.hAdd, Usa1998P4.maskedCell,And,LT.ltand 19 more43 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.cornerSupport_listSum_card_leline 266 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
List, Usa1998P4.Rectangle,LE.le,Nat,Finset.card, Usa1998P4.Corner, Usa1998P4.cornerSupport, Usa1998P4.chessboard,List.sum,ZMod,OfNat.ofNat,List.map, Usa1998P4.rectColor,HMul.hMul,List.lengthProof uses:
List.rec,of_eq_true,List.nil,Eq.trans,True,congr,congrArg,Finset,EmptyCollection.emptyCollection,funext,List.map_nil, Usa1998P4.cornerSupport_zero,MulZeroClass.mul_zero,Eq,List.cons, Usa1998P4.addColoring,HAdd.hAdd,congrFun',List.map_cons,eq_selfand 34 more49 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.constAddStartline 289 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat, Usa1998P4.coloringProof uses: Usa1998P4.chessboard,
HAdd.hAdd, Usa1998P4.start_coloring10 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.maskedCell_constAddStartline 291 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,Decidable,Eq, Usa1998P4.maskedCell, Usa1998P4.constAddStart,ite,And,LT.lt,HAdd.hAddProof uses:
id, Usa1998P4.cellValue,dite,Prod.mk,Fin,Fin.mk,Not,Eq.mpr,congrFun',congrArg,ite_eq_left,dite_eq_left,Mathlib.Tactic.Ring.of_eq,HMul.hMul,HPow.hPow,Nat.rawCast,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.Common.atom_pf,rfl,Eq.symmand 9 more54 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.innerline 300 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,Fin,OfNat.ofNat,NatProof uses:
Finset.Icc,Fin.mk7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.inner_cardline 302 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Finset.card,Fin,OfNat.ofNat, Usa1998P4.innerProof uses:
Eq.mpr,Finset.Icc,Fin.mk,id,congrArg,Finset,Usa1998P4.inner.eq_1,HSub.hSub,HAdd.hAdd,Fin.card_Icc,Eq.refl12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.mem_innerline 306 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Iff,Membership.mem,Finset, Usa1998P4.inner,And,LT.ltProof uses:
Eq.mpr,Finset.Icc,Fin.mk,id,Eq,congrArg,Usa1998P4.inner.eq_1,LE.le,propext,Finset.mem_Icc,Fin.le_def,Iff.intro20 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.quietCornersThe two board corners where the corner delta ofconstAddStart cvanishes line 312 sourceSource documentation
The two board corners where the corner delta of
constAddStart cvanishes.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,Finset, Usa1998P4.CornerProof uses:
ite,Eq,Insert.insert,Prod,Fin,Prod.mk,Fin.mk,Singleton.singleton17 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
def quietCorners (c : ZMod 2) : Finset Corner := …
Mentions: Usa1998P4.Corner
- lemma
Usa1998P4.quietCorners_cardline 316 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,LE.le,Finset.card, Usa1998P4.Corner, Usa1998P4.quietCornersProof uses:
id,dite,ite,Finset,Eq,Insert.insert,Prod,Fin,Prod.mk,Fin.mk,Singleton.singleton,Eq.mpr,congrFun',congrArg,ite_eq_left,LE.le.trans,HAdd.hAdd,Finset.card_insert_le,le_of_eq,Finset.card_singletonand 3 more22 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.quiet_subsetline 321 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,LE.le,Finset, Usa1998P4.Corner,Finset.filter,Not,Ne, Usa1998P4.cornerDelta, Usa1998P4.constAddStart,Eq,Finset.univ,Fin,Union.union,SProd.sprod,Prod, Usa1998P4.inner, Usa1998P4.quietCornersProof uses:
Or,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Eq.mpr,Membership.mem,And,congrArg,propext,Finset.mem_filter,Classical.not_not,Finset.mem_union,Prod.fst,Prod.snd,Finset.mem_product,LT.lt, Usa1998P4.mem_inner and 78 more125 instances, coercions and auxiliary constants left out.
Tactic trace: 122 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.target_support_cardline 420 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
ZMod,OfNat.ofNat,Nat,LE.le,Finset.card, Usa1998P4.Corner, Usa1998P4.cornerSupport, Usa1998P4.constAddStartProof uses:
Eq,HAdd.hAdd,Finset.filter,Ne, Usa1998P4.cornerDelta,Finset.univ,Fin,Not,Finset.card_filter_add_card_filter_not,Trans.trans,Prod,SProd.sprod,Finset, Usa1998P4.inner, Usa1998P4.quietCorners,Union.union,Finset.card_le_card, Usa1998P4.quiet_subset,Finset.card_union_le,Eq.mprand 13 more27 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
- def
Usa1998P4.colRectline 445 sourceno axioms what this means
Statement uses:
Nat, Usa1998P4.RectangleProof uses:
Usa1998P4.Rectangle.mk,HMul.hMul,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- def
Usa1998P4.rowRectline 447 sourceno axioms what this means
Statement uses:
Nat, Usa1998P4.RectangleProof uses:
Usa1998P4.Rectangle.mk,OfNat.ofNat,HMul.hMul3 instances, coercions and auxiliary constants left out.
- lemma
Usa1998P4.rectColor_colRectline 449 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,OfNat.ofNat,Eq,ZMod, Usa1998P4.rectColor, Usa1998P4.colRect,Prod.mk,ite,HMul.hMulProof uses:
LT.lt,Fin.isLt,id,And,LE.le,Usa1998P4.Rectangle.x,Prod.fst,Usa1998P4.Rectangle.y,Prod.snd,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.height,Usa1998P4.Rectangle.mk,if_congr,rfl46 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.rectColor_rowRectline 456 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,OfNat.ofNat,Eq,ZMod, Usa1998P4.rectColor, Usa1998P4.rowRect,Prod.mk,ite,HMul.hMulProof uses:
LT.lt,Fin.isLt,id,And,LE.le,Usa1998P4.Rectangle.x,Prod.fst,Usa1998P4.Rectangle.y,Prod.snd,HAdd.hAdd,Usa1998P4.Rectangle.width,Usa1998P4.Rectangle.height,Usa1998P4.Rectangle.mk,if_congr,rfl46 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.list_range_map_sumline 463 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,ZMod,OfNat.ofNat,Eq,List.sum,List.map,List.range,Finset.sum,Finset.rangeProof uses:
Nat.recAux,of_eq_true,Eq.trans,True,congrFun',congrArg,List,List.nil,List.map_nil,eq_self,Eq.mpr,HAdd.hAdd,HAppend.hAppend,List.cons,id,Nat.succ,List.range_succ,List.map_append,List.sum_append,Finset.sum_range_succand 2 more41 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.sum_ite_eq_doubleline 471 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HMul.hMul,OfNat.ofNat,Eq,ZMod,Finset.sum,Finset.range,ite,EvenProof uses:
dite,HAdd.hAdd,Eq.mpr,id,congrArg,ite_eq_left,Exists.intro,Finset.sum_eq_single,Membership.mem,Finset,Ne,ite_eq_right,Eq.refl,Not,absurd,Iff.mpr,Finset.mem_range,Finset.sum_eq_zero56 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.natCast_add_ite_evenline 486 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,ZMod,OfNat.ofNat,HAdd.hAdd,ite,EvenProof uses:
dite,Eq.mpr,id,congrArg,ite_eq_left,Iff.mpr,ZMod.natCast_eq_zero_iff_even,zero_add,Eq.refl,Not,ite_eq_right,Odd,ZMod.natCast_eq_one_iff_odd,Iff.mp,Nat.not_even_iff_odd,add_zero53 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Usa1998P4.construction_makes_zeroline 492 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa1998P4.chessboard,
Eq,ZMod,OfNat.ofNat,Nat,List.foldl, Usa1998P4.coloring, Usa1998P4.Rectangle, Usa1998P4.recolor_rect, Usa1998P4.start_coloring,HAppend.hAppend,List,List.map, Usa1998P4.colRect,List.range, Usa1998P4.rowRectProof uses:
Fin,LT.lt,Fin.isLt,Eq.mpr,Prod.mk,HAdd.hAdd,List.sum, Usa1998P4.rectColor,id,congrArg, Usa1998P4.foldl_recolor_apply,List.map_append,List.sum_append,Function.comp,List.map_map,ite,Even,HMul.hMul,congrFun',funextand 53 more79 instances, coercions and auxiliary constants left out.
Tactic trace: 18 steps
Open to load the checked before-and-after goal states.
- problem
Usa1998P4.usa1998_p4line 519 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
IsLeast,Nat, Usa1998P4.possible_num_clicks, Usa1998P4.min_clicksProof uses:
And.intro,Membership.mem,Set,lowerBounds,Exists.intro,List, Usa1998P4.Rectangle,And, Usa1998P4.all_same_color,List.foldl, Usa1998P4.coloring, Usa1998P4.recolor_rect, Usa1998P4.start_coloring,Eq,List.length,HAppend.hAppend,List.map, Usa1998P4.colRect,List.range,OfNat.ofNatand 77 more57 instances, coercions and auxiliary constants left out.
Tactic trace: 20 steps
Open to load the checked before-and-after goal states.