diff options
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/success/evars.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/success/evars.v b/test-suite/success/evars.v index 6d52ec4c6..13814d9d8 100644 --- a/test-suite/success/evars.v +++ b/test-suite/success/evars.v @@ -10,3 +10,10 @@ Variable list:Set -> Set. Variable cons:(T:Set) T -> (list T) -> (list T). Goal (n:(list nat)) (EX l| (EX x| (n = (cons ? x l)))). +(* Examples provided by Eduardo Gimenez *) + +Definition c [A,P] := [p:nat*A]let (i,v) = p in (P i v). + +Require PolyList. +Definition list_forall_bool [A:Set][p:A->bool][l:(list A)] : bool := + (fold_right ([a][r]if (p a) then r else false) true l).
\ No newline at end of file |