polarity/examples/index.json
Brendan Zabarauskas 73c9106193
Add example of set objects (#506)
* Add example of set objects

* Use boolean methods to clean up codefinitions

This also brings the example closer to the paper

* Implement interval sets

This is implemented in terms of a new `Nat.cmp` operation, along with
various predicates on the `Ordering` type (inspired by Rust’s
`Ordering` API).

* Improve documentation of the set example

* Update examples/index.json to include the set.pol

* Fix wording of comment
2025-03-26 15:20:43 +01:00

46 lines
942 B
JSON

[
{
"name": "Lawful Functor Class",
"path": "functor.pol"
},
{
"name": "Martin-Löf Equality Type",
"path": "eq.pol"
},
{
"name": "Set Interface",
"path": "set.pol"
},
{
"name": "STLC Type Soundness",
"path": "stlc.pol"
},
{
"name": "Strong Existentials Demystified",
"path": "strong_existentials.pol"
},
{
"name": "Tutorial",
"path": "tutorial.pol"
},
{
"name": "Π Is Not Built-In",
"path": "pi.pol"
},
{
"name": "λ-Encoding: Church",
"path": "encoding_church.pol"
},
{
"name": "λ-Encoding: Fu & Stump",
"path": "encoding_fu_stump.pol"
},
{
"name": "λ-Encoding: Parigot",
"path": "encoding_parigot.pol"
},
{
"name": "λ-Encoding: Scott",
"path": "encoding_scott.pol"
}
]