Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applications of an odd/even semiring #150

Open
GuiltyDolphin opened this issue Jul 10, 2020 · 0 comments
Open

Applications of an odd/even semiring #150

GuiltyDolphin opened this issue Jul 10, 2020 · 0 comments
Labels

Comments

@GuiltyDolphin
Copy link
Member

GuiltyDolphin commented Jul 10, 2020

I recently added a semiring to Granule which has two grades (0 and 1), and has 1 + 1 = 0.

It turns out that this semiring can be used to track whether a hypothesis is discharged an even or odd number of times (see examples/ooz.gr).

Please share any thoughts you have on possible applications for this semiring! I'm imagining that this could have some interesting applications in binary trees (balanced or otherwise).

Examples welcome :)

I am fairly confident that this semiring can be generalised, to form a family of semirings P k for k in Nat>0. Then the operations in the semiring are mod k, thus (n + m)_{P k} = ((n + m) % k)_{Nat} (exploring this over on #149).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant