Skip to content

Commit 5ab4734

Browse files
committed
Fix GovDepsMatch
1 parent ef439ac commit 5ab4734

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Ledger/Conway/Specification/Epoch.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ data _⊢_⇀⦇_,EPOCH⦈_ : ⊤ → EpochState → Epoch → EpochState → Ty
776776
in
777777
ls ⊢ ss ⇀⦇ tt ,SNAP⦈ ss'
778778
∙ _ ⊢ ⟦ utxoSt' , acnt , DStateOf ls , pState' ⟧ ⇀⦇ e ,POOLREAP⦈ ⟦ utxoSt'' , acnt' , dState' , pState'' ⟧
779-
∙ Γ ⊢ ⟦ es' , ∅ , false ⟧ ⇀⦇ govSt' ,RATIFIES⦈ fut'
779+
∙ Γ ⊢ ⟦ es , ∅ , false ⟧ ⇀⦇ govSt' ,RATIFIES⦈ fut'
780780
──────────────────────────────────────────────
781781
_ ⊢ ⟦ acnt , ss , ls , es₀ , fut ⟧ ⇀⦇ e ,EPOCH⦈ ⟦ acnt'' , ss' , ⟦ utxoSt'' , govSt' , ⟦ dState'' , pState'' , gState' ⟧ᶜˢ ⟧ , es' , fut' ⟧
782782
```

src/Ledger/Conway/Specification/Epoch/Properties/GovDepsMatch.lagda.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module Ledger.Conway.Specification.Epoch.Properties.GovDepsMatch
1313
1414
open import Ledger.Prelude using (mapˢ)
1515
open import Ledger.Conway.Specification.Certs govStructure
16+
open import Ledger.Conway.Specification.Enact govStructure
1617
open import Ledger.Conway.Specification.Epoch txs abs
1718
open import Ledger.Conway.Specification.Ledger txs abs
1819
open 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

Comments
 (0)