Formal Ledger Specification
Properties
Initializing search
    GitHub
    • Navigation
    GitHub
      • Home
      • Guide for Contributors
        • Notation
      • Ledger
        • Introduction
        • Prelude
          • Base
          • Instances
        • Conway
          • Abstract
          • Address
          • BaseTypes
          • Certs
            • Properties
              • PoV
              • PoVLemmas
              • VoteDelegsVDeleg
          • Chain
            • Properties
              • CredDepsEqualDomRwds
              • EpochStep
              • GovDepsMatch
              • PParamsWellFormed
          • Crypto
          • 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
            • Epoch
            • Numeric
              • UnitInterval
              • PositiveNat
          • Utxo
            • Properties
              • MinSpend
              • PoV
          • Utxow
            • Properties
            • ExternalFunctions
            • HSLedger
              • Address
              • BaseTypes
              • Cert
              • Certs
              • Chain
              • Core
              • Enact
              • Epoch
              • ExternalStructures
              • Gov
                • Core
                • Actions
              • Ledger
              • NewEpoch
              • PParams
              • Ratify
              • Transaction
              • Utxo
            • HSTypes
            • Util
            • Certs
              • Properties
            • Chain
              • Properties
            • Epoch
              • Properties
            • Equivalence
              • Bisimilarity
              • Certs
              • Convert
              • Deposits
              • Map
              • Utxo
            • Gov
            • Ledger
              • Properties
            • Properties
            • Script
            • Utxo
              • Properties
            • Utxow
              • Properties
            • Examples
              • HelloWorld
              • SucceedIfNumber
            • LedgerImplementation
            • Lib
            • Prelude
            • StructuredContracts
        • ConwaySafe
          • HasCoin
        • PreConway
            • NewPP
              • Properties
            • PPUp
              • Properties
          • NewPP
            • Properties
          • PPUp
            • Properties
        • Convertible
          • Deriving
          • DerivingTest
        • HaskellTypes
          • Deriving
        • EssentialAgda
        • Agda Prelude
            • ComputationalRelation
            • HasSubset
            • HasSubtract
              • Instance
            • Hashable
            • STS
          • MyDebugOptions

    Properties

    {-# OPTIONS --safe #-}
    
    open import Ledger.Prelude
    open import Ledger.Conway.Transaction
    open import Ledger.Conway.Abstract
    
    module Ledger.Conway.Conformance.Chain.Properties
      (txs : _) (open TransactionStructure txs)
      (abs : AbstractFunctions txs) (open AbstractFunctions abs)
      where
    
    open import Ledger.Conway.Conformance.Chain txs abs
    open import Ledger.Conway.Conformance.Epoch txs abs
    open import Ledger.Conway.Conformance.Epoch.Properties txs abs
    open import Ledger.Conway.Conformance.Ledger.Properties txs abs
    
    open Computational ⦃...⦄
    
    module _ {nes : NewEpochState} {e : Epoch} where
    
    instance
      Computational-CHAIN : Computational _⊢_⇀⦇_,CHAIN⦈_ String
      Computational-CHAIN .computeProof Γ s b = do
        _ , neStep ← map₁ ⊥-elim $ computeProof {STS = _⊢_⇀⦇_,NEWEPOCH⦈_} _ _ _
        _ , lsStep ← computeProof _ _ _
        success (_ , CHAIN neStep lsStep)
      Computational-CHAIN .completeness Γ s b s' (CHAIN neStep lsStep)
        with recomputeProof neStep | completeness _ _ _ _ neStep
      ... | _         | refl
        with recomputeProof lsStep | completeness _ _ _ _ lsStep
      ... | success _ | refl = refl
    
    Previous
    Chain
    Next
    Epoch
    Made with Material for MkDocs