-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Computational record in Introduction Remove unnecessary abstracts Decidable comparison of rationals Computational instance for RATIFY and fix minor bug in rule Computational instance for NEWEPOCH Computational for NEWPP and fix NEWPP-Reject rule Computational instance for CHAIN and fix rule import NewPP.Properties in Everything.agda Go back to the old Computational in the Introduction Remove minimumAVS check from Ratify.accepted Remove spurious blank line Abstract definitions for cleaner Ratify.Properties (#247) Co-authored-by: Orestis Melkonian <[email protected]>
- Loading branch information
1 parent
ddd4bef
commit 2d801bc
Showing
12 changed files
with
259 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{-# OPTIONS --safe #-} | ||
|
||
open import Relation.Nullary.Decidable | ||
|
||
open import Ledger.Prelude | ||
open import Ledger.Transaction | ||
|
||
module Ledger.NewPP.Properties (txs : _) (open TransactionStructure txs) where | ||
|
||
open import Ledger.PPUp txs | ||
open import Ledger.NewPP txs | ||
|
||
instance | ||
Computational-NEWPP : Computational _⊢_⇀⦇_,NEWPP⦈_ | ||
Computational-NEWPP = record {M} where module M Γ s (open NewPParamState s) where | ||
computeProof = λ where | ||
nothing → just (_ , NEWPP-Reject) | ||
(just upd) → let newpp = applyUpdate pparams upd in | ||
case ¿ viablePParams newpp ¿ of λ where | ||
(yes p) → just (_ , NEWPP-Accept p) | ||
(no _) → nothing | ||
|
||
completeness : _ | ||
completeness sig s' h with sig | h | ||
... | nothing | NEWPP-Reject = refl | ||
... | just upd | NEWPP-Accept p | ||
rewrite let newpp = applyUpdate pparams upd in | ||
dec-yes (¿ viablePParams newpp ¿) p .proj₂ | ||
= refl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.