File tree 4 files changed +6
-22
lines changed
4 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ open import Ledger.Interface.HasCoin public
29
29
open import MyDebugOptions public
30
30
open import Tactic.Premises public
31
31
32
- open import Ledger.Set public
33
- renaming (_⊆_ to _⊆ˢ_)
32
+ open import abstract-set-theory.FiniteSetTheory public
33
+ renaming (_⊆_ to _⊆ˢ_)
34
34
35
35
dec-de-morgan : ∀ {P Q : Type} → ⦃ P ⁇ ⦄ → ¬ (P × Q) → ¬ P ⊎ ¬ Q
36
36
dec-de-morgan ⦃ ⁇ no ¬p ⦄ ¬pq = inj₁ ¬p
@@ -50,3 +50,6 @@ instance
50
50
51
51
≡ᵉ-getCoin : ∀ {A} → ⦃ _ : DecEq A ⦄ → (s s' : A ⇀ Coin) → s ˢ ≡ᵉ s' ˢ → getCoin s ≡ getCoin s'
52
52
≡ᵉ-getCoin {A} ⦃ decEqA ⦄ s s' s≡s' = indexedSumᵛ'-cong {C = Coin} {x = s} {y = s'} s≡s'
53
+
54
+ setToMap : ∀ {A B : Type} → ⦃ DecEq A ⦄ → ℙ (A × B) → A ⇀ B
55
+ setToMap = fromListᵐ ∘ setToList
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ record TransactionStructure : Type₁ where
222
222
just (lookupᵐ m sh)
223
223
else
224
224
nothing
225
- where m = setToHashMap ( txscripts tx utxo)
225
+ where m = setToMap (mapˢ < hash , id > ( txscripts tx utxo) )
226
226
\end{code}
227
227
\end{AgdaMultiCode}
228
228
\caption{Functions related to transactions}
You can’t perform that action at this time.
0 commit comments