2014-10-12 01:40:48 +00:00
|
|
|
open nat
|
|
|
|
|
|
|
|
constant list.{l} : Type.{l} → Type.{l}
|
|
|
|
constant vector.{l} : Type.{l} → nat → Type.{l}
|
|
|
|
constant nil (A : Type) : list A
|
|
|
|
|
|
|
|
set_option pp.coercions true
|
|
|
|
context
|
|
|
|
parameter A : Type
|
|
|
|
parameter n : nat
|
|
|
|
|
|
|
|
definition foo2 [coercion] (v : vector A n) : list A :=
|
|
|
|
nil A
|
|
|
|
|
|
|
|
definition foo (v : vector A n) : list A :=
|
|
|
|
nil A
|
|
|
|
|
2015-01-25 04:23:21 +00:00
|
|
|
attribute foo [coercion]
|
2014-10-12 01:40:48 +00:00
|
|
|
end
|