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

Natural number as Preorder ? #1

Open
lengyijun opened this issue Jan 9, 2022 · 1 comment
Open

Natural number as Preorder ? #1

lengyijun opened this issue Jan 9, 2022 · 1 comment

Comments

@lengyijun
Copy link

naturalnumber : Preorder
Carrier naturalnumber = ℕ
_≤_ naturalnumber = {! _≤ᵇ_!}
reflexive naturalnumber = {!!}
transitive naturalnumber = {!!}
propositional naturalnumber = {!!}

Error: Agda.Builtin.Bool.Bool !=< Set

@fredrikNordvallForsberg
Copy link
Owner

Looks like you've tried to use _≤ᵇ_ as the order relation, but this is a function returning a Boolean -- we want the relation to return evidence that one number is smaller than another. You could use _<_ from Data.Nat.Base instead.

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

No branches or pull requests

2 participants