Skip to content

Commit

Permalink
Adapt to coq/coq#18590
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 authored and silene committed Jan 31, 2024
1 parent 3be9be8 commit ca1a747
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions theories/Hierarchy.v
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ Global Hint Mode Filter + + : typeclass_instances.

Class ProperFilter' {T : Type} (F : (T -> Prop) -> Prop) := {
filter_not_empty : not (F (fun _ => False)) ;
filter_filter' :> Filter F
filter_filter' : Filter F
}.
(* When requiring Coq >= 8.17, replace the line below with
filter_filter' :: Filter F *)
#[global] Existing Instance filter_filter'.

Class ProperFilter {T : Type} (F : (T -> Prop) -> Prop) := {
filter_ex : forall P, F P -> exists x, P x ;
filter_filter :> Filter F
filter_filter : Filter F
}.
(* When requiring Coq >= 8.17, replace the line below with
filter_filter :: Filter F *)
#[global] Existing Instance filter_filter.

Global Instance Proper_StrongProper :
forall {T : Type} (F : (T -> Prop) -> Prop),
Expand Down

0 comments on commit ca1a747

Please sign in to comment.