cfahlgren1's picture
download
raw
30.3 kB
19
def raw5440 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![0, 0, 1, -1], ![1, -1, -2, 2], ![1, -1, 1, -1]]
21
def raw5440step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, 0, -1, -1], ![0, 1, -2, 1], ![0, -1, 2, -1]]
23
def raw5440step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, -1, 2, -1], ![0, 1, -2, 1], ![1, 1, 0, -2]]
25
theorem canonical5440 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5440 = injectiveMoment H node1005 := by
proof · 10 lines
  calc
    injectiveMoment H raw5440 = injectiveMoment H raw5440step0 := by
      have heq : raw5440step0 = raw5440.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5440).symm
    injectiveMoment H raw5440step0 = injectiveMoment H raw5440step1 := by
      have heq : raw5440step1 = (fun i j => raw5440step0 (permutation29 i) (permutation19 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5440step0 permutation29 permutation19
    _ = injectiveMoment H node1005 := by rfl
38
def raw5441 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![0, 0, 2, -2], ![1, -1, -2, 2], ![1, -1, 0, 0]]
40
def raw5441step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, 0, -1, -1], ![0, 2, -2, 0], ![0, -2, 2, 0]]
42
def raw5441step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, 2, -1], ![0, -2, 0, 2], ![0, 2, 0, -2], ![1, 0, -2, 1]]
44
theorem canonical5441 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5441 = injectiveMoment H node1304 := by
proof · 10 lines
  calc
    injectiveMoment H raw5441 = injectiveMoment H raw5441step0 := by
      have heq : raw5441step0 = raw5441.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5441).symm
    injectiveMoment H raw5441step0 = injectiveMoment H raw5441step1 := by
      have heq : raw5441step1 = (fun i j => raw5441step0 (permutation20 i) (permutation29 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5441step0 permutation20 permutation29
    _ = injectiveMoment H node1304 := by rfl
57
def raw5442 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![0, 0, 2, -2], ![1, -1, -1, 1], ![1, -1, -1, 1]]
59
def raw5442step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 0, 2], ![0, -2, 2, 0], ![1, 1, -1, -1], ![1, 1, -1, -1]]
61
theorem canonical5442 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5442 = injectiveMoment H node608 := by
proof · 6 lines
  calc
    injectiveMoment H raw5442 = injectiveMoment H raw5442step0 := by
      have heq : raw5442step0 = (fun i j => raw5442 (permutation9 i) (permutation14 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5442 permutation9 permutation14
    _ = injectiveMoment H node608 := by rfl
70
def raw5443 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![1, -2, -3, 4], ![0, 0, 2, -2], ![1, 0, 1, -2]]
72
def raw5443step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![2, -2, 0, 0], ![0, -3, 2, 1], ![0, 4, -2, -2]]
74
def raw5443step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -2, 0, 4], ![0, 0, 2, -2], ![0, 1, -2, 1], ![2, 1, 0, -3]]
76
theorem canonical5443 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5443 = injectiveMoment H node394 := by
proof · 10 lines
  calc
    injectiveMoment H raw5443 = injectiveMoment H raw5443step0 := by
      have heq : raw5443step0 = raw5443.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5443).symm
    injectiveMoment H raw5443step0 = injectiveMoment H raw5443step1 := by
      have heq : raw5443step1 = (fun i j => raw5443step0 (permutation29 i) (permutation25 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5443step0 permutation29 permutation25
    _ = injectiveMoment H node394 := by rfl
89
def raw5444 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![1, -1, -3, 3], ![0, -1, 2, -1], ![1, 0, 1, -2]]
91
def raw5444step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![2, -1, -1, 0], ![0, -3, 2, 1], ![0, 3, -1, -2]]
93
def raw5444step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -1, 0, 3], ![0, -1, 2, -1], ![1, 0, -2, 1], ![1, 2, 0, -3]]
95
theorem canonical5444 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5444 = injectiveMoment H node475 := by
proof · 10 lines
  calc
    injectiveMoment H raw5444 = injectiveMoment H raw5444step0 := by
      have heq : raw5444step0 = raw5444.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5444).symm
    injectiveMoment H raw5444step0 = injectiveMoment H raw5444step1 := by
      have heq : raw5444step1 = (fun i j => raw5444step0 (permutation29 i) (permutation31 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5444step0 permutation29 permutation31
    _ = injectiveMoment H node475 := by rfl
108
def raw5445 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 0, 0], ![1, -1, -3, 3], ![0, 0, 2, -2], ![1, -1, 1, -1]]
110
def raw5445step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 1, 0, 1], ![2, -1, 0, -1], ![0, -3, 2, 1], ![0, 3, -2, -1]]
112
def raw5445step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -1, 0, 3], ![0, -1, 2, -1], ![0, 1, -2, 1], ![2, 1, 0, -3]]
114
theorem canonical5445 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5445 = injectiveMoment H node471 := by
proof · 10 lines
  calc
    injectiveMoment H raw5445 = injectiveMoment H raw5445step0 := by
      have heq : raw5445step0 = raw5445.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5445).symm
    injectiveMoment H raw5445step0 = injectiveMoment H raw5445step1 := by
      have heq : raw5445step1 = (fun i j => raw5445step0 (permutation29 i) (permutation25 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5445step0 permutation29 permutation25
    _ = injectiveMoment H node471 := by rfl
127
def raw5446 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, -1, -3, 4], ![0, 0, 1, -1], ![1, -1, 0, 0], ![1, 0, 1, -2]]
129
def raw5446step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![2, -2, -1, 1], ![0, 1, 3, -4], ![0, 0, -1, 1], ![-1, 1, 0, 0], ![-1, 0, -1, 2]]
131
def raw5446step1 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, -1, 1], ![0, -1, -1, 2], ![0, 0, -1, 1], ![1, -1, 0, 0], ![1, 0, 3, -4]]
133
theorem canonical5446 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5446 = injectiveMoment H node2348 := by
proof · 10 lines
  calc
    injectiveMoment H raw5446 = injectiveMoment H raw5446step0 := by
      have heq : raw5446step0 = -raw5446 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5446).symm
    injectiveMoment H raw5446step0 = injectiveMoment H raw5446step1 := by
      have heq : raw5446step1 = (fun i j => raw5446step0 (permutation54 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5446step0 permutation54 permutation15
    _ = injectiveMoment H node2348 := by rfl
146
def raw5447 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, -1, -3, 4], ![0, 0, 1, -1], ![1, -1, 1, -1], ![1, 0, 0, -1]]
148
def raw5447step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![2, -2, -1, 1], ![0, 1, 3, -4], ![0, 0, -1, 1], ![-1, 1, -1, 1], ![-1, 0, 0, 1]]
150
def raw5447step1 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, -1, 1], ![0, -1, 0, 1], ![0, 0, -1, 1], ![1, -1, -1, 1], ![1, 0, 3, -4]]
152
theorem canonical5447 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5447 = injectiveMoment H node2349 := by
proof · 10 lines
  calc
    injectiveMoment H raw5447 = injectiveMoment H raw5447step0 := by
      have heq : raw5447step0 = -raw5447 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5447).symm
    injectiveMoment H raw5447step0 = injectiveMoment H raw5447step1 := by
      have heq : raw5447step1 = (fun i j => raw5447step0 (permutation54 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5447step0 permutation54 permutation15
    _ = injectiveMoment H node2349 := by rfl
165
def raw5448 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, -1, -3, 4], ![1, -1, 0, 0], ![1, 0, 2, -3]]
167
def raw5448step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![1, -3, 0, 2], ![-1, 4, 0, -3]]
169
def raw5448step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-2, 1, 1, 0], ![-1, 3, 0, -2], ![1, -4, 0, 3]]
171
def raw5448step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 2, 0], ![0, -2, -1, 3], ![0, 3, 1, -4], ![1, 0, -2, 1]]
173
theorem canonical5448 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5448 = injectiveMoment H node1154 := by
proof · 14 lines
  calc
    injectiveMoment H raw5448 = injectiveMoment H raw5448step0 := by
      have heq : raw5448step0 = raw5448.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5448).symm
    injectiveMoment H raw5448step0 = injectiveMoment H raw5448step1 := by
      have heq : raw5448step1 = -raw5448step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5448step0).symm
    injectiveMoment H raw5448step1 = injectiveMoment H raw5448step2 := by
      have heq : raw5448step2 = (fun i j => raw5448step1 (permutation12 i) (permutation25 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5448step1 permutation12 permutation25
    _ = injectiveMoment H node1154 := by rfl
190
def raw5449 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, -1, -3, 4], ![1, -1, 1, -1], ![1, 0, 1, -2]]
192
def raw5449step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![1, -3, 1, 1], ![-1, 4, -1, -2]]
194
def raw5449step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -1, -1, 4], ![0, -1, 2, -1], ![1, 1, -2, 0], ![1, 1, 1, -3]]
196
theorem canonical5449 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5449 = injectiveMoment H node453 := by
proof · 10 lines
  calc
    injectiveMoment H raw5449 = injectiveMoment H raw5449step0 := by
      have heq : raw5449step0 = raw5449.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5449).symm
    injectiveMoment H raw5449step0 = injectiveMoment H raw5449step1 := by
      have heq : raw5449step1 = (fun i j => raw5449step0 (permutation29 i) (permutation31 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5449step0 permutation29 permutation31
    _ = injectiveMoment H node453 := by rfl
209
def raw5450 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, -1, -3, 4], ![1, -1, 2, -2], ![1, 0, 0, -1]]
211
def raw5450step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![1, -3, 2, 0], ![-1, 4, -2, -1]]
213
def raw5450step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -2, -1, 4], ![0, -1, 2, -1], ![0, 2, 1, -3], ![1, 1, -2, 0]]
215
theorem canonical5450 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5450 = injectiveMoment H node758 := by
proof · 10 lines
  calc
    injectiveMoment H raw5450 = injectiveMoment H raw5450step0 := by
      have heq : raw5450step0 = raw5450.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5450).symm
    injectiveMoment H raw5450step0 = injectiveMoment H raw5450step1 := by
      have heq : raw5450step1 = (fun i j => raw5450step0 (permutation30 i) (permutation31 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5450step0 permutation30 permutation31
    _ = injectiveMoment H node758 := by rfl
228
def raw5451 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, 0, -3, 3], ![1, -1, 0, 0], ![1, -1, 2, -2]]
230
def raw5451step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, 0, -1, -1], ![1, -3, 0, 2], ![-1, 3, 0, -2]]
232
def raw5451step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, -2, 3, -1], ![0, 2, -3, 1], ![1, 1, 0, -2]]
234
theorem canonical5451 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5451 = injectiveMoment H node989 := by
proof · 10 lines
  calc
    injectiveMoment H raw5451 = injectiveMoment H raw5451step0 := by
      have heq : raw5451step0 = raw5451.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5451).symm
    injectiveMoment H raw5451step0 = injectiveMoment H raw5451step1 := by
      have heq : raw5451step1 = (fun i j => raw5451step0 (permutation20 i) (permutation26 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5451step0 permutation20 permutation26
    _ = injectiveMoment H node989 := by rfl
247
def raw5452 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 1, -1], ![0, 0, -2, 2], ![1, -1, -1, 1], ![1, -1, 2, -2]]
249
def raw5452step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, 0, -1, -1], ![1, -2, -1, 2], ![-1, 2, 1, -2]]
251
def raw5452step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, -1, 1, 2], ![0, -1, 2, -1], ![0, 1, -2, 1], ![2, 1, -1, -2]]
253
theorem canonical5452 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5452 = injectiveMoment H node503 := by
proof · 10 lines
  calc
    injectiveMoment H raw5452 = injectiveMoment H raw5452step0 := by
      have heq : raw5452step0 = raw5452.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5452).symm
    injectiveMoment H raw5452step0 = injectiveMoment H raw5452step1 := by
      have heq : raw5452step1 = (fun i j => raw5452step0 (permutation23 i) (permutation17 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5452step0 permutation23 permutation17
    _ = injectiveMoment H node503 := by rfl
266
def raw5453 : Matrix (Fin 2) (Fin 4) ℤ := ![![-2, 2, 2, -2], ![2, -2, -2, 2]]
268
def raw5453step0 : Matrix (Fin 4) (Fin 2) ℤ := ![![-2, 2], ![2, -2], ![2, -2], ![-2, 2]]
270
def raw5453step1 : Matrix (Fin 4) (Fin 2) ℤ := ![![-2, 2], ![-2, 2], ![2, -2], ![2, -2]]
272
theorem canonical5453 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5453 = injectiveMoment H node45 := by
proof · 10 lines
  calc
    injectiveMoment H raw5453 = injectiveMoment H raw5453step0 := by
      have heq : raw5453step0 = raw5453.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5453).symm
    injectiveMoment H raw5453step0 = injectiveMoment H raw5453step1 := by
      have heq : raw5453step1 = (fun i j => raw5453step0 (permutation13 i) (permutation1 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5453step0 permutation13 permutation1
    _ = injectiveMoment H node45 := by rfl
285
def raw5454 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 3, -3], ![0, -1, -3, 4], ![1, -1, 0, 0], ![1, 0, 0, -1]]
287
def raw5454step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![3, -3, 0, 0], ![-3, 4, 0, -1]]
289
def raw5454step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-2, 1, 1, 0], ![-3, 3, 0, 0], ![3, -4, 0, 1]]
291
def raw5454step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, 0, 3, -3], ![0, 1, -4, 3], ![1, 0, 1, -2]]
293
theorem canonical5454 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5454 = injectiveMoment H node1061 := by
proof · 14 lines
  calc
    injectiveMoment H raw5454 = injectiveMoment H raw5454step0 := by
      have heq : raw5454step0 = raw5454.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5454).symm
    injectiveMoment H raw5454step0 = injectiveMoment H raw5454step1 := by
      have heq : raw5454step1 = -raw5454step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5454step0).symm
    injectiveMoment H raw5454step1 = injectiveMoment H raw5454step2 := by
      have heq : raw5454step2 = (fun i j => raw5454step1 (permutation12 i) (permutation26 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5454step1 permutation12 permutation26
    _ = injectiveMoment H node1061 := by rfl
310
def raw5455 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 3, -3], ![0, -1, -2, 3], ![1, -1, -1, 1], ![1, 0, 0, -1]]
312
def raw5455step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![3, -2, -1, 0], ![-3, 3, 1, -1]]
314
def raw5455step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-2, 1, 1, 0], ![-3, 2, 1, 0], ![3, -3, -1, 1]]
316
def raw5455step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, -1, 0, 2], ![0, 1, 1, -2], ![0, 1, 2, -3], ![1, -1, -3, 3]]
318
theorem canonical5455 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5455 = injectiveMoment H node1085 := by
proof · 14 lines
  calc
    injectiveMoment H raw5455 = injectiveMoment H raw5455step0 := by
      have heq : raw5455step0 = raw5455.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5455).symm
    injectiveMoment H raw5455step0 = injectiveMoment H raw5455step1 := by
      have heq : raw5455step1 = -raw5455step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5455step0).symm
    injectiveMoment H raw5455step1 = injectiveMoment H raw5455step2 := by
      have heq : raw5455step2 = (fun i j => raw5455step1 (permutation9 i) (permutation32 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5455step1 permutation9 permutation32
    _ = injectiveMoment H node1085 := by rfl
335
def raw5456 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, 3, -3], ![0, -1, -1, 2], ![0, 0, -2, 2], ![1, -1, 0, 0], ![1, 0, 0, -1]]
337
def raw5456step0 : Matrix (Fin 5) (Fin 4) ℤ := ![![2, -2, -3, 3], ![0, 1, 1, -2], ![0, 0, 2, -2], ![-1, 1, 0, 0], ![-1, 0, 0, 1]]
339
def raw5456step1 : Matrix (Fin 5) (Fin 4) ℤ := ![![-2, 2, -3, 3], ![0, -1, 0, 1], ![0, 0, 2, -2], ![1, -1, 0, 0], ![1, 0, 1, -2]]
341
theorem canonical5456 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5456 = injectiveMoment H node2328 := by
proof · 10 lines
  calc
    injectiveMoment H raw5456 = injectiveMoment H raw5456step0 := by
      have heq : raw5456step0 = -raw5456 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5456).symm
    injectiveMoment H raw5456step0 = injectiveMoment H raw5456step1 := by
      have heq : raw5456step1 = (fun i j => raw5456step0 (permutation54 i) (permutation15 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5456step0 permutation54 permutation15
    _ = injectiveMoment H node2328 := by rfl
354
def raw5457 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 2, 3, -3], ![0, -1, -1, 2], ![1, -1, -2, 2], ![1, 0, 0, -1]]
356
def raw5457step0 : Matrix (Fin 4) (Fin 4) ℤ := ![![-2, 0, 1, 1], ![2, -1, -1, 0], ![3, -1, -2, 0], ![-3, 2, 2, -1]]
358
def raw5457step1 : Matrix (Fin 4) (Fin 4) ℤ := ![![2, 0, -1, -1], ![-2, 1, 1, 0], ![-3, 1, 2, 0], ![3, -2, -2, 1]]
360
def raw5457step2 : Matrix (Fin 4) (Fin 4) ℤ := ![![-1, 0, -1, 2], ![0, 1, 1, -2], ![0, 1, 2, -3], ![1, -2, -2, 3]]
362
theorem canonical5457 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5457 = injectiveMoment H node1279 := by
proof · 14 lines
  calc
    injectiveMoment H raw5457 = injectiveMoment H raw5457step0 := by
      have heq : raw5457step0 = raw5457.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5457).symm
    injectiveMoment H raw5457step0 = injectiveMoment H raw5457step1 := by
      have heq : raw5457step1 = -raw5457step0 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5457step0).symm
    injectiveMoment H raw5457step1 = injectiveMoment H raw5457step2 := by
      have heq : raw5457step2 = (fun i j => raw5457step1 (permutation9 i) (permutation30 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5457step1 permutation9 permutation30
    _ = injectiveMoment H node1279 := by rfl
379
def raw5458 : Matrix (Fin 2) (Fin 3) ℤ := ![![-2, 3, -1], ![2, -3, 1]]
381
def raw5458step0 : Matrix (Fin 3) (Fin 2) ℤ := ![![-2, 2], ![3, -3], ![-1, 1]]
383
def raw5458step1 : Matrix (Fin 3) (Fin 2) ℤ := ![![-3, 3], ![1, -1], ![2, -2]]
385
theorem canonical5458 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5458 = injectiveMoment H node10 := by
proof · 10 lines
  calc
    injectiveMoment H raw5458 = injectiveMoment H raw5458step0 := by
      have heq : raw5458step0 = raw5458.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5458).symm
    injectiveMoment H raw5458step0 = injectiveMoment H raw5458step1 := by
      have heq : raw5458step1 = (fun i j => raw5458step0 (permutation6 i) (permutation2 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5458step0 permutation6 permutation2
    _ = injectiveMoment H node10 := by rfl
398
def raw5459 : Matrix (Fin 2) (Fin 3) ℤ := ![![-2, 4, -2], ![2, -4, 2]]
400
def raw5459step0 : Matrix (Fin 3) (Fin 2) ℤ := ![![-2, 2], ![4, -4], ![-2, 2]]
402
def raw5459step1 : Matrix (Fin 3) (Fin 2) ℤ := ![![-4, 4], ![2, -2], ![2, -2]]
404
theorem canonical5459 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5459 = injectiveMoment H node9 := by
proof · 10 lines
  calc
    injectiveMoment H raw5459 = injectiveMoment H raw5459step0 := by
      have heq : raw5459step0 = raw5459.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5459).symm
    injectiveMoment H raw5459step0 = injectiveMoment H raw5459step1 := by
      have heq : raw5459step1 = (fun i j => raw5459step0 (permutation5 i) (permutation2 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5459step0 permutation5 permutation2
    _ = injectiveMoment H node9 := by rfl
417
def raw5460 : Matrix (Fin 2) (Fin 3) ℤ := ![![-2, 5, -3], ![2, -5, 3]]
419
def raw5460step0 : Matrix (Fin 3) (Fin 2) ℤ := ![![-2, 2], ![5, -5], ![-3, 3]]
421
def raw5460step1 : Matrix (Fin 3) (Fin 2) ℤ := ![![-5, 5], ![2, -2], ![3, -3]]
423
theorem canonical5460 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5460 = injectiveMoment H node7 := by
proof · 10 lines
  calc
    injectiveMoment H raw5460 = injectiveMoment H raw5460step0 := by
      have heq : raw5460step0 = raw5460.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5460).symm
    injectiveMoment H raw5460step0 = injectiveMoment H raw5460step1 := by
      have heq : raw5460step1 = (fun i j => raw5460step0 (permutation5 i) (permutation2 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5460step0 permutation5 permutation2
    _ = injectiveMoment H node7 := by rfl
436
def raw5461 : Matrix (Fin 5) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 2, -1], ![0, 1, -1], ![1, 0, -1], ![1, 1, -2]]
438
theorem canonical5461 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5461 = injectiveMoment H node721 := by
proof · 1 line
  rfl
442
def raw5462 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 2, -1], ![1, 0, -1], ![1, 2, -3]]
444
theorem canonical5462 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5462 = injectiveMoment H node233 := by
proof · 1 line
  rfl
448
def raw5463 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 2, -1], ![1, 1, -2], ![1, 1, -2]]
450
theorem canonical5463 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5463 = injectiveMoment H node234 := by
proof · 1 line
  rfl
454
def raw5464 : Matrix (Fin 3) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 2, -1], ![2, 2, -4]]
456
def raw5464step0 : Matrix (Fin 3) (Fin 3) ℤ := ![![1, 4, -5], ![1, -2, 1], ![-2, -2, 4]]
458
def raw5464step1 : Matrix (Fin 3) (Fin 3) ℤ := ![![-2, -2, 4], ![1, -2, 1], ![1, 4, -5]]
460
theorem canonical5464 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5464 = injectiveMoment H node34 := by
proof · 10 lines
  calc
    injectiveMoment H raw5464 = injectiveMoment H raw5464step0 := by
      have heq : raw5464step0 = -raw5464 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5464).symm
    injectiveMoment H raw5464step0 = injectiveMoment H raw5464step1 := by
      have heq : raw5464step1 = (fun i j => raw5464step0 (permutation8 i) (permutation3 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5464step0 permutation8 permutation3
    _ = injectiveMoment H node34 := by rfl
473
def raw5465 : Matrix (Fin 5) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 3, -2], ![0, 1, -1], ![1, 0, -1], ![1, 0, -1]]
475
theorem canonical5465 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5465 = injectiveMoment H node722 := by
proof · 1 line
  rfl
479
def raw5466 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 3, -2], ![1, 0, -1], ![1, 1, -2]]
481
theorem canonical5466 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5466 = injectiveMoment H node235 := by
proof · 1 line
  rfl
485
def raw5467 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 3, -2], ![1, 1, -2], ![1, 0, -1]]
487
def raw5467step0 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 3, -2], ![1, 0, -1], ![1, 1, -2]]
489
theorem canonical5467 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5467 = injectiveMoment H node235 := by
proof · 6 lines
  calc
    injectiveMoment H raw5467 = injectiveMoment H raw5467step0 := by
      have heq : raw5467step0 = (fun i j => raw5467 (permutation10 i) (permutation3 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5467 permutation10 permutation3
    _ = injectiveMoment H node235 := by rfl
498
def raw5468 : Matrix (Fin 3) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 3, -2], ![2, 1, -3]]
500
def raw5468step0 : Matrix (Fin 3) (Fin 3) ℤ := ![![1, 4, -5], ![1, -3, 2], ![-2, -1, 3]]
502
def raw5468step1 : Matrix (Fin 3) (Fin 3) ℤ := ![![-2, -1, 3], ![1, -3, 2], ![1, 4, -5]]
504
theorem canonical5468 {H : CMatrix} (hH : IsHadamard H) :
    injectiveMoment H raw5468 = injectiveMoment H node39 := by
proof · 10 lines
  calc
    injectiveMoment H raw5468 = injectiveMoment H raw5468step0 := by
      have heq : raw5468step0 = -raw5468 := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_neg hH raw5468).symm
    injectiveMoment H raw5468step0 = injectiveMoment H raw5468step1 := by
      have heq : raw5468step1 = (fun i j => raw5468step0 (permutation8 i) (permutation3 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5468step0 permutation8 permutation3
    _ = injectiveMoment H node39 := by rfl
517
def raw5469 : Matrix (Fin 4) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 4, -3], ![1, 0, -1], ![1, 0, -1]]
519
theorem canonical5469 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5469 = injectiveMoment H node236 := by
proof · 1 line
  rfl
523
def raw5470 : Matrix (Fin 3) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 4, -3], ![2, 0, -2]]
525
def raw5470step0 : Matrix (Fin 3) (Fin 3) ℤ := ![![-1, -1, 2], ![-4, 4, 0], ![5, -3, -2]]
527
def raw5470step1 : Matrix (Fin 3) (Fin 3) ℤ := ![![-2, -3, 5], ![0, 4, -4], ![2, -1, -1]]
529
theorem canonical5470 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5470 = injectiveMoment H node29 := by
proof · 10 lines
  calc
    injectiveMoment H raw5470 = injectiveMoment H raw5470step0 := by
      have heq : raw5470step0 = raw5470.transpose := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact (injectiveMoment_transpose H raw5470).symm
    injectiveMoment H raw5470step0 = injectiveMoment H raw5470step1 := by
      have heq : raw5470step1 = (fun i j => raw5470step0 (permutation8 i) (permutation8 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5470step0 permutation8 permutation8
    _ = injectiveMoment H node29 := by rfl
542
def raw5471 : Matrix (Fin 5) (Fin 3) ℤ := ![![-1, -4, 5], ![0, 1, -1], ![-1, 2, -1], ![1, 0, -1], ![1, 1, -2]]
544
def raw5471step0 : Matrix (Fin 5) (Fin 3) ℤ := ![![-1, -4, 5], ![-1, 2, -1], ![0, 1, -1], ![1, 0, -1], ![1, 1, -2]]
546
theorem canonical5471 {H : CMatrix} (_hH : IsHadamard H) :
    injectiveMoment H raw5471 = injectiveMoment H node721 := by
proof · 6 lines
  calc
    injectiveMoment H raw5471 = injectiveMoment H raw5471step0 := by
      have heq : raw5471step0 = (fun i j => raw5471 (permutation39 i) (permutation3 j)) := by ext i j; fin_cases i <;> fin_cases j <;> decide +kernel
      rw [heq]
      exact moment_permute H raw5471 permutation39 permutation3
    _ = injectiveMoment H node721 := by rfl

Xet Storage Details

Size:
30.3 kB
·
Xet hash:
54779903ba1e751122bce84d90e617d0272409667b38b0dbf59161fb44a5555b

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