[isabelle-dev] show "A ==> B"
huffman.brian.c at gmail.com
Fri Jul 11 16:51:29 CEST 2014
On Fri, Jul 11, 2014 at 5:54 AM, Askar Safin <safinaskar at mail.ru> wrote:
> Hi. I think I found a bug in the Isabelle 2013-2 (OS: Debian GNU/Linux 7, Interface: jEdit). For example, I type the following in the jEdit Isabelle interface:
> notepad begin
> have "A ==> B" and "C" proof -
> show "A ==> B" sorry
> Then, Isabelle will accept this "show" and the "Output" section of jEdit will show me:
> goal (2 subgoals):
> 1. A ⟹ A
> 2. C
> So, we see strange "A ==> A" goal. Then I can continue:
This exact issue has been discussed previously (multiple times!) on
the isabelle-users list.
I still agree with what I said back then: This behavior of "show" with
meta-implication is surprising and confusing to ordinary users, and we
really should change it.
> show "C" sorry
> And Isabelle will accept my proof. So, proof checking is OK, but the "Output" shows confusing output.
When you write "qed", the default behavior is to try to solve any
remaining goals by assumption, which is why your proof script still
works. (In case you didn't know, you can also use e.g. "qed auto" to
try to solve remaining goals with "auto". This is useful for proofs
with lots of uninteresting trivial cases.)
You are fortunate that your proof script still works; as discussed in
the linked posts from 2009, proving an if-and-only-if proposition in
this style will fail due to quirks of this "show" behavior.
More information about the isabelle-dev