Definition transpose {X : UU} {n m : nat} (mat : Matrix X m n) : Matrix X n m := flip mat.
Require Import UniMath.Combinatorics.Vectors. Require Import UniMath.MoreFoundations.PartA. Require Import UniMath.MoreFoundations.Tactics.