Skip to Content.
Sympa Menu

coq-club - [Coq-Club] type conversion

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] type conversion


Chronological Thread 
  • From: Jean-François Dufourd <jfd AT unistra.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] type conversion
  • Date: Sun, 26 Oct 2014 16:29:18 +0100

Hi all,

Why this type error in the following sentences?

-------------------------------------
Theorem subst: forall(T U:Type), T = U -> T -> U.
Proof.
intros. rewrite <-H. apply X.
Defined.

Require Import Arith.

Lemma test_subst: forall H : nat = nat,
subst nat nat H 5 = 5.

(*
Error: In environment
H : nat = nat
The term "H" has type "nat = nat" while it is expected to have type
"nat = nat".
*)
---------------------------------------

Thanks,
Jean-François



Archive powered by MHonArc 2.6.18.

Top of Page