aboutsummaryrefslogtreecommitdiff
path: root/Data
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-12-13 20:40:01 -0600
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-12-13 20:40:01 -0600
commitdb3f4ec746f270cab4142dda8ea3f3c1a25d2dd6 (patch)
tree076c974414aa27cb171b4ae6e136db48eff2fe16 /Data
parent8e40a6e427aea3cdfeda038c38942e9d66c502e3 (diff)
Add hypergraph destructor setoid homomorphismmain
Diffstat (limited to 'Data')
-rw-r--r--Data/Circuit.agda2
-rw-r--r--Data/Hypergraph.agda6
2 files changed, 6 insertions, 2 deletions
diff --git a/Data/Circuit.agda b/Data/Circuit.agda
index 77d6b72..473e4fc 100644
--- a/Data/Circuit.agda
+++ b/Data/Circuit.agda
@@ -19,7 +19,7 @@ open Func
open Hypergraph using (Multiset∘Edgeₛ)
open Hypergraph
- using (_≈_ ; mk≈ ; module Edge)
+ using (_≈_ ; mk≈ ; module Edge; edgesₛ)
renaming
( Hypergraph to Circuit
; Hypergraphₛ to Circuitₛ
diff --git a/Data/Hypergraph.agda b/Data/Hypergraph.agda
index 7d22129..532e082 100644
--- a/Data/Hypergraph.agda
+++ b/Data/Hypergraph.agda
@@ -79,4 +79,8 @@ Multiset∘Edgeₛ = ↭-setoid ∘ Edgeₛ
mkHypergraphₛ : {n : ℕ} → Multiset∘Edgeₛ n ⟶ₛ Hypergraphₛ n
mkHypergraphₛ .to = mkHypergraph
-mkHypergraphₛ {n} .cong = mk≈
+mkHypergraphₛ .cong = mk≈
+
+edgesₛ : {n : ℕ} → Hypergraphₛ n ⟶ₛ Multiset∘Edgeₛ n
+edgesₛ .to = Hypergraph.edges
+edgesₛ .cong = _≈_.↭-edges