aboutsummaryrefslogtreecommitdiff
path: root/Functor/Monoidal/Instance/Nat
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-11-09 20:28:11 -0600
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-11-09 20:28:11 -0600
commited5f0ae0f95a1675b272b205bb58724368031c01 (patch)
tree9b0cbe733a77d83050b665fe984a6e21c64a3815 /Functor/Monoidal/Instance/Nat
parent6a5154cf29d98ab644b5def52c55f213d1076e2b (diff)
Use functional vector in edge definition
Diffstat (limited to 'Functor/Monoidal/Instance/Nat')
-rw-r--r--Functor/Monoidal/Instance/Nat/Circ.agda20
1 files changed, 10 insertions, 10 deletions
diff --git a/Functor/Monoidal/Instance/Nat/Circ.agda b/Functor/Monoidal/Instance/Nat/Circ.agda
index 9d38127..0e2d3eb 100644
--- a/Functor/Monoidal/Instance/Nat/Circ.agda
+++ b/Functor/Monoidal/Instance/Nat/Circ.agda
@@ -46,29 +46,29 @@ Nat-Cocartesian-Category : CocartesianCategory 0ℓ 0ℓ 0ℓ
Nat-Cocartesian-Category = record { cocartesian = Nat-Cocartesian }
open import Functor.Monoidal.Construction.MultisetOf
- {𝒞 = Nat-Cocartesian-Category} (Edge Gates) FreeCMonoid using (BagOf,++,[])
+ {𝒞 = Nat-Cocartesian-Category} (Edge Gates) FreeCMonoid using (MultisetOf,++,[])
open Lax using (SymmetricMonoidalFunctor)
-module BagOf,++,[] = SymmetricMonoidalFunctor BagOf,++,[]
+module MultisetOf,++,[] = SymmetricMonoidalFunctor MultisetOf,++,[]
open SymmetricMonoidalFunctor
ε⇒ : SingletonSetoid ⟶ₛ Circuitₛ 0
-ε⇒ = mkCircuitₛ ∙ BagOf,++,[].ε
+ε⇒ = mkCircuitₛ ∙ MultisetOf,++,[].ε
open Cocartesian Nat-Cocartesian using (-+-)
open Func
η : {n m : ℕ} → Circuitₛ n ×ₛ Circuitₛ m ⟶ₛ Circuitₛ (n + m)
-η {n} {m} .to (mkCircuit X , mkCircuit Y) = mkCircuit (BagOf,++,[].⊗-homo.η (n , m) ⟨$⟩ (X , Y))
-η {n} {m} .cong (mk≈ x , mk≈ y) = mk≈ (cong (BagOf,++,[].⊗-homo.η (n , m)) (x , y))
+η {n} {m} .to (mkCircuit X , mkCircuit Y) = mkCircuit (MultisetOf,++,[].⊗-homo.η (n , m) ⟨$⟩ (X , Y))
+η {n} {m} .cong (mk≈ x , mk≈ y) = mk≈ (cong (MultisetOf,++,[].⊗-homo.η (n , m)) (x , y))
⊗-homomorphism : NaturalTransformation (-×- ∘F (Circ ⁂ Circ)) (Circ ∘F -+-)
⊗-homomorphism = ntHelper record
{ η = λ (n , m) → η {n} {m}
- ; commute = λ { (f , g) {mkCircuit X , mkCircuit Y} → mk≈ (BagOf,++,[].⊗-homo.commute (f , g) {X , Y}) }
+ ; commute = λ { (f , g) {mkCircuit X , mkCircuit Y} → mk≈ (MultisetOf,++,[].⊗-homo.commute (f , g) {X , Y}) }
}
Circ,⊗,ε : SymmetricMonoidalFunctor Nat,+,0 Setoids-×
@@ -78,10 +78,10 @@ Circ,⊗,ε .isBraidedMonoidal = record
{ ε = ε⇒
; ⊗-homo = ⊗-homomorphism
; associativity = λ { {n} {m} {o} {(mkCircuit x , mkCircuit y) , mkCircuit z} →
- mk≈ (BagOf,++,[].associativity {n} {m} {o} {(x , y) , z}) }
- ; unitaryˡ = λ { {n} {_ , mkCircuit x} → mk≈ (BagOf,++,[].unitaryˡ {n} {_ , x}) }
- ; unitaryʳ = λ { {n} {mkCircuit x , _} → mk≈ (BagOf,++,[].unitaryʳ {n} {x , _}) }
+ mk≈ (MultisetOf,++,[].associativity {n} {m} {o} {(x , y) , z}) }
+ ; unitaryˡ = λ { {n} {_ , mkCircuit x} → mk≈ (MultisetOf,++,[].unitaryˡ {n} {_ , x}) }
+ ; unitaryʳ = λ { {n} {mkCircuit x , _} → mk≈ (MultisetOf,++,[].unitaryʳ {n} {x , _}) }
}
; braiding-compat = λ { {n} {m} {mkCircuit x , mkCircuit y} →
- mk≈ (BagOf,++,[].braiding-compat {n} {m} {x , y}) }
+ mk≈ (MultisetOf,++,[].braiding-compat {n} {m} {x , y}) }
}