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

Redefine as many numeric operations in terms of primitive ones as possible #1427

Closed
MatthewDaggitt opened this issue Feb 17, 2021 · 2 comments
Assignees
Milestone

Comments

@MatthewDaggitt
Copy link
Contributor

Whilst discussing #581 it came up that several operations in Data.Nat.Base still evaluate using unary arithmetic. In version 2.0 it may be worth fixing these...

  • _⊔_
  • _⊓_
  • ∣_-_∣
@andreasabel
Copy link
Member

Do you need more builtins on the Agda side for this? (There are no NATMAX, NATMIN etc. builtins atm.)

@gallais
Copy link
Member

gallais commented May 3, 2022

I think the plan is to use _<ᵇ_

I suppose this is going to make some Data.Vect.Base definitions more annoying:

alignWith : (These A B  C)  Vec A m  Vec B n  Vec C (m ⊔ n)
restrictWith : (A  B  C)  Vec A m  Vec B n  Vec C (m ⊓ n)

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

No branches or pull requests

4 participants