-
Notifications
You must be signed in to change notification settings - Fork 13
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
Rename PParams #216
Rename PParams #216
Conversation
Also adds a check to enactment that all CC members have their term below the max term.
83d01b9
to
5279021
Compare
I've added a tiny commit that also closes #219 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor (whitespace/alignment) change requested. Otherwise, just wondering why we use Decidable²⇒Dec
instead of just applying Decidable
. Maybe you could comment on that...?
@@ -72,6 +73,9 @@ record EpochStructure : Set₁ where | |||
addEpoch : HasAdd Epoch | |||
addEpoch = record { _+_ = _+ᵉ'_ } | |||
|
|||
Dec-≤ᵉ : ∀ {n m} → Dec (n ≤ᵉ m) | |||
Dec-≤ᵉ = Decidable²⇒Dec _≤ᵉ?_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this should have been part of my type classes PR, but okay...
Also, what's the point of Decidable²⇒Dec
? Why don't we use Decidable
directly?
Dec-≤ᵉ : ∀ {n m} → Dec (n ≤ᵉ m)
Dec-≤ᵉ {n}{m} = n ≤ᵉ? m
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but your PR is not even out of WIP yet, and I needed this now so that it can be included in the 0.9 release.
I guess Dec-≤ᵉ
could have been implemented directly, but this highlights a general pattern that we could use in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll "unblock" it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't realize you were waiting for me to approve the change.
724a15f
to
d93d6fb
Compare
@williamdemeo I've included your suggestion, could you unblock this PR? |
Description
Renames the PParams to be in line with the CIP & adds a check that new CC members have their term below the maximum.
Checklist