Skip to content

Conversation

@williamdemeo
Copy link
Member

@williamdemeo williamdemeo commented Oct 30, 2025

Description

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Any semantic changes to the specifications are documented in CHANGELOG.md
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

@williamdemeo williamdemeo linked an issue Oct 30, 2025 that may be closed by this pull request
@williamdemeo williamdemeo marked this pull request as ready for review October 30, 2025 07:31
@williamdemeo
Copy link
Member Author

@carlostome I replaced activeDReps definitions with primed versions in the modules used in the equivalence proofs in ExpiredDReps, but I suspect it won't be too hard to get rid of those primed versions, and the proofs might even be simpler without multiple activeDReps definitions.

@williamdemeo
Copy link
Member Author

williamdemeo commented Oct 30, 2025

Rename activeDReps to sound like a function that "gets" active DReps (since it takes arguments) and it should return DReps (not just a set of credentials). Also, move the definition to Governance.

Comment on lines +466 to +467
DRepsOf_∣_≤Expiry : {A : Type} ⦃ _ : HasDReps A ⦄ → A → Epoch → DReps
DRepsOf a ∣ e ≤Expiry = filterᵐ (λ (_ , expEpoch) → e ≤ expEpoch) (DRepsOf a)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find confusing that the naming of this function uses a composite of names from other functions. By this I mean:

  1. DRepsOf
  2. |

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about activeDRepsOf?

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

Successfully merging this pull request may close these issues.

generalize activeDReps and remove duplicate definitions

4 participants