test(tests/lean/run): define vector map using recursive equations
This commit is contained in:
parent
576c053c25
commit
f07475667b
1 changed files with 6 additions and 0 deletions
6
tests/lean/run/eq8.lean
Normal file
6
tests/lean/run/eq8.lean
Normal file
|
@ -0,0 +1,6 @@
|
|||
import data.vector
|
||||
open vector
|
||||
|
||||
definition map {A B C : Type} (f : A → B → C) : Π {n}, vector A n → vector B n → vector C n,
|
||||
map nil nil := nil,
|
||||
map (a :: va) (b :: vb) := f a b :: map va vb
|
Loading…
Reference in a new issue