Skip to content

Conversation

facundominguez
Copy link
Collaborator

@facundominguez facundominguez commented Sep 22, 2025

By running the rule from the specification, we can avoid duplicating in the conformance model the logic of the specification model.

@facundominguez
Copy link
Collaborator Author

facundominguez commented Sep 22, 2025

Enabling this shows a new error when reenabling the test Delegate, retire and re-register pool of #640.

The error is explained in IntersectMBO/cardano-ledger#5306.

EpochStateToConf : EpochSpec.EpochState ⭆ EpochState
EpochStateToConf .convⁱ deposits epochSt =
let open EpochSpec.EpochState epochSt in
⟦ acnt , ss , certDeposits ls ⊢conv ls , es , fut ⟧ᵉ'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Look here. I started imitating LStateToConf to define this. However, LStateToConf does not call to certDeposits. Is that a bug? AFAIU, the LState should have the deposits needed for the conversion to the conformance state.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is just a matter of preference. You can either get the deposits from LState, or you pass in a pair and then call certDeposits somewhere earlier. Maybe it was just more convenient like that because of module dependencies or something.

@WhatisRT
Copy link
Collaborator

Is the idea to extract better error messages to be able to narrow down conformance failures?

If that's the case, it might be worth trying to invest a bit of time into thinking about more general solutions. Maybe there's a way to nicely augment the Computational instances temporarily to get out the information that you need.

@facundominguez
Copy link
Collaborator Author

facundominguez commented Sep 25, 2025

👋 The motivation for this PR is to avoid duplicating in the conformance model the logic of the specification model. I just added this to the description of the PR.

@WhatisRT
Copy link
Collaborator

Ah, I see. In this case just ignore my comment.

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.

2 participants