import Initset_option maxHeartbeats 1000000set_option maxRecDepth 6000namespace Quaternary/-- Digit k allows an empty remainder via bit 0 and a nonempty remainder via bit 1. -/def reductions (code : List Nat) (h : Nat) : List Nat :=(List.range code.length).filterMap fun i =>let k := i + 1let d := code[i]!if (k = h ∧ d % 2 = 1) ∨ (k < h ∧ 2 ≤ d) then some (h-k) else none/-- Options on labeled heaps. A zero entry represents an absent heap. -/def options (code : List Nat) : List Nat → List (List Nat)| [] => []| h :: t => ((reductions code h).map (fun a => a :: t)) ++((options code t).map (fun q => h :: q))/-- True means N (the player to move wins). A terminal position is N in misère play. -/inductive Outcome (code : List Nat) : List Nat → Bool → Prop where| terminal {p} (ht : options code p = []) : Outcome code p true| winning {p q} (hm : q ∈ options code p) (hq : Outcome code q false) : Outcome code p true| losing {p} (hn : options code p ≠ [])(hall : ∀ q, q ∈ options code p → Outcome code q true) : Outcome code p falsetheorem outcome_unique {c : List Nat} {p : List Nat} {a : Bool} (h : Outcome c p a) :∀ {b}, Outcome c p b → a = b := byinduction h with| terminal ht =>intro b othercases other with| terminal => rfl| winning => rfl| losing hn _ => exact False.elim (hn ht)| winning hm hq ih =>intro b othercases other with| terminal => rfl| winning => rfl| losing _ hall => exact False.elim (Bool.false_ne_true (ih (hall _ hm)))| losing hn hall ih =>intro b othercases other with| terminal ht => exact False.elim (hn ht)| winning hm hq => exact False.elim (Bool.false_ne_true (ih _ hm hq).symm)| losing => rflprivate theorem s3122_0_0_0_0 : Outcome [3, 1, 2, 2] [0, 0, 0, 0] true := Outcome.terminal (by decide)private theorem s3122_0_1_0_0 : Outcome [3, 1, 2, 2] [0, 1, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 0, 0] = [[0, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_0_0_0_0private theorem s3122_0_1_0_2 : Outcome [3, 1, 2, 2] [0, 1, 0, 2] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3122_0_1_0_0private theorem s3122_0_0_0_1 : Outcome [3, 1, 2, 2] [0, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 0, 1] = [[0, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_0_0_0_0private theorem s3122_0_0_0_2 : Outcome [3, 1, 2, 2] [0, 0, 0, 2] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_0_2_0_1 : Outcome [3, 1, 2, 2] [0, 2, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_0_2_0_0 : Outcome [3, 1, 2, 2] [0, 2, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3122_0_1_0_0private theorem s3122_0_2_0_2 : Outcome [3, 1, 2, 2] [0, 2, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 0, 2] = [[0, 1, 0, 2], [0, 0, 0, 2], [0, 2, 0, 1], [0, 2, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_1_0_2· exact s3122_0_0_0_2· exact s3122_0_2_0_1· exact s3122_0_2_0_0private theorem s3122_0_2_1_2 : Outcome [3, 1, 2, 2] [0, 2, 1, 2] true := Outcome.winning (q := [0, 2, 0, 2]) (by decide) s3122_0_2_0_2private theorem s3122_0_0_1_0 : Outcome [3, 1, 2, 2] [0, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 1, 0] = [[0, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_0_0_0_0private theorem s3122_0_1_1_0 : Outcome [3, 1, 2, 2] [0, 1, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_1_0_1_0 : Outcome [3, 1, 2, 2] [1, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_1_1_0_0 : Outcome [3, 1, 2, 2] [1, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3122_0_1_0_0private theorem s3122_1_1_1_0 : Outcome [3, 1, 2, 2] [1, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 1, 0] = [[0, 1, 1, 0], [1, 0, 1, 0], [1, 1, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_1_1_0· exact s3122_1_0_1_0· exact s3122_1_1_0_0private theorem s3122_1_1_1_2 : Outcome [3, 1, 2, 2] [1, 1, 1, 2] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3122_1_1_1_0private theorem s3122_0_0_1_1 : Outcome [3, 1, 2, 2] [0, 0, 1, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_1_0_0_1 : Outcome [3, 1, 2, 2] [1, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_1_0_1_1 : Outcome [3, 1, 2, 2] [1, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 1, 1] = [[0, 0, 1, 1], [1, 0, 0, 1], [1, 0, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_1_1· exact s3122_1_0_0_1· exact s3122_1_0_1_0private theorem s3122_1_0_1_2 : Outcome [3, 1, 2, 2] [1, 0, 1, 2] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_1_2_0_2 : Outcome [3, 1, 2, 2] [1, 2, 0, 2] true := Outcome.winning (q := [0, 2, 0, 2]) (by decide) s3122_0_2_0_2private theorem s3122_1_2_1_1 : Outcome [3, 1, 2, 2] [1, 2, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_1_2_1_0 : Outcome [3, 1, 2, 2] [1, 2, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3122_1_1_1_0private theorem s3122_1_2_1_2 : Outcome [3, 1, 2, 2] [1, 2, 1, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 2, 1, 2] = [[0, 2, 1, 2], [1, 1, 1, 2], [1, 0, 1, 2], [1, 2, 0, 2], [1, 2, 1, 1], [1, 2, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_2_1_2· exact s3122_1_1_1_2· exact s3122_1_0_1_2· exact s3122_1_2_0_2· exact s3122_1_2_1_1· exact s3122_1_2_1_0private theorem s3122_1_2_4_2 : Outcome [3, 1, 2, 2] [1, 2, 4, 2] true := Outcome.winning (q := [1, 2, 1, 2]) (by decide) s3122_1_2_1_2private theorem s3122_0_0_2_0 : Outcome [3, 1, 2, 2] [0, 0, 2, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_0_0_3_0 : Outcome [3, 1, 2, 2] [0, 0, 3, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 3, 0] = [[0, 0, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_0_0_2_0private theorem s3122_0_0_3_1 : Outcome [3, 1, 2, 2] [0, 0, 3, 1] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_1_0_1 : Outcome [3, 1, 2, 2] [0, 1, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_0_1_1_1 : Outcome [3, 1, 2, 2] [0, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 1, 1] = [[0, 0, 1, 1], [0, 1, 0, 1], [0, 1, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_1_1· exact s3122_0_1_0_1· exact s3122_0_1_1_0private theorem s3122_0_1_2_1 : Outcome [3, 1, 2, 2] [0, 1, 2, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_0_1_3_0 : Outcome [3, 1, 2, 2] [0, 1, 3, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_1_3_1 : Outcome [3, 1, 2, 2] [0, 1, 3, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 3, 1] = [[0, 0, 3, 1], [0, 1, 2, 1], [0, 1, 3, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_3_1· exact s3122_0_1_2_1· exact s3122_0_1_3_0private theorem s3122_0_1_3_2 : Outcome [3, 1, 2, 2] [0, 1, 3, 2] true := Outcome.winning (q := [0, 1, 3, 1]) (by decide) s3122_0_1_3_1private theorem s3122_0_0_1_2 : Outcome [3, 1, 2, 2] [0, 0, 1, 2] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_0_0_2_1 : Outcome [3, 1, 2, 2] [0, 0, 2, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_0_0_2_2 : Outcome [3, 1, 2, 2] [0, 0, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 2, 2] = [[0, 0, 1, 2], [0, 0, 0, 2], [0, 0, 2, 1], [0, 0, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_1_2· exact s3122_0_0_0_2· exact s3122_0_0_2_1· exact s3122_0_0_2_0private theorem s3122_0_0_3_2 : Outcome [3, 1, 2, 2] [0, 0, 3, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_0_2_2_2 : Outcome [3, 1, 2, 2] [0, 2, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_0_2_3_1 : Outcome [3, 1, 2, 2] [0, 2, 3, 1] true := Outcome.winning (q := [0, 1, 3, 1]) (by decide) s3122_0_1_3_1private theorem s3122_0_2_3_0 : Outcome [3, 1, 2, 2] [0, 2, 3, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_2_3_2 : Outcome [3, 1, 2, 2] [0, 2, 3, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 3, 2] = [[0, 1, 3, 2], [0, 0, 3, 2], [0, 2, 2, 2], [0, 2, 3, 1], [0, 2, 3, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_3_2· exact s3122_0_0_3_2· exact s3122_0_2_2_2· exact s3122_0_2_3_1· exact s3122_0_2_3_0private theorem s3122_0_2_4_2 : Outcome [3, 1, 2, 2] [0, 2, 4, 2] true := Outcome.winning (q := [0, 2, 3, 2]) (by decide) s3122_0_2_3_2private theorem s3122_0_1_1_2 : Outcome [3, 1, 2, 2] [0, 1, 1, 2] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_1_0_0_0 : Outcome [3, 1, 2, 2] [1, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 0, 0] = [[0, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_0_0_0_0private theorem s3122_1_0_0_2 : Outcome [3, 1, 2, 2] [1, 0, 0, 2] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3122_1_0_0_0private theorem s3122_2_0_0_1 : Outcome [3, 1, 2, 2] [2, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3122_0_0_0_1private theorem s3122_2_0_0_0 : Outcome [3, 1, 2, 2] [2, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3122_1_0_0_0private theorem s3122_2_0_0_2 : Outcome [3, 1, 2, 2] [2, 0, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 0, 0, 2] = [[1, 0, 0, 2], [0, 0, 0, 2], [2, 0, 0, 1], [2, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_1_0_0_2· exact s3122_0_0_0_2· exact s3122_2_0_0_1· exact s3122_2_0_0_0private theorem s3122_2_0_1_2 : Outcome [3, 1, 2, 2] [2, 0, 1, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3122_2_0_0_2private theorem s3122_2_1_0_2 : Outcome [3, 1, 2, 2] [2, 1, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3122_2_0_0_2private theorem s3122_2_1_1_1 : Outcome [3, 1, 2, 2] [2, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_2_1_1_0 : Outcome [3, 1, 2, 2] [2, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3122_1_1_1_0private theorem s3122_2_1_1_2 : Outcome [3, 1, 2, 2] [2, 1, 1, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 1, 1, 2] = [[1, 1, 1, 2], [0, 1, 1, 2], [2, 0, 1, 2], [2, 1, 0, 2], [2, 1, 1, 1], [2, 1, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_1_1_1_2· exact s3122_0_1_1_2· exact s3122_2_0_1_2· exact s3122_2_1_0_2· exact s3122_2_1_1_1· exact s3122_2_1_1_0private theorem s3122_2_1_4_2 : Outcome [3, 1, 2, 2] [2, 1, 4, 2] true := Outcome.winning (q := [2, 1, 1, 2]) (by decide) s3122_2_1_1_2private theorem s3122_1_0_2_1 : Outcome [3, 1, 2, 2] [1, 0, 2, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_1_0_3_0 : Outcome [3, 1, 2, 2] [1, 0, 3, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_1_0_3_1 : Outcome [3, 1, 2, 2] [1, 0, 3, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 3, 1] = [[0, 0, 3, 1], [1, 0, 2, 1], [1, 0, 3, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_3_1· exact s3122_1_0_2_1· exact s3122_1_0_3_0private theorem s3122_1_0_3_2 : Outcome [3, 1, 2, 2] [1, 0, 3, 2] true := Outcome.winning (q := [1, 0, 3, 1]) (by decide) s3122_1_0_3_1private theorem s3122_2_0_2_2 : Outcome [3, 1, 2, 2] [2, 0, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_2_0_3_1 : Outcome [3, 1, 2, 2] [2, 0, 3, 1] true := Outcome.winning (q := [1, 0, 3, 1]) (by decide) s3122_1_0_3_1private theorem s3122_2_0_3_0 : Outcome [3, 1, 2, 2] [2, 0, 3, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_2_0_3_2 : Outcome [3, 1, 2, 2] [2, 0, 3, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 0, 3, 2] = [[1, 0, 3, 2], [0, 0, 3, 2], [2, 0, 2, 2], [2, 0, 3, 1], [2, 0, 3, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_1_0_3_2· exact s3122_0_0_3_2· exact s3122_2_0_2_2· exact s3122_2_0_3_1· exact s3122_2_0_3_0private theorem s3122_2_0_4_2 : Outcome [3, 1, 2, 2] [2, 0, 4, 2] true := Outcome.winning (q := [2, 0, 3, 2]) (by decide) s3122_2_0_3_2private theorem s3122_2_2_3_2 : Outcome [3, 1, 2, 2] [2, 2, 3, 2] true := Outcome.winning (q := [0, 2, 3, 2]) (by decide) s3122_0_2_3_2private theorem s3122_2_2_1_2 : Outcome [3, 1, 2, 2] [2, 2, 1, 2] true := Outcome.winning (q := [1, 2, 1, 2]) (by decide) s3122_1_2_1_2private theorem s3122_0_2_1_1 : Outcome [3, 1, 2, 2] [0, 2, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_2_0_1_1 : Outcome [3, 1, 2, 2] [2, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_1_2_0_0 : Outcome [3, 1, 2, 2] [1, 2, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3122_1_0_0_0private theorem s3122_2_1_0_0 : Outcome [3, 1, 2, 2] [2, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3122_0_1_0_0private theorem s3122_2_2_0_0 : Outcome [3, 1, 2, 2] [2, 2, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 2, 0, 0] = [[1, 2, 0, 0], [0, 2, 0, 0], [2, 1, 0, 0], [2, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_1_2_0_0· exact s3122_0_2_0_0· exact s3122_2_1_0_0· exact s3122_2_0_0_0private theorem s3122_2_2_0_1 : Outcome [3, 1, 2, 2] [2, 2, 0, 1] true := Outcome.winning (q := [2, 2, 0, 0]) (by decide) s3122_2_2_0_0private theorem s3122_2_2_1_0 : Outcome [3, 1, 2, 2] [2, 2, 1, 0] true := Outcome.winning (q := [2, 2, 0, 0]) (by decide) s3122_2_2_0_0private theorem s3122_2_2_1_1 : Outcome [3, 1, 2, 2] [2, 2, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 2, 1, 1] = [[1, 2, 1, 1], [0, 2, 1, 1], [2, 1, 1, 1], [2, 0, 1, 1], [2, 2, 0, 1], [2, 2, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_1_2_1_1· exact s3122_0_2_1_1· exact s3122_2_1_1_1· exact s3122_2_0_1_1· exact s3122_2_2_0_1· exact s3122_2_2_1_0private theorem s3122_2_2_4_1 : Outcome [3, 1, 2, 2] [2, 2, 4, 1] true := Outcome.winning (q := [2, 2, 1, 1]) (by decide) s3122_2_2_1_1private theorem s3122_1_1_2_0 : Outcome [3, 1, 2, 2] [1, 1, 2, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3122_1_1_1_0private theorem s3122_1_1_3_0 : Outcome [3, 1, 2, 2] [1, 1, 3, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 3, 0] = [[0, 1, 3, 0], [1, 0, 3, 0], [1, 1, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_1_3_0· exact s3122_1_0_3_0· exact s3122_1_1_2_0private theorem s3122_1_2_3_0 : Outcome [3, 1, 2, 2] [1, 2, 3, 0] true := Outcome.winning (q := [1, 1, 3, 0]) (by decide) s3122_1_1_3_0private theorem s3122_2_1_3_0 : Outcome [3, 1, 2, 2] [2, 1, 3, 0] true := Outcome.winning (q := [1, 1, 3, 0]) (by decide) s3122_1_1_3_0private theorem s3122_0_1_2_0 : Outcome [3, 1, 2, 2] [0, 1, 2, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3122_0_1_0_0private theorem s3122_0_2_1_0 : Outcome [3, 1, 2, 2] [0, 2, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_0_2_2_0 : Outcome [3, 1, 2, 2] [0, 2, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 2, 0] = [[0, 1, 2, 0], [0, 0, 2, 0], [0, 2, 1, 0], [0, 2, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_1_2_0· exact s3122_0_0_2_0· exact s3122_0_2_1_0· exact s3122_0_2_0_0private theorem s3122_2_2_2_0 : Outcome [3, 1, 2, 2] [2, 2, 2, 0] true := Outcome.winning (q := [0, 2, 2, 0]) (by decide) s3122_0_2_2_0private theorem s3122_2_2_3_0 : Outcome [3, 1, 2, 2] [2, 2, 3, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 2, 3, 0] = [[1, 2, 3, 0], [0, 2, 3, 0], [2, 1, 3, 0], [2, 0, 3, 0], [2, 2, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_1_2_3_0· exact s3122_0_2_3_0· exact s3122_2_1_3_0· exact s3122_2_0_3_0· exact s3122_2_2_2_0private theorem s3122_2_2_4_0 : Outcome [3, 1, 2, 2] [2, 2, 4, 0] true := Outcome.winning (q := [2, 2, 3, 0]) (by decide) s3122_2_2_3_0private theorem s3122_2_2_4_2 : Outcome [3, 1, 2, 2] [2, 2, 4, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 2, 4, 2] = [[1, 2, 4, 2], [0, 2, 4, 2], [2, 1, 4, 2], [2, 0, 4, 2], [2, 2, 3, 2], [2, 2, 1, 2], [2, 2, 4, 1], [2, 2, 4, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_1_2_4_2· exact s3122_0_2_4_2· exact s3122_2_1_4_2· exact s3122_2_0_4_2· exact s3122_2_2_3_2· exact s3122_2_2_1_2· exact s3122_2_2_4_1· exact s3122_2_2_4_0private theorem s3122_2_2_7_2 : Outcome [3, 1, 2, 2] [2, 2, 7, 2] true := Outcome.winning (q := [2, 2, 4, 2]) (by decide) s3122_2_2_4_2private theorem s3122_0_0_6_2 : Outcome [3, 1, 2, 2] [0, 0, 6, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_0_0_4_0 : Outcome [3, 1, 2, 2] [0, 0, 4, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_0_4_1 : Outcome [3, 1, 2, 2] [0, 0, 4, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 4, 1] = [[0, 0, 3, 1], [0, 0, 1, 1], [0, 0, 4, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_3_1· exact s3122_0_0_1_1· exact s3122_0_0_4_0private theorem s3122_0_0_4_2 : Outcome [3, 1, 2, 2] [0, 0, 4, 2] true := Outcome.winning (q := [0, 0, 4, 1]) (by decide) s3122_0_0_4_1private theorem s3122_0_0_5_1 : Outcome [3, 1, 2, 2] [0, 0, 5, 1] true := Outcome.winning (q := [0, 0, 4, 1]) (by decide) s3122_0_0_4_1private theorem s3122_0_0_6_0 : Outcome [3, 1, 2, 2] [0, 0, 6, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_0_6_1 : Outcome [3, 1, 2, 2] [0, 0, 6, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 6, 1] = [[0, 0, 5, 1], [0, 0, 3, 1], [0, 0, 2, 1], [0, 0, 6, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_5_1· exact s3122_0_0_3_1· exact s3122_0_0_2_1· exact s3122_0_0_6_0private theorem s3122_0_0_7_1 : Outcome [3, 1, 2, 2] [0, 0, 7, 1] true := Outcome.winning (q := [0, 0, 6, 1]) (by decide) s3122_0_0_6_1private theorem s3122_0_0_7_0 : Outcome [3, 1, 2, 2] [0, 0, 7, 0] true := Outcome.winning (q := [0, 0, 3, 0]) (by decide) s3122_0_0_3_0private theorem s3122_0_0_7_2 : Outcome [3, 1, 2, 2] [0, 0, 7, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 7, 2] = [[0, 0, 6, 2], [0, 0, 4, 2], [0, 0, 3, 2], [0, 0, 7, 1], [0, 0, 7, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_6_2· exact s3122_0_0_4_2· exact s3122_0_0_3_2· exact s3122_0_0_7_1· exact s3122_0_0_7_0private theorem s3122_0_0_8_2 : Outcome [3, 1, 2, 2] [0, 0, 8, 2] true := Outcome.winning (q := [0, 0, 7, 2]) (by decide) s3122_0_0_7_2private theorem s3122_0_0_5_2 : Outcome [3, 1, 2, 2] [0, 0, 5, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_0_0_9_1 : Outcome [3, 1, 2, 2] [0, 0, 9, 1] true := Outcome.winning (q := [0, 0, 6, 1]) (by decide) s3122_0_0_6_1private theorem s3122_0_0_5_0 : Outcome [3, 1, 2, 2] [0, 0, 5, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_0_0_8_0 : Outcome [3, 1, 2, 2] [0, 0, 8, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 8, 0] = [[0, 0, 7, 0], [0, 0, 5, 0], [0, 0, 4, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_7_0· exact s3122_0_0_5_0· exact s3122_0_0_4_0private theorem s3122_0_0_9_0 : Outcome [3, 1, 2, 2] [0, 0, 9, 0] true := Outcome.winning (q := [0, 0, 8, 0]) (by decide) s3122_0_0_8_0private theorem s3122_0_0_9_2 : Outcome [3, 1, 2, 2] [0, 0, 9, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 9, 2] = [[0, 0, 8, 2], [0, 0, 6, 2], [0, 0, 5, 2], [0, 0, 9, 1], [0, 0, 9, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_8_2· exact s3122_0_0_6_2· exact s3122_0_0_5_2· exact s3122_0_0_9_1· exact s3122_0_0_9_0private theorem s3122_0_0_13_2 : Outcome [3, 1, 2, 2] [0, 0, 13, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_0_0_11_2 : Outcome [3, 1, 2, 2] [0, 0, 11, 2] true := Outcome.winning (q := [0, 0, 7, 2]) (by decide) s3122_0_0_7_2private theorem s3122_0_0_10_2 : Outcome [3, 1, 2, 2] [0, 0, 10, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_0_0_10_1 : Outcome [3, 1, 2, 2] [0, 0, 10, 1] true := Outcome.winning (q := [0, 0, 6, 1]) (by decide) s3122_0_0_6_1private theorem s3122_0_0_8_1 : Outcome [3, 1, 2, 2] [0, 0, 8, 1] true := Outcome.winning (q := [0, 0, 4, 1]) (by decide) s3122_0_0_4_1private theorem s3122_0_0_10_0 : Outcome [3, 1, 2, 2] [0, 0, 10, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 10, 0] = [[0, 0, 9, 0], [0, 0, 7, 0], [0, 0, 6, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_9_0· exact s3122_0_0_7_0· exact s3122_0_0_6_0private theorem s3122_0_0_11_0 : Outcome [3, 1, 2, 2] [0, 0, 11, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_0_0_11_1 : Outcome [3, 1, 2, 2] [0, 0, 11, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 11, 1] = [[0, 0, 10, 1], [0, 0, 8, 1], [0, 0, 7, 1], [0, 0, 11, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_10_1· exact s3122_0_0_8_1· exact s3122_0_0_7_1· exact s3122_0_0_11_0private theorem s3122_0_0_12_1 : Outcome [3, 1, 2, 2] [0, 0, 12, 1] true := Outcome.winning (q := [0, 0, 11, 1]) (by decide) s3122_0_0_11_1private theorem s3122_0_0_13_0 : Outcome [3, 1, 2, 2] [0, 0, 13, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_0_0_13_1 : Outcome [3, 1, 2, 2] [0, 0, 13, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 13, 1] = [[0, 0, 12, 1], [0, 0, 10, 1], [0, 0, 9, 1], [0, 0, 13, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_12_1· exact s3122_0_0_10_1· exact s3122_0_0_9_1· exact s3122_0_0_13_0private theorem s3122_0_0_14_1 : Outcome [3, 1, 2, 2] [0, 0, 14, 1] true := Outcome.winning (q := [0, 0, 13, 1]) (by decide) s3122_0_0_13_1private theorem s3122_0_0_14_0 : Outcome [3, 1, 2, 2] [0, 0, 14, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_0_0_14_2 : Outcome [3, 1, 2, 2] [0, 0, 14, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 0, 14, 2] = [[0, 0, 13, 2], [0, 0, 11, 2], [0, 0, 10, 2], [0, 0, 14, 1], [0, 0, 14, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_13_2· exact s3122_0_0_11_2· exact s3122_0_0_10_2· exact s3122_0_0_14_1· exact s3122_0_0_14_0private theorem s3122_0_1_14_2 : Outcome [3, 1, 2, 2] [0, 1, 14, 2] true := Outcome.winning (q := [0, 0, 14, 2]) (by decide) s3122_0_0_14_2private theorem s3122_1_0_14_2 : Outcome [3, 1, 2, 2] [1, 0, 14, 2] true := Outcome.winning (q := [0, 0, 14, 2]) (by decide) s3122_0_0_14_2private theorem s3122_0_1_9_2 : Outcome [3, 1, 2, 2] [0, 1, 9, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_1_0_9_2 : Outcome [3, 1, 2, 2] [1, 0, 9, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_0_1_7_2 : Outcome [3, 1, 2, 2] [0, 1, 7, 2] true := Outcome.winning (q := [0, 0, 7, 2]) (by decide) s3122_0_0_7_2private theorem s3122_1_0_7_2 : Outcome [3, 1, 2, 2] [1, 0, 7, 2] true := Outcome.winning (q := [0, 0, 7, 2]) (by decide) s3122_0_0_7_2private theorem s3122_0_1_2_2 : Outcome [3, 1, 2, 2] [0, 1, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_1_0_2_2 : Outcome [3, 1, 2, 2] [1, 0, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3122_0_0_2_2private theorem s3122_1_1_0_1 : Outcome [3, 1, 2, 2] [1, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 0, 1] = [[0, 1, 0, 1], [1, 0, 0, 1], [1, 1, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_1_0_1· exact s3122_1_0_0_1· exact s3122_1_1_0_0private theorem s3122_1_1_0_2 : Outcome [3, 1, 2, 2] [1, 1, 0, 2] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3122_1_1_0_1private theorem s3122_1_1_2_1 : Outcome [3, 1, 2, 2] [1, 1, 2, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3122_1_1_0_1private theorem s3122_1_1_2_2 : Outcome [3, 1, 2, 2] [1, 1, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 2, 2] = [[0, 1, 2, 2], [1, 0, 2, 2], [1, 1, 1, 2], [1, 1, 0, 2], [1, 1, 2, 1], [1, 1, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_2_2· exact s3122_1_0_2_2· exact s3122_1_1_1_2· exact s3122_1_1_0_2· exact s3122_1_1_2_1· exact s3122_1_1_2_0private theorem s3122_1_1_6_2 : Outcome [3, 1, 2, 2] [1, 1, 6, 2] true := Outcome.winning (q := [1, 1, 2, 2]) (by decide) s3122_1_1_2_2private theorem s3122_0_1_4_1 : Outcome [3, 1, 2, 2] [0, 1, 4, 1] true := Outcome.winning (q := [0, 0, 4, 1]) (by decide) s3122_0_0_4_1private theorem s3122_1_0_4_1 : Outcome [3, 1, 2, 2] [1, 0, 4, 1] true := Outcome.winning (q := [0, 0, 4, 1]) (by decide) s3122_0_0_4_1private theorem s3122_1_1_3_1 : Outcome [3, 1, 2, 2] [1, 1, 3, 1] true := Outcome.winning (q := [0, 1, 3, 1]) (by decide) s3122_0_1_3_1private theorem s3122_1_1_1_1 : Outcome [3, 1, 2, 2] [1, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_0_1_4_0 : Outcome [3, 1, 2, 2] [0, 1, 4, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 4, 0] = [[0, 0, 4, 0], [0, 1, 3, 0], [0, 1, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_4_0· exact s3122_0_1_3_0· exact s3122_0_1_1_0private theorem s3122_1_1_4_0 : Outcome [3, 1, 2, 2] [1, 1, 4, 0] true := Outcome.winning (q := [0, 1, 4, 0]) (by decide) s3122_0_1_4_0private theorem s3122_1_1_4_1 : Outcome [3, 1, 2, 2] [1, 1, 4, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 4, 1] = [[0, 1, 4, 1], [1, 0, 4, 1], [1, 1, 3, 1], [1, 1, 1, 1], [1, 1, 4, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_4_1· exact s3122_1_0_4_1· exact s3122_1_1_3_1· exact s3122_1_1_1_1· exact s3122_1_1_4_0private theorem s3122_1_1_4_2 : Outcome [3, 1, 2, 2] [1, 1, 4, 2] true := Outcome.winning (q := [1, 1, 4, 1]) (by decide) s3122_1_1_4_1private theorem s3122_1_1_3_2 : Outcome [3, 1, 2, 2] [1, 1, 3, 2] true := Outcome.winning (q := [1, 1, 2, 2]) (by decide) s3122_1_1_2_2private theorem s3122_0_1_6_1 : Outcome [3, 1, 2, 2] [0, 1, 6, 1] true := Outcome.winning (q := [0, 0, 6, 1]) (by decide) s3122_0_0_6_1private theorem s3122_1_0_6_1 : Outcome [3, 1, 2, 2] [1, 0, 6, 1] true := Outcome.winning (q := [0, 0, 6, 1]) (by decide) s3122_0_0_6_1private theorem s3122_1_1_5_1 : Outcome [3, 1, 2, 2] [1, 1, 5, 1] true := Outcome.winning (q := [1, 1, 4, 1]) (by decide) s3122_1_1_4_1private theorem s3122_0_1_5_0 : Outcome [3, 1, 2, 2] [0, 1, 5, 0] true := Outcome.winning (q := [0, 1, 4, 0]) (by decide) s3122_0_1_4_0private theorem s3122_0_1_6_0 : Outcome [3, 1, 2, 2] [0, 1, 6, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 6, 0] = [[0, 0, 6, 0], [0, 1, 5, 0], [0, 1, 3, 0], [0, 1, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_6_0· exact s3122_0_1_5_0· exact s3122_0_1_3_0· exact s3122_0_1_2_0private theorem s3122_1_1_6_0 : Outcome [3, 1, 2, 2] [1, 1, 6, 0] true := Outcome.winning (q := [0, 1, 6, 0]) (by decide) s3122_0_1_6_0private theorem s3122_1_1_6_1 : Outcome [3, 1, 2, 2] [1, 1, 6, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 6, 1] = [[0, 1, 6, 1], [1, 0, 6, 1], [1, 1, 5, 1], [1, 1, 3, 1], [1, 1, 2, 1], [1, 1, 6, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_6_1· exact s3122_1_0_6_1· exact s3122_1_1_5_1· exact s3122_1_1_3_1· exact s3122_1_1_2_1· exact s3122_1_1_6_0private theorem s3122_1_1_7_1 : Outcome [3, 1, 2, 2] [1, 1, 7, 1] true := Outcome.winning (q := [1, 1, 6, 1]) (by decide) s3122_1_1_6_1private theorem s3122_1_1_7_0 : Outcome [3, 1, 2, 2] [1, 1, 7, 0] true := Outcome.winning (q := [1, 1, 3, 0]) (by decide) s3122_1_1_3_0private theorem s3122_1_1_7_2 : Outcome [3, 1, 2, 2] [1, 1, 7, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 7, 2] = [[0, 1, 7, 2], [1, 0, 7, 2], [1, 1, 6, 2], [1, 1, 4, 2], [1, 1, 3, 2], [1, 1, 7, 1], [1, 1, 7, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_7_2· exact s3122_1_0_7_2· exact s3122_1_1_6_2· exact s3122_1_1_4_2· exact s3122_1_1_3_2· exact s3122_1_1_7_1· exact s3122_1_1_7_0private theorem s3122_1_1_8_2 : Outcome [3, 1, 2, 2] [1, 1, 8, 2] true := Outcome.winning (q := [1, 1, 7, 2]) (by decide) s3122_1_1_7_2private theorem s3122_0_1_4_2 : Outcome [3, 1, 2, 2] [0, 1, 4, 2] true := Outcome.winning (q := [0, 1, 4, 0]) (by decide) s3122_0_1_4_0private theorem s3122_0_1_5_1 : Outcome [3, 1, 2, 2] [0, 1, 5, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3122_0_1_1_1private theorem s3122_0_1_5_2 : Outcome [3, 1, 2, 2] [0, 1, 5, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 5, 2] = [[0, 0, 5, 2], [0, 1, 4, 2], [0, 1, 2, 2], [0, 1, 1, 2], [0, 1, 5, 1], [0, 1, 5, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_5_2· exact s3122_0_1_4_2· exact s3122_0_1_2_2· exact s3122_0_1_1_2· exact s3122_0_1_5_1· exact s3122_0_1_5_0private theorem s3122_1_1_5_2 : Outcome [3, 1, 2, 2] [1, 1, 5, 2] true := Outcome.winning (q := [0, 1, 5, 2]) (by decide) s3122_0_1_5_2private theorem s3122_1_1_9_1 : Outcome [3, 1, 2, 2] [1, 1, 9, 1] true := Outcome.winning (q := [1, 1, 6, 1]) (by decide) s3122_1_1_6_1private theorem s3122_0_1_8_0 : Outcome [3, 1, 2, 2] [0, 1, 8, 0] true := Outcome.winning (q := [0, 0, 8, 0]) (by decide) s3122_0_0_8_0private theorem s3122_1_0_8_0 : Outcome [3, 1, 2, 2] [1, 0, 8, 0] true := Outcome.winning (q := [0, 0, 8, 0]) (by decide) s3122_0_0_8_0private theorem s3122_1_1_5_0 : Outcome [3, 1, 2, 2] [1, 1, 5, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3122_1_1_1_0private theorem s3122_1_1_8_0 : Outcome [3, 1, 2, 2] [1, 1, 8, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 8, 0] = [[0, 1, 8, 0], [1, 0, 8, 0], [1, 1, 7, 0], [1, 1, 5, 0], [1, 1, 4, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_8_0· exact s3122_1_0_8_0· exact s3122_1_1_7_0· exact s3122_1_1_5_0· exact s3122_1_1_4_0private theorem s3122_1_1_9_0 : Outcome [3, 1, 2, 2] [1, 1, 9, 0] true := Outcome.winning (q := [1, 1, 8, 0]) (by decide) s3122_1_1_8_0private theorem s3122_1_1_9_2 : Outcome [3, 1, 2, 2] [1, 1, 9, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 9, 2] = [[0, 1, 9, 2], [1, 0, 9, 2], [1, 1, 8, 2], [1, 1, 6, 2], [1, 1, 5, 2], [1, 1, 9, 1], [1, 1, 9, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_9_2· exact s3122_1_0_9_2· exact s3122_1_1_8_2· exact s3122_1_1_6_2· exact s3122_1_1_5_2· exact s3122_1_1_9_1· exact s3122_1_1_9_0private theorem s3122_1_1_13_2 : Outcome [3, 1, 2, 2] [1, 1, 13, 2] true := Outcome.winning (q := [1, 1, 9, 2]) (by decide) s3122_1_1_9_2private theorem s3122_1_1_11_2 : Outcome [3, 1, 2, 2] [1, 1, 11, 2] true := Outcome.winning (q := [1, 1, 7, 2]) (by decide) s3122_1_1_7_2private theorem s3122_1_1_10_2 : Outcome [3, 1, 2, 2] [1, 1, 10, 2] true := Outcome.winning (q := [1, 1, 9, 2]) (by decide) s3122_1_1_9_2private theorem s3122_0_1_13_1 : Outcome [3, 1, 2, 2] [0, 1, 13, 1] true := Outcome.winning (q := [0, 0, 13, 1]) (by decide) s3122_0_0_13_1private theorem s3122_1_0_13_1 : Outcome [3, 1, 2, 2] [1, 0, 13, 1] true := Outcome.winning (q := [0, 0, 13, 1]) (by decide) s3122_0_0_13_1private theorem s3122_0_1_11_1 : Outcome [3, 1, 2, 2] [0, 1, 11, 1] true := Outcome.winning (q := [0, 0, 11, 1]) (by decide) s3122_0_0_11_1private theorem s3122_1_0_11_1 : Outcome [3, 1, 2, 2] [1, 0, 11, 1] true := Outcome.winning (q := [0, 0, 11, 1]) (by decide) s3122_0_0_11_1private theorem s3122_0_1_7_1 : Outcome [3, 1, 2, 2] [0, 1, 7, 1] true := Outcome.winning (q := [0, 1, 3, 1]) (by decide) s3122_0_1_3_1private theorem s3122_0_1_8_1 : Outcome [3, 1, 2, 2] [0, 1, 8, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 8, 1] = [[0, 0, 8, 1], [0, 1, 7, 1], [0, 1, 5, 1], [0, 1, 4, 1], [0, 1, 8, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_8_1· exact s3122_0_1_7_1· exact s3122_0_1_5_1· exact s3122_0_1_4_1· exact s3122_0_1_8_0private theorem s3122_0_1_9_1 : Outcome [3, 1, 2, 2] [0, 1, 9, 1] true := Outcome.winning (q := [0, 1, 8, 1]) (by decide) s3122_0_1_8_1private theorem s3122_0_1_10_0 : Outcome [3, 1, 2, 2] [0, 1, 10, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_0_1_10_1 : Outcome [3, 1, 2, 2] [0, 1, 10, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 10, 1] = [[0, 0, 10, 1], [0, 1, 9, 1], [0, 1, 7, 1], [0, 1, 6, 1], [0, 1, 10, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_10_1· exact s3122_0_1_9_1· exact s3122_0_1_7_1· exact s3122_0_1_6_1· exact s3122_0_1_10_0private theorem s3122_1_1_10_1 : Outcome [3, 1, 2, 2] [1, 1, 10, 1] true := Outcome.winning (q := [0, 1, 10, 1]) (by decide) s3122_0_1_10_1private theorem s3122_1_1_8_1 : Outcome [3, 1, 2, 2] [1, 1, 8, 1] true := Outcome.winning (q := [0, 1, 8, 1]) (by decide) s3122_0_1_8_1private theorem s3122_0_1_7_0 : Outcome [3, 1, 2, 2] [0, 1, 7, 0] true := Outcome.winning (q := [0, 1, 6, 0]) (by decide) s3122_0_1_6_0private theorem s3122_0_1_11_0 : Outcome [3, 1, 2, 2] [0, 1, 11, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 11, 0] = [[0, 0, 11, 0], [0, 1, 10, 0], [0, 1, 8, 0], [0, 1, 7, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_11_0· exact s3122_0_1_10_0· exact s3122_0_1_8_0· exact s3122_0_1_7_0private theorem s3122_1_1_11_0 : Outcome [3, 1, 2, 2] [1, 1, 11, 0] true := Outcome.winning (q := [0, 1, 11, 0]) (by decide) s3122_0_1_11_0private theorem s3122_1_1_11_1 : Outcome [3, 1, 2, 2] [1, 1, 11, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 11, 1] = [[0, 1, 11, 1], [1, 0, 11, 1], [1, 1, 10, 1], [1, 1, 8, 1], [1, 1, 7, 1], [1, 1, 11, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_11_1· exact s3122_1_0_11_1· exact s3122_1_1_10_1· exact s3122_1_1_8_1· exact s3122_1_1_7_1· exact s3122_1_1_11_0private theorem s3122_1_1_12_1 : Outcome [3, 1, 2, 2] [1, 1, 12, 1] true := Outcome.winning (q := [1, 1, 11, 1]) (by decide) s3122_1_1_11_1private theorem s3122_0_1_12_0 : Outcome [3, 1, 2, 2] [0, 1, 12, 0] true := Outcome.winning (q := [0, 1, 11, 0]) (by decide) s3122_0_1_11_0private theorem s3122_0_1_9_0 : Outcome [3, 1, 2, 2] [0, 1, 9, 0] true := Outcome.winning (q := [0, 1, 6, 0]) (by decide) s3122_0_1_6_0private theorem s3122_0_1_13_0 : Outcome [3, 1, 2, 2] [0, 1, 13, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 1, 13, 0] = [[0, 0, 13, 0], [0, 1, 12, 0], [0, 1, 10, 0], [0, 1, 9, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_13_0· exact s3122_0_1_12_0· exact s3122_0_1_10_0· exact s3122_0_1_9_0private theorem s3122_1_1_13_0 : Outcome [3, 1, 2, 2] [1, 1, 13, 0] true := Outcome.winning (q := [0, 1, 13, 0]) (by decide) s3122_0_1_13_0private theorem s3122_1_1_13_1 : Outcome [3, 1, 2, 2] [1, 1, 13, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 13, 1] = [[0, 1, 13, 1], [1, 0, 13, 1], [1, 1, 12, 1], [1, 1, 10, 1], [1, 1, 9, 1], [1, 1, 13, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_13_1· exact s3122_1_0_13_1· exact s3122_1_1_12_1· exact s3122_1_1_10_1· exact s3122_1_1_9_1· exact s3122_1_1_13_0private theorem s3122_1_1_14_1 : Outcome [3, 1, 2, 2] [1, 1, 14, 1] true := Outcome.winning (q := [1, 1, 13, 1]) (by decide) s3122_1_1_13_1private theorem s3122_1_0_10_0 : Outcome [3, 1, 2, 2] [1, 0, 10, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_1_1_10_0 : Outcome [3, 1, 2, 2] [1, 1, 10, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 10, 0] = [[0, 1, 10, 0], [1, 0, 10, 0], [1, 1, 9, 0], [1, 1, 7, 0], [1, 1, 6, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_10_0· exact s3122_1_0_10_0· exact s3122_1_1_9_0· exact s3122_1_1_7_0· exact s3122_1_1_6_0private theorem s3122_1_1_14_0 : Outcome [3, 1, 2, 2] [1, 1, 14, 0] true := Outcome.winning (q := [1, 1, 10, 0]) (by decide) s3122_1_1_10_0private theorem s3122_1_1_14_2 : Outcome [3, 1, 2, 2] [1, 1, 14, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 1, 14, 2] = [[0, 1, 14, 2], [1, 0, 14, 2], [1, 1, 13, 2], [1, 1, 11, 2], [1, 1, 10, 2], [1, 1, 14, 1], [1, 1, 14, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_14_2· exact s3122_1_0_14_2· exact s3122_1_1_13_2· exact s3122_1_1_11_2· exact s3122_1_1_10_2· exact s3122_1_1_14_1· exact s3122_1_1_14_0private theorem s3122_1_2_14_2 : Outcome [3, 1, 2, 2] [1, 2, 14, 2] true := Outcome.winning (q := [1, 1, 14, 2]) (by decide) s3122_1_1_14_2private theorem s3122_0_2_14_2 : Outcome [3, 1, 2, 2] [0, 2, 14, 2] true := Outcome.winning (q := [0, 0, 14, 2]) (by decide) s3122_0_0_14_2private theorem s3122_2_1_14_2 : Outcome [3, 1, 2, 2] [2, 1, 14, 2] true := Outcome.winning (q := [1, 1, 14, 2]) (by decide) s3122_1_1_14_2private theorem s3122_2_0_14_2 : Outcome [3, 1, 2, 2] [2, 0, 14, 2] true := Outcome.winning (q := [0, 0, 14, 2]) (by decide) s3122_0_0_14_2private theorem s3122_0_1_10_2 : Outcome [3, 1, 2, 2] [0, 1, 10, 2] true := Outcome.winning (q := [0, 1, 10, 1]) (by decide) s3122_0_1_10_1private theorem s3122_0_2_9_2 : Outcome [3, 1, 2, 2] [0, 2, 9, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_0_2_7_2 : Outcome [3, 1, 2, 2] [0, 2, 7, 2] true := Outcome.winning (q := [0, 0, 7, 2]) (by decide) s3122_0_0_7_2private theorem s3122_0_2_6_2 : Outcome [3, 1, 2, 2] [0, 2, 6, 2] true := Outcome.winning (q := [0, 2, 3, 2]) (by decide) s3122_0_2_3_2private theorem s3122_0_2_10_1 : Outcome [3, 1, 2, 2] [0, 2, 10, 1] true := Outcome.winning (q := [0, 1, 10, 1]) (by decide) s3122_0_1_10_1private theorem s3122_0_2_10_0 : Outcome [3, 1, 2, 2] [0, 2, 10, 0] true := Outcome.winning (q := [0, 0, 10, 0]) (by decide) s3122_0_0_10_0private theorem s3122_0_2_10_2 : Outcome [3, 1, 2, 2] [0, 2, 10, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 10, 2] = [[0, 1, 10, 2], [0, 0, 10, 2], [0, 2, 9, 2], [0, 2, 7, 2], [0, 2, 6, 2], [0, 2, 10, 1], [0, 2, 10, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_10_2· exact s3122_0_0_10_2· exact s3122_0_2_9_2· exact s3122_0_2_7_2· exact s3122_0_2_6_2· exact s3122_0_2_10_1· exact s3122_0_2_10_0private theorem s3122_0_2_13_2 : Outcome [3, 1, 2, 2] [0, 2, 13, 2] true := Outcome.winning (q := [0, 2, 10, 2]) (by decide) s3122_0_2_10_2private theorem s3122_0_0_12_2 : Outcome [3, 1, 2, 2] [0, 0, 12, 2] true := Outcome.winning (q := [0, 0, 9, 2]) (by decide) s3122_0_0_9_2private theorem s3122_1_0_4_0 : Outcome [3, 1, 2, 2] [1, 0, 4, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 4, 0] = [[0, 0, 4, 0], [1, 0, 3, 0], [1, 0, 1, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl· exact s3122_0_0_4_0· exact s3122_1_0_3_0· exact s3122_1_0_1_0private theorem s3122_1_0_5_0 : Outcome [3, 1, 2, 2] [1, 0, 5, 0] true := Outcome.winning (q := [1, 0, 4, 0]) (by decide) s3122_1_0_4_0private theorem s3122_1_0_2_0 : Outcome [3, 1, 2, 2] [1, 0, 2, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3122_1_0_0_0private theorem s3122_1_0_6_0 : Outcome [3, 1, 2, 2] [1, 0, 6, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 6, 0] = [[0, 0, 6, 0], [1, 0, 5, 0], [1, 0, 3, 0], [1, 0, 2, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_6_0· exact s3122_1_0_5_0· exact s3122_1_0_3_0· exact s3122_1_0_2_0private theorem s3122_1_0_7_0 : Outcome [3, 1, 2, 2] [1, 0, 7, 0] true := Outcome.winning (q := [1, 0, 6, 0]) (by decide) s3122_1_0_6_0private theorem s3122_1_0_11_0 : Outcome [3, 1, 2, 2] [1, 0, 11, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 11, 0] = [[0, 0, 11, 0], [1, 0, 10, 0], [1, 0, 8, 0], [1, 0, 7, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_11_0· exact s3122_1_0_10_0· exact s3122_1_0_8_0· exact s3122_1_0_7_0private theorem s3122_1_0_11_2 : Outcome [3, 1, 2, 2] [1, 0, 11, 2] true := Outcome.winning (q := [1, 0, 11, 0]) (by decide) s3122_1_0_11_0private theorem s3122_1_0_4_2 : Outcome [3, 1, 2, 2] [1, 0, 4, 2] true := Outcome.winning (q := [1, 0, 4, 0]) (by decide) s3122_1_0_4_0private theorem s3122_1_0_5_1 : Outcome [3, 1, 2, 2] [1, 0, 5, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_1_0_5_2 : Outcome [3, 1, 2, 2] [1, 0, 5, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 5, 2] = [[0, 0, 5, 2], [1, 0, 4, 2], [1, 0, 2, 2], [1, 0, 1, 2], [1, 0, 5, 1], [1, 0, 5, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_5_2· exact s3122_1_0_4_2· exact s3122_1_0_2_2· exact s3122_1_0_1_2· exact s3122_1_0_5_1· exact s3122_1_0_5_0private theorem s3122_1_0_8_2 : Outcome [3, 1, 2, 2] [1, 0, 8, 2] true := Outcome.winning (q := [1, 0, 5, 2]) (by decide) s3122_1_0_5_2private theorem s3122_1_0_7_1 : Outcome [3, 1, 2, 2] [1, 0, 7, 1] true := Outcome.winning (q := [1, 0, 3, 1]) (by decide) s3122_1_0_3_1private theorem s3122_1_0_8_1 : Outcome [3, 1, 2, 2] [1, 0, 8, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 8, 1] = [[0, 0, 8, 1], [1, 0, 7, 1], [1, 0, 5, 1], [1, 0, 4, 1], [1, 0, 8, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_8_1· exact s3122_1_0_7_1· exact s3122_1_0_5_1· exact s3122_1_0_4_1· exact s3122_1_0_8_0private theorem s3122_1_0_12_1 : Outcome [3, 1, 2, 2] [1, 0, 12, 1] true := Outcome.winning (q := [1, 0, 8, 1]) (by decide) s3122_1_0_8_1private theorem s3122_1_0_12_0 : Outcome [3, 1, 2, 2] [1, 0, 12, 0] true := Outcome.winning (q := [1, 0, 11, 0]) (by decide) s3122_1_0_11_0private theorem s3122_1_0_12_2 : Outcome [3, 1, 2, 2] [1, 0, 12, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 12, 2] = [[0, 0, 12, 2], [1, 0, 11, 2], [1, 0, 9, 2], [1, 0, 8, 2], [1, 0, 12, 1], [1, 0, 12, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_12_2· exact s3122_1_0_11_2· exact s3122_1_0_9_2· exact s3122_1_0_8_2· exact s3122_1_0_12_1· exact s3122_1_0_12_0private theorem s3122_1_0_13_2 : Outcome [3, 1, 2, 2] [1, 0, 13, 2] true := Outcome.winning (q := [1, 0, 12, 2]) (by decide) s3122_1_0_12_2private theorem s3122_1_2_12_2 : Outcome [3, 1, 2, 2] [1, 2, 12, 2] true := Outcome.winning (q := [1, 0, 12, 2]) (by decide) s3122_1_0_12_2private theorem s3122_1_2_10_2 : Outcome [3, 1, 2, 2] [1, 2, 10, 2] true := Outcome.winning (q := [0, 2, 10, 2]) (by decide) s3122_0_2_10_2private theorem s3122_1_2_9_2 : Outcome [3, 1, 2, 2] [1, 2, 9, 2] true := Outcome.winning (q := [1, 1, 9, 2]) (by decide) s3122_1_1_9_2private theorem s3122_1_2_13_1 : Outcome [3, 1, 2, 2] [1, 2, 13, 1] true := Outcome.winning (q := [1, 1, 13, 1]) (by decide) s3122_1_1_13_1private theorem s3122_1_0_9_0 : Outcome [3, 1, 2, 2] [1, 0, 9, 0] true := Outcome.winning (q := [1, 0, 6, 0]) (by decide) s3122_1_0_6_0private theorem s3122_1_0_13_0 : Outcome [3, 1, 2, 2] [1, 0, 13, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 13, 0] = [[0, 0, 13, 0], [1, 0, 12, 0], [1, 0, 10, 0], [1, 0, 9, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl· exact s3122_0_0_13_0· exact s3122_1_0_12_0· exact s3122_1_0_10_0· exact s3122_1_0_9_0private theorem s3122_1_2_13_0 : Outcome [3, 1, 2, 2] [1, 2, 13, 0] true := Outcome.winning (q := [1, 0, 13, 0]) (by decide) s3122_1_0_13_0private theorem s3122_1_2_13_2 : Outcome [3, 1, 2, 2] [1, 2, 13, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 2, 13, 2] = [[0, 2, 13, 2], [1, 1, 13, 2], [1, 0, 13, 2], [1, 2, 12, 2], [1, 2, 10, 2], [1, 2, 9, 2], [1, 2, 13, 1], [1, 2, 13, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_2_13_2· exact s3122_1_1_13_2· exact s3122_1_0_13_2· exact s3122_1_2_12_2· exact s3122_1_2_10_2· exact s3122_1_2_9_2· exact s3122_1_2_13_1· exact s3122_1_2_13_0private theorem s3122_2_2_13_2 : Outcome [3, 1, 2, 2] [2, 2, 13, 2] true := Outcome.winning (q := [1, 2, 13, 2]) (by decide) s3122_1_2_13_2private theorem s3122_0_2_11_2 : Outcome [3, 1, 2, 2] [0, 2, 11, 2] true := Outcome.winning (q := [0, 2, 10, 2]) (by decide) s3122_0_2_10_2private theorem s3122_0_1_8_2 : Outcome [3, 1, 2, 2] [0, 1, 8, 2] true := Outcome.winning (q := [0, 1, 5, 2]) (by decide) s3122_0_1_5_2private theorem s3122_0_2_5_2 : Outcome [3, 1, 2, 2] [0, 2, 5, 2] true := Outcome.winning (q := [0, 1, 5, 2]) (by decide) s3122_0_1_5_2private theorem s3122_0_2_8_1 : Outcome [3, 1, 2, 2] [0, 2, 8, 1] true := Outcome.winning (q := [0, 1, 8, 1]) (by decide) s3122_0_1_8_1private theorem s3122_0_2_8_0 : Outcome [3, 1, 2, 2] [0, 2, 8, 0] true := Outcome.winning (q := [0, 0, 8, 0]) (by decide) s3122_0_0_8_0private theorem s3122_0_2_8_2 : Outcome [3, 1, 2, 2] [0, 2, 8, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 8, 2] = [[0, 1, 8, 2], [0, 0, 8, 2], [0, 2, 7, 2], [0, 2, 5, 2], [0, 2, 4, 2], [0, 2, 8, 1], [0, 2, 8, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_8_2· exact s3122_0_0_8_2· exact s3122_0_2_7_2· exact s3122_0_2_5_2· exact s3122_0_2_4_2· exact s3122_0_2_8_1· exact s3122_0_2_8_0private theorem s3122_1_2_8_2 : Outcome [3, 1, 2, 2] [1, 2, 8, 2] true := Outcome.winning (q := [0, 2, 8, 2]) (by decide) s3122_0_2_8_2private theorem s3122_1_2_7_2 : Outcome [3, 1, 2, 2] [1, 2, 7, 2] true := Outcome.winning (q := [1, 1, 7, 2]) (by decide) s3122_1_1_7_2private theorem s3122_1_2_11_1 : Outcome [3, 1, 2, 2] [1, 2, 11, 1] true := Outcome.winning (q := [1, 1, 11, 1]) (by decide) s3122_1_1_11_1private theorem s3122_1_2_11_0 : Outcome [3, 1, 2, 2] [1, 2, 11, 0] true := Outcome.winning (q := [1, 0, 11, 0]) (by decide) s3122_1_0_11_0private theorem s3122_1_2_11_2 : Outcome [3, 1, 2, 2] [1, 2, 11, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 2, 11, 2] = [[0, 2, 11, 2], [1, 1, 11, 2], [1, 0, 11, 2], [1, 2, 10, 2], [1, 2, 8, 2], [1, 2, 7, 2], [1, 2, 11, 1], [1, 2, 11, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_2_11_2· exact s3122_1_1_11_2· exact s3122_1_0_11_2· exact s3122_1_2_10_2· exact s3122_1_2_8_2· exact s3122_1_2_7_2· exact s3122_1_2_11_1· exact s3122_1_2_11_0private theorem s3122_2_2_11_2 : Outcome [3, 1, 2, 2] [2, 2, 11, 2] true := Outcome.winning (q := [1, 2, 11, 2]) (by decide) s3122_1_2_11_2private theorem s3122_2_2_10_2 : Outcome [3, 1, 2, 2] [2, 2, 10, 2] true := Outcome.winning (q := [0, 2, 10, 2]) (by decide) s3122_0_2_10_2private theorem s3122_0_1_14_0 : Outcome [3, 1, 2, 2] [0, 1, 14, 0] true := Outcome.winning (q := [0, 1, 13, 0]) (by decide) s3122_0_1_13_0private theorem s3122_0_2_13_0 : Outcome [3, 1, 2, 2] [0, 2, 13, 0] true := Outcome.winning (q := [0, 1, 13, 0]) (by decide) s3122_0_1_13_0private theorem s3122_0_2_11_0 : Outcome [3, 1, 2, 2] [0, 2, 11, 0] true := Outcome.winning (q := [0, 1, 11, 0]) (by decide) s3122_0_1_11_0private theorem s3122_0_2_14_0 : Outcome [3, 1, 2, 2] [0, 2, 14, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [0, 2, 14, 0] = [[0, 1, 14, 0], [0, 0, 14, 0], [0, 2, 13, 0], [0, 2, 11, 0], [0, 2, 10, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_1_14_0· exact s3122_0_0_14_0· exact s3122_0_2_13_0· exact s3122_0_2_11_0· exact s3122_0_2_10_0private theorem s3122_0_2_14_1 : Outcome [3, 1, 2, 2] [0, 2, 14, 1] true := Outcome.winning (q := [0, 2, 14, 0]) (by decide) s3122_0_2_14_0private theorem s3122_1_0_9_1 : Outcome [3, 1, 2, 2] [1, 0, 9, 1] true := Outcome.winning (q := [1, 0, 8, 1]) (by decide) s3122_1_0_8_1private theorem s3122_1_0_10_1 : Outcome [3, 1, 2, 2] [1, 0, 10, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 0, 10, 1] = [[0, 0, 10, 1], [1, 0, 9, 1], [1, 0, 7, 1], [1, 0, 6, 1], [1, 0, 10, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl· exact s3122_0_0_10_1· exact s3122_1_0_9_1· exact s3122_1_0_7_1· exact s3122_1_0_6_1· exact s3122_1_0_10_0private theorem s3122_1_0_14_1 : Outcome [3, 1, 2, 2] [1, 0, 14, 1] true := Outcome.winning (q := [1, 0, 10, 1]) (by decide) s3122_1_0_10_1private theorem s3122_1_2_10_1 : Outcome [3, 1, 2, 2] [1, 2, 10, 1] true := Outcome.winning (q := [1, 0, 10, 1]) (by decide) s3122_1_0_10_1private theorem s3122_1_2_14_0 : Outcome [3, 1, 2, 2] [1, 2, 14, 0] true := Outcome.winning (q := [0, 2, 14, 0]) (by decide) s3122_0_2_14_0private theorem s3122_1_2_14_1 : Outcome [3, 1, 2, 2] [1, 2, 14, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [1, 2, 14, 1] = [[0, 2, 14, 1], [1, 1, 14, 1], [1, 0, 14, 1], [1, 2, 13, 1], [1, 2, 11, 1], [1, 2, 10, 1], [1, 2, 14, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_0_2_14_1· exact s3122_1_1_14_1· exact s3122_1_0_14_1· exact s3122_1_2_13_1· exact s3122_1_2_11_1· exact s3122_1_2_10_1· exact s3122_1_2_14_0private theorem s3122_2_2_14_1 : Outcome [3, 1, 2, 2] [2, 2, 14, 1] true := Outcome.winning (q := [1, 2, 14, 1]) (by decide) s3122_1_2_14_1private theorem s3122_2_2_14_0 : Outcome [3, 1, 2, 2] [2, 2, 14, 0] true := Outcome.winning (q := [0, 2, 14, 0]) (by decide) s3122_0_2_14_0private theorem s3122_2_2_14_2 : Outcome [3, 1, 2, 2] [2, 2, 14, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 2, 14, 2] = [[1, 2, 14, 2], [0, 2, 14, 2], [2, 1, 14, 2], [2, 0, 14, 2], [2, 2, 13, 2], [2, 2, 11, 2], [2, 2, 10, 2], [2, 2, 14, 1], [2, 2, 14, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqrcases hq with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl· exact s3122_1_2_14_2· exact s3122_0_2_14_2· exact s3122_2_1_14_2· exact s3122_2_0_14_2· exact s3122_2_2_13_2· exact s3122_2_2_11_2· exact s3122_2_2_10_2· exact s3122_2_2_14_1· exact s3122_2_2_14_0def features (x y : Nat) : Nat × Nat × Bool :=(x % 7, y % 7, decide (max x y - min x y ≤ 4))def conjecture41 : Prop :=∀ x y u v, features x y = features u v →(Outcome [3,1,2,2] [2,2,x,y] false ↔ Outcome [3,1,2,2] [2,2,u,v] false)theorem liang_conjecture41_counterexample : ¬ conjecture41 := byintro hhave same : features 7 2 = features 14 2 := by decidehave leftP : Outcome [3,1,2,2] [2,2,7,2] false := (h 7 2 14 2 same).mpr s3122_2_2_14_2exact Bool.false_ne_true (outcome_unique s3122_2_2_7_2 leftP).symmend Quaternary