Skip to content

Commit

Permalink
Merge pull request #896 from JasonGross/coq-8.16+on-some-none-poly
Browse files Browse the repository at this point in the history
Make `on_some{,_or_none}` universe polymorphic
  • Loading branch information
tabareau authored Apr 5, 2023
2 parents 481ed02 + 3c755e1 commit 61a1b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/theories/MCOption.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Definition option_get {A} (default : A) (x : option A) : A
| None => default
end.

Definition on_some {A} (P : A -> Type) (o : option A) :=
Polymorphic Definition on_some {A} (P : A -> Type) (o : option A) :=
match o with
| Some t => P t
| None => False
Expand All @@ -27,7 +27,7 @@ Proof.
Qed.


Definition on_some_or_none {A} (P : A -> Type) : option A -> Type :=
Polymorphic Definition on_some_or_none {A} (P : A -> Type) : option A -> Type :=
fun x => match x with
| Some x => P x
| None => True
Expand Down

0 comments on commit 61a1b43

Please sign in to comment.