summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/3886.v
blob: 2ac4abe54f5902e7f5e797c19d12678799a8d984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Require Import Program.

Inductive Even : nat -> Prop :=
| evenO : Even O
| evenS : forall n, Odd n -> Even (S n)
with Odd : nat -> Prop :=
| oddS : forall n, Even n -> Odd (S n).

Program Fixpoint doubleE {n} (e : Even n) : Even (2 * n)
  := _
with doubleO {n} (o : Odd n) : Odd (S (2 * n))
     := _.
Obligations.
Axiom cheat : forall {A}, A.
Obligation 1 of doubleE.
apply cheat.
Qed.

Obligation 1 of doubleO.
apply cheat.
Qed.

Check doubleE.