-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[petanque] Initial commit, as an OCaml library
- Loading branch information
Showing
18 changed files
with
429 additions
and
20 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
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
This file was deleted.
Oops, something went wrong.
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
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,28 @@ | ||
(* Compatiblity and general utils *) | ||
|
||
(* We should at some point remove all of this file in favor of a standard | ||
library that suits our needs *) | ||
module Ocaml_414 : sig | ||
module In_channel : sig | ||
val with_open_bin : string -> (in_channel -> 'a) -> 'a | ||
val with_open_text : string -> (in_channel -> 'a) -> 'a | ||
val input_all : in_channel -> string | ||
end | ||
|
||
module Out_channel : sig | ||
val with_open : ('a -> out_channel) -> 'a -> (out_channel -> 'b) -> 'b | ||
val with_open_bin : string -> (out_channel -> 'a) -> 'a | ||
end | ||
end | ||
|
||
val format_to_file : | ||
file:string -> f:(Format.formatter -> 'a -> unit) -> 'a -> unit | ||
|
||
module Result : sig | ||
include module type of Result | ||
|
||
module O : sig | ||
val ( let+ ) : ('a, 'l) t -> ('a -> 'b) -> ('b, 'l) t | ||
val ( let* ) : ('a, 'l) t -> ('a -> ('b, 'l) t) -> ('b, 'l) t | ||
end | ||
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,39 @@ | ||
_Petanque_ (pronounced "petanque") is a | ||
[gymnasium](https://gymnasium.farama.org/)-like environment for the | ||
Coq Proof Assistant. | ||
|
||
_Petanque_ is geared towards use cases where interacting at the | ||
document-level (like Flèche provides) in not enough, usually because | ||
we want to work on purely proof-search level vs the document level | ||
one. | ||
|
||
Petanque follows the methodology developed in SerAPI, thus we specify | ||
an OCaml API (`agent.mli`) which is then exposed via some form of RPC. | ||
|
||
## Authors | ||
|
||
- Guilaume Baudart (Inria) | ||
- Emilio J. Gallego Arias (Inria) | ||
- Laetitia Teodorescu (Inria) | ||
|
||
## Acknowledgments | ||
|
||
- Andrei Kozyrev | ||
- Alex Sánchez-Stern | ||
|
||
## Install instructions | ||
|
||
Please see the regular `coq-lsp` install instructions. In general you | ||
have three options: | ||
|
||
- use a released version from Opam | ||
- use a development version directly from the tree | ||
- install a development version using Opam | ||
|
||
See the contributing guide for instructions on how to perform the last | ||
two. | ||
|
||
## Using `petanque` | ||
|
||
To use `petanque`, you need to some form of shell, or you can just | ||
call the API directly from your OCaml program. |
Oops, something went wrong.