1import FeedbackChannel.PatchWitness
2
3/-!
4# Proposition 7, the note's witness with totals and category count (three hits)
5
6Source: `paper/evaluation_feedback_lattice.md` (version 0.6), Proposition 7, second witness.
7Same method as `FeedbackChannel.PatchWitness` (generated bottom-up evaluation of the programme's
8definition, `decide` on multisets, `norm_num` on rationals).
9-/
10
11namespace FeedbackChannel.PatchWitness3
12
13open FeedbackChannel.PatchDP FeedbackChannel.PatchWitness
14
15theorem v1_0x0_1x0_2x1_4x2 : val 1 {(0, 0), (1, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
16 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
17 intro d hd hd1
18 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
19 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
20 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
21
22theorem v1_0x0_0x0_2x1_4x2 : val 1 {(0, 0), (0, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
23 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
24 intro d hd hd1
25 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
26 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
27 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
28
29theorem fp2_0x0_1x1_2x1_4x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
30 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (2, 1), (4, 2)} := by decide
31 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (2, 1), (4, 2)} := by decide
32 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_2x1_4x2] <;> norm_num
33
34theorem v1_0x0_1x0_1x1_4x2 : val 1 {(0, 0), (1, 0), (1, 1), (4, 2)} = (1 : ℚ) := by
35 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
36 intro d hd hd1
37 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
38 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
39 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
40
41theorem v1_0x0_0x0_1x1_4x2 : val 1 {(0, 0), (0, 0), (1, 1), (4, 2)} = (1 : ℚ) := by
42 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
43 intro d hd hd1
44 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
45 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
46 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
47
48theorem fp2_0x0_1x1_1x1_4x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
49 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (1, 1), (4, 2)} := by decide
50 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (1, 1), (4, 2)} := by decide
51 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_1x1_4x2] <;> norm_num
52
53theorem v1_0x0_1x1_1x1_3x1 : val 1 {(0, 0), (1, 1), (1, 1), (3, 1)} = (1 : ℚ) := by
54 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
55 intro d hd hd1
56 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
57 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
58 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
59
60theorem v1_0x0_0x0_1x1_3x2 : val 1 {(0, 0), (0, 0), (1, 1), (3, 2)} = (1 : ℚ) := by
61 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
62 intro d hd hd1
63 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
64 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
65 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
66
67theorem fp2_0x0_1x1_1x1_3x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
68 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (1, 1), (3, 2)} := by decide
69 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (1, 1), (3, 2)} := by decide
70 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_1x1_3x2] <;> norm_num
71
72theorem v1_0x0_1x1_1x1_2x1 : val 1 {(0, 0), (1, 1), (1, 1), (2, 1)} = (1 : ℚ) := by
73 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
74 intro d hd hd1
75 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
76 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
77 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
78
79theorem v1_0x0_0x0_1x1_2x2 : val 1 {(0, 0), (0, 0), (1, 1), (2, 2)} = (1 : ℚ) := by
80 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
81 intro d hd hd1
82 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
83 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
84 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
85
86theorem fp2_0x0_1x1_1x1_2x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
87 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (1, 1), (2, 2)} := by decide
88 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (1, 1), (2, 2)} := by decide
89 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_1x1_2x2] <;> norm_num
90
91theorem v1_0x0_1x1_1x1_1x1 : val 1 {(0, 0), (1, 1), (1, 1), (1, 1)} = (1 : ℚ) := by
92 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (1, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
93 intro d hd hd1
94 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
95 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
96 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
97
98theorem fp2_0x0_1x1_1x1_2x2__2x2 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
99 have e1 : hitC (2, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 1), (1, 1)} := by decide
100 have e2 : missC (2, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 1), (1, 2)} := by decide
101 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_1x1] <;> norm_num
102
103theorem v2_0x0_1x1_1x1_2x2 : val 2 {(0, 0), (1, 1), (1, 1), (2, 2)} = (2 : ℚ) := by
104 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_1x1_2x2__1x1
105 intro d hd hpos
106 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
107 rcases hd with rfl | rfl | rfl | rfl
108 · exact absurd hpos (by norm_num)
109 · rw [fp2_0x0_1x1_1x1_2x2__1x1] <;> norm_num
110 · rw [fp2_0x0_1x1_1x1_2x2__1x1] <;> norm_num
111 · rw [fp2_0x0_1x1_1x1_2x2__2x2] <;> norm_num
112
113theorem fp2_0x0_1x1_1x1_3x2__3x2 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
114 have e1 : hitC (3, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (1, 1), (2, 1)} := by decide
115 have e2 : missC (3, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (1, 1), (2, 2)} := by decide
116 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_2x1, v2_0x0_1x1_1x1_2x2] <;> norm_num
117
118theorem v2_0x0_1x1_1x1_3x2 : val 2 {(0, 0), (1, 1), (1, 1), (3, 2)} = (2 : ℚ) := by
119 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_1x1_3x2__1x1
120 intro d hd hpos
121 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
122 rcases hd with rfl | rfl | rfl | rfl
123 · exact absurd hpos (by norm_num)
124 · rw [fp2_0x0_1x1_1x1_3x2__1x1] <;> norm_num
125 · rw [fp2_0x0_1x1_1x1_3x2__1x1] <;> norm_num
126 · rw [fp2_0x0_1x1_1x1_3x2__3x2] <;> norm_num
127
128theorem fp2_0x0_1x1_1x1_4x2__4x2 : firstPatch 2 {(0, 0), (1, 1), (1, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
129 have e1 : hitC (4, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (1, 1), (3, 1)} := by decide
130 have e2 : missC (4, 2) ::ₘ ({(0, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (1, 1), (3, 2)} := by decide
131 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_3x1, v2_0x0_1x1_1x1_3x2] <;> norm_num
132
133theorem v2_0x0_1x1_1x1_4x2 : val 2 {(0, 0), (1, 1), (1, 1), (4, 2)} = (2 : ℚ) := by
134 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_1x1_4x2__1x1
135 intro d hd hpos
136 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
137 rcases hd with rfl | rfl | rfl | rfl
138 · exact absurd hpos (by norm_num)
139 · rw [fp2_0x0_1x1_1x1_4x2__1x1] <;> norm_num
140 · rw [fp2_0x0_1x1_1x1_4x2__1x1] <;> norm_num
141 · rw [fp2_0x0_1x1_1x1_4x2__4x2] <;> norm_num
142
143theorem fp2_0x0_1x1_2x1_4x2__2x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
144 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (1, 1), (4, 2)} := by decide
145 have e2 : missC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (1, 1), (4, 2)} := by decide
146 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_4x2, v2_0x0_1x1_1x1_4x2] <;> norm_num
147
148theorem v1_0x0_1x1_2x1_3x1 : val 1 {(0, 0), (1, 1), (2, 1), (3, 1)} = (1 : ℚ) := by
149 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
150 intro d hd hd1
151 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
152 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
153 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
154
155theorem v1_0x0_0x0_2x1_3x2 : val 1 {(0, 0), (0, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
156 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
157 intro d hd hd1
158 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
159 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
160 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
161
162theorem fp2_0x0_1x1_2x1_3x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
163 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (2, 1), (3, 2)} := by decide
164 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (2, 1), (3, 2)} := by decide
165 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_2x1_3x2] <;> norm_num
166
167theorem v1_0x0_1x0_1x1_3x2 : val 1 {(0, 0), (1, 0), (1, 1), (3, 2)} = (1 : ℚ) := by
168 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
169 intro d hd hd1
170 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
171 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
172 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
173
174theorem fp2_0x0_1x1_2x1_3x2__2x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
175 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (1, 1), (3, 2)} := by decide
176 have e2 : missC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (1, 1), (3, 2)} := by decide
177 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_3x2, v2_0x0_1x1_1x1_3x2] <;> norm_num
178
179theorem v1_0x0_1x1_2x1_2x1 : val 1 {(0, 0), (1, 1), (2, 1), (2, 1)} = (1 : ℚ) := by
180 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
181 intro d hd hd1
182 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
183 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
184 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
185
186theorem v1_0x0_0x0_2x1_2x2 : val 1 {(0, 0), (0, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
187 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
188 intro d hd hd1
189 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
190 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
191 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
192
193theorem fp2_0x0_1x1_2x1_2x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
194 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (2, 1), (2, 2)} := by decide
195 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (2, 1), (2, 2)} := by decide
196 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_2x1_2x2] <;> norm_num
197
198theorem v1_0x0_1x0_1x1_2x2 : val 1 {(0, 0), (1, 0), (1, 1), (2, 2)} = (1 : ℚ) := by
199 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
200 intro d hd hd1
201 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
202 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
203 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
204
205theorem fp2_0x0_1x1_2x1_2x2__2x1 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
206 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (1, 1), (2, 2)} := by decide
207 have e2 : missC (2, 1) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (1, 1), (2, 2)} := by decide
208 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_2x2, v2_0x0_1x1_1x1_2x2] <;> norm_num
209
210theorem fp2_0x0_1x1_2x1_2x2__2x2 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
211 have e1 : hitC (2, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 1), (2, 1)} := by decide
212 have e2 : missC (2, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 2), (2, 1)} := by decide
213 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_2x1] <;> norm_num
214
215theorem v2_0x0_1x1_2x1_2x2 : val 2 {(0, 0), (1, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
216 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_2x1_2x2__1x1
217 intro d hd hpos
218 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
219 rcases hd with rfl | rfl | rfl | rfl
220 · exact absurd hpos (by norm_num)
221 · rw [fp2_0x0_1x1_2x1_2x2__1x1] <;> norm_num
222 · rw [fp2_0x0_1x1_2x1_2x2__2x1] <;> norm_num
223 · rw [fp2_0x0_1x1_2x1_2x2__2x2] <;> norm_num
224
225theorem fp2_0x0_1x1_2x1_3x2__3x2 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
226 have e1 : hitC (3, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (2, 1), (2, 1)} := by decide
227 have e2 : missC (3, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
228 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_2x1, v2_0x0_1x1_2x1_2x2] <;> norm_num
229
230theorem v2_0x0_1x1_2x1_3x2 : val 2 {(0, 0), (1, 1), (2, 1), (3, 2)} = (7 / 3 : ℚ) := by
231 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_2x1_3x2__1x1
232 intro d hd hpos
233 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
234 rcases hd with rfl | rfl | rfl | rfl
235 · exact absurd hpos (by norm_num)
236 · rw [fp2_0x0_1x1_2x1_3x2__1x1] <;> norm_num
237 · rw [fp2_0x0_1x1_2x1_3x2__2x1] <;> norm_num
238 · rw [fp2_0x0_1x1_2x1_3x2__3x2] <;> norm_num
239
240theorem fp2_0x0_1x1_2x1_4x2__4x2 : firstPatch 2 {(0, 0), (1, 1), (2, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
241 have e1 : hitC (4, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (2, 1), (3, 1)} := by decide
242 have e2 : missC (4, 2) ::ₘ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
243 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_3x1, v2_0x0_1x1_2x1_3x2] <;> norm_num
244
245theorem v2_0x0_1x1_2x1_4x2 : val 2 {(0, 0), (1, 1), (2, 1), (4, 2)} = (5 / 2 : ℚ) := by
246 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_2x1_4x2__1x1
247 intro d hd hpos
248 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
249 rcases hd with rfl | rfl | rfl | rfl
250 · exact absurd hpos (by norm_num)
251 · rw [fp2_0x0_1x1_2x1_4x2__1x1] <;> norm_num
252 · rw [fp2_0x0_1x1_2x1_4x2__2x1] <;> norm_num
253 · rw [fp2_0x0_1x1_2x1_4x2__4x2] <;> norm_num
254
255theorem fp2_0x0_2x1_2x1_4x2__2x1 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
256 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (2, 1), (4, 2)} := by decide
257 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (2, 1), (4, 2)} := by decide
258 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_4x2, v2_0x0_1x1_2x1_4x2] <;> norm_num
259
260theorem v1_0x0_2x1_2x1_3x1 : val 1 {(0, 0), (2, 1), (2, 1), (3, 1)} = (3 / 2 : ℚ) := by
261 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
262 intro d hd hd1
263 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
264 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
265 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
266
267theorem v1_0x0_1x0_2x1_3x2 : val 1 {(0, 0), (1, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
268 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
269 intro d hd hd1
270 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
271 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
272 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
273
274theorem fp2_0x0_2x1_2x1_3x2__2x1 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
275 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (2, 1), (3, 2)} := by decide
276 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
277 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_3x2, v2_0x0_1x1_2x1_3x2] <;> norm_num
278
279theorem v1_0x0_2x1_2x1_2x1 : val 1 {(0, 0), (2, 1), (2, 1), (2, 1)} = (3 / 2 : ℚ) := by
280 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
281 intro d hd hd1
282 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
283 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
284 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
285
286theorem v1_0x0_1x0_2x1_2x2 : val 1 {(0, 0), (1, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
287 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
288 intro d hd hd1
289 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
290 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
291 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
292
293theorem fp2_0x0_2x1_2x1_2x2__2x1 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
294 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (2, 1), (2, 2)} := by decide
295 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
296 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_2x2, v2_0x0_1x1_2x1_2x2] <;> norm_num
297
298theorem fp2_0x0_2x1_2x1_2x2__2x2 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
299 have e1 : hitC (2, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (2, 1), (2, 1)} := by decide
300 have e2 : missC (2, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 2), (2, 1), (2, 1)} := by decide
301 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_2x1] <;> norm_num
302
303theorem v2_0x0_2x1_2x1_2x2 : val 2 {(0, 0), (2, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
304 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_0x0_2x1_2x1_2x2__2x2
305 intro d hd hpos
306 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
307 rcases hd with rfl | rfl | rfl | rfl
308 · exact absurd hpos (by norm_num)
309 · rw [fp2_0x0_2x1_2x1_2x2__2x1] <;> norm_num
310 · rw [fp2_0x0_2x1_2x1_2x2__2x1] <;> norm_num
311 · rw [fp2_0x0_2x1_2x1_2x2__2x2] <;> norm_num
312
313theorem fp2_0x0_2x1_2x1_3x2__3x2 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
314 have e1 : hitC (3, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (2, 1), (2, 1), (2, 1)} := by decide
315 have e2 : missC (3, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (2, 1), (2, 1), (2, 2)} := by decide
316 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_2x1, v2_0x0_2x1_2x1_2x2] <;> norm_num
317
318theorem v2_0x0_2x1_2x1_3x2 : val 2 {(0, 0), (2, 1), (2, 1), (3, 2)} = (8 / 3 : ℚ) := by
319 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_0x0_2x1_2x1_3x2__3x2
320 intro d hd hpos
321 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
322 rcases hd with rfl | rfl | rfl | rfl
323 · exact absurd hpos (by norm_num)
324 · rw [fp2_0x0_2x1_2x1_3x2__2x1] <;> norm_num
325 · rw [fp2_0x0_2x1_2x1_3x2__2x1] <;> norm_num
326 · rw [fp2_0x0_2x1_2x1_3x2__3x2] <;> norm_num
327
328theorem fp2_0x0_2x1_2x1_4x2__4x2 : firstPatch 2 {(0, 0), (2, 1), (2, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
329 have e1 : hitC (4, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (2, 1), (2, 1), (3, 1)} := by decide
330 have e2 : missC (4, 2) ::ₘ ({(0, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (2, 1), (2, 1), (3, 2)} := by decide
331 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_3x1, v2_0x0_2x1_2x1_3x2] <;> norm_num
332
333theorem v2_0x0_2x1_2x1_4x2 : val 2 {(0, 0), (2, 1), (2, 1), (4, 2)} = (3 : ℚ) := by
334 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_0x0_2x1_2x1_4x2__2x1
335 intro d hd hpos
336 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
337 rcases hd with rfl | rfl | rfl | rfl
338 · exact absurd hpos (by norm_num)
339 · rw [fp2_0x0_2x1_2x1_4x2__2x1] <;> norm_num
340 · rw [fp2_0x0_2x1_2x1_4x2__2x1] <;> norm_num
341 · rw [fp2_0x0_2x1_2x1_4x2__4x2] <;> norm_num
342
343theorem fp2_1x0_2x1_2x1_4x2__1x0 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (4, 2)} (1, 0) = (4 : ℚ) := by
344 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (4, 2)} := by decide
345 have e2 : missC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (4, 2)} := by decide
346 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_2x1_2x1_4x2] <;> norm_num
347
348theorem v1_1x0_1x0_2x1_4x2 : val 1 {(1, 0), (1, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
349 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
350 intro d hd hd1
351 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
352 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
353 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
354
355theorem fp2_1x0_1x1_2x1_4x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (4, 2)} (1, 0) = (7 / 2 : ℚ) := by
356 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (4, 2)} := by decide
357 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (4, 2)} := by decide
358 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_2x1_4x2] <;> norm_num
359
360theorem fp2_1x0_1x1_2x1_4x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
361 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (2, 1), (4, 2)} := by decide
362 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (2, 1), (4, 2)} := by decide
363 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_4x2] <;> norm_num
364
365theorem v1_1x0_1x0_1x1_4x2 : val 1 {(1, 0), (1, 0), (1, 1), (4, 2)} = (1 : ℚ) := by
366 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
367 intro d hd hd1
368 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
369 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
370 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
371
372theorem fp2_1x0_1x1_1x1_4x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (4, 2)} (1, 0) = (3 : ℚ) := by
373 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (4, 2)} := by decide
374 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (4, 2)} := by decide
375 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_1x1_4x2] <;> norm_num
376
377theorem fp2_1x0_1x1_1x1_4x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
378 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (1, 1), (4, 2)} := by decide
379 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (1, 1), (4, 2)} := by decide
380 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_4x2] <;> norm_num
381
382theorem v1_1x0_1x1_1x1_3x1 : val 1 {(1, 0), (1, 1), (1, 1), (3, 1)} = (1 : ℚ) := by
383 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
384 intro d hd hd1
385 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
386 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
387 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
388
389theorem fp2_1x0_1x1_1x1_3x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (3, 2)} (1, 0) = (3 : ℚ) := by
390 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (3, 2)} := by decide
391 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (3, 2)} := by decide
392 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_1x1_3x2] <;> norm_num
393
394theorem fp2_1x0_1x1_1x1_3x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
395 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (1, 1), (3, 2)} := by decide
396 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (1, 1), (3, 2)} := by decide
397 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_3x2] <;> norm_num
398
399theorem v1_1x0_1x1_1x1_2x1 : val 1 {(1, 0), (1, 1), (1, 1), (2, 1)} = (1 : ℚ) := by
400 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
401 intro d hd hd1
402 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
403 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
404 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
405
406theorem fp2_1x0_1x1_1x1_2x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (2, 2)} (1, 0) = (3 : ℚ) := by
407 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (2, 2)} := by decide
408 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (1, 1), (2, 2)} := by decide
409 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_1x1_2x2] <;> norm_num
410
411theorem fp2_1x0_1x1_1x1_2x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
412 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (1, 1), (2, 2)} := by decide
413 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (1, 1), (2, 2)} := by decide
414 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_1x1_2x2] <;> norm_num
415
416theorem v1_1x0_1x1_1x1_1x1 : val 1 {(1, 0), (1, 1), (1, 1), (1, 1)} = (1 : ℚ) := by
417 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (1, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
418 intro d hd hd1
419 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
420 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
421 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
422
423theorem fp2_1x0_1x1_1x1_2x2__2x2 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
424 have e1 : hitC (2, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 1), (1, 1)} := by decide
425 have e2 : missC (2, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 1), (1, 2)} := by decide
426 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_1x1] <;> norm_num
427
428theorem v2_1x0_1x1_1x1_2x2 : val 2 {(1, 0), (1, 1), (1, 1), (2, 2)} = (2 : ℚ) := by
429 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_1x1_2x2__1x1
430 intro d hd hpos
431 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
432 rcases hd with rfl | rfl | rfl | rfl
433 · rw [fp2_1x0_1x1_1x1_2x2__1x0] <;> norm_num
434 · rw [fp2_1x0_1x1_1x1_2x2__1x1] <;> norm_num
435 · rw [fp2_1x0_1x1_1x1_2x2__1x1] <;> norm_num
436 · rw [fp2_1x0_1x1_1x1_2x2__2x2] <;> norm_num
437
438theorem fp2_1x0_1x1_1x1_3x2__3x2 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
439 have e1 : hitC (3, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (1, 1), (2, 1)} := by decide
440 have e2 : missC (3, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (1, 1), (2, 2)} := by decide
441 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_2x1, v2_1x0_1x1_1x1_2x2] <;> norm_num
442
443theorem v2_1x0_1x1_1x1_3x2 : val 2 {(1, 0), (1, 1), (1, 1), (3, 2)} = (2 : ℚ) := by
444 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_1x1_3x2__1x1
445 intro d hd hpos
446 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
447 rcases hd with rfl | rfl | rfl | rfl
448 · rw [fp2_1x0_1x1_1x1_3x2__1x0] <;> norm_num
449 · rw [fp2_1x0_1x1_1x1_3x2__1x1] <;> norm_num
450 · rw [fp2_1x0_1x1_1x1_3x2__1x1] <;> norm_num
451 · rw [fp2_1x0_1x1_1x1_3x2__3x2] <;> norm_num
452
453theorem fp2_1x0_1x1_1x1_4x2__4x2 : firstPatch 2 {(1, 0), (1, 1), (1, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
454 have e1 : hitC (4, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (1, 1), (3, 1)} := by decide
455 have e2 : missC (4, 2) ::ₘ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (1, 1), (3, 2)} := by decide
456 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_3x1, v2_1x0_1x1_1x1_3x2] <;> norm_num
457
458theorem v2_1x0_1x1_1x1_4x2 : val 2 {(1, 0), (1, 1), (1, 1), (4, 2)} = (2 : ℚ) := by
459 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_1x1_4x2__1x1
460 intro d hd hpos
461 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
462 rcases hd with rfl | rfl | rfl | rfl
463 · rw [fp2_1x0_1x1_1x1_4x2__1x0] <;> norm_num
464 · rw [fp2_1x0_1x1_1x1_4x2__1x1] <;> norm_num
465 · rw [fp2_1x0_1x1_1x1_4x2__1x1] <;> norm_num
466 · rw [fp2_1x0_1x1_1x1_4x2__4x2] <;> norm_num
467
468theorem fp2_1x0_1x1_2x1_4x2__2x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
469 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (1, 1), (4, 2)} := by decide
470 have e2 : missC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (4, 2)} := by decide
471 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_1x1_4x2, v2_1x0_1x1_1x1_4x2] <;> norm_num
472
473theorem v1_1x0_1x1_2x1_3x1 : val 1 {(1, 0), (1, 1), (2, 1), (3, 1)} = (1 : ℚ) := by
474 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
475 intro d hd hd1
476 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
477 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
478 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
479
480theorem fp2_1x0_1x1_2x1_3x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (3, 2)} (1, 0) = (10 / 3 : ℚ) := by
481 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
482 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
483 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_2x1_3x2] <;> norm_num
484
485theorem fp2_1x0_1x1_2x1_3x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
486 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (2, 1), (3, 2)} := by decide
487 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (2, 1), (3, 2)} := by decide
488 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_3x2] <;> norm_num
489
490theorem v1_1x0_1x0_1x1_3x2 : val 1 {(1, 0), (1, 0), (1, 1), (3, 2)} = (1 : ℚ) := by
491 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
492 intro d hd hd1
493 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
494 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
495 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
496
497theorem fp2_1x0_1x1_2x1_3x2__2x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
498 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (1, 1), (3, 2)} := by decide
499 have e2 : missC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (3, 2)} := by decide
500 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_1x1_3x2, v2_1x0_1x1_1x1_3x2] <;> norm_num
501
502theorem v1_1x0_1x1_2x1_2x1 : val 1 {(1, 0), (1, 1), (2, 1), (2, 1)} = (1 : ℚ) := by
503 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
504 intro d hd hd1
505 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
506 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
507 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
508
509theorem fp2_1x0_1x1_2x1_2x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (2, 2)} (1, 0) = (3 : ℚ) := by
510 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
511 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
512 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_2x1_2x2] <;> norm_num
513
514theorem fp2_1x0_1x1_2x1_2x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
515 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (2, 1), (2, 2)} := by decide
516 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (2, 1), (2, 2)} := by decide
517 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x1_2x2] <;> norm_num
518
519theorem v1_1x0_1x0_1x1_2x2 : val 1 {(1, 0), (1, 0), (1, 1), (2, 2)} = (1 : ℚ) := by
520 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
521 intro d hd hd1
522 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
523 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
524 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
525
526theorem fp2_1x0_1x1_2x1_2x2__2x1 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
527 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (1, 1), (2, 2)} := by decide
528 have e2 : missC (2, 1) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (2, 2)} := by decide
529 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_1x1_2x2, v2_1x0_1x1_1x1_2x2] <;> norm_num
530
531theorem fp2_1x0_1x1_2x1_2x2__2x2 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
532 have e1 : hitC (2, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 1), (2, 1)} := by decide
533 have e2 : missC (2, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 2), (2, 1)} := by decide
534 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_2x1] <;> norm_num
535
536theorem v2_1x0_1x1_2x1_2x2 : val 2 {(1, 0), (1, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
537 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_2x1_2x2__1x1
538 intro d hd hpos
539 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
540 rcases hd with rfl | rfl | rfl | rfl
541 · rw [fp2_1x0_1x1_2x1_2x2__1x0] <;> norm_num
542 · rw [fp2_1x0_1x1_2x1_2x2__1x1] <;> norm_num
543 · rw [fp2_1x0_1x1_2x1_2x2__2x1] <;> norm_num
544 · rw [fp2_1x0_1x1_2x1_2x2__2x2] <;> norm_num
545
546theorem fp2_1x0_1x1_2x1_3x2__3x2 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
547 have e1 : hitC (3, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (2, 1), (2, 1)} := by decide
548 have e2 : missC (3, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
549 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_2x1, v2_1x0_1x1_2x1_2x2] <;> norm_num
550
551theorem v2_1x0_1x1_2x1_3x2 : val 2 {(1, 0), (1, 1), (2, 1), (3, 2)} = (7 / 3 : ℚ) := by
552 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_2x1_3x2__1x1
553 intro d hd hpos
554 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
555 rcases hd with rfl | rfl | rfl | rfl
556 · rw [fp2_1x0_1x1_2x1_3x2__1x0] <;> norm_num
557 · rw [fp2_1x0_1x1_2x1_3x2__1x1] <;> norm_num
558 · rw [fp2_1x0_1x1_2x1_3x2__2x1] <;> norm_num
559 · rw [fp2_1x0_1x1_2x1_3x2__3x2] <;> norm_num
560
561theorem fp2_1x0_1x1_2x1_4x2__4x2 : firstPatch 2 {(1, 0), (1, 1), (2, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
562 have e1 : hitC (4, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (2, 1), (3, 1)} := by decide
563 have e2 : missC (4, 2) ::ₘ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
564 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_3x1, v2_1x0_1x1_2x1_3x2] <;> norm_num
565
566theorem v2_1x0_1x1_2x1_4x2 : val 2 {(1, 0), (1, 1), (2, 1), (4, 2)} = (5 / 2 : ℚ) := by
567 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_2x1_4x2__1x1
568 intro d hd hpos
569 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
570 rcases hd with rfl | rfl | rfl | rfl
571 · rw [fp2_1x0_1x1_2x1_4x2__1x0] <;> norm_num
572 · rw [fp2_1x0_1x1_2x1_4x2__1x1] <;> norm_num
573 · rw [fp2_1x0_1x1_2x1_4x2__2x1] <;> norm_num
574 · rw [fp2_1x0_1x1_2x1_4x2__4x2] <;> norm_num
575
576theorem fp2_1x0_2x1_2x1_4x2__2x1 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
577 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (2, 1), (4, 2)} := by decide
578 have e2 : missC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (4, 2)} := by decide
579 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_2x1_4x2, v2_1x0_1x1_2x1_4x2] <;> norm_num
580
581theorem v1_1x0_2x1_2x1_3x1 : val 1 {(1, 0), (2, 1), (2, 1), (3, 1)} = (3 / 2 : ℚ) := by
582 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
583 intro d hd hd1
584 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
585 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
586 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
587
588theorem fp2_1x0_2x1_2x1_3x2__1x0 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (3, 2)} (1, 0) = (11 / 3 : ℚ) := by
589 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (3, 2)} := by decide
590 have e2 : missC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (3, 2)} := by decide
591 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_2x1_2x1_3x2] <;> norm_num
592
593theorem v1_1x0_1x0_2x1_3x2 : val 1 {(1, 0), (1, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
594 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
595 intro d hd hd1
596 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
597 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
598 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
599
600theorem fp2_1x0_2x1_2x1_3x2__2x1 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
601 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (2, 1), (3, 2)} := by decide
602 have e2 : missC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
603 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_2x1_3x2, v2_1x0_1x1_2x1_3x2] <;> norm_num
604
605theorem v1_1x0_2x1_2x1_2x1 : val 1 {(1, 0), (2, 1), (2, 1), (2, 1)} = (3 / 2 : ℚ) := by
606 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
607 intro d hd hd1
608 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
609 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
610 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
611
612theorem fp2_1x0_2x1_2x1_2x2__1x0 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (2, 2)} (1, 0) = (3 : ℚ) := by
613 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (2, 2)} := by decide
614 have e2 : missC (1, 0) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (2, 1), (2, 1), (2, 2)} := by decide
615 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_2x1_2x1_2x2] <;> norm_num
616
617theorem v1_1x0_1x0_2x1_2x2 : val 1 {(1, 0), (1, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
618 have hmin : ∀ d ∈ ({(1, 0), (1, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
619 intro d hd hd1
620 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
621 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
622 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
623
624theorem fp2_1x0_2x1_2x1_2x2__2x1 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
625 have e1 : hitC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 0), (2, 1), (2, 2)} := by decide
626 have e2 : missC (2, 1) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
627 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x0_2x1_2x2, v2_1x0_1x1_2x1_2x2] <;> norm_num
628
629theorem fp2_1x0_2x1_2x1_2x2__2x2 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
630 have e1 : hitC (2, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (2, 1), (2, 1)} := by decide
631 have e2 : missC (2, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 2), (2, 1), (2, 1)} := by decide
632 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_2x1] <;> norm_num
633
634theorem v2_1x0_2x1_2x1_2x2 : val 2 {(1, 0), (2, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
635 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_1x0_2x1_2x1_2x2__2x2
636 intro d hd hpos
637 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
638 rcases hd with rfl | rfl | rfl | rfl
639 · rw [fp2_1x0_2x1_2x1_2x2__1x0] <;> norm_num
640 · rw [fp2_1x0_2x1_2x1_2x2__2x1] <;> norm_num
641 · rw [fp2_1x0_2x1_2x1_2x2__2x1] <;> norm_num
642 · rw [fp2_1x0_2x1_2x1_2x2__2x2] <;> norm_num
643
644theorem fp2_1x0_2x1_2x1_3x2__3x2 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
645 have e1 : hitC (3, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (2, 1), (2, 1), (2, 1)} := by decide
646 have e2 : missC (3, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (2, 1), (2, 1), (2, 2)} := by decide
647 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_2x1, v2_1x0_2x1_2x1_2x2] <;> norm_num
648
649theorem v2_1x0_2x1_2x1_3x2 : val 2 {(1, 0), (2, 1), (2, 1), (3, 2)} = (8 / 3 : ℚ) := by
650 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_1x0_2x1_2x1_3x2__3x2
651 intro d hd hpos
652 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
653 rcases hd with rfl | rfl | rfl | rfl
654 · rw [fp2_1x0_2x1_2x1_3x2__1x0] <;> norm_num
655 · rw [fp2_1x0_2x1_2x1_3x2__2x1] <;> norm_num
656 · rw [fp2_1x0_2x1_2x1_3x2__2x1] <;> norm_num
657 · rw [fp2_1x0_2x1_2x1_3x2__3x2] <;> norm_num
658
659theorem fp2_1x0_2x1_2x1_4x2__4x2 : firstPatch 2 {(1, 0), (2, 1), (2, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
660 have e1 : hitC (4, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (2, 1), (2, 1), (3, 1)} := by decide
661 have e2 : missC (4, 2) ::ₘ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (2, 1), (2, 1), (3, 2)} := by decide
662 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_3x1, v2_1x0_2x1_2x1_3x2] <;> norm_num
663
664theorem v2_1x0_2x1_2x1_4x2 : val 2 {(1, 0), (2, 1), (2, 1), (4, 2)} = (3 : ℚ) := by
665 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_1x0_2x1_2x1_4x2__2x1
666 intro d hd hpos
667 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
668 rcases hd with rfl | rfl | rfl | rfl
669 · rw [fp2_1x0_2x1_2x1_4x2__1x0] <;> norm_num
670 · rw [fp2_1x0_2x1_2x1_4x2__2x1] <;> norm_num
671 · rw [fp2_1x0_2x1_2x1_4x2__2x1] <;> norm_num
672 · rw [fp2_1x0_2x1_2x1_4x2__4x2] <;> norm_num
673
674theorem fp3_1x1_2x1_2x1_4x2__1x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (4, 2)} (1, 1) = (4 : ℚ) := by
675 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 1), (4, 2)} := by decide
676 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 1), (4, 2)} := by decide
677 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_2x1_4x2] <;> norm_num
678
679theorem fp3_1x1_1x1_2x1_4x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (4, 2)} (1, 1) = (7 / 2 : ℚ) := by
680 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 1), (4, 2)} := by decide
681 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 1), (4, 2)} := by decide
682 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_2x1_4x2] <;> norm_num
683
684theorem fp3_1x1_1x1_1x1_4x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (4, 2)} (1, 1) = (3 : ℚ) := by
685 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (4, 2)} := by decide
686 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (4, 2)} := by decide
687 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_1x1_4x2] <;> norm_num
688
689theorem fp2_1x1_1x1_1x1_3x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (3, 1)} (1, 1) = (2 : ℚ) := by
690 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (3, 1)} := by decide
691 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (3, 1)} := by decide
692 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_3x1] <;> norm_num
693
694theorem v1_1x1_1x1_1x1_2x0 : val 1 {(1, 1), (1, 1), (1, 1), (2, 0)} = (1 : ℚ) := by
695 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1), (2, 0)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
696 intro d hd hd1
697 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
698 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
699 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
700
701theorem fp2_1x1_1x1_1x1_2x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (2, 1)} (1, 1) = (2 : ℚ) := by
702 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (2, 1)} := by decide
703 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (2, 1)} := by decide
704 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_2x1] <;> norm_num
705
706theorem fp2_1x1_1x1_1x1_1x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (1, 1)} (1, 1) = (2 : ℚ) := by
707 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (1, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (1, 1)} := by decide
708 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (1, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (1, 1)} := by decide
709 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_1x1] <;> norm_num
710
711theorem v2_1x1_1x1_1x1_1x1 : val 2 {(1, 1), (1, 1), (1, 1), (1, 1)} = (2 : ℚ) := by
712 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_1x1__1x1
713 intro d hd hpos
714 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
715 rcases hd with rfl | rfl | rfl | rfl
716 · rw [fp2_1x1_1x1_1x1_1x1__1x1] <;> norm_num
717 · rw [fp2_1x1_1x1_1x1_1x1__1x1] <;> norm_num
718 · rw [fp2_1x1_1x1_1x1_1x1__1x1] <;> norm_num
719 · rw [fp2_1x1_1x1_1x1_1x1__1x1] <;> norm_num
720
721theorem fp2_1x1_1x1_1x1_2x1__2x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (2, 1)} (2, 1) = (5 / 2 : ℚ) := by
722 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (1, 1)} := by decide
723 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (1, 1)} := by decide
724 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_1x1, v2_1x1_1x1_1x1_1x1] <;> norm_num
725
726theorem v2_1x1_1x1_1x1_2x1 : val 2 {(1, 1), (1, 1), (1, 1), (2, 1)} = (2 : ℚ) := by
727 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_2x1__1x1
728 intro d hd hpos
729 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
730 rcases hd with rfl | rfl | rfl | rfl
731 · rw [fp2_1x1_1x1_1x1_2x1__1x1] <;> norm_num
732 · rw [fp2_1x1_1x1_1x1_2x1__1x1] <;> norm_num
733 · rw [fp2_1x1_1x1_1x1_2x1__1x1] <;> norm_num
734 · rw [fp2_1x1_1x1_1x1_2x1__2x1] <;> norm_num
735
736theorem fp2_1x1_1x1_1x1_3x1__3x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
737 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (1, 1), (2, 0)} := by decide
738 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (1, 1), (2, 1)} := by decide
739 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_2x0, v2_1x1_1x1_1x1_2x1] <;> norm_num
740
741theorem v2_1x1_1x1_1x1_3x1 : val 2 {(1, 1), (1, 1), (1, 1), (3, 1)} = (2 : ℚ) := by
742 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_3x1__1x1
743 intro d hd hpos
744 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
745 rcases hd with rfl | rfl | rfl | rfl
746 · rw [fp2_1x1_1x1_1x1_3x1__1x1] <;> norm_num
747 · rw [fp2_1x1_1x1_1x1_3x1__1x1] <;> norm_num
748 · rw [fp2_1x1_1x1_1x1_3x1__1x1] <;> norm_num
749 · rw [fp2_1x1_1x1_1x1_3x1__3x1] <;> norm_num
750
751theorem fp3_1x1_1x1_1x1_3x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (3, 2)} (1, 1) = (3 : ℚ) := by
752 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (3, 2)} := by decide
753 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (3, 2)} := by decide
754 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_1x1_3x2] <;> norm_num
755
756theorem fp3_1x1_1x1_1x1_2x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (2, 2)} (1, 1) = (3 : ℚ) := by
757 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (1, 1), (2, 2)} := by decide
758 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (1, 1), (2, 2)} := by decide
759 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_1x1_2x2] <;> norm_num
760
761theorem fp3_1x1_1x1_1x1_2x2__2x2 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (2, 2)} (2, 2) = (3 : ℚ) := by
762 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (1, 1)} := by decide
763 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (1, 2)} := by decide
764 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_1x1_1x1] <;> norm_num
765
766theorem v3_1x1_1x1_1x1_2x2 : val 3 {(1, 1), (1, 1), (1, 1), (2, 2)} = (3 : ℚ) := by
767 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_1x1_2x2__1x1
768 intro d hd hpos
769 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
770 rcases hd with rfl | rfl | rfl | rfl
771 · rw [fp3_1x1_1x1_1x1_2x2__1x1] <;> norm_num
772 · rw [fp3_1x1_1x1_1x1_2x2__1x1] <;> norm_num
773 · rw [fp3_1x1_1x1_1x1_2x2__1x1] <;> norm_num
774 · rw [fp3_1x1_1x1_1x1_2x2__2x2] <;> norm_num
775
776theorem fp3_1x1_1x1_1x1_3x2__3x2 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (3, 2)} (3, 2) = (10 / 3 : ℚ) := by
777 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (1, 1), (2, 1)} := by decide
778 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (1, 1), (2, 2)} := by decide
779 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_1x1_2x1, v3_1x1_1x1_1x1_2x2] <;> norm_num
780
781theorem v3_1x1_1x1_1x1_3x2 : val 3 {(1, 1), (1, 1), (1, 1), (3, 2)} = (3 : ℚ) := by
782 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_1x1_3x2__1x1
783 intro d hd hpos
784 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
785 rcases hd with rfl | rfl | rfl | rfl
786 · rw [fp3_1x1_1x1_1x1_3x2__1x1] <;> norm_num
787 · rw [fp3_1x1_1x1_1x1_3x2__1x1] <;> norm_num
788 · rw [fp3_1x1_1x1_1x1_3x2__1x1] <;> norm_num
789 · rw [fp3_1x1_1x1_1x1_3x2__3x2] <;> norm_num
790
791theorem fp3_1x1_1x1_1x1_4x2__4x2 : firstPatch 3 {(1, 1), (1, 1), (1, 1), (4, 2)} (4, 2) = (7 / 2 : ℚ) := by
792 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (1, 1), (3, 1)} := by decide
793 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (1, 1), (3, 2)} := by decide
794 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_1x1_3x1, v3_1x1_1x1_1x1_3x2] <;> norm_num
795
796theorem v3_1x1_1x1_1x1_4x2 : val 3 {(1, 1), (1, 1), (1, 1), (4, 2)} = (3 : ℚ) := by
797 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_1x1_4x2__1x1
798 intro d hd hpos
799 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
800 rcases hd with rfl | rfl | rfl | rfl
801 · rw [fp3_1x1_1x1_1x1_4x2__1x1] <;> norm_num
802 · rw [fp3_1x1_1x1_1x1_4x2__1x1] <;> norm_num
803 · rw [fp3_1x1_1x1_1x1_4x2__1x1] <;> norm_num
804 · rw [fp3_1x1_1x1_1x1_4x2__4x2] <;> norm_num
805
806theorem fp3_1x1_1x1_2x1_4x2__2x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (4, 2)} (2, 1) = (7 / 2 : ℚ) := by
807 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (4, 2)} := by decide
808 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (4, 2)} := by decide
809 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_1x1_4x2, v3_1x1_1x1_1x1_4x2] <;> norm_num
810
811theorem fp2_1x1_1x1_2x1_3x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 1)} (1, 1) = (2 : ℚ) := by
812 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 1), (3, 1)} := by decide
813 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 1), (3, 1)} := by decide
814 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_3x1] <;> norm_num
815
816theorem fp2_1x1_1x1_2x1_3x1__2x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
817 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (3, 1)} := by decide
818 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (3, 1)} := by decide
819 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_3x1, v2_1x1_1x1_1x1_3x1] <;> norm_num
820
821theorem v1_1x1_1x1_2x0_2x1 : val 1 {(1, 1), (1, 1), (2, 0), (2, 1)} = (1 : ℚ) := by
822 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 0), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
823 intro d hd hd1
824 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
825 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
826 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
827
828theorem fp2_1x1_1x1_2x1_2x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (2, 1)} (1, 1) = (2 : ℚ) := by
829 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 1), (2, 1)} := by decide
830 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 1), (2, 1)} := by decide
831 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_2x1] <;> norm_num
832
833theorem fp2_1x1_1x1_2x1_2x1__2x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (2, 1)} (2, 1) = (5 / 2 : ℚ) := by
834 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (2, 1)} := by decide
835 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (2, 1)} := by decide
836 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_2x1, v2_1x1_1x1_1x1_2x1] <;> norm_num
837
838theorem v2_1x1_1x1_2x1_2x1 : val 2 {(1, 1), (1, 1), (2, 1), (2, 1)} = (2 : ℚ) := by
839 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x1_2x1__1x1
840 intro d hd hpos
841 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
842 rcases hd with rfl | rfl | rfl | rfl
843 · rw [fp2_1x1_1x1_2x1_2x1__1x1] <;> norm_num
844 · rw [fp2_1x1_1x1_2x1_2x1__1x1] <;> norm_num
845 · rw [fp2_1x1_1x1_2x1_2x1__2x1] <;> norm_num
846 · rw [fp2_1x1_1x1_2x1_2x1__2x1] <;> norm_num
847
848theorem fp2_1x1_1x1_2x1_3x1__3x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
849 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 0), (2, 1)} := by decide
850 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 1), (2, 1)} := by decide
851 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_2x1, v2_1x1_1x1_2x1_2x1] <;> norm_num
852
853theorem v2_1x1_1x1_2x1_3x1 : val 2 {(1, 1), (1, 1), (2, 1), (3, 1)} = (2 : ℚ) := by
854 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x1_3x1__1x1
855 intro d hd hpos
856 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
857 rcases hd with rfl | rfl | rfl | rfl
858 · rw [fp2_1x1_1x1_2x1_3x1__1x1] <;> norm_num
859 · rw [fp2_1x1_1x1_2x1_3x1__1x1] <;> norm_num
860 · rw [fp2_1x1_1x1_2x1_3x1__2x1] <;> norm_num
861 · rw [fp2_1x1_1x1_2x1_3x1__3x1] <;> norm_num
862
863theorem fp3_1x1_1x1_2x1_3x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (3, 2)} (1, 1) = (10 / 3 : ℚ) := by
864 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
865 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 1), (3, 2)} := by decide
866 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_2x1_3x2] <;> norm_num
867
868theorem fp3_1x1_1x1_2x1_3x2__2x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (3, 2)} (2, 1) = (7 / 2 : ℚ) := by
869 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (3, 2)} := by decide
870 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (3, 2)} := by decide
871 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_1x1_3x2, v3_1x1_1x1_1x1_3x2] <;> norm_num
872
873theorem fp3_1x1_1x1_2x1_2x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (2, 2)} (1, 1) = (3 : ℚ) := by
874 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
875 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 1), (2, 2)} := by decide
876 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_2x1_2x2] <;> norm_num
877
878theorem fp3_1x1_1x1_2x1_2x2__2x1 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (2, 2)} (2, 1) = (7 / 2 : ℚ) := by
879 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (1, 1), (2, 2)} := by decide
880 have e2 : missC (2, 1) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (1, 1), (2, 2)} := by decide
881 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_1x1_2x2, v3_1x1_1x1_1x1_2x2] <;> norm_num
882
883theorem fp3_1x1_1x1_2x1_2x2__2x2 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (2, 2)} (2, 2) = (3 : ℚ) := by
884 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (2, 1)} := by decide
885 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 2), (2, 1)} := by decide
886 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_1x1_2x1] <;> norm_num
887
888theorem v3_1x1_1x1_2x1_2x2 : val 3 {(1, 1), (1, 1), (2, 1), (2, 2)} = (3 : ℚ) := by
889 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_2x1_2x2__1x1
890 intro d hd hpos
891 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
892 rcases hd with rfl | rfl | rfl | rfl
893 · rw [fp3_1x1_1x1_2x1_2x2__1x1] <;> norm_num
894 · rw [fp3_1x1_1x1_2x1_2x2__1x1] <;> norm_num
895 · rw [fp3_1x1_1x1_2x1_2x2__2x1] <;> norm_num
896 · rw [fp3_1x1_1x1_2x1_2x2__2x2] <;> norm_num
897
898theorem fp3_1x1_1x1_2x1_3x2__3x2 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (3, 2)} (3, 2) = (10 / 3 : ℚ) := by
899 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 1), (2, 1)} := by decide
900 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 1), (2, 2)} := by decide
901 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x1_2x1, v3_1x1_1x1_2x1_2x2] <;> norm_num
902
903theorem v3_1x1_1x1_2x1_3x2 : val 3 {(1, 1), (1, 1), (2, 1), (3, 2)} = (10 / 3 : ℚ) := by
904 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_2x1_3x2__1x1
905 intro d hd hpos
906 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
907 rcases hd with rfl | rfl | rfl | rfl
908 · rw [fp3_1x1_1x1_2x1_3x2__1x1] <;> norm_num
909 · rw [fp3_1x1_1x1_2x1_3x2__1x1] <;> norm_num
910 · rw [fp3_1x1_1x1_2x1_3x2__2x1] <;> norm_num
911 · rw [fp3_1x1_1x1_2x1_3x2__3x2] <;> norm_num
912
913theorem fp3_1x1_1x1_2x1_4x2__4x2 : firstPatch 3 {(1, 1), (1, 1), (2, 1), (4, 2)} (4, 2) = (11 / 3 : ℚ) := by
914 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (2, 1), (3, 1)} := by decide
915 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (2, 1), (3, 2)} := by decide
916 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x1_3x1, v3_1x1_1x1_2x1_3x2] <;> norm_num
917
918theorem v3_1x1_1x1_2x1_4x2 : val 3 {(1, 1), (1, 1), (2, 1), (4, 2)} = (7 / 2 : ℚ) := by
919 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_2x1_4x2__1x1
920 intro d hd hpos
921 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
922 rcases hd with rfl | rfl | rfl | rfl
923 · rw [fp3_1x1_1x1_2x1_4x2__1x1] <;> norm_num
924 · rw [fp3_1x1_1x1_2x1_4x2__1x1] <;> norm_num
925 · rw [fp3_1x1_1x1_2x1_4x2__2x1] <;> norm_num
926 · rw [fp3_1x1_1x1_2x1_4x2__4x2] <;> norm_num
927
928theorem fp3_1x1_2x1_2x1_4x2__2x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (4, 2)} (2, 1) = (4 : ℚ) := by
929 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (4, 2)} := by decide
930 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 1), (4, 2)} := by decide
931 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_2x1_4x2, v3_1x1_1x1_2x1_4x2] <;> norm_num
932
933theorem fp2_1x1_2x1_2x1_3x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 1)} (1, 1) = (5 / 2 : ℚ) := by
934 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 1), (3, 1)} := by decide
935 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 1), (3, 1)} := by decide
936 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_3x1] <;> norm_num
937
938theorem fp2_1x1_2x1_2x1_3x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
939 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (3, 1)} := by decide
940 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 1), (3, 1)} := by decide
941 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_3x1, v2_1x1_1x1_2x1_3x1] <;> norm_num
942
943theorem v1_1x1_2x0_2x1_2x1 : val 1 {(1, 1), (2, 0), (2, 1), (2, 1)} = (1 : ℚ) := by
944 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
945 intro d hd hd1
946 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
947 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
948 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
949
950theorem fp2_1x1_2x1_2x1_2x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (2, 1)} (1, 1) = (5 / 2 : ℚ) := by
951 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 1), (2, 1)} := by decide
952 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 1), (2, 1)} := by decide
953 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_2x1] <;> norm_num
954
955theorem fp2_1x1_2x1_2x1_2x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (2, 1)} (2, 1) = (5 / 2 : ℚ) := by
956 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (2, 1)} := by decide
957 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 1), (2, 1)} := by decide
958 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_2x1, v2_1x1_1x1_2x1_2x1] <;> norm_num
959
960theorem v2_1x1_2x1_2x1_2x1 : val 2 {(1, 1), (2, 1), (2, 1), (2, 1)} = (5 / 2 : ℚ) := by
961 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x1_2x1__1x1
962 intro d hd hpos
963 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
964 rcases hd with rfl | rfl | rfl | rfl
965 · rw [fp2_1x1_2x1_2x1_2x1__1x1] <;> norm_num
966 · rw [fp2_1x1_2x1_2x1_2x1__2x1] <;> norm_num
967 · rw [fp2_1x1_2x1_2x1_2x1__2x1] <;> norm_num
968 · rw [fp2_1x1_2x1_2x1_2x1__2x1] <;> norm_num
969
970theorem fp2_1x1_2x1_2x1_3x1__3x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 1)} (3, 1) = (3 : ℚ) := by
971 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 1), (2, 1)} := by decide
972 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 1), (2, 1)} := by decide
973 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_2x1, v2_1x1_2x1_2x1_2x1] <;> norm_num
974
975theorem v2_1x1_2x1_2x1_3x1 : val 2 {(1, 1), (2, 1), (2, 1), (3, 1)} = (5 / 2 : ℚ) := by
976 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x1_3x1__1x1
977 intro d hd hpos
978 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
979 rcases hd with rfl | rfl | rfl | rfl
980 · rw [fp2_1x1_2x1_2x1_3x1__1x1] <;> norm_num
981 · rw [fp2_1x1_2x1_2x1_3x1__2x1] <;> norm_num
982 · rw [fp2_1x1_2x1_2x1_3x1__2x1] <;> norm_num
983 · rw [fp2_1x1_2x1_2x1_3x1__3x1] <;> norm_num
984
985theorem fp3_1x1_2x1_2x1_3x2__1x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (3, 2)} (1, 1) = (11 / 3 : ℚ) := by
986 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 1), (3, 2)} := by decide
987 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 1), (3, 2)} := by decide
988 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_2x1_3x2] <;> norm_num
989
990theorem fp3_1x1_2x1_2x1_3x2__2x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (3, 2)} (2, 1) = (23 / 6 : ℚ) := by
991 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
992 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 1), (3, 2)} := by decide
993 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_2x1_3x2, v3_1x1_1x1_2x1_3x2] <;> norm_num
994
995theorem fp3_1x1_2x1_2x1_2x2__1x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (2, 2)} (1, 1) = (3 : ℚ) := by
996 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 1), (2, 2)} := by decide
997 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 1), (2, 2)} := by decide
998 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_2x1_2x2] <;> norm_num
999
1000theorem fp3_1x1_2x1_2x1_2x2__2x1 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (2, 2)} (2, 1) = (7 / 2 : ℚ) := by
1001 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
1002 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 1), (2, 2)} := by decide
1003 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_2x1_2x2, v3_1x1_1x1_2x1_2x2] <;> norm_num
1004
1005theorem fp3_1x1_2x1_2x1_2x2__2x2 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (2, 2)} (2, 2) = (3 : ℚ) := by
1006 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (2, 1), (2, 1)} := by decide
1007 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (2, 1), (2, 1)} := by decide
1008 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x1_2x1] <;> norm_num
1009
1010theorem v3_1x1_2x1_2x1_2x2 : val 3 {(1, 1), (2, 1), (2, 1), (2, 2)} = (3 : ℚ) := by
1011 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_2x1_2x2__1x1
1012 intro d hd hpos
1013 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1014 rcases hd with rfl | rfl | rfl | rfl
1015 · rw [fp3_1x1_2x1_2x1_2x2__1x1] <;> norm_num
1016 · rw [fp3_1x1_2x1_2x1_2x2__2x1] <;> norm_num
1017 · rw [fp3_1x1_2x1_2x1_2x2__2x1] <;> norm_num
1018 · rw [fp3_1x1_2x1_2x1_2x2__2x2] <;> norm_num
1019
1020theorem fp3_1x1_2x1_2x1_3x2__3x2 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (3, 2)} (3, 2) = (11 / 3 : ℚ) := by
1021 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 1), (2, 1)} := by decide
1022 have e2 : missC (3, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 1), (2, 2)} := by decide
1023 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x1_2x1_2x1, v3_1x1_2x1_2x1_2x2] <;> norm_num
1024
1025theorem v3_1x1_2x1_2x1_3x2 : val 3 {(1, 1), (2, 1), (2, 1), (3, 2)} = (11 / 3 : ℚ) := by
1026 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_2x1_3x2__1x1
1027 intro d hd hpos
1028 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1029 rcases hd with rfl | rfl | rfl | rfl
1030 · rw [fp3_1x1_2x1_2x1_3x2__1x1] <;> norm_num
1031 · rw [fp3_1x1_2x1_2x1_3x2__2x1] <;> norm_num
1032 · rw [fp3_1x1_2x1_2x1_3x2__2x1] <;> norm_num
1033 · rw [fp3_1x1_2x1_2x1_3x2__3x2] <;> norm_num
1034
1035theorem fp3_1x1_2x1_2x1_4x2__4x2 : firstPatch 3 {(1, 1), (2, 1), (2, 1), (4, 2)} (4, 2) = (49 / 12 : ℚ) := by
1036 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (2, 1), (3, 1)} := by decide
1037 have e2 : missC (4, 2) ::ₘ ({(1, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (2, 1), (3, 2)} := by decide
1038 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x1_2x1_3x1, v3_1x1_2x1_2x1_3x2] <;> norm_num
1039
1040theorem v3_1x1_2x1_2x1_4x2 : val 3 {(1, 1), (2, 1), (2, 1), (4, 2)} = (4 : ℚ) := by
1041 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_2x1_4x2__1x1
1042 intro d hd hpos
1043 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1044 rcases hd with rfl | rfl | rfl | rfl
1045 · rw [fp3_1x1_2x1_2x1_4x2__1x1] <;> norm_num
1046 · rw [fp3_1x1_2x1_2x1_4x2__2x1] <;> norm_num
1047 · rw [fp3_1x1_2x1_2x1_4x2__2x1] <;> norm_num
1048 · rw [fp3_1x1_2x1_2x1_4x2__4x2] <;> norm_num
1049
1050theorem fp3_2x1_2x1_2x1_4x2__2x1 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (4, 2)} (2, 1) = (9 / 2 : ℚ) := by
1051 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 1), (4, 2)} := by decide
1052 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 1), (4, 2)} := by decide
1053 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_2x1_2x1_4x2, v3_1x1_2x1_2x1_4x2] <;> norm_num
1054
1055theorem fp2_2x1_2x1_2x1_3x1__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (3, 1)} (2, 1) = (3 : ℚ) := by
1056 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 1), (3, 1)} := by decide
1057 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 1), (3, 1)} := by decide
1058 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_3x1, v2_1x1_2x1_2x1_3x1] <;> norm_num
1059
1060theorem v1_2x0_2x1_2x1_2x1 : val 1 {(2, 0), (2, 1), (2, 1), (2, 1)} = (3 / 2 : ℚ) := by
1061 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1062 intro d hd hd1
1063 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1064 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1065 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1066
1067theorem fp2_2x1_2x1_2x1_2x1__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (2, 1)} (2, 1) = (3 : ℚ) := by
1068 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 1), (2, 1)} := by decide
1069 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 1), (2, 1)} := by decide
1070 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_2x1, v2_1x1_2x1_2x1_2x1] <;> norm_num
1071
1072theorem v2_2x1_2x1_2x1_2x1 : val 2 {(2, 1), (2, 1), (2, 1), (2, 1)} = (3 : ℚ) := by
1073 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_2x1_2x1__2x1
1074 intro d hd hpos
1075 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1076 rcases hd with rfl | rfl | rfl | rfl
1077 · rw [fp2_2x1_2x1_2x1_2x1__2x1] <;> norm_num
1078 · rw [fp2_2x1_2x1_2x1_2x1__2x1] <;> norm_num
1079 · rw [fp2_2x1_2x1_2x1_2x1__2x1] <;> norm_num
1080 · rw [fp2_2x1_2x1_2x1_2x1__2x1] <;> norm_num
1081
1082theorem fp2_2x1_2x1_2x1_3x1__3x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (3, 1)} (3, 1) = (7 / 2 : ℚ) := by
1083 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (2, 1), (2, 1)} := by decide
1084 have e2 : missC (3, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (2, 1), (2, 1)} := by decide
1085 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_2x1_2x1, v2_2x1_2x1_2x1_2x1] <;> norm_num
1086
1087theorem v2_2x1_2x1_2x1_3x1 : val 2 {(2, 1), (2, 1), (2, 1), (3, 1)} = (3 : ℚ) := by
1088 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_2x1_3x1__2x1
1089 intro d hd hpos
1090 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1091 rcases hd with rfl | rfl | rfl | rfl
1092 · rw [fp2_2x1_2x1_2x1_3x1__2x1] <;> norm_num
1093 · rw [fp2_2x1_2x1_2x1_3x1__2x1] <;> norm_num
1094 · rw [fp2_2x1_2x1_2x1_3x1__2x1] <;> norm_num
1095 · rw [fp2_2x1_2x1_2x1_3x1__3x1] <;> norm_num
1096
1097theorem fp3_2x1_2x1_2x1_3x2__2x1 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (3, 2)} (2, 1) = (25 / 6 : ℚ) := by
1098 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 1), (3, 2)} := by decide
1099 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 1), (3, 2)} := by decide
1100 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_2x1_2x1_3x2, v3_1x1_2x1_2x1_3x2] <;> norm_num
1101
1102theorem fp3_2x1_2x1_2x1_2x2__2x1 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (2, 2)} (2, 1) = (7 / 2 : ℚ) := by
1103 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 1), (2, 2)} := by decide
1104 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 1), (2, 2)} := by decide
1105 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_2x1_2x1_2x2, v3_1x1_2x1_2x1_2x2] <;> norm_num
1106
1107theorem fp3_2x1_2x1_2x1_2x2__2x2 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (2, 2)} (2, 2) = (7 / 2 : ℚ) := by
1108 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1), (2, 1), (2, 1)} := by decide
1109 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1), (2, 1), (2, 1)} := by decide
1110 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x1_2x1_2x1] <;> norm_num
1111
1112theorem v3_2x1_2x1_2x1_2x2 : val 3 {(2, 1), (2, 1), (2, 1), (2, 2)} = (7 / 2 : ℚ) := by
1113 apply val_eq_of_cert 2 _ _ (2, 1) (by decide) (by decide) fp3_2x1_2x1_2x1_2x2__2x1
1114 intro d hd hpos
1115 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1116 rcases hd with rfl | rfl | rfl | rfl
1117 · rw [fp3_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1118 · rw [fp3_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1119 · rw [fp3_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1120 · rw [fp3_2x1_2x1_2x1_2x2__2x2] <;> norm_num
1121
1122theorem fp3_2x1_2x1_2x1_3x2__3x2 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (3, 2)} (3, 2) = (25 / 6 : ℚ) := by
1123 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 1), (2, 1)} := by decide
1124 have e2 : missC (3, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 1), (2, 2)} := by decide
1125 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_2x1_2x1_2x1_2x1, v3_2x1_2x1_2x1_2x2] <;> norm_num
1126
1127theorem v3_2x1_2x1_2x1_3x2 : val 3 {(2, 1), (2, 1), (2, 1), (3, 2)} = (25 / 6 : ℚ) := by
1128 apply val_eq_of_cert 2 _ _ (2, 1) (by decide) (by decide) fp3_2x1_2x1_2x1_3x2__2x1
1129 intro d hd hpos
1130 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1131 rcases hd with rfl | rfl | rfl | rfl
1132 · rw [fp3_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1133 · rw [fp3_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1134 · rw [fp3_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1135 · rw [fp3_2x1_2x1_2x1_3x2__3x2] <;> norm_num
1136
1137theorem fp3_2x1_2x1_2x1_4x2__4x2 : firstPatch 3 {(2, 1), (2, 1), (2, 1), (4, 2)} (4, 2) = (55 / 12 : ℚ) := by
1138 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (2, 1), (3, 1)} := by decide
1139 have e2 : missC (4, 2) ::ₘ ({(2, 1), (2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (2, 1), (3, 2)} := by decide
1140 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_2x1_2x1_2x1_3x1, v3_2x1_2x1_2x1_3x2] <;> norm_num
1141
1142theorem v3_2x1_2x1_2x1_4x2 : val 3 {(2, 1), (2, 1), (2, 1), (4, 2)} = (9 / 2 : ℚ) := by
1143 apply val_eq_of_cert 2 _ _ (2, 1) (by decide) (by decide) fp3_2x1_2x1_2x1_4x2__2x1
1144 intro d hd hpos
1145 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1146 rcases hd with rfl | rfl | rfl | rfl
1147 · rw [fp3_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1148 · rw [fp3_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1149 · rw [fp3_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1150 · rw [fp3_2x1_2x1_2x1_4x2__4x2] <;> norm_num
1151
1152theorem v1_0x0_1x0_3x1_4x2 : val 1 {(0, 0), (1, 0), (3, 1), (4, 2)} = (5 / 3 : ℚ) := by
1153 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
1154 intro d hd hd1
1155 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1156 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1157 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
1158
1159theorem v1_0x0_0x0_3x1_4x2 : val 1 {(0, 0), (0, 0), (3, 1), (4, 2)} = (5 / 3 : ℚ) := by
1160 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
1161 intro d hd hd1
1162 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1163 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1164 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
1165
1166theorem fp2_0x0_1x1_3x1_4x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (4, 2)} (1, 1) = (8 / 3 : ℚ) := by
1167 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (3, 1), (4, 2)} := by decide
1168 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (3, 1), (4, 2)} := by decide
1169 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_3x1_4x2] <;> norm_num
1170
1171theorem v1_0x0_1x1_2x0_4x2 : val 1 {(0, 0), (1, 1), (2, 0), (4, 2)} = (1 : ℚ) := by
1172 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1173 intro d hd hd1
1174 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1175 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1176 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1177
1178theorem fp2_0x0_1x1_3x1_4x2__3x1 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (4, 2)} (3, 1) = (3 : ℚ) := by
1179 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 0), (4, 2)} := by decide
1180 have e2 : missC (3, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 1), (4, 2)} := by decide
1181 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_4x2, v2_0x0_1x1_2x1_4x2] <;> norm_num
1182
1183theorem v1_0x0_1x1_3x1_3x1 : val 1 {(0, 0), (1, 1), (3, 1), (3, 1)} = (1 : ℚ) := by
1184 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1185 intro d hd hd1
1186 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1187 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1188 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1189
1190theorem v1_0x0_0x0_3x1_3x2 : val 1 {(0, 0), (0, 0), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
1191 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1192 intro d hd hd1
1193 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1194 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1195 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1196
1197theorem fp2_0x0_1x1_3x1_3x2__1x1 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1198 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (3, 1), (3, 2)} := by decide
1199 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (3, 1), (3, 2)} := by decide
1200 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_3x1_3x2] <;> norm_num
1201
1202theorem v1_0x0_1x1_2x0_3x2 : val 1 {(0, 0), (1, 1), (2, 0), (3, 2)} = (1 : ℚ) := by
1203 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1204 intro d hd hd1
1205 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1206 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1207 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1208
1209theorem fp2_0x0_1x1_3x1_3x2__3x1 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (3, 2)} (3, 1) = (26 / 9 : ℚ) := by
1210 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 0), (3, 2)} := by decide
1211 have e2 : missC (3, 1) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 1), (3, 2)} := by decide
1212 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_3x2, v2_0x0_1x1_2x1_3x2] <;> norm_num
1213
1214theorem v1_0x0_0x0_2x2_3x1 : val 1 {(0, 0), (0, 0), (2, 2), (3, 1)} = (1 : ℚ) := by
1215 have hmin : ∀ d ∈ ({(0, 0), (0, 0), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1216 intro d hd hd1
1217 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1218 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1219 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1220
1221theorem fp2_0x0_1x1_2x2_3x1__1x1 : firstPatch 2 {(0, 0), (1, 1), (2, 2), (3, 1)} (1, 1) = (2 : ℚ) := by
1222 have e1 : hitC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 0), (2, 2), (3, 1)} := by decide
1223 have e2 : missC (1, 1) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (0, 1), (2, 2), (3, 1)} := by decide
1224 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_0x0_2x2_3x1] <;> norm_num
1225
1226theorem fp2_0x0_1x1_2x2_3x1__2x2 : firstPatch 2 {(0, 0), (1, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
1227 have e1 : hitC (2, 2) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 1), (3, 1)} := by decide
1228 have e2 : missC (2, 2) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (1, 2), (3, 1)} := by decide
1229 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_3x1] <;> norm_num
1230
1231theorem v1_0x0_1x1_2x0_2x2 : val 1 {(0, 0), (1, 1), (2, 0), (2, 2)} = (1 : ℚ) := by
1232 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 0), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1233 intro d hd hd1
1234 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1235 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1236 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1237
1238theorem fp2_0x0_1x1_2x2_3x1__3x1 : firstPatch 2 {(0, 0), (1, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1239 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 0), (2, 2)} := by decide
1240 have e2 : missC (3, 1) ::ₘ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(0, 0), (1, 1), (2, 1), (2, 2)} := by decide
1241 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_2x2, v2_0x0_1x1_2x1_2x2] <;> norm_num
1242
1243theorem v2_0x0_1x1_2x2_3x1 : val 2 {(0, 0), (1, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
1244 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_2x2_3x1__1x1
1245 intro d hd hpos
1246 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1247 rcases hd with rfl | rfl | rfl | rfl
1248 · exact absurd hpos (by norm_num)
1249 · rw [fp2_0x0_1x1_2x2_3x1__1x1] <;> norm_num
1250 · rw [fp2_0x0_1x1_2x2_3x1__2x2] <;> norm_num
1251 · rw [fp2_0x0_1x1_2x2_3x1__3x1] <;> norm_num
1252
1253theorem fp2_0x0_1x1_3x1_3x2__3x2 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1254 have e1 : hitC (3, 2) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (2, 1), (3, 1)} := by decide
1255 have e2 : missC (3, 2) ::ₘ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (1, 1), (2, 2), (3, 1)} := by decide
1256 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_3x1, v2_0x0_1x1_2x2_3x1] <;> norm_num
1257
1258theorem v2_0x0_1x1_3x1_3x2 : val 2 {(0, 0), (1, 1), (3, 1), (3, 2)} = (7 / 3 : ℚ) := by
1259 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_3x1_3x2__1x1
1260 intro d hd hpos
1261 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1262 rcases hd with rfl | rfl | rfl | rfl
1263 · exact absurd hpos (by norm_num)
1264 · rw [fp2_0x0_1x1_3x1_3x2__1x1] <;> norm_num
1265 · rw [fp2_0x0_1x1_3x1_3x2__3x1] <;> norm_num
1266 · rw [fp2_0x0_1x1_3x1_3x2__3x2] <;> norm_num
1267
1268theorem fp2_0x0_1x1_3x1_4x2__4x2 : firstPatch 2 {(0, 0), (1, 1), (3, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1269 have e1 : hitC (4, 2) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (3, 1), (3, 1)} := by decide
1270 have e2 : missC (4, 2) ::ₘ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (1, 1), (3, 1), (3, 2)} := by decide
1271 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x1_3x1, v2_0x0_1x1_3x1_3x2] <;> norm_num
1272
1273theorem v2_0x0_1x1_3x1_4x2 : val 2 {(0, 0), (1, 1), (3, 1), (4, 2)} = (8 / 3 : ℚ) := by
1274 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_0x0_1x1_3x1_4x2__1x1
1275 intro d hd hpos
1276 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1277 rcases hd with rfl | rfl | rfl | rfl
1278 · exact absurd hpos (by norm_num)
1279 · rw [fp2_0x0_1x1_3x1_4x2__1x1] <;> norm_num
1280 · rw [fp2_0x0_1x1_3x1_4x2__3x1] <;> norm_num
1281 · rw [fp2_0x0_1x1_3x1_4x2__4x2] <;> norm_num
1282
1283theorem fp2_0x0_2x1_3x1_4x2__2x1 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (4, 2)} (2, 1) = (19 / 6 : ℚ) := by
1284 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (3, 1), (4, 2)} := by decide
1285 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (3, 1), (4, 2)} := by decide
1286 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_3x1_4x2, v2_0x0_1x1_3x1_4x2] <;> norm_num
1287
1288theorem v1_0x0_2x0_2x1_4x2 : val 1 {(0, 0), (2, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
1289 have hmin : ∀ d ∈ ({(0, 0), (2, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1290 intro d hd hd1
1291 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1292 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1293 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1294
1295theorem fp2_0x0_2x1_3x1_4x2__3x1 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (4, 2)} (3, 1) = (7 / 2 : ℚ) := by
1296 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 0), (2, 1), (4, 2)} := by decide
1297 have e2 : missC (3, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 1), (2, 1), (4, 2)} := by decide
1298 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_4x2, v2_0x0_2x1_2x1_4x2] <;> norm_num
1299
1300theorem v1_0x0_2x1_3x1_3x1 : val 1 {(0, 0), (2, 1), (3, 1), (3, 1)} = (3 / 2 : ℚ) := by
1301 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1302 intro d hd hd1
1303 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1304 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1305 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1306
1307theorem v1_0x0_1x0_3x1_3x2 : val 1 {(0, 0), (1, 0), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
1308 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1309 intro d hd hd1
1310 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1311 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1312 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1313
1314theorem fp2_0x0_2x1_3x1_3x2__2x1 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
1315 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (3, 1), (3, 2)} := by decide
1316 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (3, 1), (3, 2)} := by decide
1317 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_3x1_3x2, v2_0x0_1x1_3x1_3x2] <;> norm_num
1318
1319theorem v1_0x0_2x0_2x1_3x2 : val 1 {(0, 0), (2, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
1320 have hmin : ∀ d ∈ ({(0, 0), (2, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1321 intro d hd hd1
1322 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1323 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1324 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1325
1326theorem fp2_0x0_2x1_3x1_3x2__3x1 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (3, 2)} (3, 1) = (29 / 9 : ℚ) := by
1327 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 0), (2, 1), (3, 2)} := by decide
1328 have e2 : missC (3, 1) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 1), (2, 1), (3, 2)} := by decide
1329 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_3x2, v2_0x0_2x1_2x1_3x2] <;> norm_num
1330
1331theorem v1_0x0_1x0_2x2_3x1 : val 1 {(0, 0), (1, 0), (2, 2), (3, 1)} = (1 : ℚ) := by
1332 have hmin : ∀ d ∈ ({(0, 0), (1, 0), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1333 intro d hd hd1
1334 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1335 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1336 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1337
1338theorem fp2_0x0_2x1_2x2_3x1__2x1 : firstPatch 2 {(0, 0), (2, 1), (2, 2), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
1339 have e1 : hitC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 0), (2, 2), (3, 1)} := by decide
1340 have e2 : missC (2, 1) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(0, 0), (1, 1), (2, 2), (3, 1)} := by decide
1341 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x2_3x1, v2_0x0_1x1_2x2_3x1] <;> norm_num
1342
1343theorem fp2_0x0_2x1_2x2_3x1__2x2 : firstPatch 2 {(0, 0), (2, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
1344 have e1 : hitC (2, 2) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 1), (2, 1), (3, 1)} := by decide
1345 have e2 : missC (2, 2) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(0, 0), (1, 2), (2, 1), (3, 1)} := by decide
1346 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_3x1] <;> norm_num
1347
1348theorem v1_0x0_2x0_2x1_2x2 : val 1 {(0, 0), (2, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
1349 have hmin : ∀ d ∈ ({(0, 0), (2, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1350 intro d hd hd1
1351 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1352 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1353 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1354
1355theorem fp2_0x0_2x1_2x2_3x1__3x1 : firstPatch 2 {(0, 0), (2, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1356 have e1 : hitC (3, 1) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 0), (2, 1), (2, 2)} := by decide
1357 have e2 : missC (3, 1) ::ₘ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(0, 0), (2, 1), (2, 1), (2, 2)} := by decide
1358 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_2x2, v2_0x0_2x1_2x1_2x2] <;> norm_num
1359
1360theorem v2_0x0_2x1_2x2_3x1 : val 2 {(0, 0), (2, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
1361 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_0x0_2x1_2x2_3x1__2x2
1362 intro d hd hpos
1363 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1364 rcases hd with rfl | rfl | rfl | rfl
1365 · exact absurd hpos (by norm_num)
1366 · rw [fp2_0x0_2x1_2x2_3x1__2x1] <;> norm_num
1367 · rw [fp2_0x0_2x1_2x2_3x1__2x2] <;> norm_num
1368 · rw [fp2_0x0_2x1_2x2_3x1__3x1] <;> norm_num
1369
1370theorem fp2_0x0_2x1_3x1_3x2__3x2 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
1371 have e1 : hitC (3, 2) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (2, 1), (2, 1), (3, 1)} := by decide
1372 have e2 : missC (3, 2) ::ₘ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(0, 0), (2, 1), (2, 2), (3, 1)} := by decide
1373 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_3x1, v2_0x0_2x1_2x2_3x1] <;> norm_num
1374
1375theorem v2_0x0_2x1_3x1_3x2 : val 2 {(0, 0), (2, 1), (3, 1), (3, 2)} = (8 / 3 : ℚ) := by
1376 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_0x0_2x1_3x1_3x2__3x2
1377 intro d hd hpos
1378 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1379 rcases hd with rfl | rfl | rfl | rfl
1380 · exact absurd hpos (by norm_num)
1381 · rw [fp2_0x0_2x1_3x1_3x2__2x1] <;> norm_num
1382 · rw [fp2_0x0_2x1_3x1_3x2__3x1] <;> norm_num
1383 · rw [fp2_0x0_2x1_3x1_3x2__3x2] <;> norm_num
1384
1385theorem fp2_0x0_2x1_3x1_4x2__4x2 : firstPatch 2 {(0, 0), (2, 1), (3, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
1386 have e1 : hitC (4, 2) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (2, 1), (3, 1), (3, 1)} := by decide
1387 have e2 : missC (4, 2) ::ₘ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(0, 0), (2, 1), (3, 1), (3, 2)} := by decide
1388 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x1_3x1, v2_0x0_2x1_3x1_3x2] <;> norm_num
1389
1390theorem v2_0x0_2x1_3x1_4x2 : val 2 {(0, 0), (2, 1), (3, 1), (4, 2)} = (37 / 12 : ℚ) := by
1391 apply val_eq_of_cert 1 _ _ (4, 2) (by decide) (by decide) fp2_0x0_2x1_3x1_4x2__4x2
1392 intro d hd hpos
1393 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1394 rcases hd with rfl | rfl | rfl | rfl
1395 · exact absurd hpos (by norm_num)
1396 · rw [fp2_0x0_2x1_3x1_4x2__2x1] <;> norm_num
1397 · rw [fp2_0x0_2x1_3x1_4x2__3x1] <;> norm_num
1398 · rw [fp2_0x0_2x1_3x1_4x2__4x2] <;> norm_num
1399
1400theorem fp3_1x1_2x1_3x1_4x2__1x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (1, 1) = (49 / 12 : ℚ) := by
1401 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (3, 1), (4, 2)} := by decide
1402 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (3, 1), (4, 2)} := by decide
1403 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_3x1_4x2] <;> norm_num
1404
1405theorem fp2_1x0_1x1_3x1_4x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (4, 2)} (1, 0) = (11 / 3 : ℚ) := by
1406 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (3, 1), (4, 2)} := by decide
1407 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (3, 1), (4, 2)} := by decide
1408 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_3x1_4x2] <;> norm_num
1409
1410theorem fp2_1x0_1x1_3x1_4x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (4, 2)} (1, 1) = (8 / 3 : ℚ) := by
1411 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (3, 1), (4, 2)} := by decide
1412 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (3, 1), (4, 2)} := by decide
1413 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_3x1_4x2] <;> norm_num
1414
1415theorem v1_1x0_1x1_2x0_4x2 : val 1 {(1, 0), (1, 1), (2, 0), (4, 2)} = (1 : ℚ) := by
1416 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1417 intro d hd hd1
1418 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1419 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1420 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1421
1422theorem fp2_1x0_1x1_3x1_4x2__3x1 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (4, 2)} (3, 1) = (3 : ℚ) := by
1423 have e1 : hitC (3, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 0), (4, 2)} := by decide
1424 have e2 : missC (3, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 1), (4, 2)} := by decide
1425 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_4x2, v2_1x0_1x1_2x1_4x2] <;> norm_num
1426
1427theorem v1_1x0_1x1_3x1_3x1 : val 1 {(1, 0), (1, 1), (3, 1), (3, 1)} = (1 : ℚ) := by
1428 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1429 intro d hd hd1
1430 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1431 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1432 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1433
1434theorem fp2_1x0_1x1_3x1_3x2__1x0 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (3, 2)} (1, 0) = (10 / 3 : ℚ) := by
1435 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (3, 1), (3, 2)} := by decide
1436 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (3, 1), (3, 2)} := by decide
1437 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_3x1_3x2] <;> norm_num
1438
1439theorem fp2_1x0_1x1_3x1_3x2__1x1 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1440 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (3, 1), (3, 2)} := by decide
1441 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (3, 1), (3, 2)} := by decide
1442 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_3x1_3x2] <;> norm_num
1443
1444theorem v1_1x0_1x1_2x0_3x2 : val 1 {(1, 0), (1, 1), (2, 0), (3, 2)} = (1 : ℚ) := by
1445 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1446 intro d hd hd1
1447 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1448 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1449 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1450
1451theorem fp2_1x0_1x1_3x1_3x2__3x1 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (3, 2)} (3, 1) = (26 / 9 : ℚ) := by
1452 have e1 : hitC (3, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 0), (3, 2)} := by decide
1453 have e2 : missC (3, 1) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
1454 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_3x2, v2_1x0_1x1_2x1_3x2] <;> norm_num
1455
1456theorem fp2_1x0_1x1_2x2_3x1__1x0 : firstPatch 2 {(1, 0), (1, 1), (2, 2), (3, 1)} (1, 0) = (3 : ℚ) := by
1457 have e1 : hitC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 2), (3, 1)} := by decide
1458 have e2 : missC (1, 0) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 0) = {(0, 0), (1, 1), (2, 2), (3, 1)} := by decide
1459 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_0x0_1x1_2x2_3x1] <;> norm_num
1460
1461theorem fp2_1x0_1x1_2x2_3x1__1x1 : firstPatch 2 {(1, 0), (1, 1), (2, 2), (3, 1)} (1, 1) = (2 : ℚ) := by
1462 have e1 : hitC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 0), (2, 2), (3, 1)} := by decide
1463 have e2 : missC (1, 1) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 0), (2, 2), (3, 1)} := by decide
1464 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x0_2x2_3x1] <;> norm_num
1465
1466theorem fp2_1x0_1x1_2x2_3x1__2x2 : firstPatch 2 {(1, 0), (1, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
1467 have e1 : hitC (2, 2) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 1), (3, 1)} := by decide
1468 have e2 : missC (2, 2) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 0), (1, 1), (1, 2), (3, 1)} := by decide
1469 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_3x1] <;> norm_num
1470
1471theorem v1_1x0_1x1_2x0_2x2 : val 1 {(1, 0), (1, 1), (2, 0), (2, 2)} = (1 : ℚ) := by
1472 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 0), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1473 intro d hd hd1
1474 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1475 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1476 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1477
1478theorem fp2_1x0_1x1_2x2_3x1__3x1 : firstPatch 2 {(1, 0), (1, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1479 have e1 : hitC (3, 1) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 0), (2, 2)} := by decide
1480 have e2 : missC (3, 1) ::ₘ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
1481 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_2x2, v2_1x0_1x1_2x1_2x2] <;> norm_num
1482
1483theorem v2_1x0_1x1_2x2_3x1 : val 2 {(1, 0), (1, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
1484 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_2x2_3x1__1x1
1485 intro d hd hpos
1486 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1487 rcases hd with rfl | rfl | rfl | rfl
1488 · rw [fp2_1x0_1x1_2x2_3x1__1x0] <;> norm_num
1489 · rw [fp2_1x0_1x1_2x2_3x1__1x1] <;> norm_num
1490 · rw [fp2_1x0_1x1_2x2_3x1__2x2] <;> norm_num
1491 · rw [fp2_1x0_1x1_2x2_3x1__3x1] <;> norm_num
1492
1493theorem fp2_1x0_1x1_3x1_3x2__3x2 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1494 have e1 : hitC (3, 2) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (2, 1), (3, 1)} := by decide
1495 have e2 : missC (3, 2) ::ₘ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 0), (1, 1), (2, 2), (3, 1)} := by decide
1496 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_3x1, v2_1x0_1x1_2x2_3x1] <;> norm_num
1497
1498theorem v2_1x0_1x1_3x1_3x2 : val 2 {(1, 0), (1, 1), (3, 1), (3, 2)} = (7 / 3 : ℚ) := by
1499 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_3x1_3x2__1x1
1500 intro d hd hpos
1501 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1502 rcases hd with rfl | rfl | rfl | rfl
1503 · rw [fp2_1x0_1x1_3x1_3x2__1x0] <;> norm_num
1504 · rw [fp2_1x0_1x1_3x1_3x2__1x1] <;> norm_num
1505 · rw [fp2_1x0_1x1_3x1_3x2__3x1] <;> norm_num
1506 · rw [fp2_1x0_1x1_3x1_3x2__3x2] <;> norm_num
1507
1508theorem fp2_1x0_1x1_3x1_4x2__4x2 : firstPatch 2 {(1, 0), (1, 1), (3, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1509 have e1 : hitC (4, 2) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (3, 1), (3, 1)} := by decide
1510 have e2 : missC (4, 2) ::ₘ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 0), (1, 1), (3, 1), (3, 2)} := by decide
1511 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x1_3x1, v2_1x0_1x1_3x1_3x2] <;> norm_num
1512
1513theorem v2_1x0_1x1_3x1_4x2 : val 2 {(1, 0), (1, 1), (3, 1), (4, 2)} = (8 / 3 : ℚ) := by
1514 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x0_1x1_3x1_4x2__1x1
1515 intro d hd hpos
1516 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1517 rcases hd with rfl | rfl | rfl | rfl
1518 · rw [fp2_1x0_1x1_3x1_4x2__1x0] <;> norm_num
1519 · rw [fp2_1x0_1x1_3x1_4x2__1x1] <;> norm_num
1520 · rw [fp2_1x0_1x1_3x1_4x2__3x1] <;> norm_num
1521 · rw [fp2_1x0_1x1_3x1_4x2__4x2] <;> norm_num
1522
1523theorem fp3_1x1_1x1_3x1_4x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (4, 2)} (1, 1) = (11 / 3 : ℚ) := by
1524 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (3, 1), (4, 2)} := by decide
1525 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (3, 1), (4, 2)} := by decide
1526 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_3x1_4x2] <;> norm_num
1527
1528theorem fp2_1x1_1x1_2x0_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (4, 2)} (1, 1) = (2 : ℚ) := by
1529 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 0), (4, 2)} := by decide
1530 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 0), (4, 2)} := by decide
1531 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_4x2] <;> norm_num
1532
1533theorem fp2_1x1_1x1_2x0_4x2__2x0 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (4, 2)} (2, 0) = (3 : ℚ) := by
1534 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (4, 2)} := by decide
1535 have e2 : missC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (4, 2)} := by decide
1536 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_1x1_4x2] <;> norm_num
1537
1538theorem v1_1x1_1x1_2x0_3x1 : val 1 {(1, 1), (1, 1), (2, 0), (3, 1)} = (1 : ℚ) := by
1539 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 0), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1540 intro d hd hd1
1541 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1542 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1543 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1544
1545theorem fp2_1x1_1x1_2x0_3x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (3, 2)} (1, 1) = (2 : ℚ) := by
1546 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 0), (3, 2)} := by decide
1547 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 0), (3, 2)} := by decide
1548 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_3x2] <;> norm_num
1549
1550theorem fp2_1x1_1x1_2x0_3x2__2x0 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (3, 2)} (2, 0) = (3 : ℚ) := by
1551 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (3, 2)} := by decide
1552 have e2 : missC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (3, 2)} := by decide
1553 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_1x1_3x2] <;> norm_num
1554
1555theorem fp2_1x1_1x1_2x0_2x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (2, 2)} (1, 1) = (2 : ℚ) := by
1556 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 0), (2, 2)} := by decide
1557 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 0), (2, 2)} := by decide
1558 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x0_2x2] <;> norm_num
1559
1560theorem fp2_1x1_1x1_2x0_2x2__2x0 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (2, 2)} (2, 0) = (3 : ℚ) := by
1561 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (2, 2)} := by decide
1562 have e2 : missC (2, 0) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (1, 1), (2, 2)} := by decide
1563 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_1x1_2x2] <;> norm_num
1564
1565theorem fp2_1x1_1x1_2x0_2x2__2x2 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (2, 2)} (2, 2) = (2 : ℚ) := by
1566 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (2, 0)} := by decide
1567 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 2), (2, 0)} := by decide
1568 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_2x0] <;> norm_num
1569
1570theorem v2_1x1_1x1_2x0_2x2 : val 2 {(1, 1), (1, 1), (2, 0), (2, 2)} = (2 : ℚ) := by
1571 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x0_2x2__1x1
1572 intro d hd hpos
1573 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1574 rcases hd with rfl | rfl | rfl | rfl
1575 · rw [fp2_1x1_1x1_2x0_2x2__1x1] <;> norm_num
1576 · rw [fp2_1x1_1x1_2x0_2x2__1x1] <;> norm_num
1577 · rw [fp2_1x1_1x1_2x0_2x2__2x0] <;> norm_num
1578 · rw [fp2_1x1_1x1_2x0_2x2__2x2] <;> norm_num
1579
1580theorem fp2_1x1_1x1_2x0_3x2__3x2 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1581 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 0), (2, 1)} := by decide
1582 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 0), (2, 2)} := by decide
1583 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_2x1, v2_1x1_1x1_2x0_2x2] <;> norm_num
1584
1585theorem v2_1x1_1x1_2x0_3x2 : val 2 {(1, 1), (1, 1), (2, 0), (3, 2)} = (2 : ℚ) := by
1586 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x0_3x2__1x1
1587 intro d hd hpos
1588 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1589 rcases hd with rfl | rfl | rfl | rfl
1590 · rw [fp2_1x1_1x1_2x0_3x2__1x1] <;> norm_num
1591 · rw [fp2_1x1_1x1_2x0_3x2__1x1] <;> norm_num
1592 · rw [fp2_1x1_1x1_2x0_3x2__2x0] <;> norm_num
1593 · rw [fp2_1x1_1x1_2x0_3x2__3x2] <;> norm_num
1594
1595theorem fp2_1x1_1x1_2x0_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (2, 0), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
1596 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (2, 0), (3, 1)} := by decide
1597 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (2, 0), (3, 2)} := by decide
1598 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_3x1, v2_1x1_1x1_2x0_3x2] <;> norm_num
1599
1600theorem v2_1x1_1x1_2x0_4x2 : val 2 {(1, 1), (1, 1), (2, 0), (4, 2)} = (2 : ℚ) := by
1601 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x0_4x2__1x1
1602 intro d hd hpos
1603 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1604 rcases hd with rfl | rfl | rfl | rfl
1605 · rw [fp2_1x1_1x1_2x0_4x2__1x1] <;> norm_num
1606 · rw [fp2_1x1_1x1_2x0_4x2__1x1] <;> norm_num
1607 · rw [fp2_1x1_1x1_2x0_4x2__2x0] <;> norm_num
1608 · rw [fp2_1x1_1x1_2x0_4x2__4x2] <;> norm_num
1609
1610theorem fp3_1x1_1x1_3x1_4x2__3x1 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (4, 2)} (3, 1) = (4 : ℚ) := by
1611 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 0), (4, 2)} := by decide
1612 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 1), (4, 2)} := by decide
1613 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x0_4x2, v3_1x1_1x1_2x1_4x2] <;> norm_num
1614
1615theorem fp2_1x1_1x1_3x1_3x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (3, 1)} (1, 1) = (2 : ℚ) := by
1616 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (3, 1), (3, 1)} := by decide
1617 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (3, 1), (3, 1)} := by decide
1618 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x1_3x1] <;> norm_num
1619
1620theorem fp2_1x1_1x1_3x1_3x1__3x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1621 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 0), (3, 1)} := by decide
1622 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 1), (3, 1)} := by decide
1623 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_3x1, v2_1x1_1x1_2x1_3x1] <;> norm_num
1624
1625theorem v2_1x1_1x1_3x1_3x1 : val 2 {(1, 1), (1, 1), (3, 1), (3, 1)} = (2 : ℚ) := by
1626 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_3x1_3x1__1x1
1627 intro d hd hpos
1628 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1629 rcases hd with rfl | rfl | rfl | rfl
1630 · rw [fp2_1x1_1x1_3x1_3x1__1x1] <;> norm_num
1631 · rw [fp2_1x1_1x1_3x1_3x1__1x1] <;> norm_num
1632 · rw [fp2_1x1_1x1_3x1_3x1__3x1] <;> norm_num
1633 · rw [fp2_1x1_1x1_3x1_3x1__3x1] <;> norm_num
1634
1635theorem fp3_1x1_1x1_3x1_3x2__1x1 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (3, 2)} (1, 1) = (10 / 3 : ℚ) := by
1636 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (3, 1), (3, 2)} := by decide
1637 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (3, 1), (3, 2)} := by decide
1638 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_3x1_3x2] <;> norm_num
1639
1640theorem fp3_1x1_1x1_3x1_3x2__3x1 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (3, 2)} (3, 1) = (35 / 9 : ℚ) := by
1641 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 0), (3, 2)} := by decide
1642 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 1), (3, 2)} := by decide
1643 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x0_3x2, v3_1x1_1x1_2x1_3x2] <;> norm_num
1644
1645theorem fp3_1x1_1x1_2x2_3x1__1x1 : firstPatch 3 {(1, 1), (1, 1), (2, 2), (3, 1)} (1, 1) = (3 : ℚ) := by
1646 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 2), (3, 1)} := by decide
1647 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 2), (3, 1)} := by decide
1648 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_1x1_2x2_3x1] <;> norm_num
1649
1650theorem fp3_1x1_1x1_2x2_3x1__2x2 : firstPatch 3 {(1, 1), (1, 1), (2, 2), (3, 1)} (2, 2) = (3 : ℚ) := by
1651 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (3, 1)} := by decide
1652 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 2), (3, 1)} := by decide
1653 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_1x1_3x1] <;> norm_num
1654
1655theorem fp3_1x1_1x1_2x2_3x1__3x1 : firstPatch 3 {(1, 1), (1, 1), (2, 2), (3, 1)} (3, 1) = (11 / 3 : ℚ) := by
1656 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 0), (2, 2)} := by decide
1657 have e2 : missC (3, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (1, 1), (2, 1), (2, 2)} := by decide
1658 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x0_2x2, v3_1x1_1x1_2x1_2x2] <;> norm_num
1659
1660theorem v3_1x1_1x1_2x2_3x1 : val 3 {(1, 1), (1, 1), (2, 2), (3, 1)} = (3 : ℚ) := by
1661 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_2x2_3x1__1x1
1662 intro d hd hpos
1663 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1664 rcases hd with rfl | rfl | rfl | rfl
1665 · rw [fp3_1x1_1x1_2x2_3x1__1x1] <;> norm_num
1666 · rw [fp3_1x1_1x1_2x2_3x1__1x1] <;> norm_num
1667 · rw [fp3_1x1_1x1_2x2_3x1__2x2] <;> norm_num
1668 · rw [fp3_1x1_1x1_2x2_3x1__3x1] <;> norm_num
1669
1670theorem fp3_1x1_1x1_3x1_3x2__3x2 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (3, 2)} (3, 2) = (10 / 3 : ℚ) := by
1671 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 1), (3, 1)} := by decide
1672 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 2), (3, 1)} := by decide
1673 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x1_3x1, v3_1x1_1x1_2x2_3x1] <;> norm_num
1674
1675theorem v3_1x1_1x1_3x1_3x2 : val 3 {(1, 1), (1, 1), (3, 1), (3, 2)} = (10 / 3 : ℚ) := by
1676 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_3x1_3x2__1x1
1677 intro d hd hpos
1678 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1679 rcases hd with rfl | rfl | rfl | rfl
1680 · rw [fp3_1x1_1x1_3x1_3x2__1x1] <;> norm_num
1681 · rw [fp3_1x1_1x1_3x1_3x2__1x1] <;> norm_num
1682 · rw [fp3_1x1_1x1_3x1_3x2__3x1] <;> norm_num
1683 · rw [fp3_1x1_1x1_3x1_3x2__3x2] <;> norm_num
1684
1685theorem fp3_1x1_1x1_3x1_4x2__4x2 : firstPatch 3 {(1, 1), (1, 1), (3, 1), (4, 2)} (4, 2) = (11 / 3 : ℚ) := by
1686 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 1), (3, 1)} := by decide
1687 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 1), (3, 2)} := by decide
1688 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_3x1_3x1, v3_1x1_1x1_3x1_3x2] <;> norm_num
1689
1690theorem v3_1x1_1x1_3x1_4x2 : val 3 {(1, 1), (1, 1), (3, 1), (4, 2)} = (11 / 3 : ℚ) := by
1691 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_1x1_3x1_4x2__1x1
1692 intro d hd hpos
1693 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1694 rcases hd with rfl | rfl | rfl | rfl
1695 · rw [fp3_1x1_1x1_3x1_4x2__1x1] <;> norm_num
1696 · rw [fp3_1x1_1x1_3x1_4x2__1x1] <;> norm_num
1697 · rw [fp3_1x1_1x1_3x1_4x2__3x1] <;> norm_num
1698 · rw [fp3_1x1_1x1_3x1_4x2__4x2] <;> norm_num
1699
1700theorem fp3_1x1_2x1_3x1_4x2__2x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (2, 1) = (25 / 6 : ℚ) := by
1701 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (3, 1), (4, 2)} := by decide
1702 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (3, 1), (4, 2)} := by decide
1703 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_3x1_4x2, v3_1x1_1x1_3x1_4x2] <;> norm_num
1704
1705theorem fp2_1x1_2x0_2x1_4x2__1x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
1706 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 0), (2, 1), (4, 2)} := by decide
1707 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 0), (2, 1), (4, 2)} := by decide
1708 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_4x2] <;> norm_num
1709
1710theorem fp2_1x1_2x0_2x1_4x2__2x0 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (4, 2)} (2, 0) = (7 / 2 : ℚ) := by
1711 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (4, 2)} := by decide
1712 have e2 : missC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (4, 2)} := by decide
1713 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_2x1_4x2] <;> norm_num
1714
1715theorem fp2_1x1_2x0_2x1_4x2__2x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
1716 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 0), (4, 2)} := by decide
1717 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 0), (4, 2)} := by decide
1718 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_4x2, v2_1x1_1x1_2x0_4x2] <;> norm_num
1719
1720theorem v1_1x1_2x0_2x1_3x1 : val 1 {(1, 1), (2, 0), (2, 1), (3, 1)} = (1 : ℚ) := by
1721 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1722 intro d hd hd1
1723 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1724 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1725 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1726
1727theorem fp2_1x1_2x0_2x1_3x2__1x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1728 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 0), (2, 1), (3, 2)} := by decide
1729 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 0), (2, 1), (3, 2)} := by decide
1730 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_3x2] <;> norm_num
1731
1732theorem fp2_1x1_2x0_2x1_3x2__2x0 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (3, 2)} (2, 0) = (10 / 3 : ℚ) := by
1733 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
1734 have e2 : missC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (3, 2)} := by decide
1735 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_2x1_3x2] <;> norm_num
1736
1737theorem fp2_1x1_2x0_2x1_3x2__2x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
1738 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 0), (3, 2)} := by decide
1739 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 0), (3, 2)} := by decide
1740 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_3x2, v2_1x1_1x1_2x0_3x2] <;> norm_num
1741
1742theorem fp2_1x1_2x0_2x1_2x2__1x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
1743 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 0), (2, 1), (2, 2)} := by decide
1744 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 0), (2, 1), (2, 2)} := by decide
1745 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x0_2x1_2x2] <;> norm_num
1746
1747theorem fp2_1x1_2x0_2x1_2x2__2x0 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (2, 2)} (2, 0) = (3 : ℚ) := by
1748 have e1 : hitC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
1749 have e2 : missC (2, 0) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 0) = {(1, 0), (1, 1), (2, 1), (2, 2)} := by decide
1750 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v2_1x0_1x1_2x1_2x2] <;> norm_num
1751
1752theorem fp2_1x1_2x0_2x1_2x2__2x1 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
1753 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 0), (2, 2)} := by decide
1754 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 0), (2, 2)} := by decide
1755 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x0_2x2, v2_1x1_1x1_2x0_2x2] <;> norm_num
1756
1757theorem fp2_1x1_2x0_2x1_2x2__2x2 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
1758 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (2, 0), (2, 1)} := by decide
1759 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (2, 0), (2, 1)} := by decide
1760 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_2x1] <;> norm_num
1761
1762theorem v2_1x1_2x0_2x1_2x2 : val 2 {(1, 1), (2, 0), (2, 1), (2, 2)} = (2 : ℚ) := by
1763 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x0_2x1_2x2__1x1
1764 intro d hd hpos
1765 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1766 rcases hd with rfl | rfl | rfl | rfl
1767 · rw [fp2_1x1_2x0_2x1_2x2__1x1] <;> norm_num
1768 · rw [fp2_1x1_2x0_2x1_2x2__2x0] <;> norm_num
1769 · rw [fp2_1x1_2x0_2x1_2x2__2x1] <;> norm_num
1770 · rw [fp2_1x1_2x0_2x1_2x2__2x2] <;> norm_num
1771
1772theorem fp2_1x1_2x0_2x1_3x2__3x2 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1773 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 0), (2, 1), (2, 1)} := by decide
1774 have e2 : missC (3, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 0), (2, 1), (2, 2)} := by decide
1775 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_2x1, v2_1x1_2x0_2x1_2x2] <;> norm_num
1776
1777theorem v2_1x1_2x0_2x1_3x2 : val 2 {(1, 1), (2, 0), (2, 1), (3, 2)} = (7 / 3 : ℚ) := by
1778 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x0_2x1_3x2__1x1
1779 intro d hd hpos
1780 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1781 rcases hd with rfl | rfl | rfl | rfl
1782 · rw [fp2_1x1_2x0_2x1_3x2__1x1] <;> norm_num
1783 · rw [fp2_1x1_2x0_2x1_3x2__2x0] <;> norm_num
1784 · rw [fp2_1x1_2x0_2x1_3x2__2x1] <;> norm_num
1785 · rw [fp2_1x1_2x0_2x1_3x2__3x2] <;> norm_num
1786
1787theorem fp2_1x1_2x0_2x1_4x2__4x2 : firstPatch 2 {(1, 1), (2, 0), (2, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1788 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 0), (2, 1), (3, 1)} := by decide
1789 have e2 : missC (4, 2) ::ₘ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 0), (2, 1), (3, 2)} := by decide
1790 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_3x1, v2_1x1_2x0_2x1_3x2] <;> norm_num
1791
1792theorem v2_1x1_2x0_2x1_4x2 : val 2 {(1, 1), (2, 0), (2, 1), (4, 2)} = (5 / 2 : ℚ) := by
1793 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x0_2x1_4x2__1x1
1794 intro d hd hpos
1795 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1796 rcases hd with rfl | rfl | rfl | rfl
1797 · rw [fp2_1x1_2x0_2x1_4x2__1x1] <;> norm_num
1798 · rw [fp2_1x1_2x0_2x1_4x2__2x0] <;> norm_num
1799 · rw [fp2_1x1_2x0_2x1_4x2__2x1] <;> norm_num
1800 · rw [fp2_1x1_2x0_2x1_4x2__4x2] <;> norm_num
1801
1802theorem fp3_1x1_2x1_3x1_4x2__3x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (3, 1) = (9 / 2 : ℚ) := by
1803 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 1), (4, 2)} := by decide
1804 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 1), (4, 2)} := by decide
1805 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x0_2x1_4x2, v3_1x1_2x1_2x1_4x2] <;> norm_num
1806
1807theorem fp2_1x1_2x1_3x1_3x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 1)} (1, 1) = (5 / 2 : ℚ) := by
1808 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (3, 1), (3, 1)} := by decide
1809 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (3, 1), (3, 1)} := by decide
1810 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x1_3x1] <;> norm_num
1811
1812theorem fp2_1x1_2x1_3x1_3x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
1813 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (3, 1), (3, 1)} := by decide
1814 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (3, 1), (3, 1)} := by decide
1815 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x1_3x1, v2_1x1_1x1_3x1_3x1] <;> norm_num
1816
1817theorem fp2_1x1_2x1_3x1_3x1__3x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 1)} (3, 1) = (3 : ℚ) := by
1818 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 1), (3, 1)} := by decide
1819 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 1), (3, 1)} := by decide
1820 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_3x1, v2_1x1_2x1_2x1_3x1] <;> norm_num
1821
1822theorem v2_1x1_2x1_3x1_3x1 : val 2 {(1, 1), (2, 1), (3, 1), (3, 1)} = (5 / 2 : ℚ) := by
1823 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_3x1_3x1__1x1
1824 intro d hd hpos
1825 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1826 rcases hd with rfl | rfl | rfl | rfl
1827 · rw [fp2_1x1_2x1_3x1_3x1__1x1] <;> norm_num
1828 · rw [fp2_1x1_2x1_3x1_3x1__2x1] <;> norm_num
1829 · rw [fp2_1x1_2x1_3x1_3x1__3x1] <;> norm_num
1830 · rw [fp2_1x1_2x1_3x1_3x1__3x1] <;> norm_num
1831
1832theorem fp3_1x1_2x1_3x1_3x2__1x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (3, 2)} (1, 1) = (11 / 3 : ℚ) := by
1833 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (3, 1), (3, 2)} := by decide
1834 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (3, 1), (3, 2)} := by decide
1835 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_3x1_3x2] <;> norm_num
1836
1837theorem fp3_1x1_2x1_3x1_3x2__2x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (3, 2)} (2, 1) = (23 / 6 : ℚ) := by
1838 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (3, 1), (3, 2)} := by decide
1839 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (3, 1), (3, 2)} := by decide
1840 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_3x1_3x2, v3_1x1_1x1_3x1_3x2] <;> norm_num
1841
1842theorem fp3_1x1_2x1_3x1_3x2__3x1 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (3, 2)} (3, 1) = (38 / 9 : ℚ) := by
1843 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 1), (3, 2)} := by decide
1844 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 1), (3, 2)} := by decide
1845 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x0_2x1_3x2, v3_1x1_2x1_2x1_3x2] <;> norm_num
1846
1847theorem fp3_1x1_2x1_2x2_3x1__1x1 : firstPatch 3 {(1, 1), (2, 1), (2, 2), (3, 1)} (1, 1) = (3 : ℚ) := by
1848 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 2), (3, 1)} := by decide
1849 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 2), (3, 1)} := by decide
1850 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_0x0_2x1_2x2_3x1] <;> norm_num
1851
1852theorem fp3_1x1_2x1_2x2_3x1__2x1 : firstPatch 3 {(1, 1), (2, 1), (2, 2), (3, 1)} (2, 1) = (7 / 2 : ℚ) := by
1853 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 2), (3, 1)} := by decide
1854 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 2), (3, 1)} := by decide
1855 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x0_1x1_2x2_3x1, v3_1x1_1x1_2x2_3x1] <;> norm_num
1856
1857theorem fp3_1x1_2x1_2x2_3x1__2x2 : firstPatch 3 {(1, 1), (2, 1), (2, 2), (3, 1)} (2, 2) = (3 : ℚ) := by
1858 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (2, 1), (3, 1)} := by decide
1859 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (2, 1), (3, 1)} := by decide
1860 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_1x1_2x1_3x1] <;> norm_num
1861
1862theorem fp3_1x1_2x1_2x2_3x1__3x1 : firstPatch 3 {(1, 1), (2, 1), (2, 2), (3, 1)} (3, 1) = (11 / 3 : ℚ) := by
1863 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 1), (2, 2)} := by decide
1864 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 1), (2, 2)} := by decide
1865 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x0_2x1_2x2, v3_1x1_2x1_2x1_2x2] <;> norm_num
1866
1867theorem v3_1x1_2x1_2x2_3x1 : val 3 {(1, 1), (2, 1), (2, 2), (3, 1)} = (3 : ℚ) := by
1868 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_2x2_3x1__1x1
1869 intro d hd hpos
1870 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1871 rcases hd with rfl | rfl | rfl | rfl
1872 · rw [fp3_1x1_2x1_2x2_3x1__1x1] <;> norm_num
1873 · rw [fp3_1x1_2x1_2x2_3x1__2x1] <;> norm_num
1874 · rw [fp3_1x1_2x1_2x2_3x1__2x2] <;> norm_num
1875 · rw [fp3_1x1_2x1_2x2_3x1__3x1] <;> norm_num
1876
1877theorem fp3_1x1_2x1_3x1_3x2__3x2 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (3, 2)} (3, 2) = (11 / 3 : ℚ) := by
1878 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 1), (3, 1)} := by decide
1879 have e2 : missC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 2), (3, 1)} := by decide
1880 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x1_2x1_3x1, v3_1x1_2x1_2x2_3x1] <;> norm_num
1881
1882theorem v3_1x1_2x1_3x1_3x2 : val 3 {(1, 1), (2, 1), (3, 1), (3, 2)} = (11 / 3 : ℚ) := by
1883 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_3x1_3x2__1x1
1884 intro d hd hpos
1885 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1886 rcases hd with rfl | rfl | rfl | rfl
1887 · rw [fp3_1x1_2x1_3x1_3x2__1x1] <;> norm_num
1888 · rw [fp3_1x1_2x1_3x1_3x2__2x1] <;> norm_num
1889 · rw [fp3_1x1_2x1_3x1_3x2__3x1] <;> norm_num
1890 · rw [fp3_1x1_2x1_3x1_3x2__3x2] <;> norm_num
1891
1892theorem fp3_1x1_2x1_3x1_4x2__4x2 : firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (4, 2) = (49 / 12 : ℚ) := by
1893 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 1), (3, 1)} := by decide
1894 have e2 : missC (4, 2) ::ₘ ({(1, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 1), (3, 2)} := by decide
1895 rw [firstPatch, e1, e2, show (3 : ℕ) - 1 = 2 from rfl, v2_1x1_2x1_3x1_3x1, v3_1x1_2x1_3x1_3x2] <;> norm_num
1896
1897theorem v3_1x1_2x1_3x1_4x2 : val 3 {(1, 1), (2, 1), (3, 1), (4, 2)} = (49 / 12 : ℚ) := by
1898 apply val_eq_of_cert 2 _ _ (1, 1) (by decide) (by decide) fp3_1x1_2x1_3x1_4x2__1x1
1899 intro d hd hpos
1900 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1901 rcases hd with rfl | rfl | rfl | rfl
1902 · rw [fp3_1x1_2x1_3x1_4x2__1x1] <;> norm_num
1903 · rw [fp3_1x1_2x1_3x1_4x2__2x1] <;> norm_num
1904 · rw [fp3_1x1_2x1_3x1_4x2__3x1] <;> norm_num
1905 · rw [fp3_1x1_2x1_3x1_4x2__4x2] <;> norm_num
1906
1907/-- **Proposition 7, the note's second witness, values.** With three hits needed, ten items, five
1908failures and four categories, patching `(2,1)` first is strictly better than `(4,2)` first in
1909`{(2,1),(2,1),(2,1),(4,2)}` (`9/2` against `55/12`) and strictly worse in
1910`{(1,1),(2,1),(3,1),(4,2)}` (`25/6` against `49/12`). In the second state `(1,1)` ties `(4,2)` at
1911the optimum `49/12`, so, as with the first witness, a rule ranking `(1,1)` on top is not defeated
1912by this pair; `PatchWitness.prop7_with_context` gives a pair that is. -/
1913theorem prop7_note_context_values :
1914 items {(2, 1), (2, 1), (2, 1), (4, 2)} = 10 ∧ items {(1, 1), (2, 1), (3, 1), (4, 2)} = 10 ∧
1915 fails {(2, 1), (2, 1), (2, 1), (4, 2)} = 5 ∧ fails {(1, 1), (2, 1), (3, 1), (4, 2)} = 5 ∧
1916 firstPatch 3 {(2, 1), (2, 1), (2, 1), (4, 2)} (2, 1) = 9 / 2 ∧
1917 firstPatch 3 {(2, 1), (2, 1), (2, 1), (4, 2)} (4, 2) = 55 / 12 ∧
1918 firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (2, 1) = 25 / 6 ∧
1919 firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (4, 2) = 49 / 12 ∧
1920 firstPatch 3 {(1, 1), (2, 1), (3, 1), (4, 2)} (1, 1) = 49 / 12 ∧
1921 val 3 {(1, 1), (2, 1), (3, 1), (4, 2)} = 49 / 12 :=
1922 ⟨by decide, by decide, by decide, by decide, fp3_2x1_2x1_2x1_4x2__2x1, fp3_2x1_2x1_2x1_4x2__4x2,
1923 fp3_1x1_2x1_3x1_4x2__2x1, fp3_1x1_2x1_3x1_4x2__4x2, fp3_1x1_2x1_3x1_4x2__1x1,
1924 v3_1x1_2x1_3x1_4x2⟩
1925
1926end FeedbackChannel.PatchWitness3