Debian Codegraph @

test-suite/bugs/bug_17408.v

raw
1 Record CRing : Type := { cr_crr : Type; }.
2
3 Axiom cpoly : CRing -> Type.
4 Definition cpoly_cring CR : CRing := Build_CRing (cpoly CR).
5
6 Axiom cpoly_induc : forall (CR : CRing) (P : cr_crr (cpoly_cring CR) -> Prop), forall (p : cr_crr (cpoly_cring CR)), P p.
7
8 Goal forall CR (a : cr_crr (cpoly_cring CR)), a = a.
9 Proof.
10 (* Dubious behaviour of the scheme recognition algorithm. It realizes that
11 cpoly_induc looks like a scheme, but it considers CR to be a parameter,
12 despite the type of the argument not being some constant applied to it. *)
13 induction a using cpoly_induc.
14 Qed.