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 s3102_0_0_0_0 : Outcome [3, 1, 0, 2] [0, 0, 0, 0] true := Outcome.terminal (by decide)private theorem s3102_0_0_0_1 : Outcome [3, 1, 0, 2] [0, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_0_0private theorem s3102_0_0_1_1 : Outcome [3, 1, 0, 2] [0, 0, 1, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3102_0_0_0_1private theorem s3102_0_1_0_1 : Outcome [3, 1, 0, 2] [0, 1, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3102_0_0_0_1private theorem s3102_0_0_1_0 : Outcome [3, 1, 0, 2] [0, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_0_0private theorem s3102_0_1_1_0 : Outcome [3, 1, 0, 2] [0, 1, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3102_0_0_1_0private theorem s3102_0_1_1_1 : Outcome [3, 1, 0, 2] [0, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_1_1· exact s3102_0_1_0_1· exact s3102_0_1_1_0private theorem s3102_2_1_1_1 : Outcome [3, 1, 0, 2] [2, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3102_0_1_1_1private theorem s3102_1_0_0_1 : Outcome [3, 1, 0, 2] [1, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3102_0_0_0_1private theorem s3102_1_0_1_0 : Outcome [3, 1, 0, 2] [1, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3102_0_0_1_0private theorem s3102_1_0_1_1 : Outcome [3, 1, 0, 2] [1, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_1_1· exact s3102_1_0_0_1· exact s3102_1_0_1_0private theorem s3102_5_0_1_1 : Outcome [3, 1, 0, 2] [5, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3102_1_0_1_1private theorem s3102_2_0_1_1 : Outcome [3, 1, 0, 2] [2, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3102_1_0_1_1private theorem s3102_1_0_0_0 : Outcome [3, 1, 0, 2] [1, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_0_0private theorem s3102_5_0_0_0 : Outcome [3, 1, 0, 2] [5, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3102_1_0_0_0private theorem s3102_2_0_0_0 : Outcome [3, 1, 0, 2] [2, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3102_1_0_0_0private theorem s3102_6_0_0_0 : Outcome [3, 1, 0, 2] [6, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [6, 0, 0, 0] = [[5, 0, 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· exact s3102_5_0_0_0· exact s3102_2_0_0_0private theorem s3102_6_0_0_1 : Outcome [3, 1, 0, 2] [6, 0, 0, 1] true := Outcome.winning (q := [6, 0, 0, 0]) (by decide) s3102_6_0_0_0private theorem s3102_6_0_1_0 : Outcome [3, 1, 0, 2] [6, 0, 1, 0] true := Outcome.winning (q := [6, 0, 0, 0]) (by decide) s3102_6_0_0_0private theorem s3102_6_0_1_1 : Outcome [3, 1, 0, 2] [6, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [6, 0, 1, 1] = [[5, 0, 1, 1], [2, 0, 1, 1], [6, 0, 0, 1], [6, 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 | rfl· exact s3102_5_0_1_1· exact s3102_2_0_1_1· exact s3102_6_0_0_1· exact s3102_6_0_1_0private theorem s3102_6_1_1_1 : Outcome [3, 1, 0, 2] [6, 1, 1, 1] true := Outcome.winning (q := [6, 0, 1, 1]) (by decide) s3102_6_0_1_1private theorem s3102_3_0_0_0 : Outcome [3, 1, 0, 2] [3, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [3, 0, 0, 0] = [[2, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3102_2_0_0_0private theorem s3102_3_0_0_1 : Outcome [3, 1, 0, 2] [3, 0, 0, 1] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3102_3_0_0_0private theorem s3102_3_0_1_0 : Outcome [3, 1, 0, 2] [3, 0, 1, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3102_3_0_0_0private theorem s3102_3_0_1_1 : Outcome [3, 1, 0, 2] [3, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [3, 0, 1, 1] = [[2, 0, 1, 1], [3, 0, 0, 1], [3, 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 s3102_2_0_1_1· exact s3102_3_0_0_1· exact s3102_3_0_1_0private theorem s3102_3_1_1_1 : Outcome [3, 1, 0, 2] [3, 1, 1, 1] true := Outcome.winning (q := [3, 0, 1, 1]) (by decide) s3102_3_0_1_1private theorem s3102_7_0_1_1 : Outcome [3, 1, 0, 2] [7, 0, 1, 1] true := Outcome.winning (q := [6, 0, 1, 1]) (by decide) s3102_6_0_1_1private theorem s3102_0_1_0_0 : Outcome [3, 1, 0, 2] [0, 1, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_0_0_0private theorem s3102_1_1_0_0 : Outcome [3, 1, 0, 2] [1, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3102_0_1_0_0private theorem s3102_1_1_0_1 : Outcome [3, 1, 0, 2] [1, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_1_0_1· exact s3102_1_0_0_1· exact s3102_1_1_0_0private theorem s3102_5_1_0_1 : Outcome [3, 1, 0, 2] [5, 1, 0, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3102_1_1_0_1private theorem s3102_2_1_0_1 : Outcome [3, 1, 0, 2] [2, 1, 0, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3102_1_1_0_1private theorem s3102_6_1_0_0 : Outcome [3, 1, 0, 2] [6, 1, 0, 0] true := Outcome.winning (q := [6, 0, 0, 0]) (by decide) s3102_6_0_0_0private theorem s3102_6_1_0_1 : Outcome [3, 1, 0, 2] [6, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [6, 1, 0, 1] = [[5, 1, 0, 1], [2, 1, 0, 1], [6, 0, 0, 1], [6, 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 | rfl· exact s3102_5_1_0_1· exact s3102_2_1_0_1· exact s3102_6_0_0_1· exact s3102_6_1_0_0private theorem s3102_7_1_0_1 : Outcome [3, 1, 0, 2] [7, 1, 0, 1] true := Outcome.winning (q := [6, 1, 0, 1]) (by decide) s3102_6_1_0_1private theorem s3102_1_1_1_0 : Outcome [3, 1, 0, 2] [1, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 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 s3102_0_1_1_0· exact s3102_1_0_1_0· exact s3102_1_1_0_0private theorem s3102_5_1_1_0 : Outcome [3, 1, 0, 2] [5, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3102_1_1_1_0private theorem s3102_2_1_1_0 : Outcome [3, 1, 0, 2] [2, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3102_1_1_1_0private theorem s3102_6_1_1_0 : Outcome [3, 1, 0, 2] [6, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [6, 1, 1, 0] = [[5, 1, 1, 0], [2, 1, 1, 0], [6, 0, 1, 0], [6, 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 | rfl· exact s3102_5_1_1_0· exact s3102_2_1_1_0· exact s3102_6_0_1_0· exact s3102_6_1_0_0private theorem s3102_7_1_1_0 : Outcome [3, 1, 0, 2] [7, 1, 1, 0] true := Outcome.winning (q := [6, 1, 1, 0]) (by decide) s3102_6_1_1_0private theorem s3102_7_1_1_1 : Outcome [3, 1, 0, 2] [7, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 0, 2] [7, 1, 1, 1] = [[6, 1, 1, 1], [3, 1, 1, 1], [7, 0, 1, 1], [7, 1, 0, 1], [7, 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· exact s3102_6_1_1_1· exact s3102_3_1_1_1· exact s3102_7_0_1_1· exact s3102_7_1_0_1· exact s3102_7_1_1_0private theorem s3122_0_0_0_0 : Outcome [3, 1, 2, 2] [0, 0, 0, 0] true := Outcome.terminal (by decide)private 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_3_0_0_0 : Outcome [3, 1, 2, 2] [3, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [3, 0, 0, 0] = [[2, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3122_2_0_0_0private theorem s3122_3_0_0_1 : Outcome [3, 1, 2, 2] [3, 0, 0, 1] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3122_3_0_0_0private theorem s3122_3_0_1_0 : Outcome [3, 1, 2, 2] [3, 0, 1, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3122_3_0_0_0private theorem s3122_3_0_1_1 : Outcome [3, 1, 2, 2] [3, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [3, 0, 1, 1] = [[2, 0, 1, 1], [3, 0, 0, 1], [3, 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_2_0_1_1· exact s3122_3_0_0_1· exact s3122_3_0_1_0private theorem s3122_3_0_1_2 : Outcome [3, 1, 2, 2] [3, 0, 1, 2] true := Outcome.winning (q := [3, 0, 1, 1]) (by decide) s3122_3_0_1_1private 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_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_3_0_0_2 : Outcome [3, 1, 2, 2] [3, 0, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3122_2_0_0_2private theorem s3122_3_0_2_1 : Outcome [3, 1, 2, 2] [3, 0, 2, 1] true := Outcome.winning (q := [3, 0, 1, 1]) (by decide) s3122_3_0_1_1private 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_2_0_1_0 : Outcome [3, 1, 2, 2] [2, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3122_0_0_1_0private theorem s3122_2_0_2_0 : Outcome [3, 1, 2, 2] [2, 0, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [2, 0, 2, 0] = [[1, 0, 2, 0], [0, 0, 2, 0], [2, 0, 1, 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_0_2_0· exact s3122_0_0_2_0· exact s3122_2_0_1_0· exact s3122_2_0_0_0private theorem s3122_3_0_2_0 : Outcome [3, 1, 2, 2] [3, 0, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3122_2_0_2_0private theorem s3122_3_0_2_2 : Outcome [3, 1, 2, 2] [3, 0, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [3, 0, 2, 2] = [[2, 0, 2, 2], [3, 0, 1, 2], [3, 0, 0, 2], [3, 0, 2, 1], [3, 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 | rfl· exact s3122_2_0_2_2· exact s3122_3_0_1_2· exact s3122_3_0_0_2· exact s3122_3_0_2_1· exact s3122_3_0_2_0private theorem s3122_7_0_2_2 : Outcome [3, 1, 2, 2] [7, 0, 2, 2] true := Outcome.winning (q := [3, 0, 2, 2]) (by decide) s3122_3_0_2_2private theorem s3122_4_0_0_0 : Outcome [3, 1, 2, 2] [4, 0, 0, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3122_3_0_0_0private theorem s3122_4_0_1_0 : Outcome [3, 1, 2, 2] [4, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [4, 0, 1, 0] = [[3, 0, 1, 0], [1, 0, 1, 0], [4, 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· exact s3122_3_0_1_0· exact s3122_1_0_1_0· exact s3122_4_0_0_0private theorem s3122_4_0_1_2 : Outcome [3, 1, 2, 2] [4, 0, 1, 2] true := Outcome.winning (q := [4, 0, 1, 0]) (by decide) s3122_4_0_1_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_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_5_0_0_2 : Outcome [3, 1, 2, 2] [5, 0, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3122_2_0_0_2private theorem s3122_5_0_1_1 : Outcome [3, 1, 2, 2] [5, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3122_1_0_1_1private theorem s3122_5_0_1_0 : Outcome [3, 1, 2, 2] [5, 0, 1, 0] true := Outcome.winning (q := [4, 0, 1, 0]) (by decide) s3122_4_0_1_0private theorem s3122_5_0_1_2 : Outcome [3, 1, 2, 2] [5, 0, 1, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [5, 0, 1, 2] = [[4, 0, 1, 2], [2, 0, 1, 2], [1, 0, 1, 2], [5, 0, 0, 2], [5, 0, 1, 1], [5, 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 | rfl | rfl | rfl· exact s3122_4_0_1_2· exact s3122_2_0_1_2· exact s3122_1_0_1_2· exact s3122_5_0_0_2· exact s3122_5_0_1_1· exact s3122_5_0_1_0private theorem s3122_5_0_2_2 : Outcome [3, 1, 2, 2] [5, 0, 2, 2] true := Outcome.winning (q := [5, 0, 1, 2]) (by decide) s3122_5_0_1_2private theorem s3122_4_0_2_2 : Outcome [3, 1, 2, 2] [4, 0, 2, 2] true := Outcome.winning (q := [3, 0, 2, 2]) (by decide) s3122_3_0_2_2private theorem s3122_8_0_1_2 : Outcome [3, 1, 2, 2] [8, 0, 1, 2] true := Outcome.winning (q := [5, 0, 1, 2]) (by decide) s3122_5_0_1_2private theorem s3122_6_0_0_2 : Outcome [3, 1, 2, 2] [6, 0, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3122_2_0_0_2private theorem s3122_4_0_0_1 : Outcome [3, 1, 2, 2] [4, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [4, 0, 0, 1] = [[3, 0, 0, 1], [1, 0, 0, 1], [4, 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· exact s3122_3_0_0_1· exact s3122_1_0_0_1· exact s3122_4_0_0_0private theorem s3122_4_0_0_2 : Outcome [3, 1, 2, 2] [4, 0, 0, 2] true := Outcome.winning (q := [4, 0, 0, 1]) (by decide) s3122_4_0_0_1private theorem s3122_5_0_0_1 : Outcome [3, 1, 2, 2] [5, 0, 0, 1] true := Outcome.winning (q := [4, 0, 0, 1]) (by decide) s3122_4_0_0_1private theorem s3122_6_0_0_0 : Outcome [3, 1, 2, 2] [6, 0, 0, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3122_3_0_0_0private theorem s3122_6_0_0_1 : Outcome [3, 1, 2, 2] [6, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [6, 0, 0, 1] = [[5, 0, 0, 1], [3, 0, 0, 1], [2, 0, 0, 1], [6, 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_5_0_0_1· exact s3122_3_0_0_1· exact s3122_2_0_0_1· exact s3122_6_0_0_0private theorem s3122_7_0_0_1 : Outcome [3, 1, 2, 2] [7, 0, 0, 1] true := Outcome.winning (q := [6, 0, 0, 1]) (by decide) s3122_6_0_0_1private theorem s3122_7_0_0_0 : Outcome [3, 1, 2, 2] [7, 0, 0, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3122_3_0_0_0private theorem s3122_7_0_0_2 : Outcome [3, 1, 2, 2] [7, 0, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [7, 0, 0, 2] = [[6, 0, 0, 2], [4, 0, 0, 2], [3, 0, 0, 2], [7, 0, 0, 1], [7, 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 | rfl· exact s3122_6_0_0_2· exact s3122_4_0_0_2· exact s3122_3_0_0_2· exact s3122_7_0_0_1· exact s3122_7_0_0_0private theorem s3122_8_0_0_2 : Outcome [3, 1, 2, 2] [8, 0, 0, 2] true := Outcome.winning (q := [7, 0, 0, 2]) (by decide) s3122_7_0_0_2private theorem s3122_4_0_2_1 : Outcome [3, 1, 2, 2] [4, 0, 2, 1] true := Outcome.winning (q := [4, 0, 0, 1]) (by decide) s3122_4_0_0_1private theorem s3122_2_0_2_1 : Outcome [3, 1, 2, 2] [2, 0, 2, 1] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3122_2_0_2_0private 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_5_0_2_0 : Outcome [3, 1, 2, 2] [5, 0, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3122_2_0_2_0private theorem s3122_5_0_2_1 : Outcome [3, 1, 2, 2] [5, 0, 2, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [5, 0, 2, 1] = [[4, 0, 2, 1], [2, 0, 2, 1], [1, 0, 2, 1], [5, 0, 1, 1], [5, 0, 0, 1], [5, 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 | rfl | rfl· exact s3122_4_0_2_1· exact s3122_2_0_2_1· exact s3122_1_0_2_1· exact s3122_5_0_1_1· exact s3122_5_0_0_1· exact s3122_5_0_2_0private theorem s3122_8_0_2_1 : Outcome [3, 1, 2, 2] [8, 0, 2, 1] true := Outcome.winning (q := [5, 0, 2, 1]) (by decide) s3122_5_0_2_1private theorem s3122_6_0_2_0 : Outcome [3, 1, 2, 2] [6, 0, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3122_2_0_2_0private theorem s3122_4_0_2_0 : Outcome [3, 1, 2, 2] [4, 0, 2, 0] true := Outcome.winning (q := [4, 0, 1, 0]) (by decide) s3122_4_0_1_0private theorem s3122_6_0_1_0 : Outcome [3, 1, 2, 2] [6, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [6, 0, 1, 0] = [[5, 0, 1, 0], [3, 0, 1, 0], [2, 0, 1, 0], [6, 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_5_0_1_0· exact s3122_3_0_1_0· exact s3122_2_0_1_0· exact s3122_6_0_0_0private theorem s3122_7_0_1_0 : Outcome [3, 1, 2, 2] [7, 0, 1, 0] true := Outcome.winning (q := [6, 0, 1, 0]) (by decide) s3122_6_0_1_0private theorem s3122_7_0_2_0 : Outcome [3, 1, 2, 2] [7, 0, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [7, 0, 2, 0] = [[6, 0, 2, 0], [4, 0, 2, 0], [3, 0, 2, 0], [7, 0, 1, 0], [7, 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 | rfl· exact s3122_6_0_2_0· exact s3122_4_0_2_0· exact s3122_3_0_2_0· exact s3122_7_0_1_0· exact s3122_7_0_0_0private theorem s3122_8_0_2_0 : Outcome [3, 1, 2, 2] [8, 0, 2, 0] true := Outcome.winning (q := [7, 0, 2, 0]) (by decide) s3122_7_0_2_0private theorem s3122_8_0_2_2 : Outcome [3, 1, 2, 2] [8, 0, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 2] [8, 0, 2, 2] = [[7, 0, 2, 2], [5, 0, 2, 2], [4, 0, 2, 2], [8, 0, 1, 2], [8, 0, 0, 2], [8, 0, 2, 1], [8, 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 | rfl | rfl | rfl· exact s3122_7_0_2_2· exact s3122_5_0_2_2· exact s3122_4_0_2_2· exact s3122_8_0_1_2· exact s3122_8_0_0_2· exact s3122_8_0_2_1· exact s3122_8_0_2_0private theorem s3122_8_1_2_2 : Outcome [3, 1, 2, 2] [8, 1, 2, 2] true := Outcome.winning (q := [8, 0, 2, 2]) (by decide) s3122_8_0_2_2private theorem s3123_0_0_0_0 : Outcome [3, 1, 2, 3] [0, 0, 0, 0] true := Outcome.terminal (by decide)private theorem s3123_0_0_1_0 : Outcome [3, 1, 2, 3] [0, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_0_0private theorem s3123_0_0_1_2 : Outcome [3, 1, 2, 3] [0, 0, 1, 2] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_0_0_0_1 : Outcome [3, 1, 2, 3] [0, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_0_0private theorem s3123_0_0_0_2 : Outcome [3, 1, 2, 3] [0, 0, 0, 2] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_0_0_2_1 : Outcome [3, 1, 2, 3] [0, 0, 2, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_0_0_2_0 : Outcome [3, 1, 2, 3] [0, 0, 2, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_0_0_2_2 : Outcome [3, 1, 2, 3] [0, 0, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_1_2· exact s3123_0_0_0_2· exact s3123_0_0_2_1· exact s3123_0_0_2_0private theorem s3123_0_1_2_2 : Outcome [3, 1, 2, 3] [0, 1, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3123_0_0_2_2private theorem s3123_1_0_2_2 : Outcome [3, 1, 2, 3] [1, 0, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3123_0_0_2_2private theorem s3123_0_1_1_0 : Outcome [3, 1, 2, 3] [0, 1, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_1_0_1_0 : Outcome [3, 1, 2, 3] [1, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_0_1_0_0 : Outcome [3, 1, 2, 3] [0, 1, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_0_0private theorem s3123_1_1_0_0 : Outcome [3, 1, 2, 3] [1, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3123_0_1_0_0private theorem s3123_1_1_1_0 : Outcome [3, 1, 2, 3] [1, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_1_1_0· exact s3123_1_0_1_0· exact s3123_1_1_0_0private theorem s3123_1_1_1_2 : Outcome [3, 1, 2, 3] [1, 1, 1, 2] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3123_1_1_1_0private theorem s3123_0_1_0_1 : Outcome [3, 1, 2, 3] [0, 1, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_1_0_0_1 : Outcome [3, 1, 2, 3] [1, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_1_1_0_1 : Outcome [3, 1, 2, 3] [1, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_1_0_1· exact s3123_1_0_0_1· exact s3123_1_1_0_0private theorem s3123_1_1_0_2 : Outcome [3, 1, 2, 3] [1, 1, 0, 2] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3123_1_1_0_1private theorem s3123_1_1_2_1 : Outcome [3, 1, 2, 3] [1, 1, 2, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3123_1_1_0_1private theorem s3123_1_1_2_0 : Outcome [3, 1, 2, 3] [1, 1, 2, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3123_1_1_1_0private theorem s3123_1_1_2_2 : Outcome [3, 1, 2, 3] [1, 1, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_1_2_2· exact s3123_1_0_2_2· exact s3123_1_1_1_2· exact s3123_1_1_0_2· exact s3123_1_1_2_1· exact s3123_1_1_2_0private theorem s3123_4_1_0_0 : Outcome [3, 1, 2, 3] [4, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3123_0_1_0_0private theorem s3123_2_1_0_0 : Outcome [3, 1, 2, 3] [2, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3123_0_1_0_0private theorem s3123_1_0_0_0 : Outcome [3, 1, 2, 3] [1, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_0_0private theorem s3123_5_0_0_0 : Outcome [3, 1, 2, 3] [5, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3123_1_0_0_0private theorem s3123_5_1_0_0 : Outcome [3, 1, 2, 3] [5, 1, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [5, 1, 0, 0] = [[4, 1, 0, 0], [2, 1, 0, 0], [1, 1, 0, 0], [5, 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 s3123_4_1_0_0· exact s3123_2_1_0_0· exact s3123_1_1_0_0· exact s3123_5_0_0_0private theorem s3123_5_1_0_2 : Outcome [3, 1, 2, 3] [5, 1, 0, 2] true := Outcome.winning (q := [5, 1, 0, 0]) (by decide) s3123_5_1_0_0private theorem s3123_2_1_0_1 : Outcome [3, 1, 2, 3] [2, 1, 0, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3123_1_1_0_1private theorem s3123_2_0_0_0 : Outcome [3, 1, 2, 3] [2, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3123_1_0_0_0private theorem s3123_3_0_0_0 : Outcome [3, 1, 2, 3] [3, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [3, 0, 0, 0] = [[2, 0, 0, 0]] := by deciderw [eqs] at hqsimp only [List.mem_cons, List.not_mem_nil, or_false] at hqsubst qexact s3123_2_0_0_0private theorem s3123_3_0_0_1 : Outcome [3, 1, 2, 3] [3, 0, 0, 1] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3123_3_0_0_0private theorem s3123_3_1_0_0 : Outcome [3, 1, 2, 3] [3, 1, 0, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3123_3_0_0_0private theorem s3123_3_1_0_1 : Outcome [3, 1, 2, 3] [3, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [3, 1, 0, 1] = [[2, 1, 0, 1], [3, 0, 0, 1], [3, 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 s3123_2_1_0_1· exact s3123_3_0_0_1· exact s3123_3_1_0_0private theorem s3123_3_1_0_2 : Outcome [3, 1, 2, 3] [3, 1, 0, 2] true := Outcome.winning (q := [3, 1, 0, 1]) (by decide) s3123_3_1_0_1private theorem s3123_1_0_0_2 : Outcome [3, 1, 2, 3] [1, 0, 0, 2] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3123_1_0_0_0private theorem s3123_2_0_0_1 : Outcome [3, 1, 2, 3] [2, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_2_0_0_2 : Outcome [3, 1, 2, 3] [2, 0, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_1_0_0_2· exact s3123_0_0_0_2· exact s3123_2_0_0_1· exact s3123_2_0_0_0private theorem s3123_2_1_0_2 : Outcome [3, 1, 2, 3] [2, 1, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3123_2_0_0_2private theorem s3123_6_0_0_2 : Outcome [3, 1, 2, 3] [6, 0, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3123_2_0_0_2private theorem s3123_6_1_0_1 : Outcome [3, 1, 2, 3] [6, 1, 0, 1] true := Outcome.winning (q := [3, 1, 0, 1]) (by decide) s3123_3_1_0_1private theorem s3123_6_1_0_0 : Outcome [3, 1, 2, 3] [6, 1, 0, 0] true := Outcome.winning (q := [5, 1, 0, 0]) (by decide) s3123_5_1_0_0private theorem s3123_6_1_0_2 : Outcome [3, 1, 2, 3] [6, 1, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [6, 1, 0, 2] = [[5, 1, 0, 2], [3, 1, 0, 2], [2, 1, 0, 2], [6, 0, 0, 2], [6, 1, 0, 1], [6, 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 | rfl | rfl | rfl· exact s3123_5_1_0_2· exact s3123_3_1_0_2· exact s3123_2_1_0_2· exact s3123_6_0_0_2· exact s3123_6_1_0_1· exact s3123_6_1_0_0private theorem s3123_6_1_2_2 : Outcome [3, 1, 2, 3] [6, 1, 2, 2] true := Outcome.winning (q := [6, 1, 0, 2]) (by decide) s3123_6_1_0_2private theorem s3123_4_1_2_2 : Outcome [3, 1, 2, 3] [4, 1, 2, 2] true := Outcome.winning (q := [1, 1, 2, 2]) (by decide) s3123_1_1_2_2private theorem s3123_2_0_2_2 : Outcome [3, 1, 2, 3] [2, 0, 2, 2] true := Outcome.winning (q := [0, 0, 2, 2]) (by decide) s3123_0_0_2_2private theorem s3123_0_0_1_1 : Outcome [3, 1, 2, 3] [0, 0, 1, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_1_0_1_1 : Outcome [3, 1, 2, 3] [1, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_1_1· exact s3123_1_0_0_1· exact s3123_1_0_1_0private theorem s3123_2_0_1_1 : Outcome [3, 1, 2, 3] [2, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3123_1_0_1_1private theorem s3123_3_0_1_0 : Outcome [3, 1, 2, 3] [3, 0, 1, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3123_3_0_0_0private theorem s3123_3_0_1_1 : Outcome [3, 1, 2, 3] [3, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [3, 0, 1, 1] = [[2, 0, 1, 1], [3, 0, 0, 1], [3, 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 s3123_2_0_1_1· exact s3123_3_0_0_1· exact s3123_3_0_1_0private theorem s3123_3_0_1_2 : Outcome [3, 1, 2, 3] [3, 0, 1, 2] true := Outcome.winning (q := [3, 0, 1, 1]) (by decide) s3123_3_0_1_1private theorem s3123_3_0_0_2 : Outcome [3, 1, 2, 3] [3, 0, 0, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3123_2_0_0_2private theorem s3123_3_0_2_1 : Outcome [3, 1, 2, 3] [3, 0, 2, 1] true := Outcome.winning (q := [3, 0, 1, 1]) (by decide) s3123_3_0_1_1private theorem s3123_1_0_2_0 : Outcome [3, 1, 2, 3] [1, 0, 2, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3123_1_0_0_0private theorem s3123_2_0_1_0 : Outcome [3, 1, 2, 3] [2, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_2_0_2_0 : Outcome [3, 1, 2, 3] [2, 0, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [2, 0, 2, 0] = [[1, 0, 2, 0], [0, 0, 2, 0], [2, 0, 1, 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 s3123_1_0_2_0· exact s3123_0_0_2_0· exact s3123_2_0_1_0· exact s3123_2_0_0_0private theorem s3123_3_0_2_0 : Outcome [3, 1, 2, 3] [3, 0, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3123_2_0_2_0private theorem s3123_3_0_2_2 : Outcome [3, 1, 2, 3] [3, 0, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [3, 0, 2, 2] = [[2, 0, 2, 2], [3, 0, 1, 2], [3, 0, 0, 2], [3, 0, 2, 1], [3, 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 | rfl· exact s3123_2_0_2_2· exact s3123_3_0_1_2· exact s3123_3_0_0_2· exact s3123_3_0_2_1· exact s3123_3_0_2_0private theorem s3123_3_1_2_2 : Outcome [3, 1, 2, 3] [3, 1, 2, 2] true := Outcome.winning (q := [3, 0, 2, 2]) (by decide) s3123_3_0_2_2private theorem s3123_7_0_2_2 : Outcome [3, 1, 2, 3] [7, 0, 2, 2] true := Outcome.winning (q := [3, 0, 2, 2]) (by decide) s3123_3_0_2_2private theorem s3123_0_1_1_1 : Outcome [3, 1, 2, 3] [0, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_0_0_1_1· exact s3123_0_1_0_1· exact s3123_0_1_1_0private theorem s3123_0_1_1_2 : Outcome [3, 1, 2, 3] [0, 1, 1, 2] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3123_0_1_1_1private theorem s3123_2_0_1_2 : Outcome [3, 1, 2, 3] [2, 0, 1, 2] true := Outcome.winning (q := [2, 0, 0, 2]) (by decide) s3123_2_0_0_2private theorem s3123_2_1_1_1 : Outcome [3, 1, 2, 3] [2, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3123_0_1_1_1private theorem s3123_2_1_1_0 : Outcome [3, 1, 2, 3] [2, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3123_1_1_1_0private theorem s3123_2_1_1_2 : Outcome [3, 1, 2, 3] [2, 1, 1, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [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 s3123_1_1_1_2· exact s3123_0_1_1_2· exact s3123_2_0_1_2· exact s3123_2_1_0_2· exact s3123_2_1_1_1· exact s3123_2_1_1_0private theorem s3123_3_1_1_2 : Outcome [3, 1, 2, 3] [3, 1, 1, 2] true := Outcome.winning (q := [2, 1, 1, 2]) (by decide) s3123_2_1_1_2private theorem s3123_4_0_0_1 : Outcome [3, 1, 2, 3] [4, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3123_0_0_0_1private theorem s3123_4_0_0_0 : Outcome [3, 1, 2, 3] [4, 0, 0, 0] true := Outcome.winning (q := [3, 0, 0, 0]) (by decide) s3123_3_0_0_0private theorem s3123_4_0_0_2 : Outcome [3, 1, 2, 3] [4, 0, 0, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [4, 0, 0, 2] = [[3, 0, 0, 2], [1, 0, 0, 2], [0, 0, 0, 2], [4, 0, 0, 1], [4, 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 | rfl· exact s3123_3_0_0_2· exact s3123_1_0_0_2· exact s3123_0_0_0_2· exact s3123_4_0_0_1· exact s3123_4_0_0_0private theorem s3123_4_0_1_2 : Outcome [3, 1, 2, 3] [4, 0, 1, 2] true := Outcome.winning (q := [4, 0, 0, 2]) (by decide) s3123_4_0_0_2private theorem s3123_4_1_0_2 : Outcome [3, 1, 2, 3] [4, 1, 0, 2] true := Outcome.winning (q := [4, 0, 0, 2]) (by decide) s3123_4_0_0_2private theorem s3123_4_1_1_1 : Outcome [3, 1, 2, 3] [4, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3123_0_1_1_1private theorem s3123_3_1_1_0 : Outcome [3, 1, 2, 3] [3, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [3, 1, 1, 0] = [[2, 1, 1, 0], [3, 0, 1, 0], [3, 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 s3123_2_1_1_0· exact s3123_3_0_1_0· exact s3123_3_1_0_0private theorem s3123_4_1_1_0 : Outcome [3, 1, 2, 3] [4, 1, 1, 0] true := Outcome.winning (q := [3, 1, 1, 0]) (by decide) s3123_3_1_1_0private theorem s3123_4_1_1_2 : Outcome [3, 1, 2, 3] [4, 1, 1, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [4, 1, 1, 2] = [[3, 1, 1, 2], [1, 1, 1, 2], [0, 1, 1, 2], [4, 0, 1, 2], [4, 1, 0, 2], [4, 1, 1, 1], [4, 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 | rfl· exact s3123_3_1_1_2· exact s3123_1_1_1_2· exact s3123_0_1_1_2· exact s3123_4_0_1_2· exact s3123_4_1_0_2· exact s3123_4_1_1_1· exact s3123_4_1_1_0private theorem s3123_7_1_1_2 : Outcome [3, 1, 2, 3] [7, 1, 1, 2] true := Outcome.winning (q := [4, 1, 1, 2]) (by decide) s3123_4_1_1_2private theorem s3123_7_1_0_2 : Outcome [3, 1, 2, 3] [7, 1, 0, 2] true := Outcome.winning (q := [6, 1, 0, 2]) (by decide) s3123_6_1_0_2private theorem s3123_0_1_2_1 : Outcome [3, 1, 2, 3] [0, 1, 2, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3123_0_1_1_1private theorem s3123_2_0_2_1 : Outcome [3, 1, 2, 3] [2, 0, 2, 1] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3123_2_0_2_0private theorem s3123_2_1_2_0 : Outcome [3, 1, 2, 3] [2, 1, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3123_2_0_2_0private theorem s3123_2_1_2_1 : Outcome [3, 1, 2, 3] [2, 1, 2, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [2, 1, 2, 1] = [[1, 1, 2, 1], [0, 1, 2, 1], [2, 0, 2, 1], [2, 1, 1, 1], [2, 1, 0, 1], [2, 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 s3123_1_1_2_1· exact s3123_0_1_2_1· exact s3123_2_0_2_1· exact s3123_2_1_1_1· exact s3123_2_1_0_1· exact s3123_2_1_2_0private theorem s3123_3_1_2_1 : Outcome [3, 1, 2, 3] [3, 1, 2, 1] true := Outcome.winning (q := [2, 1, 2, 1]) (by decide) s3123_2_1_2_1private theorem s3123_4_0_1_0 : Outcome [3, 1, 2, 3] [4, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3123_0_0_1_0private theorem s3123_4_0_2_0 : Outcome [3, 1, 2, 3] [4, 0, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [4, 0, 2, 0] = [[3, 0, 2, 0], [1, 0, 2, 0], [0, 0, 2, 0], [4, 0, 1, 0], [4, 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 | rfl· exact s3123_3_0_2_0· exact s3123_1_0_2_0· exact s3123_0_0_2_0· exact s3123_4_0_1_0· exact s3123_4_0_0_0private theorem s3123_4_0_2_1 : Outcome [3, 1, 2, 3] [4, 0, 2, 1] true := Outcome.winning (q := [4, 0, 2, 0]) (by decide) s3123_4_0_2_0private theorem s3123_4_1_0_1 : Outcome [3, 1, 2, 3] [4, 1, 0, 1] true := Outcome.winning (q := [3, 1, 0, 1]) (by decide) s3123_3_1_0_1private theorem s3123_4_1_2_0 : Outcome [3, 1, 2, 3] [4, 1, 2, 0] true := Outcome.winning (q := [4, 0, 2, 0]) (by decide) s3123_4_0_2_0private theorem s3123_4_1_2_1 : Outcome [3, 1, 2, 3] [4, 1, 2, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [4, 1, 2, 1] = [[3, 1, 2, 1], [1, 1, 2, 1], [0, 1, 2, 1], [4, 0, 2, 1], [4, 1, 1, 1], [4, 1, 0, 1], [4, 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 | rfl· exact s3123_3_1_2_1· exact s3123_1_1_2_1· exact s3123_0_1_2_1· exact s3123_4_0_2_1· exact s3123_4_1_1_1· exact s3123_4_1_0_1· exact s3123_4_1_2_0private theorem s3123_7_1_2_1 : Outcome [3, 1, 2, 3] [7, 1, 2, 1] true := Outcome.winning (q := [4, 1, 2, 1]) (by decide) s3123_4_1_2_1private theorem s3123_5_1_2_0 : Outcome [3, 1, 2, 3] [5, 1, 2, 0] true := Outcome.winning (q := [5, 1, 0, 0]) (by decide) s3123_5_1_0_0private theorem s3123_3_1_2_0 : Outcome [3, 1, 2, 3] [3, 1, 2, 0] true := Outcome.winning (q := [3, 1, 1, 0]) (by decide) s3123_3_1_1_0private theorem s3123_6_0_2_0 : Outcome [3, 1, 2, 3] [6, 0, 2, 0] true := Outcome.winning (q := [2, 0, 2, 0]) (by decide) s3123_2_0_2_0private theorem s3123_6_1_1_0 : Outcome [3, 1, 2, 3] [6, 1, 1, 0] true := Outcome.winning (q := [3, 1, 1, 0]) (by decide) s3123_3_1_1_0private theorem s3123_6_1_2_0 : Outcome [3, 1, 2, 3] [6, 1, 2, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [6, 1, 2, 0] = [[5, 1, 2, 0], [3, 1, 2, 0], [2, 1, 2, 0], [6, 0, 2, 0], [6, 1, 1, 0], [6, 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 | rfl | rfl | rfl· exact s3123_5_1_2_0· exact s3123_3_1_2_0· exact s3123_2_1_2_0· exact s3123_6_0_2_0· exact s3123_6_1_1_0· exact s3123_6_1_0_0private theorem s3123_7_1_2_0 : Outcome [3, 1, 2, 3] [7, 1, 2, 0] true := Outcome.winning (q := [6, 1, 2, 0]) (by decide) s3123_6_1_2_0private theorem s3123_7_1_2_2 : Outcome [3, 1, 2, 3] [7, 1, 2, 2] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 1, 2, 3] [7, 1, 2, 2] = [[6, 1, 2, 2], [4, 1, 2, 2], [3, 1, 2, 2], [7, 0, 2, 2], [7, 1, 1, 2], [7, 1, 0, 2], [7, 1, 2, 1], [7, 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 | rfl | rfl· exact s3123_6_1_2_2· exact s3123_4_1_2_2· exact s3123_3_1_2_2· exact s3123_7_0_2_2· exact s3123_7_1_1_2· exact s3123_7_1_0_2· exact s3123_7_1_2_1· exact s3123_7_1_2_0private theorem s3123_8_1_2_2 : Outcome [3, 1, 2, 3] [8, 1, 2, 2] true := Outcome.winning (q := [7, 1, 2, 2]) (by decide) s3123_7_1_2_2private theorem s3312_0_0_0_0 : Outcome [3, 3, 1, 2] [0, 0, 0, 0] true := Outcome.terminal (by decide)private theorem s3312_0_0_0_1 : Outcome [3, 3, 1, 2] [0, 0, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_0_0private theorem s3312_0_0_1_1 : Outcome [3, 3, 1, 2] [0, 0, 1, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3312_0_0_0_1private theorem s3312_0_1_0_1 : Outcome [3, 3, 1, 2] [0, 1, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3312_0_0_0_1private theorem s3312_0_0_1_0 : Outcome [3, 3, 1, 2] [0, 0, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_0_0private theorem s3312_0_1_1_0 : Outcome [3, 3, 1, 2] [0, 1, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3312_0_0_1_0private theorem s3312_0_1_1_1 : Outcome [3, 3, 1, 2] [0, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_1_1· exact s3312_0_1_0_1· exact s3312_0_1_1_0private theorem s3312_2_1_1_1 : Outcome [3, 3, 1, 2] [2, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3312_0_1_1_1private theorem s3312_1_0_0_1 : Outcome [3, 3, 1, 2] [1, 0, 0, 1] true := Outcome.winning (q := [0, 0, 0, 1]) (by decide) s3312_0_0_0_1private theorem s3312_1_0_1_0 : Outcome [3, 3, 1, 2] [1, 0, 1, 0] true := Outcome.winning (q := [0, 0, 1, 0]) (by decide) s3312_0_0_1_0private theorem s3312_1_0_1_1 : Outcome [3, 3, 1, 2] [1, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_1_1· exact s3312_1_0_0_1· exact s3312_1_0_1_0private theorem s3312_3_0_1_1 : Outcome [3, 3, 1, 2] [3, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3312_1_0_1_1private theorem s3312_2_0_1_1 : Outcome [3, 3, 1, 2] [2, 0, 1, 1] true := Outcome.winning (q := [1, 0, 1, 1]) (by decide) s3312_1_0_1_1private theorem s3312_1_0_0_0 : Outcome [3, 3, 1, 2] [1, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_0_0private theorem s3312_3_0_0_0 : Outcome [3, 3, 1, 2] [3, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3312_1_0_0_0private theorem s3312_2_0_0_0 : Outcome [3, 3, 1, 2] [2, 0, 0, 0] true := Outcome.winning (q := [1, 0, 0, 0]) (by decide) s3312_1_0_0_0private theorem s3312_4_0_0_0 : Outcome [3, 3, 1, 2] [4, 0, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 2] [4, 0, 0, 0] = [[3, 0, 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· exact s3312_3_0_0_0· exact s3312_2_0_0_0private theorem s3312_4_0_0_1 : Outcome [3, 3, 1, 2] [4, 0, 0, 1] true := Outcome.winning (q := [4, 0, 0, 0]) (by decide) s3312_4_0_0_0private theorem s3312_4_0_1_0 : Outcome [3, 3, 1, 2] [4, 0, 1, 0] true := Outcome.winning (q := [4, 0, 0, 0]) (by decide) s3312_4_0_0_0private theorem s3312_4_0_1_1 : Outcome [3, 3, 1, 2] [4, 0, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 2] [4, 0, 1, 1] = [[3, 0, 1, 1], [2, 0, 1, 1], [4, 0, 0, 1], [4, 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 | rfl· exact s3312_3_0_1_1· exact s3312_2_0_1_1· exact s3312_4_0_0_1· exact s3312_4_0_1_0private theorem s3312_4_1_1_1 : Outcome [3, 3, 1, 2] [4, 1, 1, 1] true := Outcome.winning (q := [4, 0, 1, 1]) (by decide) s3312_4_0_1_1private theorem s3312_3_1_1_1 : Outcome [3, 3, 1, 2] [3, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3312_0_1_1_1private theorem s3312_1_1_1_1 : Outcome [3, 3, 1, 2] [1, 1, 1, 1] true := Outcome.winning (q := [0, 1, 1, 1]) (by decide) s3312_0_1_1_1private theorem s3312_5_0_1_1 : Outcome [3, 3, 1, 2] [5, 0, 1, 1] true := Outcome.winning (q := [4, 0, 1, 1]) (by decide) s3312_4_0_1_1private theorem s3312_0_1_0_0 : Outcome [3, 3, 1, 2] [0, 1, 0, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_0_0_0private theorem s3312_1_1_0_0 : Outcome [3, 3, 1, 2] [1, 1, 0, 0] true := Outcome.winning (q := [0, 1, 0, 0]) (by decide) s3312_0_1_0_0private theorem s3312_1_1_0_1 : Outcome [3, 3, 1, 2] [1, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_1_0_1· exact s3312_1_0_0_1· exact s3312_1_1_0_0private theorem s3312_3_1_0_1 : Outcome [3, 3, 1, 2] [3, 1, 0, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3312_1_1_0_1private theorem s3312_2_1_0_1 : Outcome [3, 3, 1, 2] [2, 1, 0, 1] true := Outcome.winning (q := [1, 1, 0, 1]) (by decide) s3312_1_1_0_1private theorem s3312_4_1_0_0 : Outcome [3, 3, 1, 2] [4, 1, 0, 0] true := Outcome.winning (q := [4, 0, 0, 0]) (by decide) s3312_4_0_0_0private theorem s3312_4_1_0_1 : Outcome [3, 3, 1, 2] [4, 1, 0, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 2] [4, 1, 0, 1] = [[3, 1, 0, 1], [2, 1, 0, 1], [4, 0, 0, 1], [4, 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 | rfl· exact s3312_3_1_0_1· exact s3312_2_1_0_1· exact s3312_4_0_0_1· exact s3312_4_1_0_0private theorem s3312_5_1_0_1 : Outcome [3, 3, 1, 2] [5, 1, 0, 1] true := Outcome.winning (q := [4, 1, 0, 1]) (by decide) s3312_4_1_0_1private theorem s3312_1_1_1_0 : Outcome [3, 3, 1, 2] [1, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 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 s3312_0_1_1_0· exact s3312_1_0_1_0· exact s3312_1_1_0_0private theorem s3312_3_1_1_0 : Outcome [3, 3, 1, 2] [3, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3312_1_1_1_0private theorem s3312_2_1_1_0 : Outcome [3, 3, 1, 2] [2, 1, 1, 0] true := Outcome.winning (q := [1, 1, 1, 0]) (by decide) s3312_1_1_1_0private theorem s3312_4_1_1_0 : Outcome [3, 3, 1, 2] [4, 1, 1, 0] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 2] [4, 1, 1, 0] = [[3, 1, 1, 0], [2, 1, 1, 0], [4, 0, 1, 0], [4, 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 | rfl· exact s3312_3_1_1_0· exact s3312_2_1_1_0· exact s3312_4_0_1_0· exact s3312_4_1_0_0private theorem s3312_5_1_1_0 : Outcome [3, 3, 1, 2] [5, 1, 1, 0] true := Outcome.winning (q := [4, 1, 1, 0]) (by decide) s3312_4_1_1_0private theorem s3312_5_1_1_1 : Outcome [3, 3, 1, 2] [5, 1, 1, 1] false := byapply Outcome.losing (by decide)intro q hqhave eqs : options [3, 3, 1, 2] [5, 1, 1, 1] = [[4, 1, 1, 1], [3, 1, 1, 1], [1, 1, 1, 1], [5, 0, 1, 1], [5, 1, 0, 1], [5, 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 s3312_4_1_1_1· exact s3312_3_1_1_1· exact s3312_1_1_1_1· exact s3312_5_0_1_1· exact s3312_5_1_0_1· exact s3312_5_1_1_0theorem fixed_heap_witness_3102 :∃ a b x y : Nat, 0 < a ∧ 0 < b ∧ 0 < x ∧ 0 < y ∧Outcome [3, 1, 0, 2] [a,b,x,y] true ∧ Outcome [3, 1, 0, 2] [a+5,b,x,y] false := byexact ⟨2, 1, 1, 1, by decide, by decide, by decide, by decide, s3102_2_1_1_1, s3102_7_1_1_1⟩theorem fixed_heap_witness_3122 :∃ a b x y : Nat, 0 < a ∧ 0 < b ∧ 0 < x ∧ 0 < y ∧Outcome [3, 1, 2, 2] [a,b,x,y] false ∧ Outcome [3, 1, 2, 2] [a+7,b,x,y] true := byexact ⟨1, 1, 2, 2, by decide, by decide, by decide, by decide, s3122_1_1_2_2, s3122_8_1_2_2⟩theorem fixed_heap_witness_3123 :∃ a b x y : Nat, 0 < a ∧ 0 < b ∧ 0 < x ∧ 0 < y ∧Outcome [3, 1, 2, 3] [a,b,x,y] false ∧ Outcome [3, 1, 2, 3] [a+7,b,x,y] true := byexact ⟨1, 1, 2, 2, by decide, by decide, by decide, by decide, s3123_1_1_2_2, s3123_8_1_2_2⟩theorem fixed_heap_witness_3312 :∃ a b x y : Nat, 0 < a ∧ 0 < b ∧ 0 < x ∧ 0 < y ∧Outcome [3, 3, 1, 2] [a,b,x,y] true ∧ Outcome [3, 3, 1, 2] [a+3,b,x,y] false := byexact ⟨2, 1, 1, 1, by decide, by decide, by decide, by decide, s3312_2_1_1_1, s3312_5_1_1_1⟩end Quaternary