mirror of
https://github.com/Smaug123/agdaproofs
synced 2025-10-20 10:38:39 +00:00
Lots of speedups (#116)
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
{-# OPTIONS --safe --warning=error --without-K #-}
|
||||
|
||||
|
||||
module Lists.Definition {a : _} where
|
||||
module Lists.Definition where
|
||||
|
||||
data List (A : Set a) : Set a where
|
||||
data List {a : _} (A : Set a) : Set a where
|
||||
[] : List A
|
||||
_::_ : (x : A) (xs : List A) → List A
|
||||
infixr 10 _::_
|
||||
{-# BUILTIN LIST List #-}
|
||||
|
||||
[_] : {A : Set a} → (a : A) → List A
|
||||
[_] : {a : _} {A : Set a} → (a : A) → List A
|
||||
[ a ] = a :: []
|
||||
|
||||
_++_ : {A : Set a} → List A → List A → List A
|
||||
_++_ : {a : _} {A : Set a} → List A → List A → List A
|
||||
[] ++ m = m
|
||||
(x :: l) ++ m = x :: (l ++ m)
|
||||
|
Reference in New Issue
Block a user