Hi, if I have this lemma
lemma l1:
shows "func4 a b c = 4"
proof(cases "a = b")
case True
then show ?thesis
proof(cases "b = c")
case True
have "b = c" using True by simp
have "a = b" by ???
then show ?thesis sorry
next
[...]
In the subcase b = c
, how can I use the major case a = b
?
There are different options. You can quote the fact literally with ‹a = b›
or you can rename one of the cases like this case a_eq_b: True
.
Last updated: Dec 21 2024 at 16:20 UTC