Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ToposInstitute/polytt
A type theory with native support for Polynomial Functors.
https://github.com/ToposInstitute/polytt
Last synced: 3 months ago
JSON representation
A type theory with native support for Polynomial Functors.
- Host: GitHub
- URL: https://github.com/ToposInstitute/polytt
- Owner: ToposInstitute
- Created: 2023-02-27T21:17:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-08T14:38:21.000Z (about 1 year ago)
- Last Synced: 2024-05-31T10:38:11.937Z (6 months ago)
- Language: OCaml
- Homepage:
- Size: 2.15 MB
- Stars: 37
- Watchers: 8
- Forks: 3
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PolyTT 🦜
A type theory with native support for [Polynomial Functors](https://topos.site/poly-book.pdf).
For examples, see `std-lib/Tutorial.poly`.
# Building
Install `opam` using our preferred package manager. On Mac you can install it with `homebrew` via:
```bash
$ brew install opam
```Once you have `opam` you can install all the dev dependencies and then build `polytt`:
```bash
$ opam init
$ opam switch create . ocaml-base-compiler.5.0.0
$ opam install --deps-only --locked .
$ dune build
```Alternatively, `flake.nix` file is provided to setup an entire development environment with `nix`:
```
$ nix develop
```# Running
```bash
$ dune exec polytt std-lib/Tutorial.poly
```# References
- [A reference for categorical structures on Poly](https://arxiv.org/abs/2202.00534 )
- [Polynomial Functors: A General Theory of Interaction](https://topos.site/poly-book.pdf)