Commit graph

9 commits

Author SHA1 Message Date
Rasmus Buurman
bb5eae2734
Replace Nat literals with I64 literals (#613) 2025-12-09 15:56:25 +01:00
Brendan Zabarauskas
1a10bdc950
Use trailing commas when pretty printing (#508)
* Use trailing commas when pretty printing

* Use trailing commas in examples and prelude
2025-03-27 09:13:09 +00:00
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
David Binder
62f8c46483
Use rust comment syntax (#494)
* Not working yet

* Fix bugs

* Update npm dependencies and language configuration

* Fix some leftovers

---------

Co-authored-by: Tim Süberkrüb <dev@timsueberkrueb.io>
2025-03-12 10:49:21 +01:00
Tim Süberkrüb
66488af5fd
Fix unification for conversion checking (#481)
* Fix duplicate cache invalidation

* Fix unification for conversion checking

* Propagate and evaluate hole solutions in normalizer

* Handle unification of metavariables from other modules

* Give Eq implicit parameters where possible

* Apply suggested changes to docstrings

* Pass metavar as reference to Occurs::occurs_metavar

* this function -> this method

* Extract variables under layers of holes/annotations

* Fix typo

* Keep track of argument names in Hole::levels
2025-02-24 19:50:53 +01:00
David Binder
9ab5133a97
Factor out stuff from stlc case study into standard library (#422)
* Factor out stuff from stlc case study

* Factor out more properties of natural numbers
2024-12-30 19:12:40 +01:00
David Binder
a6a6e78df2
Improve std lib (#416)
* Improve std and use more implicits

* Add vector type

* Apply suggestions from review
2024-12-16 12:44:57 +01:00
David Binder
12c8ab7f11
Format all examples using code formatter (#347)
* Format all examples using code formatter

* Apply suggestions from code review

Co-authored-by: Tim Süberkrüb <dev@timsueberkrueb.io>

* Update examples/covect.pol

Co-authored-by: Tim Süberkrüb <dev@timsueberkrueb.io>

---------

Co-authored-by: Tim Süberkrüb <dev@timsueberkrueb.io>
2024-11-06 14:08:58 +01:00
Tim Süberkrüb
a02288f93e
Add initial stdlib (#336)
* Extract initial stdlib from examples

* Document stdlib conventions

* Make Eq type parameter implicit

* Make super-linter happy

* Fix std/data/eq.pol

* Test stdlib with test-runner

* Fix bug in lifting

* Revert to non-implicit Eq for now
2024-11-06 11:53:08 +01:00