mirror of
https://github.com/polarity-lang/polarity.git
synced 2025-12-23 09:19:50 +00:00
* 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
46 lines
942 B
JSON
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"
|
|
}
|
|
]
|