Zulip Chat Archive

Stream: new members

Topic: Defering a proof?


Sorrachai Yingchareonthawornchai (Sep 24 2024 at 16:36):

Do I understand correctly that we must immediately prove the statement in ' have' tactic? Is it possible to state a claim and use it to prove other lemma and then later prove the claim?

Edward van de Meent (Sep 24 2024 at 16:39):

you can do have h : True := ?procrastinate

Edward van de Meent (Sep 24 2024 at 16:40):

which adds the proof of the have-statement to the list of goals, but you can prove that in whatever order you'd like

Edward van de Meent (Sep 24 2024 at 16:41):

if at some point you'd like to resume the proof, you can use case procrastinate => _

Edward van de Meent (Sep 24 2024 at 16:42):

do note that things you prove after the have don't get added to the context of the procrastinate goal

Mario Carneiro (Sep 24 2024 at 16:47):

you can use suffices instead of have, this inverts the order of the main goal and subgoal

Sorrachai Yingchareonthawornchai (Sep 24 2024 at 17:18):

thanks


Last updated: May 02 2025 at 03:31 UTC