Skip to content
Snippets Groups Projects
Commit 46368f6e authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Merge branch 'ralf/fmap_dist_inj' into 'master'

add option_fmap_dist_inj lemma

See merge request iris/iris!969
parents e121e8bf 8d59d7a5
No related branches found
No related tags found
No related merge requests found
...@@ -1330,6 +1330,10 @@ Proof. ...@@ -1330,6 +1330,10 @@ Proof.
apply optionO_map_ne, oFunctor_map_contractive. apply optionO_map_ne, oFunctor_map_contractive.
Qed. Qed.
Global Instance option_fmap_dist_inj {A B : ofe} (f : A B) n :
Inj ({n}) ({n}) f Inj ({n}@{option A}) ({n}@{option B}) (fmap f).
Proof. apply option_fmap_inj. Qed.
(** * Later type *) (** * Later type *)
(** Note that the projection [later_car] is not non-expansive (see also the (** Note that the projection [later_car] is not non-expansive (see also the
lemma [later_car_anti_contractive] below), so it cannot be used in the logic. lemma [later_car_anti_contractive] below), so it cannot be used in the logic.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment