Cert
module Ledger.Conway.Foreign.Cert where open import Foreign.Convertible open import Foreign.Convertible.Deriving open import Foreign.HaskellTypes open import Foreign.HaskellTypes.Deriving open import Ledger.Prelude open import Ledger.Prelude.Foreign.HSTypes open import Ledger.Conway.Foreign.HSStructures hiding (CertEnv; DCert) renaming (⟦_,_,_⟧ᶜˢ to ⟦_,_,_⟧ᶜˢ'; CertState to CertState') open import Ledger.Conway.Foreign.Certs open import Ledger.Conway.Conformance.Certs.Properties govStructure using ( Computational-CERT ; Computational-CERTS ) open import Ledger.Conway.Conformance.Certs govStructure open Computational instance HsTy-CertState = autoHsType CertState ⊣ withConstructor "MkCertState" Conv-CertState = autoConvert CertState Conv-CertState-CertState' : Convertible CertState CertState' Conv-CertState-CertState' .to $\begin{pmatrix} \,\href{Ledger.Conway.Foreign.Cert.html#959}{\htmlId{959}{\htmlClass{Bound}{\text{dState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#968}{\htmlId{968}{\htmlClass{Bound}{\text{pState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#977}{\htmlId{977}{\htmlClass{Bound}{\text{gState}}}}\, \end{pmatrix}$ = $\begin{pmatrix} \,\href{Foreign.Convertible.html#233}{\htmlId{995}{\htmlClass{Field}{\text{to}}}}\, \,\href{Ledger.Conway.Foreign.Cert.html#959}{\htmlId{998}{\htmlClass{Bound}{\text{dState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#968}{\htmlId{1007}{\htmlClass{Bound}{\text{pState}}}}\, \\ \,\href{Foreign.Convertible.html#233}{\htmlId{1016}{\htmlClass{Field}{\text{to}}}}\, \,\href{Ledger.Conway.Foreign.Cert.html#977}{\htmlId{1019}{\htmlClass{Bound}{\text{gState}}}}\, \end{pmatrix}$ Conv-CertState-CertState' .from $\begin{pmatrix} \,\href{Ledger.Conway.Foreign.Cert.html#1067}{\htmlId{1067}{\htmlClass{Bound}{\text{dState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#1076}{\htmlId{1076}{\htmlClass{Bound}{\text{pState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#1085}{\htmlId{1085}{\htmlClass{Bound}{\text{gState}}}}\, \end{pmatrix}$ = $\begin{pmatrix} \,\href{Foreign.Convertible.html#254}{\htmlId{1101}{\htmlClass{Field}{\text{from}}}}\, \,\href{Ledger.Conway.Foreign.Cert.html#1067}{\htmlId{1106}{\htmlClass{Bound}{\text{dState}}}}\, \\ \,\href{Ledger.Conway.Foreign.Cert.html#1076}{\htmlId{1115}{\htmlClass{Bound}{\text{pState}}}}\, \\ \,\href{Foreign.Convertible.html#254}{\htmlId{1124}{\htmlClass{Field}{\text{from}}}}\, \,\href{Ledger.Conway.Foreign.Cert.html#1085}{\htmlId{1129}{\htmlClass{Bound}{\text{gState}}}}\, \end{pmatrix}$ certs-step : HsType (CertEnv → CertState → List DCert → ComputationResult String CertState) certs-step = to (compute Computational-CERTS) {-# COMPILE GHC certs-step as certsStep #-} cert-step : HsType (CertEnv → CertState → DCert → ComputationResult String CertState) cert-step = to (compute Computational-CERT) {-# COMPILE GHC cert-step as certStep #-}