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
|
2014-10-09 14:13:06 +00:00
|
|
|
variable {T : Type}
|
2014-07-29 20:04:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2014-09-19 20:30:08 +00:00
|
|
|
reducible concat
|
2014-09-04 22:03:59 +00:00
|
|
|
end
|