☰
Debian Codegraph
@
9.2.0+dfsg-4
/
/
test-suite
/
success
/
PPFix.v
☽
☼
test-suite/success/PPFix.v
code
plain
raw
LGPL-2.1
1999-2021 The Coq Development Team,; Institut National de Recherche en Informatique et en Automatique (INRIA),; Centre National de la Recherche Scientifique (CNRS),; Microsoft corporation; and contributors
debian/copyright
1
2
(* To test PP of fixpoints *)
3
Require Import TestSuite.arith.
4
Check fix a(n: nat): n<5 -> nat :=
5
match n return n<5 -> nat with
6
| 0 => fun _ => 0
7
| S n => fun h => S (a n (proj2 (Nat.succ_lt_mono _ _) (Nat.lt_lt_succ_r _ _ h)))
8
end.