Debian Codegraph @

test-suite/bugs/HoTT_coq_023.v

raw
1 Set Universe Polymorphism.
2
3 Record Type_Over (X : Type)
4 := { Domain :> Type;
5 proj : Domain -> X }.
6
7 Definition Self_Over (X : Type)
8 := {| Domain := X; proj := (fun x => x) |}.
9
10 Canonical Structure Self_Over. (* fails with Anomaly: Mismatched instance and context when building universe substitution. Please report. for polymorphic structures *)
11 (* if monomorphic, Warning: No global reference exists for projection
12 valuefun x : _UNBOUND_REL_1 => x in instance Self_Over of proj, ignoring it. *)