@@ -13,6 +13,7 @@ module Ledger.Conway.Specification.Epoch.Properties.GovDepsMatch
1313
1414open import Ledger.Prelude using (mapˢ)
1515open import Ledger.Conway.Specification.Certs govStructure
16+ open import Ledger.Conway.Specification.Enact govStructure
1617open import Ledger.Conway.Specification.Epoch txs abs
1718open import Ledger.Conway.Specification.Ledger txs abs
1819open import Ledger.Conway.Specification.Ledger.Properties.Base txs abs
@@ -46,7 +47,7 @@ module EPOCH-Body (eps : EpochState) where
4647
4748 ens = record (epsRState .ensRState) { withdrawals = ∅ }
4849 tmpGovSt = filter (λ x → ¿ proj₁ x ∉ map proj₁ (epsRState .removed) ¿) govSt
49- orphans = fromList $ getOrphans ens tmpGovSt
50+ orphans = fromList $ getOrphans (epsRState .ensRState) tmpGovSt
5051 removed' : ℙ (GovActionID × GovActionState)
5152 removed' = (epsRState .removed) ∪ orphans
5253 removedGovActions = flip concatMapˢ removed' λ (gaid , gaSt) →
@@ -95,7 +96,7 @@ For the formal statement of the lemma,
9596* Proof* .
9697
9798``` agda
98- EPOCH-govDepsMatch {eps'} {e} ratify-removed (EPOCH (x , _ , POOLREAP )) =
99+ EPOCH-govDepsMatch {eps'} {e} ratify-removed (EPOCH (x , POOLREAP , _ )) =
99100 poolReapMatch ∘ ratifiesSnapMatch
100101 where
101102
@@ -180,9 +181,8 @@ For the formal statement of the lemma,
180181 a ∈ˡ map' (GovActionDeposit ∘ proj₁) (filter P? govSt) ∼⟨ ∈-fromList ⟩
181182 a ∈ fromList (map' (GovActionDeposit ∘ proj₁) (filter P? govSt)) ∎
182183
183- u0 = EPOCH-updates0 (RatifyStateOf eps) (LStateOf eps)
184-
185- ls₁ = record (LStateOf eps') { utxoSt = EPOCH-Updates0.utxoSt' u0 }
184+ ls₁ = record (LStateOf eps')
185+ { utxoSt = Pre-POOLREAPUpdate.utxoSt' (LStateOf eps) (EnactStateOf eps) (GovernanceUpdate.updates ((LStateOf eps)) ((RatifyStateOf eps))) }
186186
187187 open LState
188188 open CertState
0 commit comments