cfahlgren1's picture
download
raw
33.3 kB
23
def raw4800 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![0, 1, 2, -3], ![2, -2, -3, 3]]
25
def raw4800step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 1, 2, -3], ![1, -1, -3, 3]]
27
def raw4800step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, 0, -1, 2], ![0, -1, -2, 3], ![-1, 1, 3, -3]]
29
def raw4800step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -2, 3], ![0, -1, -1, 2], ![0, 2, 0, -2], ![1, -1, 3, -3]]
31
theorem canonical4800 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4800 = injectiveMoment H node1196 := by
proof · 14 lines
  calc
    injectiveMoment H raw4800 = injectiveMoment H raw4800step0 := by
      have heq : raw4800step0 = raw4800.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4800).symm
    injectiveMoment H raw4800step0 = injectiveMoment H raw4800step1 := by
      have heq : raw4800step1 = -raw4800step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4800step0).symm
    injectiveMoment H raw4800step1 = injectiveMoment H raw4800step2 := by
      have heq : raw4800step2 = (fun i j => raw4800step1 (permutation23 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4800step1 permutation23 permutation15
    _ = injectiveMoment H node1196 := by rfl
48
def raw4801 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![1, -2, -2, 3], ![1, 1, 1, -3]]
50
def raw4801step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 0, -2, 1], ![0, 1, -2, 1], ![1, -1, 3, -3]]
52
def raw4801step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-1, 0, 2, -1], ![0, -1, 2, -1], ![-1, 1, -3, 3]]
54
def raw4801step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -1, 2], ![0, -1, -1, 2], ![0, 2, -1, -1], ![1, -1, 3, -3]]
56
theorem canonical4801 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4801 = injectiveMoment H node1239 := by
proof · 14 lines
  calc
    injectiveMoment H raw4801 = injectiveMoment H raw4801step0 := by
      have heq : raw4801step0 = raw4801.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4801).symm
    injectiveMoment H raw4801step0 = injectiveMoment H raw4801step1 := by
      have heq : raw4801step1 = -raw4801step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4801step0).symm
    injectiveMoment H raw4801step1 = injectiveMoment H raw4801step2 := by
      have heq : raw4801step2 = (fun i j => raw4801step1 (permutation23 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4801step1 permutation23 permutation16
    _ = injectiveMoment H node1239 := by rfl
73
def raw4802 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![1, -2, 2, -1], ![1, 1, -3, 1]]
75
def raw4802step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 0, -2, 1], ![0, 1, 2, -3], ![1, -1, -1, 1]]
77
def raw4802step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-1, 0, 2, -1], ![0, -1, -2, 3], ![-1, 1, 1, -1]]
79
def raw4802step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -2, 3], ![0, -1, 2, -1], ![0, 2, -1, -1], ![1, -1, 1, -1]]
81
theorem canonical4802 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4802 = injectiveMoment H node1208 := by
proof · 14 lines
  calc
    injectiveMoment H raw4802 = injectiveMoment H raw4802step0 := by
      have heq : raw4802step0 = raw4802.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4802).symm
    injectiveMoment H raw4802step0 = injectiveMoment H raw4802step1 := by
      have heq : raw4802step1 = -raw4802step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4802step0).symm
    injectiveMoment H raw4802step1 = injectiveMoment H raw4802step2 := by
      have heq : raw4802step2 = (fun i j => raw4802step1 (permutation23 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4802step1 permutation23 permutation15
    _ = injectiveMoment H node1208 := by rfl
98
def raw4803 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![1, -1, -3, 3], ![1, 0, 2, -3]]
100
def raw4803step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 0, -1, 0], ![0, 1, -3, 2], ![1, -1, 3, -3]]
102
def raw4803step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-1, 0, 1, 0], ![0, -1, 3, -2], ![-1, 1, -3, 3]]
104
def raw4803step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -2, 3], ![0, -1, 0, 1], ![0, 2, -1, -1], ![1, -1, 3, -3]]
106
theorem canonical4803 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4803 = injectiveMoment H node1200 := by
proof · 14 lines
  calc
    injectiveMoment H raw4803 = injectiveMoment H raw4803step0 := by
      have heq : raw4803step0 = raw4803.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4803).symm
    injectiveMoment H raw4803step0 = injectiveMoment H raw4803step1 := by
      have heq : raw4803step1 = -raw4803step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4803step0).symm
    injectiveMoment H raw4803step1 = injectiveMoment H raw4803step2 := by
      have heq : raw4803step2 = (fun i j => raw4803step1 (permutation23 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4803step1 permutation23 permutation16
    _ = injectiveMoment H node1200 := by rfl
123
def raw4804 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![1, -1, 2, -2], ![1, 0, -3, 2]]
125
def raw4804step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 0, -1, 0], ![0, 1, 2, -3], ![1, -1, -2, 2]]
127
def raw4804step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-1, 0, 1, 0], ![0, -1, -2, 3], ![-1, 1, 2, -2]]
129
def raw4804step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -2, 3], ![0, -1, 1, 0], ![0, 2, -1, -1], ![1, -1, 2, -2]]
131
theorem canonical4804 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4804 = injectiveMoment H node1204 := by
proof · 14 lines
  calc
    injectiveMoment H raw4804 = injectiveMoment H raw4804step0 := by
      have heq : raw4804step0 = raw4804.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4804).symm
    injectiveMoment H raw4804step0 = injectiveMoment H raw4804step1 := by
      have heq : raw4804step1 = -raw4804step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4804step0).symm
    injectiveMoment H raw4804step1 = injectiveMoment H raw4804step2 := by
      have heq : raw4804step2 = (fun i j => raw4804step1 (permutation23 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4804step1 permutation23 permutation15
    _ = injectiveMoment H node1204 := by rfl
148
def raw4805 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 0, -2, 2], ![1, -1, 0, 0], ![1, 0, 0, -1]]
150
def raw4805step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-1, 0, 1, 0], ![0, -2, 0, 2], ![0, 0, 1, -1], ![0, 2, 0, -2], ![1, 0, -2, 1]]
152
theorem canonical4805 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4805 = injectiveMoment H node2805 := by
proof · 6 lines
  calc
    injectiveMoment H raw4805 = injectiveMoment H raw4805step0 := by
      have heq : raw4805step0 = (fun i j => raw4805 (permutation121 i) (permutation17 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4805 permutation121 permutation17
    _ = injectiveMoment H node2805 := by rfl
161
def raw4806 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 0, 1, -1], ![0, 1, -1, 0], ![2, -2, -2, 2]]
163
def raw4806step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![0, 0, 2, -2], ![0, 1, -1, 0], ![2, -2, -2, 2]]
165
theorem canonical4806 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4806 = injectiveMoment H node2289 := by
proof · 6 lines
  calc
    injectiveMoment H raw4806 = injectiveMoment H raw4806step0 := by
      have heq : raw4806step0 = (fun i j => raw4806 (permutation39 i) (permutation9 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4806 permutation39 permutation9
    _ = injectiveMoment H node2289 := by rfl
174
def raw4807 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 0, 1, -1], ![0, 1, 0, -1], ![2, -2, -3, 3]]
176
def raw4807step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 1, -1], ![0, 0, 2, -2], ![0, 1, 0, -1], ![2, -2, -3, 3]]
178
theorem canonical4807 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4807 = injectiveMoment H node2290 := by
proof · 6 lines
  calc
    injectiveMoment H raw4807 = injectiveMoment H raw4807step0 := by
      have heq : raw4807step0 = (fun i j => raw4807 (permutation39 i) (permutation9 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4807 permutation39 permutation9
    _ = injectiveMoment H node2290 := by rfl
187
def raw4808 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -3, 2], ![2, -2, 1, -1]]
189
def raw4808step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 2, -3, 1], ![1, -2, 2, -1]]
191
def raw4808step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, 0, -1, 2], ![0, -2, 3, -1], ![-1, 2, -2, 1]]
193
def raw4808step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, -1, 3], ![0, -1, 2, -1], ![0, 2, -2, 0], ![2, -1, 1, -2]]
195
theorem canonical4808 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4808 = injectiveMoment H node588 := by
proof · 14 lines
  calc
    injectiveMoment H raw4808 = injectiveMoment H raw4808step0 := by
      have heq : raw4808step0 = raw4808.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4808).symm
    injectiveMoment H raw4808step0 = injectiveMoment H raw4808step1 := by
      have heq : raw4808step1 = -raw4808step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4808step0).symm
    injectiveMoment H raw4808step1 = injectiveMoment H raw4808step2 := by
      have heq : raw4808step2 = (fun i j => raw4808step1 (permutation23 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4808step1 permutation23 permutation16
    _ = injectiveMoment H node588 := by rfl
212
def raw4809 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -2, 1], ![1, -1, 0, 0], ![1, -1, 0, 0]]
214
def raw4809step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![2, -1, 0, -1], ![0, 0, -2, 2], ![0, -1, 2, -1], ![-1, 1, 0, 0], ![-1, 1, 0, 0]]
216
def raw4809step1 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![0, -1, 1, 0], ![0, -1, 1, 0], ![0, 2, -1, -1], ![2, 0, -1, -1]]
218
theorem canonical4809 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4809 = injectiveMoment H node2013 := by
proof · 10 lines
  calc
    injectiveMoment H raw4809 = injectiveMoment H raw4809step0 := by
      have heq : raw4809step0 = -raw4809 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4809).symm
    injectiveMoment H raw4809step0 = injectiveMoment H raw4809step1 := by
      have heq : raw4809step1 = (fun i j => raw4809step0 (permutation72 i) (permutation21 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4809step0 permutation72 permutation21
    _ = injectiveMoment H node2013 := by rfl
231
def raw4810 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -2, 1], ![2, -2, 0, 0]]
233
def raw4810step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, -1, 0, -1], ![0, 0, -2, 2], ![0, -1, 2, -1], ![-2, 2, 0, 0]]
235
def raw4810step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![0, -2, 2, 0], ![0, 2, -1, -1], ![2, 0, -1, -1]]
237
theorem canonical4810 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4810 = injectiveMoment H node606 := by
proof · 10 lines
  calc
    injectiveMoment H raw4810 = injectiveMoment H raw4810step0 := by
      have heq : raw4810step0 = -raw4810 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4810).symm
    injectiveMoment H raw4810step0 = injectiveMoment H raw4810step1 := by
      have heq : raw4810step1 = (fun i j => raw4810step0 (permutation30 i) (permutation12 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4810step0 permutation30 permutation12
    _ = injectiveMoment H node606 := by rfl
250
def raw4811 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -1, 0], ![1, -2, 0, 1], ![1, 0, -1, 0]]
252
def raw4811step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![2, -1, 0, -1], ![0, 0, -2, 2], ![0, -1, 1, 0], ![-1, 2, 0, -1], ![-1, 0, 1, 0]]
254
def raw4811step1 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![0, -1, 2, -1], ![0, 2, -1, -1], ![1, -1, 0, 0], ![1, 0, -1, 0]]
256
theorem canonical4811 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4811 = injectiveMoment H node2023 := by
proof · 10 lines
  calc
    injectiveMoment H raw4811 = injectiveMoment H raw4811step0 := by
      have heq : raw4811step0 = -raw4811 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4811).symm
    injectiveMoment H raw4811step0 = injectiveMoment H raw4811step1 := by
      have heq : raw4811step1 = (fun i j => raw4811step0 (permutation69 i) (permutation21 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4811step0 permutation69 permutation21
    _ = injectiveMoment H node2023 := by rfl
269
def raw4812 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -1, 0], ![1, -1, -2, 2], ![1, -1, 1, -1]]
271
theorem canonical4812 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4812 = injectiveMoment H node2292 := by
proof · 1 line
  rfl
275
def raw4813 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -1, 0], ![1, -1, -1, 1], ![1, -1, 0, 0]]
277
def raw4813step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![0, -1, 1, 0], ![0, 1, 0, -1], ![1, -1, 1, -1], ![1, 1, -2, 0]]
279
theorem canonical4813 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4813 = injectiveMoment H node2018 := by
proof · 6 lines
  calc
    injectiveMoment H raw4813 = injectiveMoment H raw4813step0 := by
      have heq : raw4813step0 = (fun i j => raw4813 (permutation77 i) (permutation29 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4813 permutation77 permutation29
    _ = injectiveMoment H node2018 := by rfl
288
def raw4814 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, -1, 0], ![2, -2, -1, 1]]
290
def raw4814step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 2, -1, -1], ![1, -2, 0, 1]]
292
def raw4814step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, 0, -1, 2], ![0, -2, 1, 1], ![-1, 2, 0, -1]]
294
def raw4814step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, -1, 2, -1], ![0, 2, 0, -2], ![1, 0, -2, 1]]
296
theorem canonical4814 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4814 = injectiveMoment H node1010 := by
proof · 14 lines
  calc
    injectiveMoment H raw4814 = injectiveMoment H raw4814step0 := by
      have heq : raw4814step0 = raw4814.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4814).symm
    injectiveMoment H raw4814step0 = injectiveMoment H raw4814step1 := by
      have heq : raw4814step1 = -raw4814step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4814step0).symm
    injectiveMoment H raw4814step1 = injectiveMoment H raw4814step2 := by
      have heq : raw4814step2 = (fun i j => raw4814step1 (permutation19 i) (permutation21 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4814step1 permutation19 permutation21
    _ = injectiveMoment H node1010 := by rfl
313
def raw4815 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, 0, -1], ![1, -1, -2, 2], ![1, -1, 0, 0]]
315
def raw4815step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, -1, 1, 2], ![0, -1, 1, 0], ![0, 1, -2, 1], ![0, 1, 0, -1], ![2, 0, 0, -2]]
317
theorem canonical4815 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4815 = injectiveMoment H node1744 := by
proof · 6 lines
  calc
    injectiveMoment H raw4815 = injectiveMoment H raw4815step0 := by
      have heq : raw4815step0 = (fun i j => raw4815 (permutation123 i) (permutation23 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4815 permutation123 permutation23
    _ = injectiveMoment H node1744 := by rfl
326
def raw4816 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, 0, -1], ![2, -2, -2, 2]]
328
def raw4816step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 2, 0, -2], ![1, -2, -1, 2]]
330
def raw4816step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -2, 1, 2], ![0, 0, -2, 2], ![0, 2, 0, -2], ![1, 0, 1, -2]]
332
theorem canonical4816 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4816 = injectiveMoment H node831 := by
proof · 10 lines
  calc
    injectiveMoment H raw4816 = injectiveMoment H raw4816step0 := by
      have heq : raw4816step0 = raw4816.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4816).symm
    injectiveMoment H raw4816step0 = injectiveMoment H raw4816step1 := by
      have heq : raw4816step1 = (fun i j => raw4816step0 (permutation28 i) (permutation23 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4816step0 permutation28 permutation23
    _ = injectiveMoment H node831 := by rfl
345
def raw4817 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![0, 1, 1, -2], ![2, -2, -3, 3]]
347
def raw4817step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 2, 1, -3], ![1, -2, -2, 3]]
349
def raw4817step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -2, 1, 3], ![0, 0, -2, 2], ![0, 1, 1, -2], ![2, 1, 0, -3]]
351
theorem canonical4817 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4817 = injectiveMoment H node405 := by
proof · 10 lines
  calc
    injectiveMoment H raw4817 = injectiveMoment H raw4817step0 := by
      have heq : raw4817step0 = raw4817.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4817).symm
    injectiveMoment H raw4817step0 = injectiveMoment H raw4817step1 := by
      have heq : raw4817step1 = (fun i j => raw4817step0 (permutation27 i) (permutation17 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4817step0 permutation27 permutation17
    _ = injectiveMoment H node405 := by rfl
364
def raw4818 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![1, -2, -2, 3], ![1, 1, 0, -2]]
366
def raw4818step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -2, 1, 3], ![0, 1, -2, 1], ![0, 1, 1, -2], ![2, 0, 0, -2]]
368
theorem canonical4818 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4818 = injectiveMoment H node408 := by
proof · 6 lines
  calc
    injectiveMoment H raw4818 = injectiveMoment H raw4818step0 := by
      have heq : raw4818step0 = (fun i j => raw4818 (permutation22 i) (permutation23 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4818 permutation22 permutation23
    _ = injectiveMoment H node408 := by rfl
377
def raw4819 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![1, -1, -3, 3], ![1, 0, 1, -2]]
379
def raw4819step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 1, -3, 3], ![0, 0, 2, -2], ![0, 1, 1, -2], ![1, -2, 0, 1]]
381
theorem canonical4819 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4819 = injectiveMoment H node1329 := by
proof · 6 lines
  calc
    injectiveMoment H raw4819 = injectiveMoment H raw4819step0 := by
      have heq : raw4819step0 = (fun i j => raw4819 (permutation24 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4819 permutation24 permutation15
    _ = injectiveMoment H node1329 := by rfl
390
def raw4820 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![1, -1, -2, 2], ![1, 0, 0, -1]]
392
def raw4820step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -2, 1, 2], ![0, 0, 1, -1], ![0, 2, 0, -2], ![1, 0, -2, 1]]
394
theorem canonical4820 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4820 = injectiveMoment H node840 := by
proof · 6 lines
  calc
    injectiveMoment H raw4820 = injectiveMoment H raw4820step0 := by
      have heq : raw4820step0 = (fun i j => raw4820 (permutation26 i) (permutation17 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4820 permutation26 permutation17
    _ = injectiveMoment H node840 := by rfl
403
def raw4821 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 2, -2], ![1, 0, -3, 2], ![1, -1, 1, -1]]
405
def raw4821step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 1, -1, 1], ![0, 0, -2, 2], ![0, 1, 2, -3], ![1, -2, 1, 0]]
407
theorem canonical4821 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4821 = injectiveMoment H node1347 := by
proof · 6 lines
  calc
    injectiveMoment H raw4821 = injectiveMoment H raw4821step0 := by
      have heq : raw4821step0 = (fun i j => raw4821 (permutation30 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4821 permutation30 permutation16
    _ = injectiveMoment H node1347 := by rfl
416
def raw4822 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![0, 0, -2, 2], ![1, -1, 0, 0], ![1, 0, -1, 0]]
418
def raw4822step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![-1, 1, 0, 0], ![0, 0, -3, 3], ![0, 0, 2, -2], ![0, 1, 0, -1], ![1, -2, 1, 0]]
420
theorem canonical4822 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4822 = injectiveMoment H node2849 := by
proof · 6 lines
  calc
    injectiveMoment H raw4822 = injectiveMoment H raw4822step0 := by
      have heq : raw4822step0 = (fun i j => raw4822 (permutation113 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4822 permutation113 permutation16
    _ = injectiveMoment H node2849 := by rfl
429
def raw4823 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![0, 1, -1, 0], ![1, -1, -2, 2], ![1, -1, 0, 0]]
431
theorem canonical4823 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4823 = injectiveMoment H node2293 := by
proof · 1 line
  rfl
435
def raw4824 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![0, 1, -1, 0], ![2, -2, -2, 2]]
437
def raw4824step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 3, -1, -2], ![1, -3, 0, 2]]
439
def raw4824step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, 0, -1, 2], ![0, -3, 1, 2], ![-1, 3, 0, -2]]
441
def raw4824step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, -1, 3, -2], ![0, 2, 0, -2], ![1, 0, -3, 2]]
443
theorem canonical4824 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4824 = injectiveMoment H node1017 := by
proof · 14 lines
  calc
    injectiveMoment H raw4824 = injectiveMoment H raw4824step0 := by
      have heq : raw4824step0 = raw4824.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4824).symm
    injectiveMoment H raw4824step0 = injectiveMoment H raw4824step1 := by
      have heq : raw4824step1 = -raw4824step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4824step0).symm
    injectiveMoment H raw4824step1 = injectiveMoment H raw4824step2 := by
      have heq : raw4824step2 = (fun i j => raw4824step1 (permutation19 i) (permutation21 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4824step1 permutation19 permutation21
    _ = injectiveMoment H node1017 := by rfl
460
def raw4825 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![0, 1, 0, -1], ![2, -2, -3, 3]]
462
def raw4825step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 0, 1, -2], ![0, 3, 0, -3], ![1, -3, -1, 3]]
464
def raw4825step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, 0, -1, 2], ![0, -3, 0, 3], ![-1, 3, 1, -3]]
466
def raw4825step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, 0, -3, 3], ![0, 2, 0, -2], ![1, -1, 3, -3]]
468
theorem canonical4825 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4825 = injectiveMoment H node1025 := by
proof · 14 lines
  calc
    injectiveMoment H raw4825 = injectiveMoment H raw4825step0 := by
      have heq : raw4825step0 = raw4825.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4825).symm
    injectiveMoment H raw4825step0 = injectiveMoment H raw4825step1 := by
      have heq : raw4825step1 = -raw4825step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4825step0).symm
    injectiveMoment H raw4825step1 = injectiveMoment H raw4825step2 := by
      have heq : raw4825step2 = (fun i j => raw4825step1 (permutation17 i) (permutation21 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4825step1 permutation17 permutation21
    _ = injectiveMoment H node1025 := by rfl
485
def raw4826 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![1, -1, -2, 2], ![1, 0, -1, 0]]
487
def raw4826step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 0, -1, 0], ![0, 3, -2, -1], ![1, -3, 2, 0]]
489
def raw4826step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -2, 3], ![0, 1, -1, 0], ![0, 1, 2, -3], ![1, -2, 1, 0]]
491
theorem canonical4826 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4826 = injectiveMoment H node1231 := by
proof · 10 lines
  calc
    injectiveMoment H raw4826 = injectiveMoment H raw4826step0 := by
      have heq : raw4826step0 = raw4826.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4826).symm
    injectiveMoment H raw4826step0 = injectiveMoment H raw4826step1 := by
      have heq : raw4826step1 = (fun i j => raw4826step0 (permutation24 i) (permutation28 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4826step0 permutation24 permutation28
    _ = injectiveMoment H node1231 := by rfl
504
def raw4827 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![1, -1, -1, 1], ![1, 0, -2, 1]]
506
def raw4827step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 1, -1, 1], ![0, 0, 3, -3], ![0, 1, -2, 1], ![1, -2, 0, 1]]
508
theorem canonical4827 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4827 = injectiveMoment H node1352 := by
proof · 6 lines
  calc
    injectiveMoment H raw4827 = injectiveMoment H raw4827step0 := by
      have heq : raw4827step0 = (fun i j => raw4827 (permutation24 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4827 permutation24 permutation15
    _ = injectiveMoment H node1352 := by rfl
517
def raw4828 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![1, -1, 0, 0], ![1, 0, -3, 2]]
519
def raw4828step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 1, 0, 0], ![0, 0, -3, 3], ![0, 1, 2, -3], ![1, -2, 1, 0]]
521
theorem canonical4828 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4828 = injectiveMoment H node1355 := by
proof · 6 lines
  calc
    injectiveMoment H raw4828 = injectiveMoment H raw4828step0 := by
      have heq : raw4828step0 = (fun i j => raw4828 (permutation24 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4828 permutation24 permutation16
    _ = injectiveMoment H node1355 := by rfl
530
def raw4829 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, 3, -3], ![1, 0, -3, 2], ![1, -1, 0, 0]]
532
def raw4829step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 1, 0, 0], ![0, 0, -3, 3], ![0, 1, 2, -3], ![1, -2, 1, 0]]
534
theorem canonical4829 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4829 = injectiveMoment H node1355 := by
proof · 6 lines
  calc
    injectiveMoment H raw4829 = injectiveMoment H raw4829step0 := by
      have heq : raw4829step0 = (fun i j => raw4829 (permutation30 i) (permutation16 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4829 permutation30 permutation16
    _ = injectiveMoment H node1355 := by rfl
543
def raw4830 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 1, -3, 2], ![0, 0, 2, -2], ![2, -2, 1, -1]]
545
def raw4830step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![1, 1, 0, -2], ![0, -3, 2, 1], ![1, 2, -2, -1]]
547
def raw4830step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, 0, -2], ![-1, -1, 0, 2], ![0, 3, -2, -1], ![-1, -2, 2, 1]]
549
def raw4830step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, -1, 3], ![0, -1, 2, -1], ![0, 2, -2, 0], ![2, -1, 1, -2]]
551
theorem canonical4830 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw4830 = injectiveMoment H node588 := by
proof · 14 lines
  calc
    injectiveMoment H raw4830 = injectiveMoment H raw4830step0 := by
      have heq : raw4830step0 = raw4830.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4830).symm
    injectiveMoment H raw4830step0 = injectiveMoment H raw4830step1 := by
      have heq : raw4830step1 = -raw4830step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw4830step0).symm
    injectiveMoment H raw4830step1 = injectiveMoment H raw4830step2 := by
      have heq : raw4830step2 = (fun i j => raw4830step1 (permutation23 i) (permutation22 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4830step1 permutation23 permutation22
    _ = injectiveMoment H node588 := by rfl
568
def raw4831 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 1, -3, 2], ![1, -2, 0, 1], ![1, 0, 3, -4]]
570
def raw4831step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![1, 1, -2, 0], ![0, -3, 0, 3], ![1, 2, 1, -4]]
572
def raw4831step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![0, 0, -3, 3], ![1, -2, 1, 0], ![1, 1, 2, -4]]
574
theorem canonical4831 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw4831 = injectiveMoment H node692 := by
proof · 10 lines
  calc
    injectiveMoment H raw4831 = injectiveMoment H raw4831step0 := by
      have heq : raw4831step0 = raw4831.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw4831).symm
    injectiveMoment H raw4831step0 = injectiveMoment H raw4831step1 := by
      have heq : raw4831step1 = (fun i j => raw4831step0 (permutation11 i) (permutation11 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw4831step0 permutation11 permutation11
    _ = injectiveMoment H node692 := by rfl

Xet Storage Details

Size:
33.3 kB
·
Xet hash:
f214807bcb11144dc0da8628e65167d0f52ad9e1b499a59deb65fde8926f7860

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