Debian Codegraph @

test-suite/bugs/HoTT_coq_041.v

raw
1 Set Printing All.
2 Definition foo (s d : Prop)
3 : ((s : Set) -> (d : Set)) = ((s : Prop) -> (d : Prop))
4 := eq_refl. (* succeeds *)
5 Definition bar (s d : Prop)
6 : ((fun x : Set => x) s -> (fun x : Set => x) d) = ((fun x : Prop => x) s -> (fun x : Prop => x) d)
7 := eq_refl. (* Toplevel input, characters 131-138:
8 Error:
9 In environment
10 s : Prop
11 d : Prop
12 The term
13 "@eq_refl Set (forall _ : (fun x : Set => x) s, (fun x : Set => x) d)"
14 has type "@eq Set (forall _ : s, d) (forall _ : s, d)"
15 while it is expected to have type
16 "@eq Set (forall _ : s, d) (forall _ : s, d)"
17 (cannot unify "forall _ : (fun x : Set => x) s, (fun x : Set => x) d" and
18 "forall _ : (fun x : Prop => x) s, (fun x : Prop => x) d"). *)