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