File: bug_17408.v

package info (click to toggle)
coq 8.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 44,116 kB
  • sloc: ml: 234,160; sh: 4,301; python: 3,270; ansic: 2,644; makefile: 882; lisp: 172; javascript: 63; xml: 24; sed: 2
file content (14 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Record CRing : Type := { cr_crr : Type; }.

Axiom cpoly : CRing -> Type.
Definition cpoly_cring CR : CRing := Build_CRing (cpoly CR).

Axiom cpoly_induc : forall (CR : CRing) (P : cr_crr (cpoly_cring CR) -> Prop), forall (p : cr_crr (cpoly_cring CR)), P p.

Goal forall CR (a : cr_crr (cpoly_cring CR)), a = a.
Proof.
(* Dubious behaviour of the scheme recognition algorithm. It realizes that
   cpoly_induc looks like a scheme, but it considers CR to be a parameter,
   despite the type of the argument not being some constant applied to it. *)
induction a using cpoly_induc.
Qed.