Debian Codegraph @

test-suite/bugs/bug_3886.v

raw
1 Require Import Program.Basics Program.Tactics.
2
3 Inductive Even : nat -> Prop :=
4 | evenO : Even O
5 | evenS : forall n, Odd n -> Even (S n)
6 with Odd : nat -> Prop :=
7 | oddS : forall n, Even n -> Odd (S n).
8
9 Program Fixpoint doubleE {n} (e : Even n) : Even (2 * n)
10 := _
11 with doubleO {n} (o : Odd n) : Odd (S (2 * n))
12 := _.
13 Obligations.
14 Axiom cheat : forall {A}, A.
15 Obligation 1 of doubleE.
16 apply cheat.
17 Qed.
18
19 Obligation 1 of doubleO.
20 apply cheat.
21 Qed.
22
23 Check doubleE.