saved predicates: use ofe_fun, not ofe_mor
The only two known users of this saved predicates (iris-atomic and @amintimany) only need discrete premises for their saved predicates; this makes the API easier to use for them.
Merge request reports
Activity
changed milestone to %Iris 3.1
Here's how iris-atomic would use the new API: FP/iris-atomic!6 (merged)
Notice that the following
-c>
are actually functors:Notation savedPredG Σ A := (savedAnythingG Σ (A -c> ▶ ∙)). Notation savedPredΣ A := (savedAnythingΣ (A -c> ▶ ∙)).
Unfortunately, replacing
-c>
by->
insaved_pred_own
does not work, defining theInstance
breaks. I could change it for the lemmas, but is that worth it?added 1 commit
-
3b0c15c3 - Use normal function arrow → for
saved_pred_own
.
-
3b0c15c3 - Use normal function arrow → for
The idea is to change
saved_pred_own
too, of course. That's also similar to WP, which uses the normal arrow in its definition.I just did that, and noticed a small complication: the
Contractive
instance needs a type annotation. I have pushed it.Anyway, considering the type annotation for
Contractive
, I am not strongly in favor of one or the other, so feel free to push with or without my commit.mentioned in commit 672d60be