Is there a way to use rule in an isar proof
proof(rule myrule)
assume "P"
show "Q"
qed
such that one has not to specify P and Q explicitly?
E.g. when using the proof pattern for a proof by contradiction
proof(rule ccontr)
assume "foo"
show "False" ...
qed
I would like something like:
proof(rule ccontr)
assume ?bot_assm
show "False" ...
qed
where ?bot_assm = "foo" is automatically specified.
At best i would like to also switch out show "False" ... with something like show ?thesis ....
for rule ccontr , you can use\<not> ?thesis
Is goal_cases the tactic you want?
proof(rule ccontr, goal_cases)
case 1
show "?thesis" ...
qed
Yes that is exactly what i was searching for thank you very much!
Last updated: Oct 29 2025 at 16:29 UTC