Skip to Content.
Sympa Menu

ssreflect - [ssreflect] Behavior of "rewrite h => [ ]"

Subject: Ssreflect Users Discussion List

List archive

[ssreflect] Behavior of "rewrite h => [ ]"


Chronological Thread 
  • From: Boris Djalal <>
  • To:
  • Subject: [ssreflect] Behavior of "rewrite h => [ ]"
  • Date: Thu, 9 Mar 2017 09:44:52 +0100

Dear all,

P, Q, R : Prop
h : P = Q
============================
P /\ R -> R

If I do "rewrite h => []", I obtain the following goal: Q /\ R -> R
whereas I expect to obtain: Q -> R -> R.

Is this normal ? I am using Coq 8.6 + SSR/mathcomp dev.

Lemma test (P Q R: Prop) : P = Q -> (P /\ R -> R).
Proof.
move=> h.
Fail by rewrite h => []. (* Why ? *)
by rewrite h ; move => [].
Qed.

Cheers



Archive powered by MHonArc 2.6.18.

Top of Page