2014-07-29 20:04:58 +00:00
|
|
|
inductive list (T : Type) : Type :=
|
2015-02-26 01:00: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
|
|
|
|
2015-01-25 04:23:21 +00:00
|
|
|
attribute concat [reducible]
|
2014-09-04 22:03:59 +00:00
|
|
|
end
|