Debian Codegraph @

test-suite/success/PPFix.v

raw
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.