Documentation

LeanPool.Lentil.ProofMode.Tactics.ModalityMisc

theorem TLA.ProofMode.Entails_toggle_goal_under_always {σ : Type u} {hyps : List (NamedPred σ)} {goal : pred σ} :
Entails (mapHypPreds always hyps) goal = Entails (mapHypPreds always hyps) [tlafml|goal]

tla_toggle_goal_under_always toggles one leading on the current proof-mode goal when every temporal hypothesis has a leading .

For example, with hp : □ p, it changes a proof-mode goal □ q to q:

tla_check_goal Entails [⟨"hp", [tlafml| □ p]⟩] [tlafml| □ q]
tla_toggle_goal_under_always
tla_check_goal Entails [⟨"hp", [tlafml| □ p]⟩] q

If the current goal has no leading , the same tactic changes q to □ q:

tla_check_goal Entails [⟨"hp", [tlafml| □ p]⟩] q
tla_toggle_goal_under_always
tla_check_goal Entails [⟨"hp", [tlafml| □ p]⟩] [tlafml| □ q]
Equations
Instances For