cfahlgren1's picture
download
raw
64.3 kB
9
def required_6 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (0, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
10
def envelope_6 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 3), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
11
def childrenC_6 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) required_4), (placed21 1 (0, 1) required_5)]
12
def childrenD_6 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) envelope_4), (placed21 1 (0, 1) envelope_5)]
13
theorem common_sub_6 : commonEnvelope childrenD_6 ⊆ insert (1, 4) required_6 := by decide +kernel
14
theorem child_required_sub_6 : ∀ j, childrenC_6 j ⊆ insert (1, 4) required_6 := by decide +kernel
15
theorem child_envelope_sub_6 : ∀ j, childrenD_6 j ⊆ envelope_6 := by decide +kernel
16
theorem pivot_mem_6 : (1, 4) ∈ envelope_6 := by decide +kernel
17
theorem children_work_6 : ∀ j, Template HasSnaky 1 (childrenC_6 j) (childrenD_6 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_4 1 (0, 0)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 1 (0, 1)).mono (by decide +kernel)
22
theorem row_works_6 : Template HasSnaky 2 required_6 envelope_6 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_6 childrenD_6 children_work_6 (1, 4)
    required_6 envelope_6 pivot_mem_6 child_required_sub_6 child_envelope_sub_6 ?_
  intro b hb
  exact common_sub_6 (mem_commonEnvelope childrenD_6 b hb)
27
def required_11 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (0, 4), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
28
def envelope_11 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (1, 0), (1, 1), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
29
def childrenC_11 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) required_0), (placed21 3 (0, 4) required_5)]
30
def childrenD_11 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) envelope_0), (placed21 3 (0, 4) envelope_5)]
31
theorem common_sub_11 : commonEnvelope childrenD_11 ⊆ insert (1, 1) required_11 := by decide +kernel
32
theorem child_required_sub_11 : ∀ j, childrenC_11 j ⊆ insert (1, 1) required_11 := by decide +kernel
33
theorem child_envelope_sub_11 : ∀ j, childrenD_11 j ⊆ envelope_11 := by decide +kernel
34
theorem pivot_mem_11 : (1, 1) ∈ envelope_11 := by decide +kernel
35
theorem children_work_11 : ∀ j, Template HasSnaky 1 (childrenC_11 j) (childrenD_11 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (0, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (0, 4)).mono (by decide +kernel)
40
theorem row_works_11 : Template HasSnaky 2 required_11 envelope_11 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_11 childrenD_11 children_work_11 (1, 1)
    required_11 envelope_11 pivot_mem_11 child_required_sub_11 child_envelope_sub_11 ?_
  intro b hb
  exact common_sub_11 (mem_commonEnvelope childrenD_11 b hb)
45
def required_15 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
46
def envelope_15 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
47
def childrenC_15 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) required_0), (placed21 7 (1, 5) required_0)]
48
def childrenD_15 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) envelope_0), (placed21 7 (1, 5) envelope_0)]
49
theorem common_sub_15 : commonEnvelope childrenD_15 ⊆ insert (1, 4) required_15 := by decide +kernel
50
theorem child_required_sub_15 : ∀ j, childrenC_15 j ⊆ insert (1, 4) required_15 := by decide +kernel
51
theorem child_envelope_sub_15 : ∀ j, childrenD_15 j ⊆ envelope_15 := by decide +kernel
52
theorem pivot_mem_15 : (1, 4) ∈ envelope_15 := by decide +kernel
53
theorem children_work_15 : ∀ j, Template HasSnaky 1 (childrenC_15 j) (childrenD_15 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 1 (0, 0)).mono (by decide +kernel)
  · exact (placed21_template row_works_0 7 (1, 5)).mono (by decide +kernel)
58
theorem row_works_15 : Template HasSnaky 2 required_15 envelope_15 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_15 childrenD_15 children_work_15 (1, 4)
    required_15 envelope_15 pivot_mem_15 child_required_sub_15 child_envelope_sub_15 ?_
  intro b hb
  exact common_sub_15 (mem_commonEnvelope childrenD_15 b hb)
63
def required_22 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 4), (1, 1), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
64
def envelope_22 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (1, 0), (1, 1), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
65
def childrenC_22 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) required_0), (placed21 3 (0, 4) required_5)]
66
def childrenD_22 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) envelope_0), (placed21 3 (0, 4) envelope_5)]
67
theorem common_sub_22 : commonEnvelope childrenD_22 ⊆ insert (0, 3) required_22 := by decide +kernel
68
theorem child_required_sub_22 : ∀ j, childrenC_22 j ⊆ insert (0, 3) required_22 := by decide +kernel
69
theorem child_envelope_sub_22 : ∀ j, childrenD_22 j ⊆ envelope_22 := by decide +kernel
70
theorem pivot_mem_22 : (0, 3) ∈ envelope_22 := by decide +kernel
71
theorem children_work_22 : ∀ j, Template HasSnaky 1 (childrenC_22 j) (childrenD_22 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (0, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (0, 4)).mono (by decide +kernel)
76
theorem row_works_22 : Template HasSnaky 2 required_22 envelope_22 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_22 childrenD_22 children_work_22 (0, 3)
    required_22 envelope_22 pivot_mem_22 child_required_sub_22 child_envelope_sub_22 ?_
  intro b hb
  exact common_sub_22 (mem_commonEnvelope childrenD_22 b hb)
81
def required_23 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (1, 1), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
82
def envelope_23 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (1, 0), (1, 1), (1, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
83
def childrenC_23 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) required_0), (placed21 3 (0, 4) required_5)]
84
def childrenD_23 : Fin 2 → Finset Cell := ![(placed21 3 (0, 5) envelope_0), (placed21 3 (0, 4) envelope_5)]
85
theorem common_sub_23 : commonEnvelope childrenD_23 ⊆ insert (0, 4) required_23 := by decide +kernel
86
theorem child_required_sub_23 : ∀ j, childrenC_23 j ⊆ insert (0, 4) required_23 := by decide +kernel
87
theorem child_envelope_sub_23 : ∀ j, childrenD_23 j ⊆ envelope_23 := by decide +kernel
88
theorem pivot_mem_23 : (0, 4) ∈ envelope_23 := by decide +kernel
89
theorem children_work_23 : ∀ j, Template HasSnaky 1 (childrenC_23 j) (childrenD_23 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (0, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (0, 4)).mono (by decide +kernel)
94
theorem row_works_23 : Template HasSnaky 2 required_23 envelope_23 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_23 childrenD_23 children_work_23 (0, 4)
    required_23 envelope_23 pivot_mem_23 child_required_sub_23 child_envelope_sub_23 ?_
  intro b hb
  exact common_sub_23 (mem_commonEnvelope childrenD_23 b hb)
99
def required_25 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 1), (2, 3), (2, 4), (3, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
100
def envelope_25 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 1), (2, 2), (2, 3), (2, 4), (3, 0), (3, 1), (4, 0)] : List Cell) : Multiset Cell), by decide +kernel⟩
101
def childrenC_25 : Fin 2 → Finset Cell := ![(placed21 3 (2, 4) required_2), (placed21 4 (0, 1) required_5)]
102
def childrenD_25 : Fin 2 → Finset Cell := ![(placed21 3 (2, 4) envelope_2), (placed21 4 (0, 1) envelope_5)]
103
theorem common_sub_25 : commonEnvelope childrenD_25 ⊆ insert (3, 0) required_25 := by decide +kernel
104
theorem child_required_sub_25 : ∀ j, childrenC_25 j ⊆ insert (3, 0) required_25 := by decide +kernel
105
theorem child_envelope_sub_25 : ∀ j, childrenD_25 j ⊆ envelope_25 := by decide +kernel
106
theorem pivot_mem_25 : (3, 0) ∈ envelope_25 := by decide +kernel
107
theorem children_work_25 : ∀ j, Template HasSnaky 1 (childrenC_25 j) (childrenD_25 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_2 3 (2, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 4 (0, 1)).mono (by decide +kernel)
112
theorem row_works_25 : Template HasSnaky 2 required_25 envelope_25 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_25 childrenD_25 children_work_25 (3, 0)
    required_25 envelope_25 pivot_mem_25 child_required_sub_25 child_envelope_sub_25 ?_
  intro b hb
  exact common_sub_25 (mem_commonEnvelope childrenD_25 b hb)
117
def required_28 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 3), (1, 4), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
118
def envelope_28 : Finset Cell := ⟨(([(0, 0), (0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 0), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
119
def childrenC_28 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) required_5), (placed21 7 (1, 4) required_5)]
120
def childrenD_28 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) envelope_5), (placed21 7 (1, 4) envelope_5)]
121
theorem common_sub_28 : commonEnvelope childrenD_28 ⊆ insert (1, 2) required_28 := by decide +kernel
122
theorem child_required_sub_28 : ∀ j, childrenC_28 j ⊆ insert (1, 2) required_28 := by decide +kernel
123
theorem child_envelope_sub_28 : ∀ j, childrenD_28 j ⊆ envelope_28 := by decide +kernel
124
theorem pivot_mem_28 : (1, 2) ∈ envelope_28 := by decide +kernel
125
theorem children_work_28 : ∀ j, Template HasSnaky 1 (childrenC_28 j) (childrenD_28 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 7 (1, 4)).mono (by decide +kernel)
130
theorem row_works_28 : Template HasSnaky 2 required_28 envelope_28 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_28 childrenD_28 children_work_28 (1, 2)
    required_28 envelope_28 pivot_mem_28 child_required_sub_28 child_envelope_sub_28 ?_
  intro b hb
  exact common_sub_28 (mem_commonEnvelope childrenD_28 b hb)
135
def required_30 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 3), (1, 0), (1, 1), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
136
def envelope_30 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 3), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
137
def childrenC_30 : Fin 2 → Finset Cell := ![(placed21 3 (0, 4) required_0), (placed21 1 (0, 0) required_5)]
138
def childrenD_30 : Fin 2 → Finset Cell := ![(placed21 3 (0, 4) envelope_0), (placed21 1 (0, 0) envelope_5)]
139
theorem common_sub_30 : commonEnvelope childrenD_30 ⊆ insert (0, 2) required_30 := by decide +kernel
140
theorem child_required_sub_30 : ∀ j, childrenC_30 j ⊆ insert (0, 2) required_30 := by decide +kernel
141
theorem child_envelope_sub_30 : ∀ j, childrenD_30 j ⊆ envelope_30 := by decide +kernel
142
theorem pivot_mem_30 : (0, 2) ∈ envelope_30 := by decide +kernel
143
theorem children_work_30 : ∀ j, Template HasSnaky 1 (childrenC_30 j) (childrenD_30 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (0, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 1 (0, 0)).mono (by decide +kernel)
148
theorem row_works_30 : Template HasSnaky 2 required_30 envelope_30 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_30 childrenD_30 children_work_30 (0, 2)
    required_30 envelope_30 pivot_mem_30 child_required_sub_30 child_envelope_sub_30 ?_
  intro b hb
  exact common_sub_30 (mem_commonEnvelope childrenD_30 b hb)
153
def required_32 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 1), (2, 2), (2, 3), (3, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
154
def envelope_32 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 1), (2, 2), (2, 3), (2, 4), (3, 0), (3, 1), (4, 0)] : List Cell) : Multiset Cell), by decide +kernel⟩
155
def childrenC_32 : Fin 2 → Finset Cell := ![(placed21 3 (2, 4) required_0), (placed21 4 (0, 1) required_5)]
156
def childrenD_32 : Fin 2 → Finset Cell := ![(placed21 3 (2, 4) envelope_0), (placed21 4 (0, 1) envelope_5)]
157
theorem common_sub_32 : commonEnvelope childrenD_32 ⊆ insert (3, 0) required_32 := by decide +kernel
158
theorem child_required_sub_32 : ∀ j, childrenC_32 j ⊆ insert (3, 0) required_32 := by decide +kernel
159
theorem child_envelope_sub_32 : ∀ j, childrenD_32 j ⊆ envelope_32 := by decide +kernel
160
theorem pivot_mem_32 : (3, 0) ∈ envelope_32 := by decide +kernel
161
theorem children_work_32 : ∀ j, Template HasSnaky 1 (childrenC_32 j) (childrenD_32 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (2, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 4 (0, 1)).mono (by decide +kernel)
166
theorem row_works_32 : Template HasSnaky 2 required_32 envelope_32 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_32 childrenD_32 children_work_32 (3, 0)
    required_32 envelope_32 pivot_mem_32 child_required_sub_32 child_envelope_sub_32 ?_
  intro b hb
  exact common_sub_32 (mem_commonEnvelope childrenD_32 b hb)
171
def required_34 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 4), (1, 1), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
172
def envelope_34 : Finset Cell := ⟨(([(0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
173
def childrenC_34 : Fin 2 → Finset Cell := ![(placed21 1 (0, 1) required_5), (placed21 3 (0, 4) required_5)]
174
def childrenD_34 : Fin 2 → Finset Cell := ![(placed21 1 (0, 1) envelope_5), (placed21 3 (0, 4) envelope_5)]
175
theorem common_sub_34 : commonEnvelope childrenD_34 ⊆ insert (0, 3) required_34 := by decide +kernel
176
theorem child_required_sub_34 : ∀ j, childrenC_34 j ⊆ insert (0, 3) required_34 := by decide +kernel
177
theorem child_envelope_sub_34 : ∀ j, childrenD_34 j ⊆ envelope_34 := by decide +kernel
178
theorem pivot_mem_34 : (0, 3) ∈ envelope_34 := by decide +kernel
179
theorem children_work_34 : ∀ j, Template HasSnaky 1 (childrenC_34 j) (childrenD_34 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_5 1 (0, 1)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (0, 4)).mono (by decide +kernel)
184
theorem row_works_34 : Template HasSnaky 2 required_34 envelope_34 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_34 childrenD_34 children_work_34 (0, 3)
    required_34 envelope_34 pivot_mem_34 child_required_sub_34 child_envelope_sub_34 ?_
  intro b hb
  exact common_sub_34 (mem_commonEnvelope childrenD_34 b hb)
189
def required_35 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 0), (2, 1), (3, 1), (3, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
190
def envelope_35 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 0), (2, 1), (3, 1), (3, 2), (3, 3), (3, 4), (4, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
191
def childrenC_35 : Fin 2 → Finset Cell := ![(placed21 7 (3, 4) required_1), (placed21 0 (0, 1) required_5)]
192
def childrenD_35 : Fin 2 → Finset Cell := ![(placed21 7 (3, 4) envelope_1), (placed21 0 (0, 1) envelope_5)]
193
theorem common_sub_35 : commonEnvelope childrenD_35 ⊆ insert (3, 2) required_35 := by decide +kernel
194
theorem child_required_sub_35 : ∀ j, childrenC_35 j ⊆ insert (3, 2) required_35 := by decide +kernel
195
theorem child_envelope_sub_35 : ∀ j, childrenD_35 j ⊆ envelope_35 := by decide +kernel
196
theorem pivot_mem_35 : (3, 2) ∈ envelope_35 := by decide +kernel
197
theorem children_work_35 : ∀ j, Template HasSnaky 1 (childrenC_35 j) (childrenD_35 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_1 7 (3, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 0 (0, 1)).mono (by decide +kernel)
202
theorem row_works_35 : Template HasSnaky 2 required_35 envelope_35 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_35 childrenD_35 children_work_35 (3, 2)
    required_35 envelope_35 pivot_mem_35 child_required_sub_35 child_envelope_sub_35 ?_
  intro b hb
  exact common_sub_35 (mem_commonEnvelope childrenD_35 b hb)
207
def required_36 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 3), (1, 1), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
208
def envelope_36 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
209
def childrenC_36 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) required_2), (placed21 7 (1, 4) required_2)]
210
def childrenD_36 : Fin 2 → Finset Cell := ![(placed21 1 (0, 0) envelope_2), (placed21 7 (1, 4) envelope_2)]
211
theorem common_sub_36 : commonEnvelope childrenD_36 ⊆ insert (1, 4) required_36 := by decide +kernel
212
theorem child_required_sub_36 : ∀ j, childrenC_36 j ⊆ insert (1, 4) required_36 := by decide +kernel
213
theorem child_envelope_sub_36 : ∀ j, childrenD_36 j ⊆ envelope_36 := by decide +kernel
214
theorem pivot_mem_36 : (1, 4) ∈ envelope_36 := by decide +kernel
215
theorem children_work_36 : ∀ j, Template HasSnaky 1 (childrenC_36 j) (childrenD_36 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_2 1 (0, 0)).mono (by decide +kernel)
  · exact (placed21_template row_works_2 7 (1, 4)).mono (by decide +kernel)
220
theorem row_works_36 : Template HasSnaky 2 required_36 envelope_36 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_36 childrenD_36 children_work_36 (1, 4)
    required_36 envelope_36 pivot_mem_36 child_required_sub_36 child_envelope_sub_36 ?_
  intro b hb
  exact common_sub_36 (mem_commonEnvelope childrenD_36 b hb)
225
def required_38 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 0), (2, 1), (3, 1), (3, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
226
def envelope_38 : Finset Cell := ⟨(([(0, 1), (1, 1), (2, 0), (2, 1), (3, 1), (3, 2), (3, 3), (3, 4), (4, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
227
def childrenC_38 : Fin 2 → Finset Cell := ![(placed21 7 (3, 4) required_0), (placed21 0 (0, 1) required_5)]
228
def childrenD_38 : Fin 2 → Finset Cell := ![(placed21 7 (3, 4) envelope_0), (placed21 0 (0, 1) envelope_5)]
229
theorem common_sub_38 : commonEnvelope childrenD_38 ⊆ insert (3, 2) required_38 := by decide +kernel
230
theorem child_required_sub_38 : ∀ j, childrenC_38 j ⊆ insert (3, 2) required_38 := by decide +kernel
231
theorem child_envelope_sub_38 : ∀ j, childrenD_38 j ⊆ envelope_38 := by decide +kernel
232
theorem pivot_mem_38 : (3, 2) ∈ envelope_38 := by decide +kernel
233
theorem children_work_38 : ∀ j, Template HasSnaky 1 (childrenC_38 j) (childrenD_38 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 7 (3, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 0 (0, 1)).mono (by decide +kernel)
238
theorem row_works_38 : Template HasSnaky 2 required_38 envelope_38 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_38 childrenD_38 children_work_38 (3, 2)
    required_38 envelope_38 pivot_mem_38 child_required_sub_38 child_envelope_sub_38 ?_
  intro b hb
  exact common_sub_38 (mem_commonEnvelope childrenD_38 b hb)
243
def required_40 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 2), (1, 4), (2, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
244
def envelope_40 : Finset Cell := ⟨(([(0, 0), (0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 4), (2, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
245
def childrenC_40 : Fin 2 → Finset Cell := ![(placed21 1 (1, 1) required_5), (placed21 7 (1, 4) required_5)]
246
def childrenD_40 : Fin 2 → Finset Cell := ![(placed21 1 (1, 1) envelope_5), (placed21 7 (1, 4) envelope_5)]
247
theorem common_sub_40 : commonEnvelope childrenD_40 ⊆ insert (1, 3) required_40 := by decide +kernel
248
theorem child_required_sub_40 : ∀ j, childrenC_40 j ⊆ insert (1, 3) required_40 := by decide +kernel
249
theorem child_envelope_sub_40 : ∀ j, childrenD_40 j ⊆ envelope_40 := by decide +kernel
250
theorem pivot_mem_40 : (1, 3) ∈ envelope_40 := by decide +kernel
251
theorem children_work_40 : ∀ j, Template HasSnaky 1 (childrenC_40 j) (childrenD_40 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_5 1 (1, 1)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 7 (1, 4)).mono (by decide +kernel)
256
theorem row_works_40 : Template HasSnaky 2 required_40 envelope_40 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_40 childrenD_40 children_work_40 (1, 3)
    required_40 envelope_40 pivot_mem_40 child_required_sub_40 child_envelope_sub_40 ?_
  intro b hb
  exact common_sub_40 (mem_commonEnvelope childrenD_40 b hb)
261
def required_43 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (1, 2), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
262
def envelope_43 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
263
def childrenC_43 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) required_0), (placed21 7 (1, 4) required_3)]
264
def childrenD_43 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) envelope_0), (placed21 7 (1, 4) envelope_3)]
265
theorem common_sub_43 : commonEnvelope childrenD_43 ⊆ insert (1, 4) required_43 := by decide +kernel
266
theorem child_required_sub_43 : ∀ j, childrenC_43 j ⊆ insert (1, 4) required_43 := by decide +kernel
267
theorem child_envelope_sub_43 : ∀ j, childrenD_43 j ⊆ envelope_43 := by decide +kernel
268
theorem pivot_mem_43 : (1, 4) ∈ envelope_43 := by decide +kernel
269
theorem children_work_43 : ∀ j, Template HasSnaky 1 (childrenC_43 j) (childrenD_43 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 7 (1, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_3 7 (1, 4)).mono (by decide +kernel)
274
theorem row_works_43 : Template HasSnaky 2 required_43 envelope_43 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_43 childrenD_43 children_work_43 (1, 4)
    required_43 envelope_43 pivot_mem_43 child_required_sub_43 child_envelope_sub_43 ?_
  intro b hb
  exact common_sub_43 (mem_commonEnvelope childrenD_43 b hb)
279
def required_51 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (1, 2), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
280
def envelope_51 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
281
def childrenC_51 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) required_0), (placed21 1 (0, 0) required_3)]
282
def childrenD_51 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) envelope_0), (placed21 1 (0, 0) envelope_3)]
283
theorem common_sub_51 : commonEnvelope childrenD_51 ⊆ insert (1, 4) required_51 := by decide +kernel
284
theorem child_required_sub_51 : ∀ j, childrenC_51 j ⊆ insert (1, 4) required_51 := by decide +kernel
285
theorem child_envelope_sub_51 : ∀ j, childrenD_51 j ⊆ envelope_51 := by decide +kernel
286
theorem pivot_mem_51 : (1, 4) ∈ envelope_51 := by decide +kernel
287
theorem children_work_51 : ∀ j, Template HasSnaky 1 (childrenC_51 j) (childrenD_51 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 7 (1, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_3 1 (0, 0)).mono (by decide +kernel)
292
theorem row_works_51 : Template HasSnaky 2 required_51 envelope_51 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_51 childrenD_51 children_work_51 (1, 4)
    required_51 envelope_51 pivot_mem_51 child_required_sub_51 child_envelope_sub_51 ?_
  intro b hb
  exact common_sub_51 (mem_commonEnvelope childrenD_51 b hb)
297
def required_66 : Finset Cell := ⟨(([(0, 1), (0, 2), (1, 1), (1, 2), (1, 3), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
298
def envelope_66 : Finset Cell := ⟨(([(0, 1), (0, 2), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (2, 0), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
299
def childrenC_66 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) required_0), (placed21 3 (1, 4) required_5)]
300
def childrenD_66 : Fin 2 → Finset Cell := ![(placed21 7 (1, 5) envelope_0), (placed21 3 (1, 4) envelope_5)]
301
theorem common_sub_66 : commonEnvelope childrenD_66 ⊆ insert (1, 4) required_66 := by decide +kernel
302
theorem child_required_sub_66 : ∀ j, childrenC_66 j ⊆ insert (1, 4) required_66 := by decide +kernel
303
theorem child_envelope_sub_66 : ∀ j, childrenD_66 j ⊆ envelope_66 := by decide +kernel
304
theorem pivot_mem_66 : (1, 4) ∈ envelope_66 := by decide +kernel
305
theorem children_work_66 : ∀ j, Template HasSnaky 1 (childrenC_66 j) (childrenD_66 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 7 (1, 5)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
310
theorem row_works_66 : Template HasSnaky 2 required_66 envelope_66 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_66 childrenD_66 children_work_66 (1, 4)
    required_66 envelope_66 pivot_mem_66 child_required_sub_66 child_envelope_sub_66 ?_
  intro b hb
  exact common_sub_66 (mem_commonEnvelope childrenD_66 b hb)
315
def required_68 : Finset Cell := ⟨(([(0, 0), (0, 3), (1, 3), (1, 4), (1, 5)] : List Cell) : Multiset Cell), by decide +kernel⟩
316
def envelope_68 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (1, 3), (1, 4), (1, 5), (1, 6)] : List Cell) : Multiset Cell), by decide +kernel⟩
317
def childrenC_68 : Fin 2 → Finset Cell := ![(placed21 7 (1, 6) required_0), (placed21 1 (0, 0) required_1)]
318
def childrenD_68 : Fin 2 → Finset Cell := ![(placed21 7 (1, 6) envelope_0), (placed21 1 (0, 0) envelope_1)]
319
theorem common_sub_68 : commonEnvelope childrenD_68 ⊆ insert (0, 2) required_68 := by decide +kernel
320
theorem child_required_sub_68 : ∀ j, childrenC_68 j ⊆ insert (0, 2) required_68 := by decide +kernel
321
theorem child_envelope_sub_68 : ∀ j, childrenD_68 j ⊆ envelope_68 := by decide +kernel
322
theorem pivot_mem_68 : (0, 2) ∈ envelope_68 := by decide +kernel
323
theorem children_work_68 : ∀ j, Template HasSnaky 1 (childrenC_68 j) (childrenD_68 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 7 (1, 6)).mono (by decide +kernel)
  · exact (placed21_template row_works_1 1 (0, 0)).mono (by decide +kernel)
328
theorem row_works_68 : Template HasSnaky 2 required_68 envelope_68 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_68 childrenD_68 children_work_68 (0, 2)
    required_68 envelope_68 pivot_mem_68 child_required_sub_68 child_envelope_sub_68 ?_
  intro b hb
  exact common_sub_68 (mem_commonEnvelope childrenD_68 b hb)
333
def required_70 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (1, 1), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
334
def envelope_70 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
335
def childrenC_70 : Fin 2 → Finset Cell := ![(placed21 7 (1, 4) required_2), (placed21 1 (0, 0) required_3)]
336
def childrenD_70 : Fin 2 → Finset Cell := ![(placed21 7 (1, 4) envelope_2), (placed21 1 (0, 0) envelope_3)]
337
theorem common_sub_70 : commonEnvelope childrenD_70 ⊆ insert (1, 3) required_70 := by decide +kernel
338
theorem child_required_sub_70 : ∀ j, childrenC_70 j ⊆ insert (1, 3) required_70 := by decide +kernel
339
theorem child_envelope_sub_70 : ∀ j, childrenD_70 j ⊆ envelope_70 := by decide +kernel
340
theorem pivot_mem_70 : (1, 3) ∈ envelope_70 := by decide +kernel
341
theorem children_work_70 : ∀ j, Template HasSnaky 1 (childrenC_70 j) (childrenD_70 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_2 7 (1, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_3 1 (0, 0)).mono (by decide +kernel)
346
theorem row_works_70 : Template HasSnaky 2 required_70 envelope_70 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_70 childrenD_70 children_work_70 (1, 3)
    required_70 envelope_70 pivot_mem_70 child_required_sub_70 child_envelope_sub_70 ?_
  intro b hb
  exact common_sub_70 (mem_commonEnvelope childrenD_70 b hb)
351
def required_76 : Finset Cell := ⟨(([(0, 0), (1, 1), (1, 2), (1, 3), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
352
def envelope_76 : Finset Cell := ⟨(([(0, 0), (0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 0), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
353
def childrenC_76 : Fin 2 → Finset Cell := ![(placed21 7 (1, 4) required_4), (placed21 3 (1, 4) required_5)]
354
def childrenD_76 : Fin 2 → Finset Cell := ![(placed21 7 (1, 4) envelope_4), (placed21 3 (1, 4) envelope_5)]
355
theorem common_sub_76 : commonEnvelope childrenD_76 ⊆ insert (1, 4) required_76 := by decide +kernel
356
theorem child_required_sub_76 : ∀ j, childrenC_76 j ⊆ insert (1, 4) required_76 := by decide +kernel
357
theorem child_envelope_sub_76 : ∀ j, childrenD_76 j ⊆ envelope_76 := by decide +kernel
358
theorem pivot_mem_76 : (1, 4) ∈ envelope_76 := by decide +kernel
359
theorem children_work_76 : ∀ j, Template HasSnaky 1 (childrenC_76 j) (childrenD_76 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_4 7 (1, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
364
theorem row_works_76 : Template HasSnaky 2 required_76 envelope_76 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_76 childrenD_76 children_work_76 (1, 4)
    required_76 envelope_76 pivot_mem_76 child_required_sub_76 child_envelope_sub_76 ?_
  intro b hb
  exact common_sub_76 (mem_commonEnvelope childrenD_76 b hb)
369
def required_77 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (3, 2), (4, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
370
def envelope_77 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 0), (2, 1), (3, 1), (3, 2), (4, 2)] : List Cell) : Multiset Cell), by decide +kernel⟩
371
def childrenC_77 : Fin 2 → Finset Cell := ![(placed21 0 (0, 1) required_3), (placed21 3 (1, 4) required_5)]
372
def childrenD_77 : Fin 2 → Finset Cell := ![(placed21 0 (0, 1) envelope_3), (placed21 3 (1, 4) envelope_5)]
373
theorem common_sub_77 : commonEnvelope childrenD_77 ⊆ insert (2, 1) required_77 := by decide +kernel
374
theorem child_required_sub_77 : ∀ j, childrenC_77 j ⊆ insert (2, 1) required_77 := by decide +kernel
375
theorem child_envelope_sub_77 : ∀ j, childrenD_77 j ⊆ envelope_77 := by decide +kernel
376
theorem pivot_mem_77 : (2, 1) ∈ envelope_77 := by decide +kernel
377
theorem children_work_77 : ∀ j, Template HasSnaky 1 (childrenC_77 j) (childrenD_77 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_3 0 (0, 1)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
382
theorem row_works_77 : Template HasSnaky 2 required_77 envelope_77 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_77 childrenD_77 children_work_77 (2, 1)
    required_77 envelope_77 pivot_mem_77 child_required_sub_77 child_envelope_sub_77 ?_
  intro b hb
  exact common_sub_77 (mem_commonEnvelope childrenD_77 b hb)
387
def required_80 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 2), (1, 4), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
388
def envelope_80 : Finset Cell := ⟨(([(0, 0), (0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 0), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
389
def childrenC_80 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) required_5), (placed21 7 (1, 4) required_5)]
390
def childrenD_80 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) envelope_5), (placed21 7 (1, 4) envelope_5)]
391
theorem common_sub_80 : commonEnvelope childrenD_80 ⊆ insert (1, 3) required_80 := by decide +kernel
392
theorem child_required_sub_80 : ∀ j, childrenC_80 j ⊆ insert (1, 3) required_80 := by decide +kernel
393
theorem child_envelope_sub_80 : ∀ j, childrenD_80 j ⊆ envelope_80 := by decide +kernel
394
theorem pivot_mem_80 : (1, 3) ∈ envelope_80 := by decide +kernel
395
theorem children_work_80 : ∀ j, Template HasSnaky 1 (childrenC_80 j) (childrenD_80 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 7 (1, 4)).mono (by decide +kernel)
400
theorem row_works_80 : Template HasSnaky 2 required_80 envelope_80 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_80 childrenD_80 children_work_80 (1, 3)
    required_80 envelope_80 pivot_mem_80 child_required_sub_80 child_envelope_sub_80 ?_
  intro b hb
  exact common_sub_80 (mem_commonEnvelope childrenD_80 b hb)
405
def required_83 : Finset Cell := ⟨(([(0, 1), (1, 1), (1, 2), (1, 3), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
406
def envelope_83 : Finset Cell := ⟨(([(0, 0), (0, 1), (1, 1), (1, 2), (1, 3), (1, 4), (2, 0), (2, 1)] : List Cell) : Multiset Cell), by decide +kernel⟩
407
def childrenC_83 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) required_5), (placed21 7 (1, 4) required_5)]
408
def childrenD_83 : Fin 2 → Finset Cell := ![(placed21 3 (1, 4) envelope_5), (placed21 7 (1, 4) envelope_5)]
409
theorem common_sub_83 : commonEnvelope childrenD_83 ⊆ insert (1, 4) required_83 := by decide +kernel
410
theorem child_required_sub_83 : ∀ j, childrenC_83 j ⊆ insert (1, 4) required_83 := by decide +kernel
411
theorem child_envelope_sub_83 : ∀ j, childrenD_83 j ⊆ envelope_83 := by decide +kernel
412
theorem pivot_mem_83 : (1, 4) ∈ envelope_83 := by decide +kernel
413
theorem children_work_83 : ∀ j, Template HasSnaky 1 (childrenC_83 j) (childrenD_83 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_5 3 (1, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 7 (1, 4)).mono (by decide +kernel)
418
theorem row_works_83 : Template HasSnaky 2 required_83 envelope_83 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_83 childrenD_83 children_work_83 (1, 4)
    required_83 envelope_83 pivot_mem_83 child_required_sub_83 child_envelope_sub_83 ?_
  intro b hb
  exact common_sub_83 (mem_commonEnvelope childrenD_83 b hb)
423
def required_94 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 3)] : List Cell) : Multiset Cell), by decide +kernel⟩
424
def envelope_94 : Finset Cell := ⟨(([(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 3), (1, 4)] : List Cell) : Multiset Cell), by decide +kernel⟩
425
def childrenC_94 : Fin 2 → Finset Cell := ![(placed21 3 (0, 4) required_0), (placed21 1 (0, 0) required_5)]
426
def childrenD_94 : Fin 2 → Finset Cell := ![(placed21 3 (0, 4) envelope_0), (placed21 1 (0, 0) envelope_5)]
427
theorem common_sub_94 : commonEnvelope childrenD_94 ⊆ insert (0, 3) required_94 := by decide +kernel
428
theorem child_required_sub_94 : ∀ j, childrenC_94 j ⊆ insert (0, 3) required_94 := by decide +kernel
429
theorem child_envelope_sub_94 : ∀ j, childrenD_94 j ⊆ envelope_94 := by decide +kernel
430
theorem pivot_mem_94 : (0, 3) ∈ envelope_94 := by decide +kernel
431
theorem children_work_94 : ∀ j, Template HasSnaky 1 (childrenC_94 j) (childrenD_94 j) := by
proof · 4 lines
  intro j
  fin_cases j
  · exact (placed21_template row_works_0 3 (0, 4)).mono (by decide +kernel)
  · exact (placed21_template row_works_5 1 (0, 0)).mono (by decide +kernel)
436
theorem row_works_94 : Template HasSnaky 2 required_94 envelope_94 := by
proof · 4 lines
  refine compose HasSnaky 1 childrenC_94 childrenD_94 children_work_94 (0, 3)
    required_94 envelope_94 pivot_mem_94 child_required_sub_94 child_envelope_sub_94 ?_
  intro b hb
  exact common_sub_94 (mem_commonEnvelope childrenD_94 b hb)
441
def height_6 : ℕ := 2
442
def childrenH_6 : Fin 2 → ℕ := ![height_4, height_5]
443
theorem height_exact_6 : height_6 = 1 + Finset.univ.sup childrenH_6 := by decide +kernel
444
theorem required_origin_6 : ∀ x ∈ required_6,
    (∃ j, x ∈ childrenC_6 j) ∨ ∀ j, x ∈ childrenD_6 j := by decide +kernel
446
theorem required_exact_6 : required_6 =
    ((Finset.univ.biUnion childrenC_6) ∪ commonEnvelope childrenD_6).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_6 childrenD_6 (1, 4) required_6
    (by decide +kernel) child_required_sub_6 common_sub_6 required_origin_6
450
theorem envelope_origin_6 : ∀ x ∈ envelope_6,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_6 j := by decide +kernel
452
theorem envelope_exact_6 : envelope_6 =
    insert (1, 4) (Finset.univ.biUnion childrenD_6) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_6 (1, 4) envelope_6
    pivot_mem_6 child_envelope_sub_6 envelope_origin_6
456
def checked_6 : CheckedCard where
body · 7 lines
  required := required_6
  envelope := envelope_6
  height := height_6
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_6
464
def height_11 : ℕ := 2
465
def childrenH_11 : Fin 2 → ℕ := ![height_0, height_5]
466
theorem height_exact_11 : height_11 = 1 + Finset.univ.sup childrenH_11 := by decide +kernel
467
theorem required_origin_11 : ∀ x ∈ required_11,
    (∃ j, x ∈ childrenC_11 j) ∨ ∀ j, x ∈ childrenD_11 j := by decide +kernel
469
theorem required_exact_11 : required_11 =
    ((Finset.univ.biUnion childrenC_11) ∪ commonEnvelope childrenD_11).erase (1, 1) := by
proof · 2 lines
  exact required_eq_combination childrenC_11 childrenD_11 (1, 1) required_11
    (by decide +kernel) child_required_sub_11 common_sub_11 required_origin_11
473
theorem envelope_origin_11 : ∀ x ∈ envelope_11,
    x = (1, 1) ∨ ∃ j, x ∈ childrenD_11 j := by decide +kernel
475
theorem envelope_exact_11 : envelope_11 =
    insert (1, 1) (Finset.univ.biUnion childrenD_11) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_11 (1, 1) envelope_11
    pivot_mem_11 child_envelope_sub_11 envelope_origin_11
479
def checked_11 : CheckedCard where
body · 7 lines
  required := required_11
  envelope := envelope_11
  height := height_11
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_11
487
def height_15 : ℕ := 2
488
def childrenH_15 : Fin 2 → ℕ := ![height_0, height_0]
489
theorem height_exact_15 : height_15 = 1 + Finset.univ.sup childrenH_15 := by decide +kernel
490
theorem required_origin_15 : ∀ x ∈ required_15,
    (∃ j, x ∈ childrenC_15 j) ∨ ∀ j, x ∈ childrenD_15 j := by decide +kernel
492
theorem required_exact_15 : required_15 =
    ((Finset.univ.biUnion childrenC_15) ∪ commonEnvelope childrenD_15).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_15 childrenD_15 (1, 4) required_15
    (by decide +kernel) child_required_sub_15 common_sub_15 required_origin_15
496
theorem envelope_origin_15 : ∀ x ∈ envelope_15,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_15 j := by decide +kernel
498
theorem envelope_exact_15 : envelope_15 =
    insert (1, 4) (Finset.univ.biUnion childrenD_15) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_15 (1, 4) envelope_15
    pivot_mem_15 child_envelope_sub_15 envelope_origin_15
502
def checked_15 : CheckedCard where
body · 7 lines
  required := required_15
  envelope := envelope_15
  height := height_15
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_15
510
def height_22 : ℕ := 2
511
def childrenH_22 : Fin 2 → ℕ := ![height_0, height_5]
512
theorem height_exact_22 : height_22 = 1 + Finset.univ.sup childrenH_22 := by decide +kernel
513
theorem required_origin_22 : ∀ x ∈ required_22,
    (∃ j, x ∈ childrenC_22 j) ∨ ∀ j, x ∈ childrenD_22 j := by decide +kernel
515
theorem required_exact_22 : required_22 =
    ((Finset.univ.biUnion childrenC_22) ∪ commonEnvelope childrenD_22).erase (0, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_22 childrenD_22 (0, 3) required_22
    (by decide +kernel) child_required_sub_22 common_sub_22 required_origin_22
519
theorem envelope_origin_22 : ∀ x ∈ envelope_22,
    x = (0, 3) ∨ ∃ j, x ∈ childrenD_22 j := by decide +kernel
521
theorem envelope_exact_22 : envelope_22 =
    insert (0, 3) (Finset.univ.biUnion childrenD_22) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_22 (0, 3) envelope_22
    pivot_mem_22 child_envelope_sub_22 envelope_origin_22
525
def checked_22 : CheckedCard where
body · 7 lines
  required := required_22
  envelope := envelope_22
  height := height_22
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_22
533
def height_23 : ℕ := 2
534
def childrenH_23 : Fin 2 → ℕ := ![height_0, height_5]
535
theorem height_exact_23 : height_23 = 1 + Finset.univ.sup childrenH_23 := by decide +kernel
536
theorem required_origin_23 : ∀ x ∈ required_23,
    (∃ j, x ∈ childrenC_23 j) ∨ ∀ j, x ∈ childrenD_23 j := by decide +kernel
538
theorem required_exact_23 : required_23 =
    ((Finset.univ.biUnion childrenC_23) ∪ commonEnvelope childrenD_23).erase (0, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_23 childrenD_23 (0, 4) required_23
    (by decide +kernel) child_required_sub_23 common_sub_23 required_origin_23
542
theorem envelope_origin_23 : ∀ x ∈ envelope_23,
    x = (0, 4) ∨ ∃ j, x ∈ childrenD_23 j := by decide +kernel
544
theorem envelope_exact_23 : envelope_23 =
    insert (0, 4) (Finset.univ.biUnion childrenD_23) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_23 (0, 4) envelope_23
    pivot_mem_23 child_envelope_sub_23 envelope_origin_23
548
def checked_23 : CheckedCard where
body · 7 lines
  required := required_23
  envelope := envelope_23
  height := height_23
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_23
556
def height_25 : ℕ := 2
557
def childrenH_25 : Fin 2 → ℕ := ![height_2, height_5]
558
theorem height_exact_25 : height_25 = 1 + Finset.univ.sup childrenH_25 := by decide +kernel
559
theorem required_origin_25 : ∀ x ∈ required_25,
    (∃ j, x ∈ childrenC_25 j) ∨ ∀ j, x ∈ childrenD_25 j := by decide +kernel
561
theorem required_exact_25 : required_25 =
    ((Finset.univ.biUnion childrenC_25) ∪ commonEnvelope childrenD_25).erase (3, 0) := by
proof · 2 lines
  exact required_eq_combination childrenC_25 childrenD_25 (3, 0) required_25
    (by decide +kernel) child_required_sub_25 common_sub_25 required_origin_25
565
theorem envelope_origin_25 : ∀ x ∈ envelope_25,
    x = (3, 0) ∨ ∃ j, x ∈ childrenD_25 j := by decide +kernel
567
theorem envelope_exact_25 : envelope_25 =
    insert (3, 0) (Finset.univ.biUnion childrenD_25) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_25 (3, 0) envelope_25
    pivot_mem_25 child_envelope_sub_25 envelope_origin_25
571
def checked_25 : CheckedCard where
body · 7 lines
  required := required_25
  envelope := envelope_25
  height := height_25
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_25
579
def height_28 : ℕ := 2
580
def childrenH_28 : Fin 2 → ℕ := ![height_5, height_5]
581
theorem height_exact_28 : height_28 = 1 + Finset.univ.sup childrenH_28 := by decide +kernel
582
theorem required_origin_28 : ∀ x ∈ required_28,
    (∃ j, x ∈ childrenC_28 j) ∨ ∀ j, x ∈ childrenD_28 j := by decide +kernel
584
theorem required_exact_28 : required_28 =
    ((Finset.univ.biUnion childrenC_28) ∪ commonEnvelope childrenD_28).erase (1, 2) := by
proof · 2 lines
  exact required_eq_combination childrenC_28 childrenD_28 (1, 2) required_28
    (by decide +kernel) child_required_sub_28 common_sub_28 required_origin_28
588
theorem envelope_origin_28 : ∀ x ∈ envelope_28,
    x = (1, 2) ∨ ∃ j, x ∈ childrenD_28 j := by decide +kernel
590
theorem envelope_exact_28 : envelope_28 =
    insert (1, 2) (Finset.univ.biUnion childrenD_28) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_28 (1, 2) envelope_28
    pivot_mem_28 child_envelope_sub_28 envelope_origin_28
594
def checked_28 : CheckedCard where
body · 7 lines
  required := required_28
  envelope := envelope_28
  height := height_28
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_28
602
def height_30 : ℕ := 2
603
def childrenH_30 : Fin 2 → ℕ := ![height_0, height_5]
604
theorem height_exact_30 : height_30 = 1 + Finset.univ.sup childrenH_30 := by decide +kernel
605
theorem required_origin_30 : ∀ x ∈ required_30,
    (∃ j, x ∈ childrenC_30 j) ∨ ∀ j, x ∈ childrenD_30 j := by decide +kernel
607
theorem required_exact_30 : required_30 =
    ((Finset.univ.biUnion childrenC_30) ∪ commonEnvelope childrenD_30).erase (0, 2) := by
proof · 2 lines
  exact required_eq_combination childrenC_30 childrenD_30 (0, 2) required_30
    (by decide +kernel) child_required_sub_30 common_sub_30 required_origin_30
611
theorem envelope_origin_30 : ∀ x ∈ envelope_30,
    x = (0, 2) ∨ ∃ j, x ∈ childrenD_30 j := by decide +kernel
613
theorem envelope_exact_30 : envelope_30 =
    insert (0, 2) (Finset.univ.biUnion childrenD_30) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_30 (0, 2) envelope_30
    pivot_mem_30 child_envelope_sub_30 envelope_origin_30
617
def checked_30 : CheckedCard where
body · 7 lines
  required := required_30
  envelope := envelope_30
  height := height_30
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_30
625
def height_32 : ℕ := 2
626
def childrenH_32 : Fin 2 → ℕ := ![height_0, height_5]
627
theorem height_exact_32 : height_32 = 1 + Finset.univ.sup childrenH_32 := by decide +kernel
628
theorem required_origin_32 : ∀ x ∈ required_32,
    (∃ j, x ∈ childrenC_32 j) ∨ ∀ j, x ∈ childrenD_32 j := by decide +kernel
630
theorem required_exact_32 : required_32 =
    ((Finset.univ.biUnion childrenC_32) ∪ commonEnvelope childrenD_32).erase (3, 0) := by
proof · 2 lines
  exact required_eq_combination childrenC_32 childrenD_32 (3, 0) required_32
    (by decide +kernel) child_required_sub_32 common_sub_32 required_origin_32
634
theorem envelope_origin_32 : ∀ x ∈ envelope_32,
    x = (3, 0) ∨ ∃ j, x ∈ childrenD_32 j := by decide +kernel
636
theorem envelope_exact_32 : envelope_32 =
    insert (3, 0) (Finset.univ.biUnion childrenD_32) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_32 (3, 0) envelope_32
    pivot_mem_32 child_envelope_sub_32 envelope_origin_32
640
def checked_32 : CheckedCard where
body · 7 lines
  required := required_32
  envelope := envelope_32
  height := height_32
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_32
648
def height_34 : ℕ := 2
649
def childrenH_34 : Fin 2 → ℕ := ![height_5, height_5]
650
theorem height_exact_34 : height_34 = 1 + Finset.univ.sup childrenH_34 := by decide +kernel
651
theorem required_origin_34 : ∀ x ∈ required_34,
    (∃ j, x ∈ childrenC_34 j) ∨ ∀ j, x ∈ childrenD_34 j := by decide +kernel
653
theorem required_exact_34 : required_34 =
    ((Finset.univ.biUnion childrenC_34) ∪ commonEnvelope childrenD_34).erase (0, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_34 childrenD_34 (0, 3) required_34
    (by decide +kernel) child_required_sub_34 common_sub_34 required_origin_34
657
theorem envelope_origin_34 : ∀ x ∈ envelope_34,
    x = (0, 3) ∨ ∃ j, x ∈ childrenD_34 j := by decide +kernel
659
theorem envelope_exact_34 : envelope_34 =
    insert (0, 3) (Finset.univ.biUnion childrenD_34) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_34 (0, 3) envelope_34
    pivot_mem_34 child_envelope_sub_34 envelope_origin_34
663
def checked_34 : CheckedCard where
body · 7 lines
  required := required_34
  envelope := envelope_34
  height := height_34
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_34
671
def height_35 : ℕ := 2
672
def childrenH_35 : Fin 2 → ℕ := ![height_1, height_5]
673
theorem height_exact_35 : height_35 = 1 + Finset.univ.sup childrenH_35 := by decide +kernel
674
theorem required_origin_35 : ∀ x ∈ required_35,
    (∃ j, x ∈ childrenC_35 j) ∨ ∀ j, x ∈ childrenD_35 j := by decide +kernel
676
theorem required_exact_35 : required_35 =
    ((Finset.univ.biUnion childrenC_35) ∪ commonEnvelope childrenD_35).erase (3, 2) := by
proof · 2 lines
  exact required_eq_combination childrenC_35 childrenD_35 (3, 2) required_35
    (by decide +kernel) child_required_sub_35 common_sub_35 required_origin_35
680
theorem envelope_origin_35 : ∀ x ∈ envelope_35,
    x = (3, 2) ∨ ∃ j, x ∈ childrenD_35 j := by decide +kernel
682
theorem envelope_exact_35 : envelope_35 =
    insert (3, 2) (Finset.univ.biUnion childrenD_35) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_35 (3, 2) envelope_35
    pivot_mem_35 child_envelope_sub_35 envelope_origin_35
686
def checked_35 : CheckedCard where
body · 7 lines
  required := required_35
  envelope := envelope_35
  height := height_35
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_35
694
def height_36 : ℕ := 2
695
def childrenH_36 : Fin 2 → ℕ := ![height_2, height_2]
696
theorem height_exact_36 : height_36 = 1 + Finset.univ.sup childrenH_36 := by decide +kernel
697
theorem required_origin_36 : ∀ x ∈ required_36,
    (∃ j, x ∈ childrenC_36 j) ∨ ∀ j, x ∈ childrenD_36 j := by decide +kernel
699
theorem required_exact_36 : required_36 =
    ((Finset.univ.biUnion childrenC_36) ∪ commonEnvelope childrenD_36).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_36 childrenD_36 (1, 4) required_36
    (by decide +kernel) child_required_sub_36 common_sub_36 required_origin_36
703
theorem envelope_origin_36 : ∀ x ∈ envelope_36,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_36 j := by decide +kernel
705
theorem envelope_exact_36 : envelope_36 =
    insert (1, 4) (Finset.univ.biUnion childrenD_36) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_36 (1, 4) envelope_36
    pivot_mem_36 child_envelope_sub_36 envelope_origin_36
709
def checked_36 : CheckedCard where
body · 7 lines
  required := required_36
  envelope := envelope_36
  height := height_36
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_36
717
def height_38 : ℕ := 2
718
def childrenH_38 : Fin 2 → ℕ := ![height_0, height_5]
719
theorem height_exact_38 : height_38 = 1 + Finset.univ.sup childrenH_38 := by decide +kernel
720
theorem required_origin_38 : ∀ x ∈ required_38,
    (∃ j, x ∈ childrenC_38 j) ∨ ∀ j, x ∈ childrenD_38 j := by decide +kernel
722
theorem required_exact_38 : required_38 =
    ((Finset.univ.biUnion childrenC_38) ∪ commonEnvelope childrenD_38).erase (3, 2) := by
proof · 2 lines
  exact required_eq_combination childrenC_38 childrenD_38 (3, 2) required_38
    (by decide +kernel) child_required_sub_38 common_sub_38 required_origin_38
726
theorem envelope_origin_38 : ∀ x ∈ envelope_38,
    x = (3, 2) ∨ ∃ j, x ∈ childrenD_38 j := by decide +kernel
728
theorem envelope_exact_38 : envelope_38 =
    insert (3, 2) (Finset.univ.biUnion childrenD_38) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_38 (3, 2) envelope_38
    pivot_mem_38 child_envelope_sub_38 envelope_origin_38
732
def checked_38 : CheckedCard where
body · 7 lines
  required := required_38
  envelope := envelope_38
  height := height_38
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_38
740
def height_40 : ℕ := 2
741
def childrenH_40 : Fin 2 → ℕ := ![height_5, height_5]
742
theorem height_exact_40 : height_40 = 1 + Finset.univ.sup childrenH_40 := by decide +kernel
743
theorem required_origin_40 : ∀ x ∈ required_40,
    (∃ j, x ∈ childrenC_40 j) ∨ ∀ j, x ∈ childrenD_40 j := by decide +kernel
745
theorem required_exact_40 : required_40 =
    ((Finset.univ.biUnion childrenC_40) ∪ commonEnvelope childrenD_40).erase (1, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_40 childrenD_40 (1, 3) required_40
    (by decide +kernel) child_required_sub_40 common_sub_40 required_origin_40
749
theorem envelope_origin_40 : ∀ x ∈ envelope_40,
    x = (1, 3) ∨ ∃ j, x ∈ childrenD_40 j := by decide +kernel
751
theorem envelope_exact_40 : envelope_40 =
    insert (1, 3) (Finset.univ.biUnion childrenD_40) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_40 (1, 3) envelope_40
    pivot_mem_40 child_envelope_sub_40 envelope_origin_40
755
def checked_40 : CheckedCard where
body · 7 lines
  required := required_40
  envelope := envelope_40
  height := height_40
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_40
763
def height_43 : ℕ := 2
764
def childrenH_43 : Fin 2 → ℕ := ![height_0, height_3]
765
theorem height_exact_43 : height_43 = 1 + Finset.univ.sup childrenH_43 := by decide +kernel
766
theorem required_origin_43 : ∀ x ∈ required_43,
    (∃ j, x ∈ childrenC_43 j) ∨ ∀ j, x ∈ childrenD_43 j := by decide +kernel
768
theorem required_exact_43 : required_43 =
    ((Finset.univ.biUnion childrenC_43) ∪ commonEnvelope childrenD_43).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_43 childrenD_43 (1, 4) required_43
    (by decide +kernel) child_required_sub_43 common_sub_43 required_origin_43
772
theorem envelope_origin_43 : ∀ x ∈ envelope_43,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_43 j := by decide +kernel
774
theorem envelope_exact_43 : envelope_43 =
    insert (1, 4) (Finset.univ.biUnion childrenD_43) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_43 (1, 4) envelope_43
    pivot_mem_43 child_envelope_sub_43 envelope_origin_43
778
def checked_43 : CheckedCard where
body · 7 lines
  required := required_43
  envelope := envelope_43
  height := height_43
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_43
786
def height_51 : ℕ := 2
787
def childrenH_51 : Fin 2 → ℕ := ![height_0, height_3]
788
theorem height_exact_51 : height_51 = 1 + Finset.univ.sup childrenH_51 := by decide +kernel
789
theorem required_origin_51 : ∀ x ∈ required_51,
    (∃ j, x ∈ childrenC_51 j) ∨ ∀ j, x ∈ childrenD_51 j := by decide +kernel
791
theorem required_exact_51 : required_51 =
    ((Finset.univ.biUnion childrenC_51) ∪ commonEnvelope childrenD_51).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_51 childrenD_51 (1, 4) required_51
    (by decide +kernel) child_required_sub_51 common_sub_51 required_origin_51
795
theorem envelope_origin_51 : ∀ x ∈ envelope_51,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_51 j := by decide +kernel
797
theorem envelope_exact_51 : envelope_51 =
    insert (1, 4) (Finset.univ.biUnion childrenD_51) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_51 (1, 4) envelope_51
    pivot_mem_51 child_envelope_sub_51 envelope_origin_51
801
def checked_51 : CheckedCard where
body · 7 lines
  required := required_51
  envelope := envelope_51
  height := height_51
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_51
809
def height_66 : ℕ := 2
810
def childrenH_66 : Fin 2 → ℕ := ![height_0, height_5]
811
theorem height_exact_66 : height_66 = 1 + Finset.univ.sup childrenH_66 := by decide +kernel
812
theorem required_origin_66 : ∀ x ∈ required_66,
    (∃ j, x ∈ childrenC_66 j) ∨ ∀ j, x ∈ childrenD_66 j := by decide +kernel
814
theorem required_exact_66 : required_66 =
    ((Finset.univ.biUnion childrenC_66) ∪ commonEnvelope childrenD_66).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_66 childrenD_66 (1, 4) required_66
    (by decide +kernel) child_required_sub_66 common_sub_66 required_origin_66
818
theorem envelope_origin_66 : ∀ x ∈ envelope_66,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_66 j := by decide +kernel
820
theorem envelope_exact_66 : envelope_66 =
    insert (1, 4) (Finset.univ.biUnion childrenD_66) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_66 (1, 4) envelope_66
    pivot_mem_66 child_envelope_sub_66 envelope_origin_66
824
def checked_66 : CheckedCard where
body · 7 lines
  required := required_66
  envelope := envelope_66
  height := height_66
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_66
832
def height_68 : ℕ := 2
833
def childrenH_68 : Fin 2 → ℕ := ![height_0, height_1]
834
theorem height_exact_68 : height_68 = 1 + Finset.univ.sup childrenH_68 := by decide +kernel
835
theorem required_origin_68 : ∀ x ∈ required_68,
    (∃ j, x ∈ childrenC_68 j) ∨ ∀ j, x ∈ childrenD_68 j := by decide +kernel
837
theorem required_exact_68 : required_68 =
    ((Finset.univ.biUnion childrenC_68) ∪ commonEnvelope childrenD_68).erase (0, 2) := by
proof · 2 lines
  exact required_eq_combination childrenC_68 childrenD_68 (0, 2) required_68
    (by decide +kernel) child_required_sub_68 common_sub_68 required_origin_68
841
theorem envelope_origin_68 : ∀ x ∈ envelope_68,
    x = (0, 2) ∨ ∃ j, x ∈ childrenD_68 j := by decide +kernel
843
theorem envelope_exact_68 : envelope_68 =
    insert (0, 2) (Finset.univ.biUnion childrenD_68) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_68 (0, 2) envelope_68
    pivot_mem_68 child_envelope_sub_68 envelope_origin_68
847
def checked_68 : CheckedCard where
body · 7 lines
  required := required_68
  envelope := envelope_68
  height := height_68
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_68
855
def height_70 : ℕ := 2
856
def childrenH_70 : Fin 2 → ℕ := ![height_2, height_3]
857
theorem height_exact_70 : height_70 = 1 + Finset.univ.sup childrenH_70 := by decide +kernel
858
theorem required_origin_70 : ∀ x ∈ required_70,
    (∃ j, x ∈ childrenC_70 j) ∨ ∀ j, x ∈ childrenD_70 j := by decide +kernel
860
theorem required_exact_70 : required_70 =
    ((Finset.univ.biUnion childrenC_70) ∪ commonEnvelope childrenD_70).erase (1, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_70 childrenD_70 (1, 3) required_70
    (by decide +kernel) child_required_sub_70 common_sub_70 required_origin_70
864
theorem envelope_origin_70 : ∀ x ∈ envelope_70,
    x = (1, 3) ∨ ∃ j, x ∈ childrenD_70 j := by decide +kernel
866
theorem envelope_exact_70 : envelope_70 =
    insert (1, 3) (Finset.univ.biUnion childrenD_70) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_70 (1, 3) envelope_70
    pivot_mem_70 child_envelope_sub_70 envelope_origin_70
870
def checked_70 : CheckedCard where
body · 7 lines
  required := required_70
  envelope := envelope_70
  height := height_70
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_70
878
def height_76 : ℕ := 2
879
def childrenH_76 : Fin 2 → ℕ := ![height_4, height_5]
880
theorem height_exact_76 : height_76 = 1 + Finset.univ.sup childrenH_76 := by decide +kernel
881
theorem required_origin_76 : ∀ x ∈ required_76,
    (∃ j, x ∈ childrenC_76 j) ∨ ∀ j, x ∈ childrenD_76 j := by decide +kernel
883
theorem required_exact_76 : required_76 =
    ((Finset.univ.biUnion childrenC_76) ∪ commonEnvelope childrenD_76).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_76 childrenD_76 (1, 4) required_76
    (by decide +kernel) child_required_sub_76 common_sub_76 required_origin_76
887
theorem envelope_origin_76 : ∀ x ∈ envelope_76,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_76 j := by decide +kernel
889
theorem envelope_exact_76 : envelope_76 =
    insert (1, 4) (Finset.univ.biUnion childrenD_76) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_76 (1, 4) envelope_76
    pivot_mem_76 child_envelope_sub_76 envelope_origin_76
893
def checked_76 : CheckedCard where
body · 7 lines
  required := required_76
  envelope := envelope_76
  height := height_76
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_76
901
def height_77 : ℕ := 2
902
def childrenH_77 : Fin 2 → ℕ := ![height_3, height_5]
903
theorem height_exact_77 : height_77 = 1 + Finset.univ.sup childrenH_77 := by decide +kernel
904
theorem required_origin_77 : ∀ x ∈ required_77,
    (∃ j, x ∈ childrenC_77 j) ∨ ∀ j, x ∈ childrenD_77 j := by decide +kernel
906
theorem required_exact_77 : required_77 =
    ((Finset.univ.biUnion childrenC_77) ∪ commonEnvelope childrenD_77).erase (2, 1) := by
proof · 2 lines
  exact required_eq_combination childrenC_77 childrenD_77 (2, 1) required_77
    (by decide +kernel) child_required_sub_77 common_sub_77 required_origin_77
910
theorem envelope_origin_77 : ∀ x ∈ envelope_77,
    x = (2, 1) ∨ ∃ j, x ∈ childrenD_77 j := by decide +kernel
912
theorem envelope_exact_77 : envelope_77 =
    insert (2, 1) (Finset.univ.biUnion childrenD_77) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_77 (2, 1) envelope_77
    pivot_mem_77 child_envelope_sub_77 envelope_origin_77
916
def checked_77 : CheckedCard where
body · 7 lines
  required := required_77
  envelope := envelope_77
  height := height_77
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_77
924
def height_80 : ℕ := 2
925
def childrenH_80 : Fin 2 → ℕ := ![height_5, height_5]
926
theorem height_exact_80 : height_80 = 1 + Finset.univ.sup childrenH_80 := by decide +kernel
927
theorem required_origin_80 : ∀ x ∈ required_80,
    (∃ j, x ∈ childrenC_80 j) ∨ ∀ j, x ∈ childrenD_80 j := by decide +kernel
929
theorem required_exact_80 : required_80 =
    ((Finset.univ.biUnion childrenC_80) ∪ commonEnvelope childrenD_80).erase (1, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_80 childrenD_80 (1, 3) required_80
    (by decide +kernel) child_required_sub_80 common_sub_80 required_origin_80
933
theorem envelope_origin_80 : ∀ x ∈ envelope_80,
    x = (1, 3) ∨ ∃ j, x ∈ childrenD_80 j := by decide +kernel
935
theorem envelope_exact_80 : envelope_80 =
    insert (1, 3) (Finset.univ.biUnion childrenD_80) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_80 (1, 3) envelope_80
    pivot_mem_80 child_envelope_sub_80 envelope_origin_80
939
def checked_80 : CheckedCard where
body · 7 lines
  required := required_80
  envelope := envelope_80
  height := height_80
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_80
947
def height_83 : ℕ := 2
948
def childrenH_83 : Fin 2 → ℕ := ![height_5, height_5]
949
theorem height_exact_83 : height_83 = 1 + Finset.univ.sup childrenH_83 := by decide +kernel
950
theorem required_origin_83 : ∀ x ∈ required_83,
    (∃ j, x ∈ childrenC_83 j) ∨ ∀ j, x ∈ childrenD_83 j := by decide +kernel
952
theorem required_exact_83 : required_83 =
    ((Finset.univ.biUnion childrenC_83) ∪ commonEnvelope childrenD_83).erase (1, 4) := by
proof · 2 lines
  exact required_eq_combination childrenC_83 childrenD_83 (1, 4) required_83
    (by decide +kernel) child_required_sub_83 common_sub_83 required_origin_83
956
theorem envelope_origin_83 : ∀ x ∈ envelope_83,
    x = (1, 4) ∨ ∃ j, x ∈ childrenD_83 j := by decide +kernel
958
theorem envelope_exact_83 : envelope_83 =
    insert (1, 4) (Finset.univ.biUnion childrenD_83) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_83 (1, 4) envelope_83
    pivot_mem_83 child_envelope_sub_83 envelope_origin_83
962
def checked_83 : CheckedCard where
body · 7 lines
  required := required_83
  envelope := envelope_83
  height := height_83
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_83
970
def height_94 : ℕ := 2
971
def childrenH_94 : Fin 2 → ℕ := ![height_0, height_5]
972
theorem height_exact_94 : height_94 = 1 + Finset.univ.sup childrenH_94 := by decide +kernel
973
theorem required_origin_94 : ∀ x ∈ required_94,
    (∃ j, x ∈ childrenC_94 j) ∨ ∀ j, x ∈ childrenD_94 j := by decide +kernel
975
theorem required_exact_94 : required_94 =
    ((Finset.univ.biUnion childrenC_94) ∪ commonEnvelope childrenD_94).erase (0, 3) := by
proof · 2 lines
  exact required_eq_combination childrenC_94 childrenD_94 (0, 3) required_94
    (by decide +kernel) child_required_sub_94 common_sub_94 required_origin_94
979
theorem envelope_origin_94 : ∀ x ∈ envelope_94,
    x = (0, 3) ∨ ∃ j, x ∈ childrenD_94 j := by decide +kernel
981
theorem envelope_exact_94 : envelope_94 =
    insert (0, 3) (Finset.univ.biUnion childrenD_94) := by
proof · 2 lines
  exact envelope_eq_combination childrenD_94 (0, 3) envelope_94
    pivot_mem_94 child_envelope_sub_94 envelope_origin_94
985
def checked_94 : CheckedCard where
body · 7 lines
  required := required_94
  envelope := envelope_94
  height := height_94
  required_sub_envelope := by decide +kernel
  height_positive := by decide +kernel
  height_le_twenty_one := by decide +kernel
  works := row_works_94

Xet Storage Details

Size:
64.3 kB
·
Xet hash:
ebcd3fe34423e1d96ee5a54a52080f9f8e3004b9874fe1a3c193bc33eb71cd37

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.