diff --git a/theories/proofmode/monpred.v b/theories/proofmode/monpred.v index 843c939905a957d563cedddb15920094a223eab0..47789deb920a72a9dda83f1ee5a7aac12c7dbb6d 100644 --- a/theories/proofmode/monpred.v +++ b/theories/proofmode/monpred.v @@ -440,6 +440,13 @@ Global Instance elim_modal_at_bupd_hyp `{BiBUpd PROP} φ p p' P ð“Ÿ ð“Ÿ' ð“ ElimModal φ p p' (|==> ð“Ÿ) ð“Ÿ' ð“ ð“ ' → ElimModal φ p p' ((|==> P) i) ð“Ÿ' ð“ ð“ '. Proof. by rewrite /MakeMonPredAt /ElimModal monPred_at_bupd=><-. Qed. +Global Instance elim_modal_at φ p p' ð“Ÿ ð“Ÿ' P P' V: + ElimModal φ p p' ⎡ð“ŸâŽ¤ ⎡ð“Ÿ'⎤ P P' → ElimModal φ p p' ð“Ÿ ð“Ÿ' (P V) (P' V). +Proof. + rewrite /ElimModal -!embed_intuitionistically_if. + iIntros (HH Hφ) "[? HP]". iApply HH; [done|]. iFrame. iIntros (? <-) "?". + by iApply "HP". +Qed. Global Instance add_modal_at_bupd_goal `{BiBUpd PROP} φ ð“Ÿ ð“Ÿ' Q i : AddModal ð“Ÿ ð“Ÿ' (|==> Q i)%I → AddModal ð“Ÿ ð“Ÿ' ((|==> Q) i).