Debian Codegraph @

test-suite/bugs/bug_20580.v

raw
1 Require Import PrimInt63.
2
3 Open Scope uint63_scope.
4
5 Primitive array := #array_type.
6
7 Primitive make : forall A, int -> A -> array A := #array_make.
8 Arguments make {_} _ _.
9
10 Primitive get : forall A, array A -> int -> A := #array_get.
11 Arguments get {_} _ _.
12
13 Primitive set : forall A, array A -> int -> A -> array A := #array_set.
14 Arguments set {_} _ _ _.
15
16 Module Inconsistent.
17
18 Inductive CMP (x:array (unit -> nat)) := C.
19
20 Definition F (x:nat) := fun _:unit => x.
21
22 Polymorphic Definition TARGET@{u} := let m := [| F 0; F 0 | F 0 |] in
23 let m := set m 0 (fun _ => get (set m 1 (F 1)) 0 tt) in
24 CMP m.
25
26 Polymorphic Cumulative Inductive foo@{u} : Type@{u} := CC (_ : TARGET@{u} = TARGET@{u}).
27 End Inconsistent.