logo
Formal Ledger Specification
ChangePPGroup
Initializing search
    GitHub
    • Navigation
    GitHub
      • Home
      • Guide for Contributors
        • Notation
      • Ledger
        • Prelude
        • Introduction
          • Base
            • HSTypes
            • Util
          • HasCoin
          • Instances
          • Numeric
            • PositiveNat
            • UnitInterval
            • Address
            • Crypto
            • Epoch
        • Conway
          • Specification
            • Abstract
            • Certs
              • Properties
                • PoV
                • PoVLemmas
                • VoteDelegsVDeleg
            • Chain
              • Properties
                • CredDepsEqualDomRwds
                • EpochStep
                • GovDepsMatch
                • PParamsWellFormed
            • Enact
              • Properties
            • Epoch
              • Properties
                • ConstRwds
                • GovDepsMatch
                • NoPropSameDReps
            • Fees
            • Gov
              • Base
              • Actions
              • Properties
                • ChangePPGroup
            • Ledger.Ledger
              • Properties
                • GovDepsMatch
                • PoV
            • PParams
            • Properties
            • Ratify
              • Properties
            • Rewards
            • Script
              • Base
              • Timelock
              • Validation
              • Base
              • Coin
              • ValueSet
              • ValueVector
            • Transaction
            • Utxo
              • Properties
                • MinSpend
                • PoV
            • Utxow
              • Properties
              • Examples
                • HelloWorld
                • SucceedIfNumber
              • LedgerImplementation
              • Lib
              • Prelude
              • StructuredContracts
              • GovStructure
            • ConwayBootstrap
            • ConwayBootstrapEnact
            • ExternalFunctions
            • HSLedger
              • Address
              • BaseTypes
              • Cert
              • Certs
              • Chain
              • Core
              • Enact
              • Epoch
              • ExternalStructures
              • Gov
                • Core
                • Actions
              • Ledger
              • NewEpoch
              • PParams
              • Ratify
              • Transaction
              • Utxo
          • Conformance
            • Certs
              • Properties
            • Chain
              • Properties
            • Epoch
              • Properties
            • Equivalence
              • Bisimilarity
              • Certs
              • Convert
              • Deposits
              • Map
              • Utxo
            • Gov
            • Ledger
              • Properties
            • Properties
            • Script
            • Utxo
              • Properties
            • Utxow
              • Properties
        • PreConway
            • NewPP
              • Properties
            • PPUp
              • Properties
          • NewPP
            • Properties
          • PPUp
            • Properties
        • Convertible
          • Deriving
          • DerivingTest
        • HaskellTypes
          • Deriving
        • Agda Prelude
            • ComputationalRelation
            • HasSubset
            • HasSubtract
              • Instance
            • Hashable
            • STS
          • MyDebugOptions

    ChangePPGroup

    {-# OPTIONS --safe #-}
    
    open import Ledger.Conway.Specification.Abstract
    open import Ledger.Conway.Specification.Transaction
    
    module Ledger.Conway.Specification.Gov.Properties.ChangePPGroup
      (txs : _) (open TransactionStructure txs)
      where
    
    open import Ledger.Prelude
    
    instance
      _ : IsSet TxBody GovProposal
      _ = record { toSet = fromList ∘ TxBody.txprop }
    

    Claim (PParam updates have non-empty groups).

    Informally.

    Let p : GovProposal be a governance proposal and suppose the GovActionType of p .action is ChangePParams. If the data field of p—that is pu = p .action .gaData—is denoted by pu (for "parameter update"), then the set updateGroups pu is nonempty.

    Formally.

    ChangePPHasGroup : {tx : Tx} {p : GovProposal} (pu : PParamsUpdate)
      → p ∈ Tx.body tx → p .GovProposal.action ≡ $\begin{pmatrix} \,\href{Ledger.Conway.Specification.Gov.Actions.html#1616}{\htmlId{1049}{\htmlClass{InductiveConstructor}{\text{ChangePParams}}}}\, \\ \,\href{Ledger.Conway.Specification.Gov.Properties.ChangePPGroup.html#982}{\htmlId{1065}{\htmlClass{Bound}{\text{pu}}}}\, \end{pmatrix}$
      → Type
    ChangePPHasGroup pu _ _ = updateGroups pu ≢ ∅
    

    Proof. (coming soon)

    Previous
    Properties
    Next
    Ledger.Ledger
    Made with Material for MkDocs