Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prove the same subgoals

I have two equal subgoals like this:

prove_me (x::xs) = true


prove_me (x::xs) = true

Proofs will be equals. How I can solve the second goal using the first one?

like image 456
he11boy Avatar asked Jan 20 '26 08:01

he11boy


1 Answers

You cannot literally reuse the proof of one goal on another goal, but you can prove an auxiliary lemma:

assert (H : prove_me (x::xs) = true).
{ (* proof of result *) }

Then, you can use H to discharge the two subgoals once they show up.

like image 188
Arthur Azevedo De Amorim Avatar answered Jan 23 '26 15:01

Arthur Azevedo De Amorim