Skip to content

Commit

Permalink
Add {Plicity,Inductivity}.equal
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyO256 committed May 31, 2022
1 parent 4ea820f commit d2b8432
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/inductivity.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ let max ind1 ind2 =
let is_not_inductive = ( = ) not_inductive

let is_inductive = ( = ) inductive

let equal = ( = )
4 changes: 4 additions & 0 deletions src/core/inductivity.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ val is_not_inductive : t -> bool

(** [is_inductive ind] is [true] if and only if [ind] is [Inductive]. *)
val is_inductive : t -> bool

(** [equal p1 p2] is [true] if and only if [p1] and [p2] are both [Explicit]
or [Implicit]. *)
val equal : t -> t -> bool
2 changes: 2 additions & 0 deletions src/core/plicity.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ let max p1 p2 =
let is_explicit = ( = ) explicit

let is_implicit = ( = ) implicit

let equal = ( = )
4 changes: 4 additions & 0 deletions src/core/plicity.mli
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ val is_explicit : t -> bool

(** [is_implicit p] is [true] if and only if [p] is [Implicit]. *)
val is_implicit : t -> bool

(** [equal p1 p2] is [true] if and only if [p1] and [p2] are both [Explicit]
or [Implicit]. *)
val equal : t -> t -> bool

0 comments on commit d2b8432

Please sign in to comment.