2014-07-29 20:04:58 +00:00
|
|
|
inductive list (T : Type) : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil {} : list T,
|
|
|
|
cons : T → list T → list T
|
2014-07-29 20:04:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
section
|
|
|
|
variable {T : Type}
|
|
|
|
|
|
|
|
definition concat (s t : list T) : list T
|
2014-09-04 23:36:06 +00:00
|
|
|
:= list.rec t (fun x l u, list.cons x u) s
|
2014-07-29 20:04:58 +00:00
|
|
|
|
|
|
|
opaque_hint (hiding concat)
|
|
|
|
|
2014-09-04 22:03:59 +00:00
|
|
|
end
|