coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] _CoqProject within Emacs, Craig McLaughlin, 10/26/2014
- [Coq-Club] type conversion, Jean-François Dufourd, 10/26/2014
- [Coq-Club] _CoqProject within Emacs, Pierre Courtieu, 10/26/2014
Archive powered by MHonArc 2.6.18.