I have an Isabelle proof structured as follows:
proof (cases "n = 0")
case True
(* lots of stuff here *)
show ?thesis sorry
next
case False
(* lots of stuff here too *)
show ?thesis sorry
qed
The first case is actually several pages long, so when reading the second case it's no longer clear to a casual reader, not even to myself, what the False
refers to. (Well, it actually is, but not from reading, only in an interactive environment: If, e.g., in Isabelle/jEdit, you place the cursor after case False
, you'll see n ≠ 0
under "this" in the Output panel.)
So is there a syntax that allows for making the assumption of the "False" case explicit, so that the reader neither has to interact with the IDE, nor to scroll up to the proof
keyword, but can see the assumption right in place?
In this case the proof becomes more readable by stating the assumption of each case explicitly:
proof cases
assume "n = 0"
show ?thesis sorry
next
assume "n ≠ 0"
show ?thesis sorry
qed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With