简体   繁体   中英

How to use apply to “extract” a implication in Coq

I'll illustrate using an example.

H : R -> P -> Q

H0 : R

Subgoal:

(Q -> P) \ / (P -> Q)

so my question is how do I extract out (P->Q). I have R already, but when I do 'apply H in H0', it evaluates everything and gives me Q.

You can do any of:

specialize (H H0).

to replace H with H: P -> Q , or:

pose proof (H H0) as H1

to introduce H1: P -> Q

You can also go forward:

right. exact (H H0).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM