Debian Codegraph @

test-suite/bugs/bug_4203.v

raw
1 Set Primitive Projections.
2
3 Record ops {T:Type} := { is_ok : T -> Prop; constant : T }.
4 Arguments ops : clear implicits.
5
6 Record ops_ok {T} (Ops:ops T) := { constant_ok : is_ok Ops (constant Ops) }.
7
8 Definition nat_ops : ops nat := {| is_ok := fun n => n = 1; constant := 1 |}.
9 Definition nat_ops_ok : ops_ok nat_ops.
10 Proof.
11 split. cbn. apply eq_refl.
12 Qed.
13
14 Definition t := Eval lazy in constant_ok nat_ops nat_ops_ok.
15 Definition t' := Eval vm_compute in constant_ok nat_ops nat_ops_ok.
16 Definition t'' := Eval native_compute in constant_ok nat_ops nat_ops_ok.
17
18 Check (eq_refl t : t = t').
19 Check (eq_refl t : t = t'').