Hi, is it somehow possible to use note foo = bar
within an apply script or somehow give names to theorems that use local facts without going into an Isar proof?
like this?
lemma ‹P ⟹ F ⟶ F›
subgoal premises p
supply H = p
using p
thm H
subgoal has some side-effects however
oh, I did not know that supply could be used this way. That's exactly what I wanted
schematic_goal ‹?p›
subgoal premises p
(*?p is now p and cannot be instantiated anymore*)
yeah, in my case I don't even need the subgoal, the local facts are already Isar-style assumptions
Last updated: Dec 21 2024 at 16:20 UTC