mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +03:00
df635cf8d7
These continue the search from :ps and :gd next respectively, giving the next search result until there are no more results. Correspondingly, added ':proof-search-next' and ':generate-def-next' in IDE mode, which continue the search from the previous ':proof-search' and ':generate-def' respectively.
18 lines
440 B
Idris
18 lines
440 B
Idris
data Vect : Nat -> Type -> Type where
|
|
Nil : Vect Z a
|
|
(::) : a -> Vect k a -> Vect (S k) a
|
|
|
|
%name Vect xs, ys, zs
|
|
|
|
my_cong : forall f . (x : a) -> (y : a) -> x = y -> f x = f y
|
|
|
|
append : Vect n a -> Vect m a -> Vect (n + m) a
|
|
|
|
lappend : (1 _ : List a) -> (1 _ : List a) -> List a
|
|
|
|
lappend1 : List a -> List a -> List a
|
|
|
|
lappend2 : List a -> List a -> List a
|
|
lappend2 [] ys = ?lappend2_rhs_1
|
|
lappend2 (x :: xs) ys = ?lappend2_rhs_2
|