简体   繁体   中英

Coq infotheo %B is_true

I have hit the wall with a proof (Coq version 8.13.1, using infotheo), where the context Hypothesis is as the goal, just with a "%B" attached. I understand it indicates 'is_true', but how to proceed the proof?

(unfold is_true does not get rid of "%B", rewrite H and apply H does not work).

A: finType
B: eqType
i: B
i0: A
X: A -> B
H: (X i0 == i)%B
===
(1/1)
X i0 = i

Any advice appreciated.

The %B means that this is parsed in a different scope. The equality sign means something different in H and the goal. And it is == vs = btw.

You can switch off notatations to see what both terms really mean.

Likely the == is weaker than =.

Thank you for the answers. The problem was solved by:

    move/eqP in H.
    apply H.
Qed.

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