I sometimes run into the problem, that a particular subgoal requires earlier proven subgoals. I always use next
in between subgoals, but this prevents re-using the fact. Is there a common solution? I could imagine: drop next
and use the fact (which I haven't seen in any other code, I think) or start the overall proof using proof -
state the facts using have
and re-use them later.
Robert Soeldner said:
I sometimes run into the problem, that a particular subgoal requires earlier proven subgoals. I always use
next
in between subgoals, but this prevents re-using the fact. Is there a common solution? I could imagine: dropnext
and use the fact (which I haven't seen in any other code, I think) or start the overall proof usingproof -
state the facts usinghave
and re-use them later.
I dropped the next
in one particular case. In general, I don’t recommend it, because it leads to less structured proofs.
Last updated: Dec 21 2024 at 16:20 UTC