-
Notifications
You must be signed in to change notification settings - Fork 159
Add boolean builtins in Nat
#1262
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
Changes from 2 commits
7e99fdb
7990fd3
9d81f5b
afb0bfe
7a0d824
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -498,6 +498,18 @@ isContrSinglP A a .fst = _ , transport-filler (λ i → A i) a | |
| isContrSinglP A a .snd (x , p) i = | ||
| _ , λ j → fill A (λ j → λ {(i = i0) → transport-filler (λ i → A i) a j; (i = i1) → p j}) (inS a) j | ||
|
|
||
| -- Helpers for carrying equalities into with-abstractions | ||
| -- see `discreteℕ` in Data.Nat.Properties for an example of usage | ||
|
|
||
| infixl 0 _UsingEq | ||
| infixl 0 _i0:>_UsingEqP | ||
|
|
||
| _UsingEq : (a : A) → singl a | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a comment showing how this can be used
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment I just added enough?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looke like this has exactly the same use case as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, I completely missed it. Do you know exactly how should I use it?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind, I got it. Is this what you meant? |
||
| a UsingEq = isContrSingl a .fst | ||
|
|
||
| _i0:>_UsingEqP : (A : I → Type ℓ) (a : A i0) → singlP A a | ||
| A i0:> a UsingEqP = isContrSinglP A a .fst | ||
|
|
||
| -- Higher cube types | ||
|
|
||
| SquareP : | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.