If I have a lemma that states "forall x. P x \/ Qx", and "Q x" has the form "\exists y. P y" how do I later use this to define a function that states "fun funName x = if ( P x) then 1 else (1 + funName y)" where the "y" comes from the existential quantifier in the lemma?
use the choice operator to choose y
with SOME y. R y
(R
here is the name of the predicate under the exists)
Last updated: Dec 21 2024 at 16:20 UTC