-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a02151
commit 946288c
Showing
8 changed files
with
138 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ type tm = gtm Proof.t | |
|
||
let tp_of_tm = tp_of_gtm | ||
|
||
module Rule = Rule | ||
module Refiner = Refiner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
open Syntax | ||
open Effect | ||
|
||
type tp_rule = ltp L.m | ||
type chk_rule = gtp -> ltm L.m | ||
type syn_rule = gtm L.m | ||
|
||
type tele_rule = (string list * ltele) L.m | ||
|
||
module TpRule = | ||
struct | ||
type t = tp_rule | ||
let rule x = x | ||
let run x = x | ||
end | ||
|
||
module ChkRule = | ||
struct | ||
type t = chk_rule | ||
let rule x = x | ||
let run x = x | ||
end | ||
|
||
module SynRule = | ||
struct | ||
type t = syn_rule | ||
let rule x = x | ||
let run x = x | ||
end | ||
|
||
module TeleRule = | ||
struct | ||
type t = tele_rule | ||
let rule x = x | ||
let run x = x | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
open Syntax | ||
open Effect | ||
|
||
type tp_rule | ||
type chk_rule | ||
type syn_rule | ||
type tele_rule | ||
|
||
module TpRule : sig | ||
type t = tp_rule | ||
val rule : ltp L.m -> t | ||
val run : t -> ltp L.m | ||
end | ||
|
||
module ChkRule : sig | ||
type t = chk_rule | ||
val rule : (gtp -> ltm L.m) -> t | ||
val run : t -> (gtp -> ltm L.m) | ||
end | ||
|
||
module SynRule : sig | ||
type t = syn_rule | ||
val rule : gtm L.m -> t | ||
val run : t -> gtm L.m | ||
end | ||
|
||
(** Invariant: does not return unless the list of labels has no shadowing *) | ||
module TeleRule : sig | ||
type t = tele_rule | ||
val rule : (string list * ltele) L.m -> t | ||
val run : t -> (string list * ltele) L.m | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.