1import FeedbackChannel.PatchDP
2
3/-!
4# Proposition 7 (no index rule is optimal): exact witness values
5
6Source: `paper/evaluation_feedback_lattice.md` (version 0.6), §3, Propositions 7 and 8; Python
7`first_patch_values`, `index_rule_fixture`, `preference_reversals`.
8
9Every value below is computed from the definition of the dynamic programme in
10`FeedbackChannel.PatchDP` (`val`, `firstPatch`): the `v2_…`/`fp2_…` lemmas evaluate the Bellman
11recursion bottom-up on every state the witnesses reach (`val_eq_of_cert`), and the one-hit leaves
12use Theorem 10 (`val_one_eq`). Multiset identities are checked by `decide` and rational arithmetic
13by `norm_num`; nothing is evaluated by compiled code. The lemma section was generated by a script from the
14exact Python programme and is checked here in full.
15
16Lemma names: `v2_2x1_4x2` is `val 2 {(2, 1), (4, 2)}`; `fp2_2x1_4x2__2x1` is
17`firstPatch 2 {(2, 1), (4, 2)} (2, 1)`.
18-/
19
20namespace FeedbackChannel.PatchWitness
21
22open FeedbackChannel.PatchDP
23
24theorem v1_0x0_2x1_4x2 : val 1 {(0, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
25 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
26 intro d hd hd1
27 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
28 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
29 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
30
31theorem fp2_1x1_2x1_4x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
32 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (4, 2)} := by decide
33 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (4, 2)} := by decide
34 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_4x2] <;> norm_num
35
36theorem v1_1x0_1x1_4x2 : val 1 {(1, 0), (1, 1), (4, 2)} = (1 : ℚ) := by
37 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
38 intro d hd hd1
39 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
40 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
41 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
42
43theorem v1_0x0_1x1_4x2 : val 1 {(0, 0), (1, 1), (4, 2)} = (1 : ℚ) := by
44 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
45 intro d hd hd1
46 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
47 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
48 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
49
50theorem fp2_1x1_1x1_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
51 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (4, 2)} := by decide
52 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (4, 2)} := by decide
53 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_4x2] <;> norm_num
54
55theorem v1_1x1_1x1_3x1 : val 1 {(1, 1), (1, 1), (3, 1)} = (1 : ℚ) := by
56 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
57 intro d hd hd1
58 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
59 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
60 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
61
62theorem v1_0x0_1x1_3x2 : val 1 {(0, 0), (1, 1), (3, 2)} = (1 : ℚ) := by
63 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
64 intro d hd hd1
65 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
66 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
67 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
68
69theorem fp2_1x1_1x1_3x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
70 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (3, 2)} := by decide
71 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (3, 2)} := by decide
72 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x2] <;> norm_num
73
74theorem v1_1x1_1x1_2x1 : val 1 {(1, 1), (1, 1), (2, 1)} = (1 : ℚ) := by
75 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
76 intro d hd hd1
77 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
78 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
79 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
80
81theorem v1_0x0_1x1_2x2 : val 1 {(0, 0), (1, 1), (2, 2)} = (1 : ℚ) := by
82 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
83 intro d hd hd1
84 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
85 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
86 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
87
88theorem fp2_1x1_1x1_2x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
89 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 2)} := by decide
90 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 2)} := by decide
91 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x2] <;> norm_num
92
93theorem v1_1x1_1x1_1x1 : val 1 {(1, 1), (1, 1), (1, 1)} = (1 : ℚ) := by
94 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
95 intro d hd hd1
96 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
97 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
98 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
99
100theorem fp2_1x1_1x1_2x2__2x2 : firstPatch 2 {(1, 1), (1, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
101 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1)} := by decide
102 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 2)} := by decide
103 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1] <;> norm_num
104
105theorem v2_1x1_1x1_2x2 : val 2 {(1, 1), (1, 1), (2, 2)} = (2 : ℚ) := by
106 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x2__1x1
107 intro d hd hpos
108 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
109 rcases hd with rfl | rfl | rfl
110 · rw [fp2_1x1_1x1_2x2__1x1] <;> norm_num
111 · rw [fp2_1x1_1x1_2x2__1x1] <;> norm_num
112 · rw [fp2_1x1_1x1_2x2__2x2] <;> norm_num
113
114theorem fp2_1x1_1x1_3x2__3x2 : firstPatch 2 {(1, 1), (1, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
115 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 1)} := by decide
116 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 2)} := by decide
117 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1, v2_1x1_1x1_2x2] <;> norm_num
118
119theorem v2_1x1_1x1_3x2 : val 2 {(1, 1), (1, 1), (3, 2)} = (2 : ℚ) := by
120 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_3x2__1x1
121 intro d hd hpos
122 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
123 rcases hd with rfl | rfl | rfl
124 · rw [fp2_1x1_1x1_3x2__1x1] <;> norm_num
125 · rw [fp2_1x1_1x1_3x2__1x1] <;> norm_num
126 · rw [fp2_1x1_1x1_3x2__3x2] <;> norm_num
127
128theorem fp2_1x1_1x1_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
129 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 1)} := by decide
130 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 2)} := by decide
131 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x1, v2_1x1_1x1_3x2] <;> norm_num
132
133theorem v2_1x1_1x1_4x2 : val 2 {(1, 1), (1, 1), (4, 2)} = (2 : ℚ) := by
134 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_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
138 · rw [fp2_1x1_1x1_4x2__1x1] <;> norm_num
139 · rw [fp2_1x1_1x1_4x2__1x1] <;> norm_num
140 · rw [fp2_1x1_1x1_4x2__4x2] <;> norm_num
141
142theorem fp2_1x1_2x1_4x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
143 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (4, 2)} := by decide
144 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (4, 2)} := by decide
145 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_4x2, v2_1x1_1x1_4x2] <;> norm_num
146
147theorem v1_1x1_2x1_3x1 : val 1 {(1, 1), (2, 1), (3, 1)} = (1 : ℚ) := by
148 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
149 intro d hd hd1
150 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
151 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
152 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
153
154theorem v1_0x0_2x1_3x2 : val 1 {(0, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
155 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
156 intro d hd hd1
157 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
158 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
159 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
160
161theorem fp2_1x1_2x1_3x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
162 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (3, 2)} := by decide
163 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (3, 2)} := by decide
164 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x2] <;> norm_num
165
166theorem v1_1x0_1x1_3x2 : val 1 {(1, 0), (1, 1), (3, 2)} = (1 : ℚ) := by
167 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
168 intro d hd hd1
169 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
170 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
171 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
172
173theorem fp2_1x1_2x1_3x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
174 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (3, 2)} := by decide
175 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (3, 2)} := by decide
176 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x2, v2_1x1_1x1_3x2] <;> norm_num
177
178theorem v1_1x1_2x1_2x1 : val 1 {(1, 1), (2, 1), (2, 1)} = (1 : ℚ) := by
179 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
180 intro d hd hd1
181 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
182 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
183 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
184
185theorem v1_0x0_2x1_2x2 : val 1 {(0, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
186 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
187 intro d hd hd1
188 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
189 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
190 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
191
192theorem fp2_1x1_2x1_2x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
193 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 2)} := by decide
194 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 2)} := by decide
195 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x2] <;> norm_num
196
197theorem v1_1x0_1x1_2x2 : val 1 {(1, 0), (1, 1), (2, 2)} = (1 : ℚ) := by
198 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
199 intro d hd hd1
200 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
201 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
202 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
203
204theorem fp2_1x1_2x1_2x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
205 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 2)} := by decide
206 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 2)} := by decide
207 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x2, v2_1x1_1x1_2x2] <;> norm_num
208
209theorem fp2_1x1_2x1_2x2__2x2 : firstPatch 2 {(1, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
210 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (2, 1)} := by decide
211 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (2, 1)} := by decide
212 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1] <;> norm_num
213
214theorem v2_1x1_2x1_2x2 : val 2 {(1, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
215 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x2__1x1
216 intro d hd hpos
217 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
218 rcases hd with rfl | rfl | rfl
219 · rw [fp2_1x1_2x1_2x2__1x1] <;> norm_num
220 · rw [fp2_1x1_2x1_2x2__2x1] <;> norm_num
221 · rw [fp2_1x1_2x1_2x2__2x2] <;> norm_num
222
223theorem fp2_1x1_2x1_3x2__3x2 : firstPatch 2 {(1, 1), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
224 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 1)} := by decide
225 have e2 : missC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 2)} := by decide
226 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1, v2_1x1_2x1_2x2] <;> norm_num
227
228theorem v2_1x1_2x1_3x2 : val 2 {(1, 1), (2, 1), (3, 2)} = (7 / 3 : ℚ) := by
229 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_3x2__1x1
230 intro d hd hpos
231 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
232 rcases hd with rfl | rfl | rfl
233 · rw [fp2_1x1_2x1_3x2__1x1] <;> norm_num
234 · rw [fp2_1x1_2x1_3x2__2x1] <;> norm_num
235 · rw [fp2_1x1_2x1_3x2__3x2] <;> norm_num
236
237theorem fp2_1x1_2x1_4x2__4x2 : firstPatch 2 {(1, 1), (2, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
238 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 1)} := by decide
239 have e2 : missC (4, 2) ::ₘ ({(1, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 2)} := by decide
240 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x1, v2_1x1_2x1_3x2] <;> norm_num
241
242theorem v2_1x1_2x1_4x2 : val 2 {(1, 1), (2, 1), (4, 2)} = (5 / 2 : ℚ) := by
243 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_4x2__1x1
244 intro d hd hpos
245 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
246 rcases hd with rfl | rfl | rfl
247 · rw [fp2_1x1_2x1_4x2__1x1] <;> norm_num
248 · rw [fp2_1x1_2x1_4x2__2x1] <;> norm_num
249 · rw [fp2_1x1_2x1_4x2__4x2] <;> norm_num
250
251theorem v1_1x0_4x2 : val 1 {(1, 0), (4, 2)} = (5 / 3 : ℚ) := by
252 have hmin : ∀ d ∈ ({(1, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
253 intro d hd hd1
254 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
255 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
256 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
257
258theorem v1_0x0_4x2 : val 1 {(0, 0), (4, 2)} = (5 / 3 : ℚ) := by
259 have hmin : ∀ d ∈ ({(0, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
260 intro d hd hd1
261 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
262 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
263 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
264
265theorem fp2_1x1_4x2__1x1 : firstPatch 2 {(1, 1), (4, 2)} (1, 1) = (8 / 3 : ℚ) := by
266 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (4, 2)} := by decide
267 have e2 : missC (1, 1) ::ₘ ({(1, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (4, 2)} := by decide
268 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_4x2] <;> norm_num
269
270theorem v1_1x1_3x1 : val 1 {(1, 1), (3, 1)} = (1 : ℚ) := by
271 have hmin : ∀ d ∈ ({(1, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
272 intro d hd hd1
273 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
274 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
275 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
276
277theorem v1_0x0_3x2 : val 1 {(0, 0), (3, 2)} = (4 / 3 : ℚ) := by
278 have hmin : ∀ d ∈ ({(0, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
279 intro d hd hd1
280 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
281 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
282 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
283
284theorem fp2_1x1_3x2__1x1 : firstPatch 2 {(1, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
285 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (3, 2)} := by decide
286 have e2 : missC (1, 1) ::ₘ ({(1, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (3, 2)} := by decide
287 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_3x2] <;> norm_num
288
289theorem v1_1x1_2x1 : val 1 {(1, 1), (2, 1)} = (1 : ℚ) := by
290 have hmin : ∀ d ∈ ({(1, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
291 intro d hd hd1
292 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
293 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
294 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
295
296theorem v1_0x0_2x2 : val 1 {(0, 0), (2, 2)} = (1 : ℚ) := by
297 have hmin : ∀ d ∈ ({(0, 0), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
298 intro d hd hd1
299 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
300 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
301 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
302
303theorem fp2_1x1_2x2__1x1 : firstPatch 2 {(1, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
304 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 2)} := by decide
305 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 2)} := by decide
306 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x2] <;> norm_num
307
308theorem v1_1x1_1x1 : val 1 {(1, 1), (1, 1)} = (1 : ℚ) := by
309 have hmin : ∀ d ∈ ({(1, 1), (1, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
310 intro d hd hd1
311 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
312 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
313 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
314
315theorem fp2_1x1_2x2__2x2 : firstPatch 2 {(1, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
316 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1)} := by decide
317 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2)} := by decide
318 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1] <;> norm_num
319
320theorem v2_1x1_2x2 : val 2 {(1, 1), (2, 2)} = (2 : ℚ) := by
321 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x2__1x1
322 intro d hd hpos
323 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
324 rcases hd with rfl | rfl
325 · rw [fp2_1x1_2x2__1x1] <;> norm_num
326 · rw [fp2_1x1_2x2__2x2] <;> norm_num
327
328theorem fp2_1x1_3x2__3x2 : firstPatch 2 {(1, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
329 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1)} := by decide
330 have e2 : missC (3, 2) ::ₘ ({(1, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 2)} := by decide
331 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1, v2_1x1_2x2] <;> norm_num
332
333theorem v2_1x1_3x2 : val 2 {(1, 1), (3, 2)} = (7 / 3 : ℚ) := by
334 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_3x2__1x1
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
338 · rw [fp2_1x1_3x2__1x1] <;> norm_num
339 · rw [fp2_1x1_3x2__3x2] <;> norm_num
340
341theorem fp2_1x1_4x2__4x2 : firstPatch 2 {(1, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
342 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (3, 1)} := by decide
343 have e2 : missC (4, 2) ::ₘ ({(1, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (3, 2)} := by decide
344 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_3x1, v2_1x1_3x2] <;> norm_num
345
346theorem v2_1x1_4x2 : val 2 {(1, 1), (4, 2)} = (8 / 3 : ℚ) := by
347 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_4x2__1x1
348 intro d hd hpos
349 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
350 rcases hd with rfl | rfl
351 · rw [fp2_1x1_4x2__1x1] <;> norm_num
352 · rw [fp2_1x1_4x2__4x2] <;> norm_num
353
354theorem fp2_2x1_4x2__2x1 : firstPatch 2 {(2, 1), (4, 2)} (2, 1) = (19 / 6 : ℚ) := by
355 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (4, 2)} := by decide
356 have e2 : missC (2, 1) ::ₘ ({(2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (4, 2)} := by decide
357 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_4x2, v2_1x1_4x2] <;> norm_num
358
359theorem v1_2x1_3x1 : val 1 {(2, 1), (3, 1)} = (3 / 2 : ℚ) := by
360 have hmin : ∀ d ∈ ({(2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
361 intro d hd hd1
362 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
363 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
364 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
365
366theorem v1_1x0_3x2 : val 1 {(1, 0), (3, 2)} = (4 / 3 : ℚ) := by
367 have hmin : ∀ d ∈ ({(1, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
368 intro d hd hd1
369 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
370 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
371 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
372
373theorem fp2_2x1_3x2__2x1 : firstPatch 2 {(2, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
374 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (3, 2)} := by decide
375 have e2 : missC (2, 1) ::ₘ ({(2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (3, 2)} := by decide
376 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_3x2, v2_1x1_3x2] <;> norm_num
377
378theorem v1_2x1_2x1 : val 1 {(2, 1), (2, 1)} = (3 / 2 : ℚ) := by
379 have hmin : ∀ d ∈ ({(2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
380 intro d hd hd1
381 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
382 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
383 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
384
385theorem v1_1x0_2x2 : val 1 {(1, 0), (2, 2)} = (1 : ℚ) := by
386 have hmin : ∀ d ∈ ({(1, 0), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
387 intro d hd hd1
388 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
389 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
390 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
391
392theorem fp2_2x1_2x2__2x1 : firstPatch 2 {(2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
393 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 2)} := by decide
394 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 2)} := by decide
395 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x2, v2_1x1_2x2] <;> norm_num
396
397theorem fp2_2x1_2x2__2x2 : firstPatch 2 {(2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
398 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1)} := by decide
399 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1)} := by decide
400 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1] <;> norm_num
401
402theorem v2_2x1_2x2 : val 2 {(2, 1), (2, 2)} = (2 : ℚ) := by
403 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x2__2x2
404 intro d hd hpos
405 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
406 rcases hd with rfl | rfl
407 · rw [fp2_2x1_2x2__2x1] <;> norm_num
408 · rw [fp2_2x1_2x2__2x2] <;> norm_num
409
410theorem fp2_2x1_3x2__3x2 : firstPatch 2 {(2, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
411 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1)} := by decide
412 have e2 : missC (3, 2) ::ₘ ({(2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 2)} := by decide
413 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1, v2_2x1_2x2] <;> norm_num
414
415theorem v2_2x1_3x2 : val 2 {(2, 1), (3, 2)} = (8 / 3 : ℚ) := by
416 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_3x2__3x2
417 intro d hd hpos
418 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
419 rcases hd with rfl | rfl
420 · rw [fp2_2x1_3x2__2x1] <;> norm_num
421 · rw [fp2_2x1_3x2__3x2] <;> norm_num
422
423theorem fp2_2x1_4x2__4x2 : firstPatch 2 {(2, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
424 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (3, 1)} := by decide
425 have e2 : missC (4, 2) ::ₘ ({(2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (3, 2)} := by decide
426 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_3x1, v2_2x1_3x2] <;> norm_num
427
428theorem v2_2x1_4x2 : val 2 {(2, 1), (4, 2)} = (37 / 12 : ℚ) := by
429 apply val_eq_of_cert 1 _ _ (4, 2) (by decide) (by decide) fp2_2x1_4x2__4x2
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
433 · rw [fp2_2x1_4x2__2x1] <;> norm_num
434 · rw [fp2_2x1_4x2__4x2] <;> norm_num
435
436theorem v1_1x0_2x1_4x2 : val 1 {(1, 0), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
437 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
438 intro d hd hd1
439 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
440 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
441 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
442
443theorem fp2_2x1_2x1_4x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
444 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (4, 2)} := by decide
445 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (4, 2)} := by decide
446 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_4x2, v2_1x1_2x1_4x2] <;> norm_num
447
448theorem v1_2x1_2x1_3x1 : val 1 {(2, 1), (2, 1), (3, 1)} = (3 / 2 : ℚ) := by
449 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
450 intro d hd hd1
451 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
452 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
453 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
454
455theorem v1_1x0_2x1_3x2 : val 1 {(1, 0), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
456 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
457 intro d hd hd1
458 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
459 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
460 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
461
462theorem fp2_2x1_2x1_3x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
463 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (3, 2)} := by decide
464 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (3, 2)} := by decide
465 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_3x2, v2_1x1_2x1_3x2] <;> norm_num
466
467theorem v1_2x1_2x1_2x1 : val 1 {(2, 1), (2, 1), (2, 1)} = (3 / 2 : ℚ) := by
468 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
469 intro d hd hd1
470 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
471 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
472 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
473
474theorem v1_1x0_2x1_2x2 : val 1 {(1, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
475 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
476 intro d hd hd1
477 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
478 rcases hd with rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
479 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
480
481theorem fp2_2x1_2x1_2x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
482 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 2)} := by decide
483 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 2)} := by decide
484 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x2, v2_1x1_2x1_2x2] <;> norm_num
485
486theorem fp2_2x1_2x1_2x2__2x2 : firstPatch 2 {(2, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
487 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1), (2, 1)} := by decide
488 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1), (2, 1)} := by decide
489 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1] <;> norm_num
490
491theorem v2_2x1_2x1_2x2 : val 2 {(2, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
492 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x1_2x2__2x2
493 intro d hd hpos
494 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
495 rcases hd with rfl | rfl | rfl
496 · rw [fp2_2x1_2x1_2x2__2x1] <;> norm_num
497 · rw [fp2_2x1_2x1_2x2__2x1] <;> norm_num
498 · rw [fp2_2x1_2x1_2x2__2x2] <;> norm_num
499
500theorem fp2_2x1_2x1_3x2__3x2 : firstPatch 2 {(2, 1), (2, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
501 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 1)} := by decide
502 have e2 : missC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 2)} := by decide
503 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x1, v2_2x1_2x1_2x2] <;> norm_num
504
505theorem v2_2x1_2x1_3x2 : val 2 {(2, 1), (2, 1), (3, 2)} = (8 / 3 : ℚ) := by
506 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_2x1_3x2__3x2
507 intro d hd hpos
508 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
509 rcases hd with rfl | rfl | rfl
510 · rw [fp2_2x1_2x1_3x2__2x1] <;> norm_num
511 · rw [fp2_2x1_2x1_3x2__2x1] <;> norm_num
512 · rw [fp2_2x1_2x1_3x2__3x2] <;> norm_num
513
514theorem fp2_2x1_2x1_4x2__4x2 : firstPatch 2 {(2, 1), (2, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
515 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 1)} := by decide
516 have e2 : missC (4, 2) ::ₘ ({(2, 1), (2, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 2)} := by decide
517 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x1, v2_2x1_2x1_3x2] <;> norm_num
518
519theorem v2_2x1_2x1_4x2 : val 2 {(2, 1), (2, 1), (4, 2)} = (3 : ℚ) := by
520 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_4x2__2x1
521 intro d hd hpos
522 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
523 rcases hd with rfl | rfl | rfl
524 · rw [fp2_2x1_2x1_4x2__2x1] <;> norm_num
525 · rw [fp2_2x1_2x1_4x2__2x1] <;> norm_num
526 · rw [fp2_2x1_2x1_4x2__4x2] <;> norm_num
527
528theorem v1_1x0_5x2 : val 1 {(1, 0), (5, 2)} = (2 : ℚ) := by
529 have hmin : ∀ d ∈ ({(1, 0), (5, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (5, 2) ≤ finisher d := by
530 intro d hd hd1
531 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
532 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
533 rw [val_one_eq _ (by decide) (5, 2) (by decide) (by decide) hmin] <;> norm_num
534
535theorem v1_0x0_5x2 : val 1 {(0, 0), (5, 2)} = (2 : ℚ) := by
536 have hmin : ∀ d ∈ ({(0, 0), (5, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (5, 2) ≤ finisher d := by
537 intro d hd hd1
538 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
539 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
540 rw [val_one_eq _ (by decide) (5, 2) (by decide) (by decide) hmin] <;> norm_num
541
542theorem fp2_1x1_5x2__1x1 : firstPatch 2 {(1, 1), (5, 2)} (1, 1) = (3 : ℚ) := by
543 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (5, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (5, 2)} := by decide
544 have e2 : missC (1, 1) ::ₘ ({(1, 1), (5, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (5, 2)} := by decide
545 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_5x2] <;> norm_num
546
547theorem v1_1x1_4x1 : val 1 {(1, 1), (4, 1)} = (1 : ℚ) := by
548 have hmin : ∀ d ∈ ({(1, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
549 intro d hd hd1
550 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
551 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
552 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
553
554theorem fp2_1x1_5x2__5x2 : firstPatch 2 {(1, 1), (5, 2)} (5, 2) = (3 : ℚ) := by
555 have e1 : hitC (5, 2) ::ₘ ({(1, 1), (5, 2)} : Multiset Cat).erase (5, 2) = {(1, 1), (4, 1)} := by decide
556 have e2 : missC (5, 2) ::ₘ ({(1, 1), (5, 2)} : Multiset Cat).erase (5, 2) = {(1, 1), (4, 2)} := by decide
557 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_4x1, v2_1x1_4x2] <;> norm_num
558
559theorem v2_1x1_5x2 : val 2 {(1, 1), (5, 2)} = (3 : ℚ) := by
560 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_5x2__1x1
561 intro d hd hpos
562 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
563 rcases hd with rfl | rfl
564 · rw [fp2_1x1_5x2__1x1] <;> norm_num
565 · rw [fp2_1x1_5x2__5x2] <;> norm_num
566
567theorem fp2_2x1_5x2__2x1 : firstPatch 2 {(2, 1), (5, 2)} (2, 1) = (7 / 2 : ℚ) := by
568 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (5, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (5, 2)} := by decide
569 have e2 : missC (2, 1) ::ₘ ({(2, 1), (5, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (5, 2)} := by decide
570 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_5x2, v2_1x1_5x2] <;> norm_num
571
572theorem v1_2x1_4x1 : val 1 {(2, 1), (4, 1)} = (3 / 2 : ℚ) := by
573 have hmin : ∀ d ∈ ({(2, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
574 intro d hd hd1
575 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
576 rcases hd with rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
577 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
578
579theorem fp2_2x1_5x2__5x2 : firstPatch 2 {(2, 1), (5, 2)} (5, 2) = (69 / 20 : ℚ) := by
580 have e1 : hitC (5, 2) ::ₘ ({(2, 1), (5, 2)} : Multiset Cat).erase (5, 2) = {(2, 1), (4, 1)} := by decide
581 have e2 : missC (5, 2) ::ₘ ({(2, 1), (5, 2)} : Multiset Cat).erase (5, 2) = {(2, 1), (4, 2)} := by decide
582 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_4x1, v2_2x1_4x2] <;> norm_num
583
584theorem v2_2x1_5x2 : val 2 {(2, 1), (5, 2)} = (69 / 20 : ℚ) := by
585 apply val_eq_of_cert 1 _ _ (5, 2) (by decide) (by decide) fp2_2x1_5x2__5x2
586 intro d hd hpos
587 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
588 rcases hd with rfl | rfl
589 · rw [fp2_2x1_5x2__2x1] <;> norm_num
590 · rw [fp2_2x1_5x2__5x2] <;> norm_num
591
592theorem v1_1x0_2x1_4x1_4x2 : val 1 {(1, 0), (2, 1), (4, 1), (4, 2)} = (3 / 2 : ℚ) := by
593 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (4, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
594 intro d hd hd1
595 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
596 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
597 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
598
599theorem v1_0x0_2x1_4x1_4x2 : val 1 {(0, 0), (2, 1), (4, 1), (4, 2)} = (3 / 2 : ℚ) := by
600 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (4, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
601 intro d hd hd1
602 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
603 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
604 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
605
606theorem fp2_1x1_2x1_4x1_4x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (4, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
607 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (4, 1), (4, 2)} := by decide
608 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (4, 1), (4, 2)} := by decide
609 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_4x1_4x2] <;> norm_num
610
611theorem v1_1x0_1x1_4x1_4x2 : val 1 {(1, 0), (1, 1), (4, 1), (4, 2)} = (1 : ℚ) := by
612 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (4, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
613 intro d hd hd1
614 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
615 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
616 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
617
618theorem v1_0x0_1x1_4x1_4x2 : val 1 {(0, 0), (1, 1), (4, 1), (4, 2)} = (1 : ℚ) := by
619 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (4, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
620 intro d hd hd1
621 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
622 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
623 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
624
625theorem fp2_1x1_1x1_4x1_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (4, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
626 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (4, 1), (4, 2)} := by decide
627 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (4, 1), (4, 2)} := by decide
628 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_4x1_4x2] <;> norm_num
629
630theorem v1_1x1_1x1_3x0_4x2 : val 1 {(1, 1), (1, 1), (3, 0), (4, 2)} = (1 : ℚ) := by
631 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (3, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
632 intro d hd hd1
633 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
634 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
635 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
636
637theorem v1_0x0_1x1_3x1_4x2 : val 1 {(0, 0), (1, 1), (3, 1), (4, 2)} = (1 : ℚ) := by
638 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
639 intro d hd hd1
640 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
641 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
642 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
643
644theorem fp2_1x1_1x1_3x1_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
645 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
646 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
647 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x1_4x2] <;> norm_num
648
649theorem v1_1x1_1x1_2x0_4x2 : val 1 {(1, 1), (1, 1), (2, 0), (4, 2)} = (1 : ℚ) := by
650 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
651 intro d hd hd1
652 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
653 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
654 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
655
656theorem v1_0x0_1x1_2x1_4x2 : val 1 {(0, 0), (1, 1), (2, 1), (4, 2)} = (1 : ℚ) := by
657 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
658 intro d hd hd1
659 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
660 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
661 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
662
663theorem fp2_1x1_1x1_2x1_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
664 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
665 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
666 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_4x2] <;> norm_num
667
668theorem v1_1x0_1x1_1x1_4x2 : val 1 {(1, 0), (1, 1), (1, 1), (4, 2)} = (1 : ℚ) := by
669 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
670 intro d hd hd1
671 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
672 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
673 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
674
675theorem v1_0x0_1x1_1x1_4x2 : val 1 {(0, 0), (1, 1), (1, 1), (4, 2)} = (1 : ℚ) := by
676 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
677 intro d hd hd1
678 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
679 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
680 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
681
682theorem fp2_1x1_1x1_1x1_4x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (4, 2)} (1, 1) = (2 : ℚ) := by
683 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
684 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
685 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_4x2] <;> norm_num
686
687theorem v1_1x1_1x1_1x1_3x1 : val 1 {(1, 1), (1, 1), (1, 1), (3, 1)} = (1 : ℚ) := by
688 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
689 intro d hd hd1
690 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
691 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
692 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
693
694theorem v1_0x0_1x1_1x1_3x2 : val 1 {(0, 0), (1, 1), (1, 1), (3, 2)} = (1 : ℚ) := by
695 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (3, 2)} : 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_3x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
702 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
703 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
704 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_3x2] <;> norm_num
705
706theorem v1_1x1_1x1_1x1_2x1 : val 1 {(1, 1), (1, 1), (1, 1), (2, 1)} = (1 : ℚ) := by
707 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
708 intro d hd hd1
709 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
710 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
711 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
712
713theorem v1_0x0_1x1_1x1_2x2 : val 1 {(0, 0), (1, 1), (1, 1), (2, 2)} = (1 : ℚ) := by
714 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
715 intro d hd hd1
716 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
717 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
718 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
719
720theorem fp2_1x1_1x1_1x1_2x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
721 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
722 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
723 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_1x1_2x2] <;> norm_num
724
725theorem v1_1x1_1x1_1x1_1x1 : val 1 {(1, 1), (1, 1), (1, 1), (1, 1)} = (1 : ℚ) := by
726 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1), (1, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
727 intro d hd hd1
728 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
729 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
730 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
731
732theorem fp2_1x1_1x1_1x1_2x2__2x2 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
733 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
734 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
735 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_1x1] <;> norm_num
736
737theorem v2_1x1_1x1_1x1_2x2 : val 2 {(1, 1), (1, 1), (1, 1), (2, 2)} = (2 : ℚ) := by
738 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_2x2__1x1
739 intro d hd hpos
740 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
741 rcases hd with rfl | rfl | rfl | rfl
742 · rw [fp2_1x1_1x1_1x1_2x2__1x1] <;> norm_num
743 · rw [fp2_1x1_1x1_1x1_2x2__1x1] <;> norm_num
744 · rw [fp2_1x1_1x1_1x1_2x2__1x1] <;> norm_num
745 · rw [fp2_1x1_1x1_1x1_2x2__2x2] <;> norm_num
746
747theorem fp2_1x1_1x1_1x1_3x2__3x2 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
748 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
749 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
750 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_2x1, v2_1x1_1x1_1x1_2x2] <;> norm_num
751
752theorem v2_1x1_1x1_1x1_3x2 : val 2 {(1, 1), (1, 1), (1, 1), (3, 2)} = (2 : ℚ) := by
753 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_3x2__1x1
754 intro d hd hpos
755 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
756 rcases hd with rfl | rfl | rfl | rfl
757 · rw [fp2_1x1_1x1_1x1_3x2__1x1] <;> norm_num
758 · rw [fp2_1x1_1x1_1x1_3x2__1x1] <;> norm_num
759 · rw [fp2_1x1_1x1_1x1_3x2__1x1] <;> norm_num
760 · rw [fp2_1x1_1x1_1x1_3x2__3x2] <;> norm_num
761
762theorem fp2_1x1_1x1_1x1_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (1, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
763 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
764 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
765 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_3x1, v2_1x1_1x1_1x1_3x2] <;> norm_num
766
767theorem v2_1x1_1x1_1x1_4x2 : val 2 {(1, 1), (1, 1), (1, 1), (4, 2)} = (2 : ℚ) := by
768 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_1x1_4x2__1x1
769 intro d hd hpos
770 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
771 rcases hd with rfl | rfl | rfl | rfl
772 · rw [fp2_1x1_1x1_1x1_4x2__1x1] <;> norm_num
773 · rw [fp2_1x1_1x1_1x1_4x2__1x1] <;> norm_num
774 · rw [fp2_1x1_1x1_1x1_4x2__1x1] <;> norm_num
775 · rw [fp2_1x1_1x1_1x1_4x2__4x2] <;> norm_num
776
777theorem fp2_1x1_1x1_2x1_4x2__2x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
778 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
779 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
780 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_4x2, v2_1x1_1x1_1x1_4x2] <;> norm_num
781
782theorem v1_1x1_1x1_2x1_3x1 : val 1 {(1, 1), (1, 1), (2, 1), (3, 1)} = (1 : ℚ) := by
783 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
784 intro d hd hd1
785 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
786 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
787 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
788
789theorem v1_0x0_1x1_2x1_3x2 : val 1 {(0, 0), (1, 1), (2, 1), (3, 2)} = (1 : ℚ) := by
790 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
791 intro d hd hd1
792 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
793 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
794 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
795
796theorem fp2_1x1_1x1_2x1_3x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
797 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
798 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
799 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_3x2] <;> norm_num
800
801theorem v1_1x0_1x1_1x1_3x2 : val 1 {(1, 0), (1, 1), (1, 1), (3, 2)} = (1 : ℚ) := by
802 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
803 intro d hd hd1
804 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
805 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
806 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
807
808theorem fp2_1x1_1x1_2x1_3x2__2x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
809 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
810 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
811 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_3x2, v2_1x1_1x1_1x1_3x2] <;> norm_num
812
813theorem v1_1x1_1x1_2x1_2x1 : val 1 {(1, 1), (1, 1), (2, 1), (2, 1)} = (1 : ℚ) := by
814 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
815 intro d hd hd1
816 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
817 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
818 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
819
820theorem v1_0x0_1x1_2x1_2x2 : val 1 {(0, 0), (1, 1), (2, 1), (2, 2)} = (1 : ℚ) := by
821 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
822 intro d hd hd1
823 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
824 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
825 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
826
827theorem fp2_1x1_1x1_2x1_2x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
828 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
829 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
830 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x1_2x2] <;> norm_num
831
832theorem v1_1x0_1x1_1x1_2x2 : val 1 {(1, 0), (1, 1), (1, 1), (2, 2)} = (1 : ℚ) := by
833 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (1, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
834 intro d hd hd1
835 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
836 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
837 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
838
839theorem fp2_1x1_1x1_2x1_2x2__2x1 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
840 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
841 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
842 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_1x1_2x2, v2_1x1_1x1_1x1_2x2] <;> norm_num
843
844theorem fp2_1x1_1x1_2x1_2x2__2x2 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
845 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
846 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
847 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_2x1] <;> norm_num
848
849theorem v2_1x1_1x1_2x1_2x2 : val 2 {(1, 1), (1, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
850 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x1_2x2__1x1
851 intro d hd hpos
852 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
853 rcases hd with rfl | rfl | rfl | rfl
854 · rw [fp2_1x1_1x1_2x1_2x2__1x1] <;> norm_num
855 · rw [fp2_1x1_1x1_2x1_2x2__1x1] <;> norm_num
856 · rw [fp2_1x1_1x1_2x1_2x2__2x1] <;> norm_num
857 · rw [fp2_1x1_1x1_2x1_2x2__2x2] <;> norm_num
858
859theorem fp2_1x1_1x1_2x1_3x2__3x2 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
860 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
861 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
862 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_2x1, v2_1x1_1x1_2x1_2x2] <;> norm_num
863
864theorem v2_1x1_1x1_2x1_3x2 : val 2 {(1, 1), (1, 1), (2, 1), (3, 2)} = (2 : ℚ) := by
865 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x1_3x2__1x1
866 intro d hd hpos
867 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
868 rcases hd with rfl | rfl | rfl | rfl
869 · rw [fp2_1x1_1x1_2x1_3x2__1x1] <;> norm_num
870 · rw [fp2_1x1_1x1_2x1_3x2__1x1] <;> norm_num
871 · rw [fp2_1x1_1x1_2x1_3x2__2x1] <;> norm_num
872 · rw [fp2_1x1_1x1_2x1_3x2__3x2] <;> norm_num
873
874theorem fp2_1x1_1x1_2x1_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (2, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
875 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
876 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
877 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_3x1, v2_1x1_1x1_2x1_3x2] <;> norm_num
878
879theorem v2_1x1_1x1_2x1_4x2 : val 2 {(1, 1), (1, 1), (2, 1), (4, 2)} = (2 : ℚ) := by
880 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x1_4x2__1x1
881 intro d hd hpos
882 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
883 rcases hd with rfl | rfl | rfl | rfl
884 · rw [fp2_1x1_1x1_2x1_4x2__1x1] <;> norm_num
885 · rw [fp2_1x1_1x1_2x1_4x2__1x1] <;> norm_num
886 · rw [fp2_1x1_1x1_2x1_4x2__2x1] <;> norm_num
887 · rw [fp2_1x1_1x1_2x1_4x2__4x2] <;> norm_num
888
889theorem fp2_1x1_1x1_3x1_4x2__3x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (4, 2)} (3, 1) = (8 / 3 : ℚ) := by
890 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
891 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
892 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_4x2, v2_1x1_1x1_2x1_4x2] <;> norm_num
893
894theorem v1_1x1_1x1_3x1_3x1 : val 1 {(1, 1), (1, 1), (3, 1), (3, 1)} = (1 : ℚ) := by
895 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
896 intro d hd hd1
897 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
898 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
899 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
900
901theorem v1_0x0_1x1_3x1_3x2 : val 1 {(0, 0), (1, 1), (3, 1), (3, 2)} = (1 : ℚ) := by
902 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
903 intro d hd hd1
904 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
905 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
906 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
907
908theorem fp2_1x1_1x1_3x1_3x2__1x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (3, 2)} (1, 1) = (2 : ℚ) := by
909 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
910 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
911 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x1_3x2] <;> norm_num
912
913theorem v1_1x1_1x1_2x0_3x2 : val 1 {(1, 1), (1, 1), (2, 0), (3, 2)} = (1 : ℚ) := by
914 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
915 intro d hd hd1
916 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
917 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
918 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
919
920theorem fp2_1x1_1x1_3x1_3x2__3x1 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (3, 2)} (3, 1) = (8 / 3 : ℚ) := by
921 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
922 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
923 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_3x2, v2_1x1_1x1_2x1_3x2] <;> norm_num
924
925theorem v1_0x0_1x1_2x2_3x1 : val 1 {(0, 0), (1, 1), (2, 2), (3, 1)} = (1 : ℚ) := by
926 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
927 intro d hd hd1
928 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
929 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
930 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
931
932theorem fp2_1x1_1x1_2x2_3x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (3, 1)} (1, 1) = (2 : ℚ) := by
933 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
934 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
935 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x2_3x1] <;> norm_num
936
937theorem fp2_1x1_1x1_2x2_3x1__2x2 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
938 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
939 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
940 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_3x1] <;> norm_num
941
942theorem v1_1x1_1x1_2x0_2x2 : val 1 {(1, 1), (1, 1), (2, 0), (2, 2)} = (1 : ℚ) := by
943 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 0), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
944 intro d hd hd1
945 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
946 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
947 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
948
949theorem fp2_1x1_1x1_2x2_3x1__3x1 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
950 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
951 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
952 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x0_2x2, v2_1x1_1x1_2x1_2x2] <;> norm_num
953
954theorem v2_1x1_1x1_2x2_3x1 : val 2 {(1, 1), (1, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
955 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x2_3x1__1x1
956 intro d hd hpos
957 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
958 rcases hd with rfl | rfl | rfl | rfl
959 · rw [fp2_1x1_1x1_2x2_3x1__1x1] <;> norm_num
960 · rw [fp2_1x1_1x1_2x2_3x1__1x1] <;> norm_num
961 · rw [fp2_1x1_1x1_2x2_3x1__2x2] <;> norm_num
962 · rw [fp2_1x1_1x1_2x2_3x1__3x1] <;> norm_num
963
964theorem fp2_1x1_1x1_3x1_3x2__3x2 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
965 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
966 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
967 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_3x1, v2_1x1_1x1_2x2_3x1] <;> norm_num
968
969theorem v2_1x1_1x1_3x1_3x2 : val 2 {(1, 1), (1, 1), (3, 1), (3, 2)} = (2 : ℚ) := by
970 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_3x1_3x2__1x1
971 intro d hd hpos
972 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
973 rcases hd with rfl | rfl | rfl | rfl
974 · rw [fp2_1x1_1x1_3x1_3x2__1x1] <;> norm_num
975 · rw [fp2_1x1_1x1_3x1_3x2__1x1] <;> norm_num
976 · rw [fp2_1x1_1x1_3x1_3x2__3x1] <;> norm_num
977 · rw [fp2_1x1_1x1_3x1_3x2__3x2] <;> norm_num
978
979theorem fp2_1x1_1x1_3x1_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (3, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
980 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
981 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
982 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x1_3x1, v2_1x1_1x1_3x1_3x2] <;> norm_num
983
984theorem v2_1x1_1x1_3x1_4x2 : val 2 {(1, 1), (1, 1), (3, 1), (4, 2)} = (2 : ℚ) := by
985 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_3x1_4x2__1x1
986 intro d hd hpos
987 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
988 rcases hd with rfl | rfl | rfl | rfl
989 · rw [fp2_1x1_1x1_3x1_4x2__1x1] <;> norm_num
990 · rw [fp2_1x1_1x1_3x1_4x2__1x1] <;> norm_num
991 · rw [fp2_1x1_1x1_3x1_4x2__3x1] <;> norm_num
992 · rw [fp2_1x1_1x1_3x1_4x2__4x2] <;> norm_num
993
994theorem fp2_1x1_1x1_4x1_4x2__4x1 : firstPatch 2 {(1, 1), (1, 1), (4, 1), (4, 2)} (4, 1) = (11 / 4 : ℚ) := by
995 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (3, 0), (4, 2)} := by decide
996 have e2 : missC (4, 1) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (3, 1), (4, 2)} := by decide
997 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x0_4x2, v2_1x1_1x1_3x1_4x2] <;> norm_num
998
999theorem v1_1x1_1x1_3x1_4x1 : val 1 {(1, 1), (1, 1), (3, 1), (4, 1)} = (1 : ℚ) := by
1000 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (3, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1001 intro d hd hd1
1002 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1003 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1004 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1005
1006theorem v1_0x0_1x1_3x2_4x1 : val 1 {(0, 0), (1, 1), (3, 2), (4, 1)} = (1 : ℚ) := by
1007 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (3, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1008 intro d hd hd1
1009 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1010 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1011 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1012
1013theorem fp2_1x1_1x1_3x2_4x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (3, 2), (4, 1)} (1, 1) = (2 : ℚ) := by
1014 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (3, 2), (4, 1)} := by decide
1015 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (3, 2), (4, 1)} := by decide
1016 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_3x2_4x1] <;> norm_num
1017
1018theorem v1_1x1_1x1_2x1_4x1 : val 1 {(1, 1), (1, 1), (2, 1), (4, 1)} = (1 : ℚ) := by
1019 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1020 intro d hd hd1
1021 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1022 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1023 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1024
1025theorem v1_0x0_1x1_2x2_4x1 : val 1 {(0, 0), (1, 1), (2, 2), (4, 1)} = (1 : ℚ) := by
1026 have hmin : ∀ d ∈ ({(0, 0), (1, 1), (2, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1027 intro d hd hd1
1028 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1029 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1030 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1031
1032theorem fp2_1x1_1x1_2x2_4x1__1x1 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (4, 1)} (1, 1) = (2 : ℚ) := by
1033 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (1, 1), (2, 2), (4, 1)} := by decide
1034 have e2 : missC (1, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (1, 1), (2, 2), (4, 1)} := by decide
1035 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_1x1_2x2_4x1] <;> norm_num
1036
1037theorem v1_1x1_1x1_1x1_4x1 : val 1 {(1, 1), (1, 1), (1, 1), (4, 1)} = (1 : ℚ) := by
1038 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (1, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1039 intro d hd hd1
1040 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1041 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1042 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1043
1044theorem fp2_1x1_1x1_2x2_4x1__2x2 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (4, 1)} (2, 2) = (2 : ℚ) := by
1045 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 1), (4, 1)} := by decide
1046 have e2 : missC (2, 2) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (1, 2), (4, 1)} := by decide
1047 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_1x1_4x1] <;> norm_num
1048
1049theorem v1_1x1_1x1_2x2_3x0 : val 1 {(1, 1), (1, 1), (2, 2), (3, 0)} = (1 : ℚ) := by
1050 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (2, 2), (3, 0)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1051 intro d hd hd1
1052 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1053 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1054 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1055
1056theorem fp2_1x1_1x1_2x2_4x1__4x1 : firstPatch 2 {(1, 1), (1, 1), (2, 2), (4, 1)} (4, 1) = (11 / 4 : ℚ) := by
1057 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (2, 2), (3, 0)} := by decide
1058 have e2 : missC (4, 1) ::ₘ ({(1, 1), (1, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (2, 2), (3, 1)} := by decide
1059 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x2_3x0, v2_1x1_1x1_2x2_3x1] <;> norm_num
1060
1061theorem v2_1x1_1x1_2x2_4x1 : val 2 {(1, 1), (1, 1), (2, 2), (4, 1)} = (2 : ℚ) := by
1062 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_2x2_4x1__1x1
1063 intro d hd hpos
1064 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1065 rcases hd with rfl | rfl | rfl | rfl
1066 · rw [fp2_1x1_1x1_2x2_4x1__1x1] <;> norm_num
1067 · rw [fp2_1x1_1x1_2x2_4x1__1x1] <;> norm_num
1068 · rw [fp2_1x1_1x1_2x2_4x1__2x2] <;> norm_num
1069 · rw [fp2_1x1_1x1_2x2_4x1__4x1] <;> norm_num
1070
1071theorem fp2_1x1_1x1_3x2_4x1__3x2 : firstPatch 2 {(1, 1), (1, 1), (3, 2), (4, 1)} (3, 2) = (7 / 3 : ℚ) := by
1072 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 1), (4, 1)} := by decide
1073 have e2 : missC (3, 2) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(1, 1), (1, 1), (2, 2), (4, 1)} := by decide
1074 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_4x1, v2_1x1_1x1_2x2_4x1] <;> norm_num
1075
1076theorem v1_1x1_1x1_3x0_3x2 : val 1 {(1, 1), (1, 1), (3, 0), (3, 2)} = (1 : ℚ) := by
1077 have hmin : ∀ d ∈ ({(1, 1), (1, 1), (3, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1078 intro d hd hd1
1079 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1080 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1081 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1082
1083theorem fp2_1x1_1x1_3x2_4x1__4x1 : firstPatch 2 {(1, 1), (1, 1), (3, 2), (4, 1)} (4, 1) = (11 / 4 : ℚ) := by
1084 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (3, 0), (3, 2)} := by decide
1085 have e2 : missC (4, 1) ::ₘ ({(1, 1), (1, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (1, 1), (3, 1), (3, 2)} := by decide
1086 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x0_3x2, v2_1x1_1x1_3x1_3x2] <;> norm_num
1087
1088theorem v2_1x1_1x1_3x2_4x1 : val 2 {(1, 1), (1, 1), (3, 2), (4, 1)} = (2 : ℚ) := by
1089 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_3x2_4x1__1x1
1090 intro d hd hpos
1091 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1092 rcases hd with rfl | rfl | rfl | rfl
1093 · rw [fp2_1x1_1x1_3x2_4x1__1x1] <;> norm_num
1094 · rw [fp2_1x1_1x1_3x2_4x1__1x1] <;> norm_num
1095 · rw [fp2_1x1_1x1_3x2_4x1__3x2] <;> norm_num
1096 · rw [fp2_1x1_1x1_3x2_4x1__4x1] <;> norm_num
1097
1098theorem fp2_1x1_1x1_4x1_4x2__4x2 : firstPatch 2 {(1, 1), (1, 1), (4, 1), (4, 2)} (4, 2) = (5 / 2 : ℚ) := by
1099 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 1), (4, 1)} := by decide
1100 have e2 : missC (4, 2) ::ₘ ({(1, 1), (1, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (1, 1), (3, 2), (4, 1)} := by decide
1101 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x1_4x1, v2_1x1_1x1_3x2_4x1] <;> norm_num
1102
1103theorem v2_1x1_1x1_4x1_4x2 : val 2 {(1, 1), (1, 1), (4, 1), (4, 2)} = (2 : ℚ) := by
1104 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_1x1_4x1_4x2__1x1
1105 intro d hd hpos
1106 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1107 rcases hd with rfl | rfl | rfl | rfl
1108 · rw [fp2_1x1_1x1_4x1_4x2__1x1] <;> norm_num
1109 · rw [fp2_1x1_1x1_4x1_4x2__1x1] <;> norm_num
1110 · rw [fp2_1x1_1x1_4x1_4x2__4x1] <;> norm_num
1111 · rw [fp2_1x1_1x1_4x1_4x2__4x2] <;> norm_num
1112
1113theorem fp2_1x1_2x1_4x1_4x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (4, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
1114 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (4, 1), (4, 2)} := by decide
1115 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (4, 1), (4, 2)} := by decide
1116 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_4x1_4x2, v2_1x1_1x1_4x1_4x2] <;> norm_num
1117
1118theorem v1_1x1_2x1_3x0_4x2 : val 1 {(1, 1), (2, 1), (3, 0), (4, 2)} = (1 : ℚ) := by
1119 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (3, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1120 intro d hd hd1
1121 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1122 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1123 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1124
1125theorem v1_0x0_2x1_3x1_4x2 : val 1 {(0, 0), (2, 1), (3, 1), (4, 2)} = (3 / 2 : ℚ) := by
1126 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1127 intro d hd hd1
1128 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1129 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1130 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1131
1132theorem fp2_1x1_2x1_3x1_4x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
1133 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
1134 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
1135 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x1_4x2] <;> norm_num
1136
1137theorem v1_1x0_1x1_3x1_4x2 : val 1 {(1, 0), (1, 1), (3, 1), (4, 2)} = (1 : ℚ) := by
1138 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1139 intro d hd hd1
1140 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1141 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1142 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1143
1144theorem fp2_1x1_2x1_3x1_4x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
1145 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
1146 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
1147 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x1_4x2, v2_1x1_1x1_3x1_4x2] <;> norm_num
1148
1149theorem v1_1x1_2x0_2x1_4x2 : val 1 {(1, 1), (2, 0), (2, 1), (4, 2)} = (1 : ℚ) := by
1150 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1151 intro d hd hd1
1152 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1153 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1154 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1155
1156theorem v1_0x0_2x1_2x1_4x2 : val 1 {(0, 0), (2, 1), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
1157 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1158 intro d hd hd1
1159 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1160 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1161 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1162
1163theorem fp2_1x1_2x1_2x1_4x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (4, 2)} (1, 1) = (5 / 2 : ℚ) := by
1164 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
1165 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
1166 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_4x2] <;> norm_num
1167
1168theorem v1_1x0_1x1_2x1_4x2 : val 1 {(1, 0), (1, 1), (2, 1), (4, 2)} = (1 : ℚ) := by
1169 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1170 intro d hd hd1
1171 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1172 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1173 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1174
1175theorem fp2_1x1_2x1_2x1_4x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (4, 2)} (2, 1) = (5 / 2 : ℚ) := by
1176 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
1177 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
1178 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_4x2, v2_1x1_1x1_2x1_4x2] <;> norm_num
1179
1180theorem v1_1x1_2x1_2x1_3x1 : val 1 {(1, 1), (2, 1), (2, 1), (3, 1)} = (1 : ℚ) := by
1181 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1182 intro d hd hd1
1183 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1184 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1185 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1186
1187theorem v1_0x0_2x1_2x1_3x2 : val 1 {(0, 0), (2, 1), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
1188 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1189 intro d hd hd1
1190 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1191 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1192 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1193
1194theorem fp2_1x1_2x1_2x1_3x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1195 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
1196 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
1197 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_3x2] <;> norm_num
1198
1199theorem v1_1x0_1x1_2x1_3x2 : val 1 {(1, 0), (1, 1), (2, 1), (3, 2)} = (1 : ℚ) := by
1200 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1201 intro d hd hd1
1202 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1203 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1204 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1205
1206theorem fp2_1x1_2x1_2x1_3x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
1207 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
1208 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
1209 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_3x2, v2_1x1_1x1_2x1_3x2] <;> norm_num
1210
1211theorem v1_1x1_2x1_2x1_2x1 : val 1 {(1, 1), (2, 1), (2, 1), (2, 1)} = (1 : ℚ) := by
1212 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1213 intro d hd hd1
1214 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1215 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1216 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1217
1218theorem v1_0x0_2x1_2x1_2x2 : val 1 {(0, 0), (2, 1), (2, 1), (2, 2)} = (1 : ℚ) := by
1219 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1220 intro d hd hd1
1221 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1222 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1223 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1224
1225theorem fp2_1x1_2x1_2x1_2x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (2, 2)} (1, 1) = (2 : ℚ) := by
1226 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
1227 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
1228 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x1_2x2] <;> norm_num
1229
1230theorem v1_1x0_1x1_2x1_2x2 : val 1 {(1, 0), (1, 1), (2, 1), (2, 2)} = (1 : ℚ) := by
1231 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1232 intro d hd hd1
1233 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1234 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1235 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1236
1237theorem fp2_1x1_2x1_2x1_2x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
1238 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
1239 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
1240 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x1_2x2, v2_1x1_1x1_2x1_2x2] <;> norm_num
1241
1242theorem fp2_1x1_2x1_2x1_2x2__2x2 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
1243 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
1244 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
1245 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_2x1] <;> norm_num
1246
1247theorem v2_1x1_2x1_2x1_2x2 : val 2 {(1, 1), (2, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
1248 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x1_2x2__1x1
1249 intro d hd hpos
1250 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1251 rcases hd with rfl | rfl | rfl | rfl
1252 · rw [fp2_1x1_2x1_2x1_2x2__1x1] <;> norm_num
1253 · rw [fp2_1x1_2x1_2x1_2x2__2x1] <;> norm_num
1254 · rw [fp2_1x1_2x1_2x1_2x2__2x1] <;> norm_num
1255 · rw [fp2_1x1_2x1_2x1_2x2__2x2] <;> norm_num
1256
1257theorem fp2_1x1_2x1_2x1_3x2__3x2 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1258 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
1259 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
1260 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_2x1, v2_1x1_2x1_2x1_2x2] <;> norm_num
1261
1262theorem v2_1x1_2x1_2x1_3x2 : val 2 {(1, 1), (2, 1), (2, 1), (3, 2)} = (7 / 3 : ℚ) := by
1263 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x1_3x2__1x1
1264 intro d hd hpos
1265 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1266 rcases hd with rfl | rfl | rfl | rfl
1267 · rw [fp2_1x1_2x1_2x1_3x2__1x1] <;> norm_num
1268 · rw [fp2_1x1_2x1_2x1_3x2__2x1] <;> norm_num
1269 · rw [fp2_1x1_2x1_2x1_3x2__2x1] <;> norm_num
1270 · rw [fp2_1x1_2x1_2x1_3x2__3x2] <;> norm_num
1271
1272theorem fp2_1x1_2x1_2x1_4x2__4x2 : firstPatch 2 {(1, 1), (2, 1), (2, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1273 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
1274 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
1275 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_3x1, v2_1x1_2x1_2x1_3x2] <;> norm_num
1276
1277theorem v2_1x1_2x1_2x1_4x2 : val 2 {(1, 1), (2, 1), (2, 1), (4, 2)} = (5 / 2 : ℚ) := by
1278 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x1_4x2__1x1
1279 intro d hd hpos
1280 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1281 rcases hd with rfl | rfl | rfl | rfl
1282 · rw [fp2_1x1_2x1_2x1_4x2__1x1] <;> norm_num
1283 · rw [fp2_1x1_2x1_2x1_4x2__2x1] <;> norm_num
1284 · rw [fp2_1x1_2x1_2x1_4x2__2x1] <;> norm_num
1285 · rw [fp2_1x1_2x1_2x1_4x2__4x2] <;> norm_num
1286
1287theorem fp2_1x1_2x1_3x1_4x2__3x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (4, 2)} (3, 1) = (3 : ℚ) := by
1288 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
1289 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
1290 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_4x2, v2_1x1_2x1_2x1_4x2] <;> norm_num
1291
1292theorem v1_1x1_2x1_3x1_3x1 : val 1 {(1, 1), (2, 1), (3, 1), (3, 1)} = (1 : ℚ) := by
1293 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1294 intro d hd hd1
1295 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1296 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1297 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1298
1299theorem v1_0x0_2x1_3x1_3x2 : val 1 {(0, 0), (2, 1), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
1300 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1301 intro d hd hd1
1302 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1303 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1304 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1305
1306theorem fp2_1x1_2x1_3x1_3x2__1x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1307 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
1308 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
1309 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x1_3x2] <;> norm_num
1310
1311theorem v1_1x0_1x1_3x1_3x2 : val 1 {(1, 0), (1, 1), (3, 1), (3, 2)} = (1 : ℚ) := by
1312 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1313 intro d hd hd1
1314 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1315 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1316 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1317
1318theorem fp2_1x1_2x1_3x1_3x2__2x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 2)} (2, 1) = (5 / 2 : ℚ) := by
1319 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
1320 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
1321 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x1_3x2, v2_1x1_1x1_3x1_3x2] <;> norm_num
1322
1323theorem v1_1x1_2x0_2x1_3x2 : val 1 {(1, 1), (2, 0), (2, 1), (3, 2)} = (1 : ℚ) := by
1324 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1325 intro d hd hd1
1326 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1327 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1328 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1329
1330theorem fp2_1x1_2x1_3x1_3x2__3x1 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 2)} (3, 1) = (26 / 9 : ℚ) := by
1331 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
1332 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
1333 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_3x2, v2_1x1_2x1_2x1_3x2] <;> norm_num
1334
1335theorem v1_0x0_2x1_2x2_3x1 : val 1 {(0, 0), (2, 1), (2, 2), (3, 1)} = (1 : ℚ) := by
1336 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1337 intro d hd hd1
1338 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1339 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1340 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1341
1342theorem fp2_1x1_2x1_2x2_3x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (3, 1)} (1, 1) = (2 : ℚ) := by
1343 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
1344 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
1345 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x2_3x1] <;> norm_num
1346
1347theorem v1_1x0_1x1_2x2_3x1 : val 1 {(1, 0), (1, 1), (2, 2), (3, 1)} = (1 : ℚ) := by
1348 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1349 intro d hd hd1
1350 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1351 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1352 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1353
1354theorem fp2_1x1_2x1_2x2_3x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
1355 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
1356 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
1357 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x2_3x1, v2_1x1_1x1_2x2_3x1] <;> norm_num
1358
1359theorem fp2_1x1_2x1_2x2_3x1__2x2 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
1360 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
1361 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
1362 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_3x1] <;> norm_num
1363
1364theorem v1_1x1_2x0_2x1_2x2 : val 1 {(1, 1), (2, 0), (2, 1), (2, 2)} = (1 : ℚ) := by
1365 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1366 intro d hd hd1
1367 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1368 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1369 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1370
1371theorem fp2_1x1_2x1_2x2_3x1__3x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1372 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
1373 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
1374 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x1_2x2, v2_1x1_2x1_2x1_2x2] <;> norm_num
1375
1376theorem v2_1x1_2x1_2x2_3x1 : val 2 {(1, 1), (2, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
1377 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x2_3x1__1x1
1378 intro d hd hpos
1379 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1380 rcases hd with rfl | rfl | rfl | rfl
1381 · rw [fp2_1x1_2x1_2x2_3x1__1x1] <;> norm_num
1382 · rw [fp2_1x1_2x1_2x2_3x1__2x1] <;> norm_num
1383 · rw [fp2_1x1_2x1_2x2_3x1__2x2] <;> norm_num
1384 · rw [fp2_1x1_2x1_2x2_3x1__3x1] <;> norm_num
1385
1386theorem fp2_1x1_2x1_3x1_3x2__3x2 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1387 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
1388 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
1389 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_3x1, v2_1x1_2x1_2x2_3x1] <;> norm_num
1390
1391theorem v2_1x1_2x1_3x1_3x2 : val 2 {(1, 1), (2, 1), (3, 1), (3, 2)} = (7 / 3 : ℚ) := by
1392 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_3x1_3x2__1x1
1393 intro d hd hpos
1394 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1395 rcases hd with rfl | rfl | rfl | rfl
1396 · rw [fp2_1x1_2x1_3x1_3x2__1x1] <;> norm_num
1397 · rw [fp2_1x1_2x1_3x1_3x2__2x1] <;> norm_num
1398 · rw [fp2_1x1_2x1_3x1_3x2__3x1] <;> norm_num
1399 · rw [fp2_1x1_2x1_3x1_3x2__3x2] <;> norm_num
1400
1401theorem fp2_1x1_2x1_3x1_4x2__4x2 : firstPatch 2 {(1, 1), (2, 1), (3, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1402 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
1403 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
1404 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x1_3x1, v2_1x1_2x1_3x1_3x2] <;> norm_num
1405
1406theorem v2_1x1_2x1_3x1_4x2 : val 2 {(1, 1), (2, 1), (3, 1), (4, 2)} = (5 / 2 : ℚ) := by
1407 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_3x1_4x2__1x1
1408 intro d hd hpos
1409 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1410 rcases hd with rfl | rfl | rfl | rfl
1411 · rw [fp2_1x1_2x1_3x1_4x2__1x1] <;> norm_num
1412 · rw [fp2_1x1_2x1_3x1_4x2__2x1] <;> norm_num
1413 · rw [fp2_1x1_2x1_3x1_4x2__3x1] <;> norm_num
1414 · rw [fp2_1x1_2x1_3x1_4x2__4x2] <;> norm_num
1415
1416theorem fp2_1x1_2x1_4x1_4x2__4x1 : firstPatch 2 {(1, 1), (2, 1), (4, 1), (4, 2)} (4, 1) = (25 / 8 : ℚ) := by
1417 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (3, 0), (4, 2)} := by decide
1418 have e2 : missC (4, 1) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (3, 1), (4, 2)} := by decide
1419 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x0_4x2, v2_1x1_2x1_3x1_4x2] <;> norm_num
1420
1421theorem v1_1x1_2x1_3x1_4x1 : val 1 {(1, 1), (2, 1), (3, 1), (4, 1)} = (1 : ℚ) := by
1422 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (3, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1423 intro d hd hd1
1424 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1425 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1426 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1427
1428theorem v1_0x0_2x1_3x2_4x1 : val 1 {(0, 0), (2, 1), (3, 2), (4, 1)} = (4 / 3 : ℚ) := by
1429 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (3, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1430 intro d hd hd1
1431 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1432 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1433 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1434
1435theorem fp2_1x1_2x1_3x2_4x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (3, 2), (4, 1)} (1, 1) = (7 / 3 : ℚ) := by
1436 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (3, 2), (4, 1)} := by decide
1437 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (3, 2), (4, 1)} := by decide
1438 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_3x2_4x1] <;> norm_num
1439
1440theorem v1_1x0_1x1_3x2_4x1 : val 1 {(1, 0), (1, 1), (3, 2), (4, 1)} = (1 : ℚ) := by
1441 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (3, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1442 intro d hd hd1
1443 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1444 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1445 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1446
1447theorem fp2_1x1_2x1_3x2_4x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (3, 2), (4, 1)} (2, 1) = (5 / 2 : ℚ) := by
1448 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (3, 2), (4, 1)} := by decide
1449 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (3, 2), (4, 1)} := by decide
1450 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_3x2_4x1, v2_1x1_1x1_3x2_4x1] <;> norm_num
1451
1452theorem v1_1x1_2x1_2x1_4x1 : val 1 {(1, 1), (2, 1), (2, 1), (4, 1)} = (1 : ℚ) := by
1453 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (2, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1454 intro d hd hd1
1455 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1456 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1457 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1458
1459theorem v1_0x0_2x1_2x2_4x1 : val 1 {(0, 0), (2, 1), (2, 2), (4, 1)} = (1 : ℚ) := by
1460 have hmin : ∀ d ∈ ({(0, 0), (2, 1), (2, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1461 intro d hd hd1
1462 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1463 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1464 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1465
1466theorem fp2_1x1_2x1_2x2_4x1__1x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (4, 1)} (1, 1) = (2 : ℚ) := by
1467 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 1), (2, 2), (4, 1)} := by decide
1468 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 1), (2, 2), (4, 1)} := by decide
1469 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x1_2x2_4x1] <;> norm_num
1470
1471theorem v1_1x0_1x1_2x2_4x1 : val 1 {(1, 0), (1, 1), (2, 2), (4, 1)} = (1 : ℚ) := by
1472 have hmin : ∀ d ∈ ({(1, 0), (1, 1), (2, 2), (4, 1)} : 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_1x1_2x1_2x2_4x1__2x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (4, 1)} (2, 1) = (5 / 2 : ℚ) := by
1479 have e1 : hitC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (1, 1), (2, 2), (4, 1)} := by decide
1480 have e2 : missC (2, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (1, 1), (2, 2), (4, 1)} := by decide
1481 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_1x1_2x2_4x1, v2_1x1_1x1_2x2_4x1] <;> norm_num
1482
1483theorem fp2_1x1_2x1_2x2_4x1__2x2 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (4, 1)} (2, 2) = (2 : ℚ) := by
1484 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (2, 1), (4, 1)} := by decide
1485 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (2, 1), (4, 1)} := by decide
1486 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_2x1_4x1] <;> norm_num
1487
1488theorem v1_1x1_2x1_2x2_3x0 : val 1 {(1, 1), (2, 1), (2, 2), (3, 0)} = (1 : ℚ) := by
1489 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (2, 2), (3, 0)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1490 intro d hd hd1
1491 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1492 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1493 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1494
1495theorem fp2_1x1_2x1_2x2_4x1__4x1 : firstPatch 2 {(1, 1), (2, 1), (2, 2), (4, 1)} (4, 1) = (11 / 4 : ℚ) := by
1496 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (2, 2), (3, 0)} := by decide
1497 have e2 : missC (4, 1) ::ₘ ({(1, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (2, 2), (3, 1)} := by decide
1498 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x2_3x0, v2_1x1_2x1_2x2_3x1] <;> norm_num
1499
1500theorem v2_1x1_2x1_2x2_4x1 : val 2 {(1, 1), (2, 1), (2, 2), (4, 1)} = (2 : ℚ) := by
1501 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_2x2_4x1__1x1
1502 intro d hd hpos
1503 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1504 rcases hd with rfl | rfl | rfl | rfl
1505 · rw [fp2_1x1_2x1_2x2_4x1__1x1] <;> norm_num
1506 · rw [fp2_1x1_2x1_2x2_4x1__2x1] <;> norm_num
1507 · rw [fp2_1x1_2x1_2x2_4x1__2x2] <;> norm_num
1508 · rw [fp2_1x1_2x1_2x2_4x1__4x1] <;> norm_num
1509
1510theorem fp2_1x1_2x1_3x2_4x1__3x2 : firstPatch 2 {(1, 1), (2, 1), (3, 2), (4, 1)} (3, 2) = (7 / 3 : ℚ) := by
1511 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 1), (4, 1)} := by decide
1512 have e2 : missC (3, 2) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (2, 2), (4, 1)} := by decide
1513 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_4x1, v2_1x1_2x1_2x2_4x1] <;> norm_num
1514
1515theorem v1_1x1_2x1_3x0_3x2 : val 1 {(1, 1), (2, 1), (3, 0), (3, 2)} = (1 : ℚ) := by
1516 have hmin : ∀ d ∈ ({(1, 1), (2, 1), (3, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1517 intro d hd hd1
1518 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1519 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1520 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1521
1522theorem fp2_1x1_2x1_3x2_4x1__4x1 : firstPatch 2 {(1, 1), (2, 1), (3, 2), (4, 1)} (4, 1) = (3 : ℚ) := by
1523 have e1 : hitC (4, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (3, 0), (3, 2)} := by decide
1524 have e2 : missC (4, 1) ::ₘ ({(1, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(1, 1), (2, 1), (3, 1), (3, 2)} := by decide
1525 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x0_3x2, v2_1x1_2x1_3x1_3x2] <;> norm_num
1526
1527theorem v2_1x1_2x1_3x2_4x1 : val 2 {(1, 1), (2, 1), (3, 2), (4, 1)} = (7 / 3 : ℚ) := by
1528 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_3x2_4x1__1x1
1529 intro d hd hpos
1530 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1531 rcases hd with rfl | rfl | rfl | rfl
1532 · rw [fp2_1x1_2x1_3x2_4x1__1x1] <;> norm_num
1533 · rw [fp2_1x1_2x1_3x2_4x1__2x1] <;> norm_num
1534 · rw [fp2_1x1_2x1_3x2_4x1__3x2] <;> norm_num
1535 · rw [fp2_1x1_2x1_3x2_4x1__4x1] <;> norm_num
1536
1537theorem fp2_1x1_2x1_4x1_4x2__4x2 : firstPatch 2 {(1, 1), (2, 1), (4, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
1538 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 1), (4, 1)} := by decide
1539 have e2 : missC (4, 2) ::ₘ ({(1, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (2, 1), (3, 2), (4, 1)} := by decide
1540 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x1_4x1, v2_1x1_2x1_3x2_4x1] <;> norm_num
1541
1542theorem v2_1x1_2x1_4x1_4x2 : val 2 {(1, 1), (2, 1), (4, 1), (4, 2)} = (5 / 2 : ℚ) := by
1543 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x1_4x1_4x2__1x1
1544 intro d hd hpos
1545 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1546 rcases hd with rfl | rfl | rfl | rfl
1547 · rw [fp2_1x1_2x1_4x1_4x2__1x1] <;> norm_num
1548 · rw [fp2_1x1_2x1_4x1_4x2__2x1] <;> norm_num
1549 · rw [fp2_1x1_2x1_4x1_4x2__4x1] <;> norm_num
1550 · rw [fp2_1x1_2x1_4x1_4x2__4x2] <;> norm_num
1551
1552theorem fp2_2x1_2x1_4x1_4x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (4, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
1553 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (4, 1), (4, 2)} := by decide
1554 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (4, 1), (4, 2)} := by decide
1555 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_4x1_4x2, v2_1x1_2x1_4x1_4x2] <;> norm_num
1556
1557theorem v1_2x1_2x1_3x0_4x2 : val 1 {(2, 1), (2, 1), (3, 0), (4, 2)} = (3 / 2 : ℚ) := by
1558 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (3, 0), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1559 intro d hd hd1
1560 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1561 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1562 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1563
1564theorem v1_1x0_2x1_3x1_4x2 : val 1 {(1, 0), (2, 1), (3, 1), (4, 2)} = (3 / 2 : ℚ) := by
1565 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1566 intro d hd hd1
1567 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1568 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1569 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1570
1571theorem fp2_2x1_2x1_3x1_4x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
1572 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (3, 1), (4, 2)} := by decide
1573 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (3, 1), (4, 2)} := by decide
1574 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_3x1_4x2, v2_1x1_2x1_3x1_4x2] <;> norm_num
1575
1576theorem v1_2x0_2x1_2x1_4x2 : val 1 {(2, 0), (2, 1), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
1577 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1578 intro d hd hd1
1579 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1580 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1581 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1582
1583theorem v1_1x0_2x1_2x1_4x2 : val 1 {(1, 0), (2, 1), (2, 1), (4, 2)} = (3 / 2 : ℚ) := by
1584 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1585 intro d hd hd1
1586 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1587 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1588 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1589
1590theorem fp2_2x1_2x1_2x1_4x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (4, 2)} (2, 1) = (3 : ℚ) := by
1591 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
1592 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
1593 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_4x2, v2_1x1_2x1_2x1_4x2] <;> norm_num
1594
1595theorem v1_2x1_2x1_2x1_3x1 : val 1 {(2, 1), (2, 1), (2, 1), (3, 1)} = (3 / 2 : ℚ) := by
1596 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (2, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1597 intro d hd hd1
1598 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1599 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1600 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1601
1602theorem v1_1x0_2x1_2x1_3x2 : val 1 {(1, 0), (2, 1), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
1603 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1604 intro d hd hd1
1605 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1606 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1607 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1608
1609theorem fp2_2x1_2x1_2x1_3x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
1610 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
1611 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
1612 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_3x2, v2_1x1_2x1_2x1_3x2] <;> norm_num
1613
1614theorem v1_2x1_2x1_2x1_2x1 : val 1 {(2, 1), (2, 1), (2, 1), (2, 1)} = (3 / 2 : ℚ) := by
1615 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (2, 1), (2, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1616 intro d hd hd1
1617 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1618 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1619 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1620
1621theorem v1_1x0_2x1_2x1_2x2 : val 1 {(1, 0), (2, 1), (2, 1), (2, 2)} = (1 : ℚ) := by
1622 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1623 intro d hd hd1
1624 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1625 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1626 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1627
1628theorem fp2_2x1_2x1_2x1_2x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (2, 2)} (2, 1) = (5 / 2 : ℚ) := by
1629 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
1630 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
1631 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x1_2x2, v2_1x1_2x1_2x1_2x2] <;> norm_num
1632
1633theorem fp2_2x1_2x1_2x1_2x2__2x2 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (2, 2)} (2, 2) = (2 : ℚ) := by
1634 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
1635 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
1636 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_2x1] <;> norm_num
1637
1638theorem v2_2x1_2x1_2x1_2x2 : val 2 {(2, 1), (2, 1), (2, 1), (2, 2)} = (2 : ℚ) := by
1639 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x1_2x1_2x2__2x2
1640 intro d hd hpos
1641 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1642 rcases hd with rfl | rfl | rfl | rfl
1643 · rw [fp2_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1644 · rw [fp2_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1645 · rw [fp2_2x1_2x1_2x1_2x2__2x1] <;> norm_num
1646 · rw [fp2_2x1_2x1_2x1_2x2__2x2] <;> norm_num
1647
1648theorem fp2_2x1_2x1_2x1_3x2__3x2 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
1649 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
1650 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
1651 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x1_2x1, v2_2x1_2x1_2x1_2x2] <;> norm_num
1652
1653theorem v2_2x1_2x1_2x1_3x2 : val 2 {(2, 1), (2, 1), (2, 1), (3, 2)} = (8 / 3 : ℚ) := by
1654 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_2x1_2x1_3x2__3x2
1655 intro d hd hpos
1656 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1657 rcases hd with rfl | rfl | rfl | rfl
1658 · rw [fp2_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1659 · rw [fp2_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1660 · rw [fp2_2x1_2x1_2x1_3x2__2x1] <;> norm_num
1661 · rw [fp2_2x1_2x1_2x1_3x2__3x2] <;> norm_num
1662
1663theorem fp2_2x1_2x1_2x1_4x2__4x2 : firstPatch 2 {(2, 1), (2, 1), (2, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
1664 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
1665 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
1666 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x1_3x1, v2_2x1_2x1_2x1_3x2] <;> norm_num
1667
1668theorem v2_2x1_2x1_2x1_4x2 : val 2 {(2, 1), (2, 1), (2, 1), (4, 2)} = (3 : ℚ) := by
1669 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_2x1_4x2__2x1
1670 intro d hd hpos
1671 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1672 rcases hd with rfl | rfl | rfl | rfl
1673 · rw [fp2_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1674 · rw [fp2_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1675 · rw [fp2_2x1_2x1_2x1_4x2__2x1] <;> norm_num
1676 · rw [fp2_2x1_2x1_2x1_4x2__4x2] <;> norm_num
1677
1678theorem fp2_2x1_2x1_3x1_4x2__3x1 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (4, 2)} (3, 1) = (7 / 2 : ℚ) := by
1679 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (2, 1), (4, 2)} := by decide
1680 have e2 : missC (3, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (2, 1), (4, 2)} := by decide
1681 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_2x1_4x2, v2_2x1_2x1_2x1_4x2] <;> norm_num
1682
1683theorem v1_2x1_2x1_3x1_3x1 : val 1 {(2, 1), (2, 1), (3, 1), (3, 1)} = (3 / 2 : ℚ) := by
1684 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1685 intro d hd hd1
1686 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1687 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1688 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1689
1690theorem v1_1x0_2x1_3x1_3x2 : val 1 {(1, 0), (2, 1), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
1691 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1692 intro d hd hd1
1693 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1694 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1695 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1696
1697theorem fp2_2x1_2x1_3x1_3x2__2x1 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
1698 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (3, 1), (3, 2)} := by decide
1699 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (3, 1), (3, 2)} := by decide
1700 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_3x1_3x2, v2_1x1_2x1_3x1_3x2] <;> norm_num
1701
1702theorem v1_2x0_2x1_2x1_3x2 : val 1 {(2, 0), (2, 1), (2, 1), (3, 2)} = (4 / 3 : ℚ) := by
1703 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (2, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1704 intro d hd hd1
1705 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1706 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1707 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1708
1709theorem fp2_2x1_2x1_3x1_3x2__3x1 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (3, 2)} (3, 1) = (29 / 9 : ℚ) := by
1710 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (2, 1), (3, 2)} := by decide
1711 have e2 : missC (3, 1) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (2, 1), (3, 2)} := by decide
1712 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_2x1_3x2, v2_2x1_2x1_2x1_3x2] <;> norm_num
1713
1714theorem v1_1x0_2x1_2x2_3x1 : val 1 {(1, 0), (2, 1), (2, 2), (3, 1)} = (1 : ℚ) := by
1715 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1716 intro d hd hd1
1717 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1718 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1719 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1720
1721theorem fp2_2x1_2x1_2x2_3x1__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
1722 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 2), (3, 1)} := by decide
1723 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 2), (3, 1)} := by decide
1724 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x2_3x1, v2_1x1_2x1_2x2_3x1] <;> norm_num
1725
1726theorem fp2_2x1_2x1_2x2_3x1__2x2 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (3, 1)} (2, 2) = (2 : ℚ) := by
1727 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1), (2, 1), (3, 1)} := by decide
1728 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1), (2, 1), (3, 1)} := by decide
1729 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_3x1] <;> norm_num
1730
1731theorem v1_2x0_2x1_2x1_2x2 : val 1 {(2, 0), (2, 1), (2, 1), (2, 2)} = (1 : ℚ) := by
1732 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (2, 1), (2, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1733 intro d hd hd1
1734 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1735 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1736 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1737
1738theorem fp2_2x1_2x1_2x2_3x1__3x1 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1739 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (2, 1), (2, 2)} := by decide
1740 have e2 : missC (3, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (2, 1), (2, 2)} := by decide
1741 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_2x1_2x2, v2_2x1_2x1_2x1_2x2] <;> norm_num
1742
1743theorem v2_2x1_2x1_2x2_3x1 : val 2 {(2, 1), (2, 1), (2, 2), (3, 1)} = (2 : ℚ) := by
1744 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x1_2x2_3x1__2x2
1745 intro d hd hpos
1746 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1747 rcases hd with rfl | rfl | rfl | rfl
1748 · rw [fp2_2x1_2x1_2x2_3x1__2x1] <;> norm_num
1749 · rw [fp2_2x1_2x1_2x2_3x1__2x1] <;> norm_num
1750 · rw [fp2_2x1_2x1_2x2_3x1__2x2] <;> norm_num
1751 · rw [fp2_2x1_2x1_2x2_3x1__3x1] <;> norm_num
1752
1753theorem fp2_2x1_2x1_3x1_3x2__3x2 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
1754 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 1), (3, 1)} := by decide
1755 have e2 : missC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 2), (3, 1)} := by decide
1756 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x1_3x1, v2_2x1_2x1_2x2_3x1] <;> norm_num
1757
1758theorem v2_2x1_2x1_3x1_3x2 : val 2 {(2, 1), (2, 1), (3, 1), (3, 2)} = (8 / 3 : ℚ) := by
1759 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_2x1_3x1_3x2__3x2
1760 intro d hd hpos
1761 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1762 rcases hd with rfl | rfl | rfl | rfl
1763 · rw [fp2_2x1_2x1_3x1_3x2__2x1] <;> norm_num
1764 · rw [fp2_2x1_2x1_3x1_3x2__2x1] <;> norm_num
1765 · rw [fp2_2x1_2x1_3x1_3x2__3x1] <;> norm_num
1766 · rw [fp2_2x1_2x1_3x1_3x2__3x2] <;> norm_num
1767
1768theorem fp2_2x1_2x1_3x1_4x2__4x2 : firstPatch 2 {(2, 1), (2, 1), (3, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
1769 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 1), (3, 1)} := by decide
1770 have e2 : missC (4, 2) ::ₘ ({(2, 1), (2, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 1), (3, 2)} := by decide
1771 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x1_3x1, v2_2x1_2x1_3x1_3x2] <;> norm_num
1772
1773theorem v2_2x1_2x1_3x1_4x2 : val 2 {(2, 1), (2, 1), (3, 1), (4, 2)} = (3 : ℚ) := by
1774 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_3x1_4x2__2x1
1775 intro d hd hpos
1776 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1777 rcases hd with rfl | rfl | rfl | rfl
1778 · rw [fp2_2x1_2x1_3x1_4x2__2x1] <;> norm_num
1779 · rw [fp2_2x1_2x1_3x1_4x2__2x1] <;> norm_num
1780 · rw [fp2_2x1_2x1_3x1_4x2__3x1] <;> norm_num
1781 · rw [fp2_2x1_2x1_3x1_4x2__4x2] <;> norm_num
1782
1783theorem fp2_2x1_2x1_4x1_4x2__4x1 : firstPatch 2 {(2, 1), (2, 1), (4, 1), (4, 2)} (4, 1) = (29 / 8 : ℚ) := by
1784 have e1 : hitC (4, 1) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (3, 0), (4, 2)} := by decide
1785 have e2 : missC (4, 1) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (3, 1), (4, 2)} := by decide
1786 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x0_4x2, v2_2x1_2x1_3x1_4x2] <;> norm_num
1787
1788theorem v1_2x1_2x1_3x1_4x1 : val 1 {(2, 1), (2, 1), (3, 1), (4, 1)} = (3 / 2 : ℚ) := by
1789 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (3, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1790 intro d hd hd1
1791 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1792 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1793 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1794
1795theorem v1_1x0_2x1_3x2_4x1 : val 1 {(1, 0), (2, 1), (3, 2), (4, 1)} = (4 / 3 : ℚ) := by
1796 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (3, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1797 intro d hd hd1
1798 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1799 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1800 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1801
1802theorem fp2_2x1_2x1_3x2_4x1__2x1 : firstPatch 2 {(2, 1), (2, 1), (3, 2), (4, 1)} (2, 1) = (17 / 6 : ℚ) := by
1803 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (3, 2), (4, 1)} := by decide
1804 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (3, 2), (4, 1)} := by decide
1805 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_3x2_4x1, v2_1x1_2x1_3x2_4x1] <;> norm_num
1806
1807theorem v1_2x1_2x1_2x1_4x1 : val 1 {(2, 1), (2, 1), (2, 1), (4, 1)} = (3 / 2 : ℚ) := by
1808 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (2, 1), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
1809 intro d hd hd1
1810 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1811 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1812 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
1813
1814theorem v1_1x0_2x1_2x2_4x1 : val 1 {(1, 0), (2, 1), (2, 2), (4, 1)} = (1 : ℚ) := by
1815 have hmin : ∀ d ∈ ({(1, 0), (2, 1), (2, 2), (4, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1816 intro d hd hd1
1817 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1818 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1819 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1820
1821theorem fp2_2x1_2x1_2x2_4x1__2x1 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (4, 1)} (2, 1) = (5 / 2 : ℚ) := by
1822 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 1), (2, 2), (4, 1)} := by decide
1823 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 1), (2, 2), (4, 1)} := by decide
1824 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x1_2x2_4x1, v2_1x1_2x1_2x2_4x1] <;> norm_num
1825
1826theorem fp2_2x1_2x1_2x2_4x1__2x2 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (4, 1)} (2, 2) = (2 : ℚ) := by
1827 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1), (2, 1), (4, 1)} := by decide
1828 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1), (2, 1), (4, 1)} := by decide
1829 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_2x1_4x1] <;> norm_num
1830
1831theorem v1_2x1_2x1_2x2_3x0 : val 1 {(2, 1), (2, 1), (2, 2), (3, 0)} = (1 : ℚ) := by
1832 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (2, 2), (3, 0)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1833 intro d hd hd1
1834 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1835 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1836 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1837
1838theorem fp2_2x1_2x1_2x2_4x1__4x1 : firstPatch 2 {(2, 1), (2, 1), (2, 2), (4, 1)} (4, 1) = (11 / 4 : ℚ) := by
1839 have e1 : hitC (4, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (2, 2), (3, 0)} := by decide
1840 have e2 : missC (4, 1) ::ₘ ({(2, 1), (2, 1), (2, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (2, 2), (3, 1)} := by decide
1841 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x2_3x0, v2_2x1_2x1_2x2_3x1] <;> norm_num
1842
1843theorem v2_2x1_2x1_2x2_4x1 : val 2 {(2, 1), (2, 1), (2, 2), (4, 1)} = (2 : ℚ) := by
1844 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x1_2x2_4x1__2x2
1845 intro d hd hpos
1846 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1847 rcases hd with rfl | rfl | rfl | rfl
1848 · rw [fp2_2x1_2x1_2x2_4x1__2x1] <;> norm_num
1849 · rw [fp2_2x1_2x1_2x2_4x1__2x1] <;> norm_num
1850 · rw [fp2_2x1_2x1_2x2_4x1__2x2] <;> norm_num
1851 · rw [fp2_2x1_2x1_2x2_4x1__4x1] <;> norm_num
1852
1853theorem fp2_2x1_2x1_3x2_4x1__3x2 : firstPatch 2 {(2, 1), (2, 1), (3, 2), (4, 1)} (3, 2) = (8 / 3 : ℚ) := by
1854 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 1), (4, 1)} := by decide
1855 have e2 : missC (3, 2) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (2, 2), (4, 1)} := by decide
1856 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_2x1_4x1, v2_2x1_2x1_2x2_4x1] <;> norm_num
1857
1858theorem v1_2x1_2x1_3x0_3x2 : val 1 {(2, 1), (2, 1), (3, 0), (3, 2)} = (4 / 3 : ℚ) := by
1859 have hmin : ∀ d ∈ ({(2, 1), (2, 1), (3, 0), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1860 intro d hd hd1
1861 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1862 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1863 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1864
1865theorem fp2_2x1_2x1_3x2_4x1__4x1 : firstPatch 2 {(2, 1), (2, 1), (3, 2), (4, 1)} (4, 1) = (10 / 3 : ℚ) := by
1866 have e1 : hitC (4, 1) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (3, 0), (3, 2)} := by decide
1867 have e2 : missC (4, 1) ::ₘ ({(2, 1), (2, 1), (3, 2), (4, 1)} : Multiset Cat).erase (4, 1) = {(2, 1), (2, 1), (3, 1), (3, 2)} := by decide
1868 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x0_3x2, v2_2x1_2x1_3x1_3x2] <;> norm_num
1869
1870theorem v2_2x1_2x1_3x2_4x1 : val 2 {(2, 1), (2, 1), (3, 2), (4, 1)} = (8 / 3 : ℚ) := by
1871 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_2x1_3x2_4x1__3x2
1872 intro d hd hpos
1873 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1874 rcases hd with rfl | rfl | rfl | rfl
1875 · rw [fp2_2x1_2x1_3x2_4x1__2x1] <;> norm_num
1876 · rw [fp2_2x1_2x1_3x2_4x1__2x1] <;> norm_num
1877 · rw [fp2_2x1_2x1_3x2_4x1__3x2] <;> norm_num
1878 · rw [fp2_2x1_2x1_3x2_4x1__4x1] <;> norm_num
1879
1880theorem fp2_2x1_2x1_4x1_4x2__4x2 : firstPatch 2 {(2, 1), (2, 1), (4, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
1881 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 1), (4, 1)} := by decide
1882 have e2 : missC (4, 2) ::ₘ ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (2, 1), (3, 2), (4, 1)} := by decide
1883 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x1_4x1, v2_2x1_2x1_3x2_4x1] <;> norm_num
1884
1885theorem v2_2x1_2x1_4x1_4x2 : val 2 {(2, 1), (2, 1), (4, 1), (4, 2)} = (3 : ℚ) := by
1886 apply val_eq_of_cert 1 _ _ (2, 1) (by decide) (by decide) fp2_2x1_2x1_4x1_4x2__2x1
1887 intro d hd hpos
1888 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1889 rcases hd with rfl | rfl | rfl | rfl
1890 · rw [fp2_2x1_2x1_4x1_4x2__2x1] <;> norm_num
1891 · rw [fp2_2x1_2x1_4x1_4x2__2x1] <;> norm_num
1892 · rw [fp2_2x1_2x1_4x1_4x2__4x1] <;> norm_num
1893 · rw [fp2_2x1_2x1_4x1_4x2__4x2] <;> norm_num
1894
1895theorem v1_1x0_3x1_3x1_4x2 : val 1 {(1, 0), (3, 1), (3, 1), (4, 2)} = (5 / 3 : ℚ) := by
1896 have hmin : ∀ d ∈ ({(1, 0), (3, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
1897 intro d hd hd1
1898 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1899 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1900 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
1901
1902theorem v1_0x0_3x1_3x1_4x2 : val 1 {(0, 0), (3, 1), (3, 1), (4, 2)} = (5 / 3 : ℚ) := by
1903 have hmin : ∀ d ∈ ({(0, 0), (3, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (4, 2) ≤ finisher d := by
1904 intro d hd hd1
1905 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1906 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1907 rw [val_one_eq _ (by decide) (4, 2) (by decide) (by decide) hmin] <;> norm_num
1908
1909theorem fp2_1x1_3x1_3x1_4x2__1x1 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (4, 2)} (1, 1) = (8 / 3 : ℚ) := by
1910 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (3, 1), (3, 1), (4, 2)} := by decide
1911 have e2 : missC (1, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (3, 1), (3, 1), (4, 2)} := by decide
1912 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_3x1_3x1_4x2] <;> norm_num
1913
1914theorem v1_1x1_2x0_3x1_4x2 : val 1 {(1, 1), (2, 0), (3, 1), (4, 2)} = (1 : ℚ) := by
1915 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1916 intro d hd hd1
1917 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1918 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1919 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1920
1921theorem fp2_1x1_3x1_3x1_4x2__3x1 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (4, 2)} (3, 1) = (3 : ℚ) := by
1922 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (3, 1), (4, 2)} := by decide
1923 have e2 : missC (3, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (3, 1), (4, 2)} := by decide
1924 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_3x1_4x2, v2_1x1_2x1_3x1_4x2] <;> norm_num
1925
1926theorem v1_1x1_3x1_3x1_3x1 : val 1 {(1, 1), (3, 1), (3, 1), (3, 1)} = (1 : ℚ) := by
1927 have hmin : ∀ d ∈ ({(1, 1), (3, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1928 intro d hd hd1
1929 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1930 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1931 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1932
1933theorem v1_0x0_3x1_3x1_3x2 : val 1 {(0, 0), (3, 1), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
1934 have hmin : ∀ d ∈ ({(0, 0), (3, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
1935 intro d hd hd1
1936 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1937 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1938 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
1939
1940theorem fp2_1x1_3x1_3x1_3x2__1x1 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (3, 2)} (1, 1) = (7 / 3 : ℚ) := by
1941 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 0), (3, 1), (3, 1), (3, 2)} := by decide
1942 have e2 : missC (1, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (1, 1) = {(0, 1), (3, 1), (3, 1), (3, 2)} := by decide
1943 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_3x1_3x1_3x2] <;> norm_num
1944
1945theorem v1_1x1_2x0_3x1_3x2 : val 1 {(1, 1), (2, 0), (3, 1), (3, 2)} = (1 : ℚ) := by
1946 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1947 intro d hd hd1
1948 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1949 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1950 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1951
1952theorem fp2_1x1_3x1_3x1_3x2__3x1 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (3, 2)} (3, 1) = (26 / 9 : ℚ) := by
1953 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (3, 1), (3, 2)} := by decide
1954 have e2 : missC (3, 1) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (3, 1), (3, 2)} := by decide
1955 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_3x1_3x2, v2_1x1_2x1_3x1_3x2] <;> norm_num
1956
1957theorem v1_0x0_2x2_3x1_3x1 : val 1 {(0, 0), (2, 2), (3, 1), (3, 1)} = (1 : ℚ) := by
1958 have hmin : ∀ d ∈ ({(0, 0), (2, 2), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
1959 intro d hd hd1
1960 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1961 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1962 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
1963
1964theorem fp2_1x1_2x2_3x1_3x1__1x1 : firstPatch 2 {(1, 1), (2, 2), (3, 1), (3, 1)} (1, 1) = (2 : ℚ) := by
1965 have e1 : hitC (1, 1) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 0), (2, 2), (3, 1), (3, 1)} := by decide
1966 have e2 : missC (1, 1) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (1, 1) = {(0, 1), (2, 2), (3, 1), (3, 1)} := by decide
1967 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_0x0_2x2_3x1_3x1] <;> norm_num
1968
1969theorem fp2_1x1_2x2_3x1_3x1__2x2 : firstPatch 2 {(1, 1), (2, 2), (3, 1), (3, 1)} (2, 2) = (2 : ℚ) := by
1970 have e1 : hitC (2, 2) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 1), (3, 1), (3, 1)} := by decide
1971 have e2 : missC (2, 2) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (1, 2), (3, 1), (3, 1)} := by decide
1972 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_1x1_3x1_3x1] <;> norm_num
1973
1974theorem v1_1x1_2x0_2x2_3x1 : val 1 {(1, 1), (2, 0), (2, 2), (3, 1)} = (1 : ℚ) := by
1975 have hmin : ∀ d ∈ ({(1, 1), (2, 0), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (1, 1) ≤ finisher d := by
1976 intro d hd hd1
1977 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1978 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
1979 rw [val_one_eq _ (by decide) (1, 1) (by decide) (by decide) hmin] <;> norm_num
1980
1981theorem fp2_1x1_2x2_3x1_3x1__3x1 : firstPatch 2 {(1, 1), (2, 2), (3, 1), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
1982 have e1 : hitC (3, 1) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 0), (2, 2), (3, 1)} := by decide
1983 have e2 : missC (3, 1) ::ₘ ({(1, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(1, 1), (2, 1), (2, 2), (3, 1)} := by decide
1984 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x0_2x2_3x1, v2_1x1_2x1_2x2_3x1] <;> norm_num
1985
1986theorem v2_1x1_2x2_3x1_3x1 : val 2 {(1, 1), (2, 2), (3, 1), (3, 1)} = (2 : ℚ) := by
1987 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_2x2_3x1_3x1__1x1
1988 intro d hd hpos
1989 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
1990 rcases hd with rfl | rfl | rfl | rfl
1991 · rw [fp2_1x1_2x2_3x1_3x1__1x1] <;> norm_num
1992 · rw [fp2_1x1_2x2_3x1_3x1__2x2] <;> norm_num
1993 · rw [fp2_1x1_2x2_3x1_3x1__3x1] <;> norm_num
1994 · rw [fp2_1x1_2x2_3x1_3x1__3x1] <;> norm_num
1995
1996theorem fp2_1x1_3x1_3x1_3x2__3x2 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (3, 2)} (3, 2) = (7 / 3 : ℚ) := by
1997 have e1 : hitC (3, 2) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 1), (3, 1), (3, 1)} := by decide
1998 have e2 : missC (3, 2) ::ₘ ({(1, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(1, 1), (2, 2), (3, 1), (3, 1)} := by decide
1999 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x1_3x1, v2_1x1_2x2_3x1_3x1] <;> norm_num
2000
2001theorem v2_1x1_3x1_3x1_3x2 : val 2 {(1, 1), (3, 1), (3, 1), (3, 2)} = (7 / 3 : ℚ) := by
2002 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_3x1_3x1_3x2__1x1
2003 intro d hd hpos
2004 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2005 rcases hd with rfl | rfl | rfl | rfl
2006 · rw [fp2_1x1_3x1_3x1_3x2__1x1] <;> norm_num
2007 · rw [fp2_1x1_3x1_3x1_3x2__3x1] <;> norm_num
2008 · rw [fp2_1x1_3x1_3x1_3x2__3x1] <;> norm_num
2009 · rw [fp2_1x1_3x1_3x1_3x2__3x2] <;> norm_num
2010
2011theorem fp2_1x1_3x1_3x1_4x2__4x2 : firstPatch 2 {(1, 1), (3, 1), (3, 1), (4, 2)} (4, 2) = (8 / 3 : ℚ) := by
2012 have e1 : hitC (4, 2) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (3, 1), (3, 1), (3, 1)} := by decide
2013 have e2 : missC (4, 2) ::ₘ ({(1, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(1, 1), (3, 1), (3, 1), (3, 2)} := by decide
2014 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_3x1_3x1_3x1, v2_1x1_3x1_3x1_3x2] <;> norm_num
2015
2016theorem v2_1x1_3x1_3x1_4x2 : val 2 {(1, 1), (3, 1), (3, 1), (4, 2)} = (8 / 3 : ℚ) := by
2017 apply val_eq_of_cert 1 _ _ (1, 1) (by decide) (by decide) fp2_1x1_3x1_3x1_4x2__1x1
2018 intro d hd hpos
2019 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2020 rcases hd with rfl | rfl | rfl | rfl
2021 · rw [fp2_1x1_3x1_3x1_4x2__1x1] <;> norm_num
2022 · rw [fp2_1x1_3x1_3x1_4x2__3x1] <;> norm_num
2023 · rw [fp2_1x1_3x1_3x1_4x2__3x1] <;> norm_num
2024 · rw [fp2_1x1_3x1_3x1_4x2__4x2] <;> norm_num
2025
2026theorem fp2_2x1_3x1_3x1_4x2__2x1 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (4, 2)} (2, 1) = (19 / 6 : ℚ) := by
2027 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (3, 1), (3, 1), (4, 2)} := by decide
2028 have e2 : missC (2, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (3, 1), (3, 1), (4, 2)} := by decide
2029 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_3x1_3x1_4x2, v2_1x1_3x1_3x1_4x2] <;> norm_num
2030
2031theorem v1_2x0_2x1_3x1_4x2 : val 1 {(2, 0), (2, 1), (3, 1), (4, 2)} = (3 / 2 : ℚ) := by
2032 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (3, 1), (4, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
2033 intro d hd hd1
2034 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2035 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2036 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
2037
2038theorem fp2_2x1_3x1_3x1_4x2__3x1 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (4, 2)} (3, 1) = (7 / 2 : ℚ) := by
2039 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (3, 1), (4, 2)} := by decide
2040 have e2 : missC (3, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (3, 1), (4, 2)} := by decide
2041 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_3x1_4x2, v2_2x1_2x1_3x1_4x2] <;> norm_num
2042
2043theorem v1_2x1_3x1_3x1_3x1 : val 1 {(2, 1), (3, 1), (3, 1), (3, 1)} = (3 / 2 : ℚ) := by
2044 have hmin : ∀ d ∈ ({(2, 1), (3, 1), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 1) ≤ finisher d := by
2045 intro d hd hd1
2046 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2047 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2048 rw [val_one_eq _ (by decide) (2, 1) (by decide) (by decide) hmin] <;> norm_num
2049
2050theorem v1_1x0_3x1_3x1_3x2 : val 1 {(1, 0), (3, 1), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
2051 have hmin : ∀ d ∈ ({(1, 0), (3, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
2052 intro d hd hd1
2053 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2054 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2055 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
2056
2057theorem fp2_2x1_3x1_3x1_3x2__2x1 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (3, 2)} (2, 1) = (17 / 6 : ℚ) := by
2058 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 0), (3, 1), (3, 1), (3, 2)} := by decide
2059 have e2 : missC (2, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (2, 1) = {(1, 1), (3, 1), (3, 1), (3, 2)} := by decide
2060 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_3x1_3x1_3x2, v2_1x1_3x1_3x1_3x2] <;> norm_num
2061
2062theorem v1_2x0_2x1_3x1_3x2 : val 1 {(2, 0), (2, 1), (3, 1), (3, 2)} = (4 / 3 : ℚ) := by
2063 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (3, 1), (3, 2)} : Multiset Cat), 1 ≤ d.2 → finisher (3, 2) ≤ finisher d := by
2064 intro d hd hd1
2065 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2066 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2067 rw [val_one_eq _ (by decide) (3, 2) (by decide) (by decide) hmin] <;> norm_num
2068
2069theorem fp2_2x1_3x1_3x1_3x2__3x1 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (3, 2)} (3, 1) = (29 / 9 : ℚ) := by
2070 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (3, 1), (3, 2)} := by decide
2071 have e2 : missC (3, 1) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (3, 1), (3, 2)} := by decide
2072 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_3x1_3x2, v2_2x1_2x1_3x1_3x2] <;> norm_num
2073
2074theorem v1_1x0_2x2_3x1_3x1 : val 1 {(1, 0), (2, 2), (3, 1), (3, 1)} = (1 : ℚ) := by
2075 have hmin : ∀ d ∈ ({(1, 0), (2, 2), (3, 1), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
2076 intro d hd hd1
2077 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2078 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2079 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
2080
2081theorem fp2_2x1_2x2_3x1_3x1__2x1 : firstPatch 2 {(2, 1), (2, 2), (3, 1), (3, 1)} (2, 1) = (5 / 2 : ℚ) := by
2082 have e1 : hitC (2, 1) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 0), (2, 2), (3, 1), (3, 1)} := by decide
2083 have e2 : missC (2, 1) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 1) = {(1, 1), (2, 2), (3, 1), (3, 1)} := by decide
2084 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x0_2x2_3x1_3x1, v2_1x1_2x2_3x1_3x1] <;> norm_num
2085
2086theorem fp2_2x1_2x2_3x1_3x1__2x2 : firstPatch 2 {(2, 1), (2, 2), (3, 1), (3, 1)} (2, 2) = (2 : ℚ) := by
2087 have e1 : hitC (2, 2) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 1), (2, 1), (3, 1), (3, 1)} := by decide
2088 have e2 : missC (2, 2) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (2, 2) = {(1, 2), (2, 1), (3, 1), (3, 1)} := by decide
2089 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_1x1_2x1_3x1_3x1] <;> norm_num
2090
2091theorem v1_2x0_2x1_2x2_3x1 : val 1 {(2, 0), (2, 1), (2, 2), (3, 1)} = (1 : ℚ) := by
2092 have hmin : ∀ d ∈ ({(2, 0), (2, 1), (2, 2), (3, 1)} : Multiset Cat), 1 ≤ d.2 → finisher (2, 2) ≤ finisher d := by
2093 intro d hd hd1
2094 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2095 rcases hd with rfl | rfl | rfl | rfl <;> (try norm_num at hd1) <;> (try norm_num)
2096 rw [val_one_eq _ (by decide) (2, 2) (by decide) (by decide) hmin] <;> norm_num
2097
2098theorem fp2_2x1_2x2_3x1_3x1__3x1 : firstPatch 2 {(2, 1), (2, 2), (3, 1), (3, 1)} (3, 1) = (8 / 3 : ℚ) := by
2099 have e1 : hitC (3, 1) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 0), (2, 1), (2, 2), (3, 1)} := by decide
2100 have e2 : missC (3, 1) ::ₘ ({(2, 1), (2, 2), (3, 1), (3, 1)} : Multiset Cat).erase (3, 1) = {(2, 1), (2, 1), (2, 2), (3, 1)} := by decide
2101 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x0_2x1_2x2_3x1, v2_2x1_2x1_2x2_3x1] <;> norm_num
2102
2103theorem v2_2x1_2x2_3x1_3x1 : val 2 {(2, 1), (2, 2), (3, 1), (3, 1)} = (2 : ℚ) := by
2104 apply val_eq_of_cert 1 _ _ (2, 2) (by decide) (by decide) fp2_2x1_2x2_3x1_3x1__2x2
2105 intro d hd hpos
2106 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2107 rcases hd with rfl | rfl | rfl | rfl
2108 · rw [fp2_2x1_2x2_3x1_3x1__2x1] <;> norm_num
2109 · rw [fp2_2x1_2x2_3x1_3x1__2x2] <;> norm_num
2110 · rw [fp2_2x1_2x2_3x1_3x1__3x1] <;> norm_num
2111 · rw [fp2_2x1_2x2_3x1_3x1__3x1] <;> norm_num
2112
2113theorem fp2_2x1_3x1_3x1_3x2__3x2 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (3, 2)} (3, 2) = (8 / 3 : ℚ) := by
2114 have e1 : hitC (3, 2) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 1), (3, 1), (3, 1)} := by decide
2115 have e2 : missC (3, 2) ::ₘ ({(2, 1), (3, 1), (3, 1), (3, 2)} : Multiset Cat).erase (3, 2) = {(2, 1), (2, 2), (3, 1), (3, 1)} := by decide
2116 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_2x1_3x1_3x1, v2_2x1_2x2_3x1_3x1] <;> norm_num
2117
2118theorem v2_2x1_3x1_3x1_3x2 : val 2 {(2, 1), (3, 1), (3, 1), (3, 2)} = (8 / 3 : ℚ) := by
2119 apply val_eq_of_cert 1 _ _ (3, 2) (by decide) (by decide) fp2_2x1_3x1_3x1_3x2__3x2
2120 intro d hd hpos
2121 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2122 rcases hd with rfl | rfl | rfl | rfl
2123 · rw [fp2_2x1_3x1_3x1_3x2__2x1] <;> norm_num
2124 · rw [fp2_2x1_3x1_3x1_3x2__3x1] <;> norm_num
2125 · rw [fp2_2x1_3x1_3x1_3x2__3x1] <;> norm_num
2126 · rw [fp2_2x1_3x1_3x1_3x2__3x2] <;> norm_num
2127
2128theorem fp2_2x1_3x1_3x1_4x2__4x2 : firstPatch 2 {(2, 1), (3, 1), (3, 1), (4, 2)} (4, 2) = (37 / 12 : ℚ) := by
2129 have e1 : hitC (4, 2) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (3, 1), (3, 1), (3, 1)} := by decide
2130 have e2 : missC (4, 2) ::ₘ ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat).erase (4, 2) = {(2, 1), (3, 1), (3, 1), (3, 2)} := by decide
2131 rw [firstPatch, e1, e2, show (2 : ℕ) - 1 = 1 from rfl, v1_2x1_3x1_3x1_3x1, v2_2x1_3x1_3x1_3x2] <;> norm_num
2132
2133theorem v2_2x1_3x1_3x1_4x2 : val 2 {(2, 1), (3, 1), (3, 1), (4, 2)} = (37 / 12 : ℚ) := by
2134 apply val_eq_of_cert 1 _ _ (4, 2) (by decide) (by decide) fp2_2x1_3x1_3x1_4x2__4x2
2135 intro d hd hpos
2136 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hd
2137 rcases hd with rfl | rfl | rfl | rfl
2138 · rw [fp2_2x1_3x1_3x1_4x2__2x1] <;> norm_num
2139 · rw [fp2_2x1_3x1_3x1_4x2__3x1] <;> norm_num
2140 · rw [fp2_2x1_3x1_3x1_4x2__3x1] <;> norm_num
2141 · rw [fp2_2x1_3x1_3x1_4x2__4x2] <;> norm_num
2142
2143/-! ### The note's witness values -/
2144
2145/-- **Proposition 7, values as stated (own-count index).** With two hits needed, patching `(2,1)`
2146first is strictly better than `(4,2)` first in `{(1,1),(2,1),(4,2)}` (`5/2` against `8/3`) and
2147strictly worse in `{(2,1),(4,2)}` (`19/6` against `37/12`). -/
2148theorem prop7_note_values :
2149 firstPatch 2 {(1, 1), (2, 1), (4, 2)} (2, 1) = 5 / 2 ∧
2150 firstPatch 2 {(1, 1), (2, 1), (4, 2)} (4, 2) = 8 / 3 ∧
2151 firstPatch 2 {(2, 1), (4, 2)} (2, 1) = 19 / 6 ∧
2152 firstPatch 2 {(2, 1), (4, 2)} (4, 2) = 37 / 12 :=
2153 ⟨fp2_1x1_2x1_4x2__2x1, fp2_1x1_2x1_4x2__4x2, fp2_2x1_4x2__2x1, fp2_2x1_4x2__4x2⟩
2154
2155/-- **A gap in the note's proof of Proposition 7.** In the note's first state the unit category
2156`(1,1)` is optimal too (`5/2`), and in the second `(4,2)` is optimal. So a rule ranking
2157`(1,1)` above `(4,2)` above `(2,1)` makes an optimal first patch in *both* of the note's states:
2158the reversal of `(2,1)` against `(4,2)` alone does not defeat it. -/
2159theorem prop7_note_pair_insufficient :
2160 firstPatch 2 {(1, 1), (2, 1), (4, 2)} (1, 1) = val 2 {(1, 1), (2, 1), (4, 2)} ∧
2161 firstPatch 2 {(2, 1), (4, 2)} (4, 2) = val 2 {(2, 1), (4, 2)} := by
2162 rw [fp2_1x1_2x1_4x2__1x1, v2_1x1_2x1_4x2, fp2_2x1_4x2__4x2, v2_2x1_4x2]
2163 exact ⟨rfl, rfl⟩
2164
2165/-! ### Index rules -/
2166
2167/-- An index rule with a fixed tie-break ranks categories by a key that depends only on the
2168category's own counts (for a fixed requirement and fixed global context) and patches the top
2169category: `c` is the rule's choice in `s` when every other category of `s` has a smaller key. -/
2170def IsTop {α : Type*} [LinearOrder α] (key : Cat → α) (s : Multiset Cat) (c : Cat) : Prop :=
2171 c ∈ s ∧ ∀ d ∈ s, d ≠ c → key d < key c
2172
2173/-- **Proposition 7 (own counts), first-patch form, with a corrected witness pair.** With two hits
2174needed, `(2,1)` is the *unique* optimal first patch in `{(2,1),(2,1),(4,2)}` (`3` against `37/12`)
2175and `(4,2)` the unique optimal one in `{(2,1),(4,2)}` (`37/12` against `19/6`). Hence for every
2176strict ranking `key` of categories by their own counts, the rule's first patch is strictly
2177suboptimal in one of the two states. -/
2178theorem prop7_own_counts {α : Type*} [LinearOrder α] (key : Cat → α) (hkey : key (2, 1) ≠ key (4, 2)) :
2179 (∀ c, IsTop key {(2, 1), (2, 1), (4, 2)} c → val 2 {(2, 1), (2, 1), (4, 2)} < firstPatch 2 {(2, 1), (2, 1), (4, 2)} c) ∨
2180 (∀ c, IsTop key {(2, 1), (4, 2)} c → val 2 {(2, 1), (4, 2)} < firstPatch 2 {(2, 1), (4, 2)} c) := by
2181 rcases lt_or_gt_of_ne hkey with h | h
2182 · left
2183 rintro c ⟨hc, htop⟩
2184 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hc
2185 rcases hc with rfl | rfl | rfl
2186 · exact absurd (htop (4, 2) (by decide) (by decide)) (not_lt.2 h.le)
2187 · exact absurd (htop (4, 2) (by decide) (by decide)) (not_lt.2 h.le)
2188 · rw [v2_2x1_2x1_4x2, fp2_2x1_2x1_4x2__4x2]; norm_num
2189 · right
2190 rintro c ⟨hc, htop⟩
2191 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hc
2192 rcases hc with rfl | rfl
2193 · rw [v2_2x1_4x2, fp2_2x1_4x2__2x1]; norm_num
2194 · exact absurd (htop (2, 1) (by decide) (by decide)) (not_lt.2 h.le)
2195
2196/-- **Proposition 7 (own counts), policy form.** No legal policy that follows a strict own-count
2197index rule at these two states is optimal: its expected number of patches exceeds the optimum in
2198one of them. -/
2199theorem prop7_own_counts_policy {α : Type*} [LinearOrder α] (key : Cat → α)
2200 (hkey : key (2, 1) ≠ key (4, 2)) (π : Policy) (hπ : Legal π)
2201 (h1 : IsTop key {(2, 1), (2, 1), (4, 2)} (π 2 {(2, 1), (2, 1), (4, 2)}))
2202 (h2 : IsTop key {(2, 1), (4, 2)} (π 2 {(2, 1), (4, 2)})) :
2203 val 2 {(2, 1), (2, 1), (4, 2)} < pval π 2 {(2, 1), (2, 1), (4, 2)} ∨
2204 val 2 {(2, 1), (4, 2)} < pval π 2 {(2, 1), (4, 2)} := by
2205 rcases prop7_own_counts key hkey with h | h
2206 · left
2207 exact (h _ h1).trans_le ((val_le_pval π hπ _ 2 _ rfl (by decide)).2 (by norm_num) (by decide))
2208 · right
2209 exact (h _ h2).trans_le ((val_le_pval π hπ _ 2 _ rfl (by decide)).2 (by norm_num) (by decide))
2210
2211/-- The richer contexts (total items, total failures, number of categories) cannot separate these
2212two states: they agree on all three. -/
2213theorem prop7_context_pair :
2214 items {(2, 1), (2, 1), (4, 1), (4, 2)} = items {(2, 1), (3, 1), (3, 1), (4, 2)} ∧
2215 fails {(2, 1), (2, 1), (4, 1), (4, 2)} = fails {(2, 1), (3, 1), (3, 1), (4, 2)} ∧
2216 Multiset.card ({(2, 1), (2, 1), (4, 1), (4, 2)} : Multiset Cat) =
2217 Multiset.card ({(2, 1), (3, 1), (3, 1), (4, 2)} : Multiset Cat) := by
2218 refine ⟨by decide, by decide, by decide⟩
2219
2220/-- **Proposition 7 (with totals and category count), corrected witness pair.** With two hits
2221needed, 12 items, 5 failures and 4 categories, `(2,1)` is the unique optimal first patch in
2222`{(2,1),(2,1),(4,1),(4,2)}` (`3`; `(4,1)` gives `29/8`, `(4,2)` gives `37/12`) and `(4,2)` the
2223unique optimal one in `{(2,1),(3,1),(3,1),(4,2)}` (`37/12`; `(2,1)` gives `19/6`, `(3,1)` gives
2224`7/2`). So every strict index rule that sees the own counts, the requirement, the totals and the
2225category count makes a strictly suboptimal first patch in one of them. -/
2226theorem prop7_with_context {α : Type*} [LinearOrder α] (key : Cat → α) (hkey : key (2, 1) ≠ key (4, 2)) :
2227 (∀ c, IsTop key {(2, 1), (2, 1), (4, 1), (4, 2)} c →
2228 val 2 {(2, 1), (2, 1), (4, 1), (4, 2)} < firstPatch 2 {(2, 1), (2, 1), (4, 1), (4, 2)} c) ∨
2229 (∀ c, IsTop key {(2, 1), (3, 1), (3, 1), (4, 2)} c →
2230 val 2 {(2, 1), (3, 1), (3, 1), (4, 2)} < firstPatch 2 {(2, 1), (3, 1), (3, 1), (4, 2)} c) := by
2231 rcases lt_or_gt_of_ne hkey with h | h
2232 · left
2233 rintro c ⟨hc, htop⟩
2234 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hc
2235 rcases hc with rfl | rfl | rfl | rfl
2236 · exact absurd (htop (4, 2) (by decide) (by decide)) (not_lt.2 h.le)
2237 · exact absurd (htop (4, 2) (by decide) (by decide)) (not_lt.2 h.le)
2238 · rw [v2_2x1_2x1_4x1_4x2, fp2_2x1_2x1_4x1_4x2__4x1]; norm_num
2239 · rw [v2_2x1_2x1_4x1_4x2, fp2_2x1_2x1_4x1_4x2__4x2]; norm_num
2240 · right
2241 rintro c ⟨hc, htop⟩
2242 simp only [Multiset.insert_eq_cons, Multiset.mem_cons, Multiset.mem_singleton] at hc
2243 rcases hc with rfl | rfl | rfl | rfl
2244 · rw [v2_2x1_3x1_3x1_4x2, fp2_2x1_3x1_3x1_4x2__2x1]; norm_num
2245 · rw [v2_2x1_3x1_3x1_4x2, fp2_2x1_3x1_3x1_4x2__3x1]; norm_num
2246 · rw [v2_2x1_3x1_3x1_4x2, fp2_2x1_3x1_3x1_4x2__3x1]; norm_num
2247 · exact absurd (htop (2, 1) (by decide) (by decide)) (not_lt.2 h.le)
2248
2249/-- **Proposition 8 (witness).** In `{(2,1),(5,2)}` with two hits needed, the rates are `1/2` and
2250`2/5`, yet patching `(5,2)` first needs `69/20` patches and `(2,1)` first `7/2`; `69/20` is the
2251optimum. -/
2252theorem prop8_witness :
2253 rate (5, 2) < rate (2, 1) ∧
2254 firstPatch 2 {(2, 1), (5, 2)} (5, 2) = 69 / 20 ∧
2255 firstPatch 2 {(2, 1), (5, 2)} (2, 1) = 7 / 2 ∧
2256 val 2 {(2, 1), (5, 2)} = 69 / 20 :=
2257 ⟨by norm_num, fp2_2x1_5x2__5x2, fp2_2x1_5x2__2x1, v2_2x1_5x2⟩
2258
2259
2260/-- **Greedy is not optimal** (the note's witness). In `{(2,1),(4,2)}` with two hits needed the
2261rates tie at `1/2` and greedy (ties to the smaller category) patches `(2,1)` first; every legal
2262policy that does so costs at least `19/6`, strictly more than the optimum `37/12`. -/
2263theorem greedy_not_optimal (π : Policy) (hπ : Legal π) (h : π 2 {(2, 1), (4, 2)} = (2, 1)) :
2264 rate (2, 1) = rate (4, 2) ∧ val 2 {(2, 1), (4, 2)} = 37 / 12 ∧
2265 (19 / 6 : ℚ) ≤ pval π 2 {(2, 1), (4, 2)} ∧ val 2 {(2, 1), (4, 2)} < pval π 2 {(2, 1), (4, 2)} := by
2266 have hfp := (val_le_pval π hπ _ 2 ({(2, 1), (4, 2)} : Multiset Cat) rfl (by decide)).2
2267 (by norm_num) (by decide)
2268 rw [h, fp2_2x1_4x2__2x1] at hfp
2269 refine ⟨by norm_num, v2_2x1_4x2, hfp, ?_⟩
2270 rw [v2_2x1_4x2]
2271 linarith
2272
2273end FeedbackChannel.PatchWitness