简体   繁体   English

Coq infotheo %B is_true

[英]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.我已经用一个证明(Coq 版本 8.13.1,使用 infotheo)碰壁了,其中上下文假设是目标,只是附加了一个“%B”。 I understand it indicates 'is_true', but how to proceed the proof?我知道它表示“is_true”,但如何进行证明?

(unfold is_true does not get rid of "%B", rewrite H and apply H does not work). (unfold is_true 并没有摆脱“%B”,重写 H 并应用 H 不起作用)。

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. %B 表示这是在不同的 scope 中解析的。 The equality sign means something different in H and the goal.等号在 H 和目标中意味着不同的东西。 And it is == vs = btw.它是== 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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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