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