Theorem: transpose_involutive
Proof state before:
α n : ℕ
m : MLIR.AST.MLIRTy
t : Matrix α n m
⊢ transpose (transpose t) = t
Tactic:
simp [transpose]
Proof state after:
α n : ℕ
m : MLIR.AST.MLIRTy
t : Matrix α n m
⊢ {
      toTensor :=
        { shape := [α, n],
          data :=
            List.remap
              (List.remap t.toTensor.data (transpose_remap α n)
                (_ : ∀ (i : ℕ), i < List.length t.toTensor.data → transpose_remap α n i < List.length t.toTensor.data))
              (transpose_remap n α)
              (_ :
                ∀ (n_1 : ℕ),
                  n_1 <
                      List.length
                        (List.remap t.toTensor.data (transpose_remap α n)
                          (_ :
                            ∀ (i : ℕ),
                              i < List.length t.toTensor.data → transpose_remap α n i < List.length t.toTensor.data)) →
                    transpose_remap n α n_1 <
                      List.length
                        (List.remap t.toTensor.data (transpose_remap α n)
                          (_ :
                            ∀ (i : ℕ),
                              i < List.length t.toTensor.data → transpose_remap α n i < List.length t.toTensor.data))),
          h_data_size :=
            (_ :
              List.length
                  (List.remap
                    (List.remap t.toTensor.data (transpose_remap α n)
                      (_ :
                        ∀ (i : ℕ),
                          i < List.length t.toTensor.data → transpose_remap α n i < List.length t.toTensor.data))
                    (transpose_remap n α)
                    (_ :
                      ∀ (n_1 : ℕ),
                        n_1 <
                            List.length
                              (List.remap t.toTensor.data (transpose_remap α n)
                                (_ :
                                  ∀ (i : ℕ),
                                    i < List.length t.toTensor.data →
                                      transpose_remap α n i < List.length t.toTensor.data)) →
                          transpose_remap n α n_1 <
                            List.length
                              (List.remap t.toTensor.data (transpose_remap α n)
                                (_ :
                                  ∀ (i : ℕ),
                                    i < List.length t.toTensor.data →
                                      transpose_remap α n i < List.length t.toTensor.data)))) =
                shapeProd [α, n]) },
      h_refines :=
        (_ :
          shapeRefines
              { shape := [α, n],
                  data :=
                    List.remap
                      (List.remap t.toTensor.data (transpose_remap α n)
                        (_ :
                          ∀ (i : ℕ),
                            i < List.length t.toTensor.data → transpose_remap α n i < List.length t.toTensor.data))
                      (transpose_remap n α)
                      (_ :
                        ∀ (n_1 : ℕ),
                          n_1 <
                              List.length
                                (List.remap t.toTensor.data (transpose_remap α n)
                                  (_ :
                                    ∀ (i : ℕ),
                                      i < List.length t.toTensor.data →
                                        transpose_remap α n i < List.length t.toTensor.data)) →
                            transpose_remap n α n_1 <
                              List.length
                                (List.remap t.toTensor.data (transpose_remap α n)
                                  (_ :
                                    ∀ (i : ℕ),
                                      i < List.length t.toTensor.data →
                                        transpose_remap α n i < List.length t.toTensor.data))),
                  h_data_size :=
                    (_ :
                      List.length
                          (List.remap
                            (List.remap t.toTensor.data (transpose_remap α n)
                              (_ :
                                ∀ (i : ℕ),
                                  i < List.length t.toTensor.data →
                                    transpose_remap α n i < List.length t.toTensor.data))
                            (transpose_remap n α)
                            (_ :
                              ∀ (n_1 : ℕ),
                                n_1 <
                                    List.length
                                      (List.remap t.toTensor.data (transpose_remap α n)
                                        (_ :
                                          ∀ (i : ℕ),
                                            i < List.length t.toTensor.data →
                                              transpose_remap α n i < List.length t.toTensor.data)) →
                                  transpose_remap n α n_1 <
                                    List.length
                                      (List.remap t.toTensor.data (transpose_remap α n)
                                        (_ :
                                          ∀ (i : ℕ),
                                            i < List.length t.toTensor.data →
                                              transpose_remap α n i < List.length t.toTensor.data)))) =
                        shapeProd [α, n]) }.shape
              [MLIR.AST.Dimension.Known α, MLIR.AST.Dimension.Known n] =
            true) } =
    t