Vectors as indexed inductive types #
There are two common ways to define vectors in Lean, as indexed inductive types or as structures. In Lean, Vectors are defined as structures. Here, we define vectors as indexed inductive types.
There are two common ways to define vectors in Lean, as indexed inductive types or as structures. In Lean, Vectors are defined as structures. Here, we define vectors as indexed inductive types.