@@ -38,15 +38,9 @@ instance
3838
3939module _
4040 (tx : Tx) (let open Tx tx; open TxBody body)
41- ( indexedSumᵛ'-∪ : {A : Type} ⦃ _ : DecEq A ⦄ (m m' : A ⇀ Coin)
42- → disjoint (dom m) (dom m') → getCoin (m ∪ˡ m') ≡ getCoin m + getCoin m' )
43- ( sumConstZero : {A : Type} ⦃ _ : DecEq A ⦄ {X : ℙ A} → getCoin (constMap X 0) ≡ 0 )
44- ( res-decomp : {A : Type} ⦃ _ : DecEq A ⦄ (m m' : A ⇀ Coin)
45- → (m ∪ˡ m')ˢ ≡ᵉ (m ∪ˡ (m' ∣ dom (m ˢ) ᶜ))ˢ )
46- ( getCoin-cong : {A : Type} ⦃ _ : DecEq A ⦄ (s : A ⇀ Coin) (s' : ℙ (A × Coin)) → s ˢ ≡ᵉ s'
47- → indexedSum' proj₂ (s ˢ) ≡ indexedSum' proj₂ s' )
48- ( ≡ᵉ-getCoinˢ : {A A' : Type} ⦃ _ : DecEq A ⦄ ⦃ _ : DecEq A' ⦄ (s : ℙ (A × Coin)) {f : A → A'}
49- → InjectiveOn (dom s) f → getCoin (mapˢ (map₁ f) s) ≡ getCoin s )
41+ -- TODO: prove the following assumption, used in roof of `CERTBASE-pov`.
42+ ( ≡ᵉ-getCoinˢ : {A A' : Type} ⦃ _ : DecEq A ⦄ ⦃ _ : DecEq A' ⦄ (s : ℙ (A × Coin)) {f : A → A'}
43+ → InjectiveOn (dom s) f → getCoin (mapˢ (map₁ f) s) ≡ getCoin s )
5044 where
5145
5246 pattern UTXO-induction r = UTXO-inductive⋯ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ r _ _ _
@@ -84,8 +78,8 @@ then the coin values of `s`{.AgdaBound} and `s'`{.AgdaBound} are equal, that is,
8478 open LState s' renaming (utxoSt to utxoSt'; govSt to govSt'; certState to certState')
8579 open CertState certState'
8680 open ≡-Reasoning
87- open Certs-PoV indexedSumᵛ'-∪ sumConstZero res-decomp getCoin-cong ≡ᵉ-getCoinˢ
88- zeroMap = constMap (mapˢ RewardAddress.stake (dom txWithdrawals)) 0
81+ open Certs-PoV ≡ᵉ-getCoinˢ
82+ zeroMap = constMap (mapˢ RewardAddress.stake (dom txWithdrawals)) 0
8983 in
9084 begin
9185 getCoin utxoSt + getCoin certState
0 commit comments