Buckets:
| import Mathlib.Tactic.Ring | |
| import OAI.Analysis.Laughlin.FourBody.Basic | |
| namespace OAI | |
| namespace Laughlin.Certificate | |
| theorem yEntry_swap (D r s t : ℕ) (e f : ℕ × ℕ × ℤ) | |
| (he : t ≤ e.1 + e.2.1) (hf : t ≤ f.1 + f.2.1) : | |
| yEntry D r s t e f = yEntry D s r t f e := by | |
| rcases e with ⟨p,j,a⟩ | |
| rcases f with ⟨q,l,b⟩ | |
| dsimp at he hf | |
| have hT : q+l+(p+j-t) = p+j+(q+l-t) := by omega | |
| simp only [yEntry, hT, Nat.add_comm s r] | |
| split_ifs <;> ring_nf | |
| private theorem sum_add {Element : Type*} (xs : List Element) (f g : Element → ℚ) : | |
| (xs.map (fun x => f x + g x)).sum = (xs.map f).sum + (xs.map g).sum := by | |
| induction xs with | |
| | nil => simp | |
| | cons x xs ih => simp only [List.map_cons, List.sum_cons, ih]; ring | |
| private theorem sum_swap {Element : Type*} (xs ys : List Element) | |
| (f : Element → Element → ℚ) : | |
| (xs.map (fun x => (ys.map (f x)).sum)).sum = | |
| (ys.map (fun y => (xs.map (fun x => f x y)).sum)).sum := by | |
| induction xs with | |
| | nil => simp | |
| | cons x xs ih => | |
| simp only [List.map_cons, List.sum_cons, ih, sum_add] | |
| theorem yRow_swap (D r s : ℕ) (row : ℕ × ℤ × List (ℕ × ℕ × ℤ)) | |
| (h : ∀ e ∈ row.2.2, row.1 ≤ e.1 + e.2.1) : | |
| yRow D r s row = yRow D s r row := by | |
| unfold yRow | |
| rw [sum_swap] | |
| congr 1 | |
| apply List.map_congr_left | |
| intro f hf | |
| congr 1 | |
| apply List.map_congr_left | |
| intro e he | |
| exact yEntry_swap D r s row.1 e f (h e he) (h f hf) | |
| theorem rows_valid : ∀ row ∈ rows, ∀ e ∈ row.2.2, row.1 ≤ e.1 + e.2.1 := by | |
| decide +kernel | |
| theorem Y_symm (D r s : ℕ) : Y D r s = Y D s r := by | |
| unfold Y | |
| congr 3 | |
| apply List.map_congr_left | |
| intro row hr | |
| exact yRow_swap D r s row (rows_valid row hr) | |
| theorem Z_symm (D r s : ℕ) : Z D r s = Z D s r := by | |
| unfold Z | |
| congr 1 | |
| apply List.map_congr_left | |
| intro A hA | |
| dsimp | |
| ring | |
| end Laughlin.Certificate | |
| end OAI | |
Xet Storage Details
- Size:
- 1.89 kB
- Xet hash:
- 15fa39de949b5971a6da96dfb46091124f6ef201675b210d9190b0945b46f654
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.