Skip to Content.
Sympa Menu

coq-club - [Coq-Club] How to rewrite using lemma?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] How to rewrite using lemma?


Chronological Thread 
  • From: Holden Lee <hl422 AT cam.ac.uk>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] How to rewrite using lemma?
  • Date: Wed, 27 Aug 2014 08:57:43 +0100

Beginner's question: I have a lemma that intersection with the empty set is empty:

Lemma int_empty :
forall (Y: Ensemble U), 
    (Intersection U (Empty_set U) Y) = Empty_set U.

During a later proof I have as a goal

cardinal U Y n ->
cardinal U (Intersection U (Empty_set U) Y) p ->
cardinal U (Union U (Empty_set U) Y) (0 + n - p)

I would like to replace Intersection U (Empty_set U) Y with Empty_set U. How do I do this? rewrite int_empty gives: Error: The reference int_empty was not found in the current environment.

-Holden



Archive powered by MHonArc 2.6.18.

Top of Page