ϕ1, . . . , ϕn⊢ψ[x/x′] [Γ, x:σ]
=-Adj ϕ1, . . . , ϕn, x=σx′⊢ψ[Γ, x:σ, x′ :σ]
Φ⊢ψ[Γ, x:σ]
∀-Adj Φ,⊢ ∀x,σ(ψ) [Γ]
Φ, ψ⊢θ[Γ, x:σ]
∃-Adj Φ,∃x:σ(ψ)⊢θ[Γ]
Figure 3.2: Adjoint rules for∀,∃and=.
the lists of variables inΓσandΓ′σrespectively. ThenSJψ[x/x′][Γ, x:σ]K=ψS[¯x/¯x′][ΓS,Γσ]/∼and
SJϕ1[Γ, x:σ]K⊗. . .⊗SJϕn[Γ, x:σ]K≤SJψ[x/x′][Γ, x:σ]K
⇐⇒ GJϕS1[ΓS,Γσ]K⊗. . .⊗GJϕSn[ΓS,Γσ]K≤GJψS[¯x/¯x′][ΓS,Γσ]K
⇐⇒ T ⊢LϕS1, . . . , ϕSn ⊢ψS[¯x/¯x′] [ΓS,Γσ]
⇐⇒ T ⊢LϕS1, . . . , ϕSn, x1=σ1 x′1, . . . , xn=σnx′n ⊢ψS [ΓS,Γσ,Γ′σ] (=-Adj and 3.4)
⇐⇒ T ⊢LϕS1, . . . , ϕSn,
n
O
i=1
xi=σi x′i⊢ψS [ΓS,Γσ,Γ′σ] (⊗-Ref ore-Ref)
⇐⇒ SJϕ1[Γ, x:σ, x′:σ]K⊗. . .⊗SJϕn[Γ, x:σ, x′:σ]K⊗SJx=σx′[Γ, x:σ, x′:σ]K
≤SJψ[Γ, x:σ, x′:σ]K.
Therefore,Ssatisfies all interpretations of=-Adj.
3. For allc∈Ob(C),
Fc×cp (Eqc) =Q(aF,c,c)(EqFoc),
whereaF,b,c:Fo(b×c)→Fob×Focis the change-in-product isomorphism. GivenK: (D, Q)→(E, R), we defineK◦Fby(K◦F)o:=Ko◦Foand(K◦F)p:=KFpo·Fp. For parallel morphismsF, H: (C, P)→ (D, Q), we define a2-cellη:F ⇒Hto be a natural transformationη:Fo⇒Hosuch thatFp=Qη·Hp.
C Pos P
D QF
oQH
oP
Ho Fo
η Fp Hp
Q Hp Fp
Qη
Compositions of2-cells is just as it is inCat. Ifηis a natural isomorphism, we callηa2-isomorphism. For a logicL, we now letFALbe the corresponding full sub-2-category ofFA.
Theorem 5. Let(C, P),(D, Q)∈Ob(FA)andF: (C, P)→(D, Q)be a morphism. Then for each theory T, eachT-modelSin(C, P)gives rise to aT-modelF(S)in(D, Q).
Proof. First we define the structureF(S). For each sort symbolσ,F(S)JσK:=Fo(SJσK), for each function symbolf: σ1, . . . , σn → τ,F(S)JfK :=Fo(SJfK)◦a−1Γ , and for each relation symbolR ⊆σ1, . . . , σn, F(S)JRK:=Q(a−1Γ )◦FSp
JΓK
(SJRK), whereaΓ:Fo(SJΓK)→F(S)JΓKis the change-of-product morphism andΓ =x1:σ1, . . . , xn:σn. A product preserving functor preserves the satisfaction of equations-in-context since by induction on the complexity of an arbitrary term-in-contextM :τ[Γ],
F(S)JM :τ[Γ]K=Fo(SJM :τ[Γ]K)◦a−1Γ .
If, for each formula-in-contextϕ[Γ],
F(S)Jϕ[Γ]K=Q(a−1Γ )(FSp
JΓK
(SJϕ[Γ]K)), (3.5)
then ifSsatisfies a sequent-in-contextϕ1, . . . , ϕn⊢ψ[Γ], sinceFSp
JΓK
andQ(a−1)are monotoneL-algebra
homomorphisms,
n
O
i=1
SJϕi[Γ]K≤SJψ[Γ]K
=⇒
n
O
i=1
Q(a−1Γ )◦FSp
JΓK
(SJϕi[Γ]K)≤Q(a−1Γ )◦FSp
JΓK
(SJψ[Γ]K)
=⇒
n
O
i=1
F(S)Jϕi[Γ]K≤F(S)Jψ[Γ]K,
where ifn = 0, thenNn i=1 =eS
JΓK. And soF(S)satisfiesϕ1, . . . , ϕn ⊢ψ[Γ]. It follows thatF(S)is a T-model and so we only need to prove that Equation 3.5 holds.
Consider a formula-in-contextϕ[Γ]. Supposeϕ[Γ]is atomic. Case 1:ϕ[Γ]is of the formR(M1, . . . , Mn)[Γ], whereR⊆τ1, . . . , τn, and eachMi:τi[Γ]is well-formed. Ifγis the listγ= [M1[Γ], . . . , Mn[Γ]], we define
SJγK:=⟨SJM1[Γ]K, . . . , SJMn[Γ]K⟩.
Note that
F(S)JγK=aΓ′◦Fo(SJγK)◦a−1Γ Then,
F(S)JR(M1, . . . , Mn)[Γ]K
=Q(F(S)JγK)(F(S)JRK)
=Q(F(S)JγK)◦Q(a−1Γ′)(FSp
JΓ′K
(SJRK))
=Q(a−1Γ )◦Q(Fo(SJγK))◦FSp
JΓ′K
(SJRK)
=Q(a−1Γ )◦FSp
JΓK
◦P(SJγK)(SJRK)
=Q(a−1Γ )◦FSp
JΓK
(SJR(M1, . . . , Mn)[Γ]K).
Otherwise,ϕ[Γ]is of the formM1 =τ M2[Γ]. LetΓ′ = [x1 : τ, x2 : τ]andγ: Γ → Γ′ be the context
morphism represented by[M1[Γ], M2[Γ]]. Then,
F(S)JM1=τ M2[Γ]K
=Q(F(S)JγK)(EqF(S)
JτK)
=Q(a−1Γ )◦Q(Fo(SJγK))◦Q(aΓ′)◦EqF(S)
JτK
=Q(a−1Γ )◦Q(Fo(SJγK))◦FSp
JτK×SJτK
(EqS
JτK)
=Q(a−1Γ )◦FSp
JΓK
◦P(SJγK)(EqS
JτK)
=Q(a−1Γ )◦FSp
JΓK
(SJM1=τM2[Γ]K).
Now supposeϕ[Γ]is of the form3(ϕ1, . . . , ϕn)[Γ], where3is somen-ary operation inLωand for each i∈ {1, . . . , n},F(S)Jϕi[Γ]K=Q(a−1Γ )◦FSp
JΓK
(SJϕi[Γ]K). Then,
F(S)J3(ϕ1, . . . , ϕn)[Γ]K
=3Q(F(S)JΓK)(F(S)Jϕ1[Γ]K, . . . , F(S)Jϕn[Γ]K)
=3Q(F(S)JΓK)(Q(a−1Γ )◦FSp
JΓK
(SJϕ1[Γ]K), . . . , Q(a−1Γ )◦FSp
JΓK
(SJϕn[Γ]K))
=Q(a−1Γ )◦FSp
JΓK
(3P(SJΓK)(SJϕ1[Γ]K, . . . , SJϕn[Γ]K))
=Q(a−1Γ )◦FSp
JΓK
(SJ3(ϕ1, . . . , ϕn)[Γ]K).
Supposeϕ[Γ]is of the formΩx:σ(ψ) [Γ]forΩ∈Lq. LetI=SJΓKandX =SJσK. Forc=c1× · · · ×cn, we letac:Fo(c)→Foc1× · · · ×Focn, andac1,c2: Fo(c1×c2)→Foc1×Foc2be the change in product isomorphisms. Then
F(S)JΩx:σ(ψ)[Γ]K
= ΩF(S)
JΓK,F(S)JσK◦Q(aF(S)Γ,x:σ)(F(S)Jψ[Γ, x:σ]K)
=Q(a−1I )◦ΩFo(I),X◦Q(aI ×idF(X))◦Q(aF(S)Γ,x:σ)(F(S)Jψ[Γ, x:σ]K)
=Q(a−1I )◦ΩFo(I),X◦Q(aI ×idF(X))◦Q(aF(S)Γ,x:σ)◦Q(a−1S
JΓ,x:σK
)◦FSp
JΓ,x:σK
(SJψ[Γ, x:σ]K)
=Q(a−1I )◦ΩFo(I),X◦Q(a−1I,X)◦Q(Fo(aSΓ,x:σ))◦FSp
JΓ,x:σK
(SJψ[Γ, x:σ]K)
=Q(a−1I )◦ΩFo(I),X◦Q(a−1I,X)◦FI×Xp ◦P(aSΓ,x:σ)(SJψ[Γ, x:σ]K)
=Q(a−1I )◦FIp◦ΩI,X◦P(aSΓ,x:σ)(SJψ[Γ, x:σ]K)
=Q(a−1S
JΓK
)◦FSp
JΓK
(SJΩx:σ(ψ)[Γ]K.
The next result says we can identifyT-modelsS∈(C, P)with morphismsS: (CT, PT)→(C, P)which we use to develop an “algebraic” view of entailment.
Theorem 6. LetLbe adequate andT anL-theory. For each(C, P) ∈Ob(FA)andT-modelSin(C, P) there is a morphismS: (CT, PT)→(C, P)inFA, unique up to a2-isomorphism such thatS(G) =S, where Gis the genericT-model in(CT, PT).
Proof. We defineSoon objects bySo(Γ) :=SJΓK, and on morphisms by
So([M1[Γ]/∼, . . . , Mn[Γ]/∼]) :=⟨SJM1[Γ]K, . . . , SJMn[Γ]K⟩.
SinceSis aT-model,Sois well defined on morphisms and it is straightforward to show thatSo: CT → C is a product preserving functor such thatS(G) =S, whereGis the genericT-algebra inCT. We extendSo by definingSpΓ(ϕ[Γ]/∼) := SJϕ[Γ]K, andSpΓ is well-defined and monotone becauseSis a T-model. By definition,S(G)agrees withSon relation symbols. It is also straightforward to verify thatSp: PT →P◦So is a natural transformation, and that for each contextΓ,SPΓ is anL-homomorphism.
We now verify Condition 2. Form >0, letΓ =x1 :σ1, . . . , xn :σn,Γ′ =xn+1 :σn+1, . . . , xn+m : σn+m, and for eachi∈ {1, . . . , n+m}, letπi: SJΓ,Γ′K→SJσiKbe theith projection map. LetSJΓK=I, SJΓ′K=I′and fori∈ {1, . . . , n+m}, letSJσiK=Xi. Leta:SJΓ,Γ′K→SJΓK×SJΓ′Kbe the change- of-product isomorphism. Then for eachΩ∈Lq, ifm >0,
SpΓ◦ΩΓ,Γ′(ϕ[Γ,Γ′]/∼)
=SpΓ(Ωxn+1:σn+1· · ·Ωxn+m:σn+m(ϕ)[Γ]/∼)
= ΩI,Xn+1◦. . .◦ΩI×Xn+1...×Xn+m−1,Xn+m(SJϕ[Γ,Γ′]K)
= ΩS
JΓK,SJΓ′K◦a−1∗(SJϕ[Γ,Γ′]K) (by 5)
= ΩSo(Γ),So(Γ′)◦a−1∗◦SpΓ×Γ′(ϕ[Γ,Γ′]/∼).
Otherwise,Γ′ = [ ]and
SpΓ◦ΩΓ,[ ](ϕ[Γ]/∼) =SpΓ(ϕ[Γ]/∼) =SJϕ[Γ]K
= ΩS
JΓK,SJ K◦P(π1SJΓK,SJ K)(SJϕ[Γ]K) (by 5)
= ΩSoΓ,So[ ]◦P(a−1
S,Γ,[ ])◦SΓ×[ ]p (ϕ[Γ]/∼).
LetΓ =x1:σ1, . . . , xn:σn,Γ′=xn+1:σ1, . . . , x2n :σn. Ifn >0,
SpΓ×Γ′(EqΓ)
=
n
O
i=1
SJxi=σi xn+i[Γ,Γ′]K
=
n
O
i=1
P(⟨πSiJΓ,Γ′K, πi+nSJΓ,Γ′K⟩)EqS
JσiK
=
n
O
i=1
P(⟨πSiJΓKπSJΓK,SJΓ
′
K 1 , πSJΓ
′
K
i πSJΓK,SJΓ
′
K
2 ⟩ ◦a)EqS
JσiK
=P(a)◦
n
O
i=1
P(⟨πiSJΓKπSJΓK,SJΓ
′
K 1 , πSJΓ
′
K
i πSJΓK,SJΓ
′
K
2 ⟩)EqSJσiK
=P(a)◦EqSo(Γ). (by 6)
And ifn= 0,
Sp[ ](Eq[ ]) =Sp[ ](e[ ]/∼) =SJe[ ]K=e1 ( by 6)
=P(aS,[ ],[ ])(e1×1) =P(aS,[ ],[ ])(EqSo[ ]).
Now all that remains to show is that ifF: (CT, PT) → (C, P)is another morphism such thatF(G) = S(G) =Sthen they are 2-isomorphic.
LetaF,Γ:Fo(Γ)→F(G)o(Γ) =So(Γ)be the change-of-product isomorphism. ThenaF:Fo⇒Sois a natural isomorphism, andP aF·Sp=P aF·F(G)p=Fp, from Equation 3.5. ThusaFis a2-isomorphism fromFtoS.
Definition 3.3.1. LetF: (C, P)→(D, Q)be a morphism inFA. We define thekernel ofF, denotedkerF to consist of the following data:
1. A relation onOb(C), such thatc1∼c2iffFoc1=Foc2. 2. A relation onMor(C)such thatf1∼f2iffFof1=Fof2. 3. A relation on⊔c∈Ob(C)P(c)such thatr1≺r2iffFcp
1(r1)≤Fcp
2(r2), whereri∈P(ci).
IfK: (C, P)→(E, R)is another morphism, we saykerK≤kerF, if and only if the relations ofkerKare contained in the corresponding relations ofkerF.
LetSbe anSg-structure in(C, P)∈Ob(FA)and leta∈ASg. Ifa=ϕ1, . . . , ϕn⊢ϕ[Γ], define
SJaK:= (
n
O
i=1
SJϕi[Γ]K, SJϕ[Γ]K),
and ifais and equationM1=M2:τ[Γ], define
SJaK:= (SJM1:τ[Γ]K, SJM2:τ[Γ]K).
For eachSg-theoryT, we defineSJTK:={SJaK:a∈A(T)}and forF: (CT, PT)→(C, P)whereTis an Lm-theory, letTh(F)be theSg(T)-theory such that
A(Th(F)) :={a∈ASg:GJaK∈kerF}.
It is straightforward to verify thatTh(F) = Th(F(G)). Thus, for each structureS ∈ (C, P),Th(S) = Th(S(G)) = Th(S). Moreover, wheneverFis2-isomorphic to a parallel2-cellK, thenTh(F) = Th(K).
Let T, and T′ beSg-theories and(C, P) ∈ Ob(FA). From our prior observations the following are equivalent:
1. T ⊨(C,P)T′.
2. ∀F: (CSg, PSg)→(C, P)such thatT≤Th(F), thenT′ ≤Th(F).
3. ∀F: (CSg, PSg)→(C, P)such thatGJTK⊆kerF, thenGJT′K⊆kerF.
Thus in the sequel, we take Sg-structures in (C, P)to be morphisms F: (CSg, PSg) → (C, P). In the remainder of the section, we show how the prop-categorical semantics provide a natural notion of structural action on theories. This material is not necessary for the development of subsequent sections.
LetH: (CSg, PSg)→(CSg′, PSg′)be a morphism and letT1, T2beSg-theories. We can define an action ofHonSgequations and sequents in context which can be extended toT1by taking the union: that isH·T1
is theSg′theory whose assertions areS
a∈A(T1)H·a. For equations-in-contextM1=M2:τ[Γ], H·(M1=M2:τ[Γ]) :={Mi1=Mi2:τi[ΓH]}ni=1,
whereHo(Mi : τ [Γ]) = [M1i : τ1[ΓH], . . . , Mni : τn[ΓH]]fori ∈ {1,2}. And for sequents-in-context ϕ1, . . . , ϕn⊢ϕn+1[Γ],
H·(ϕ1, . . . , ϕn ⊢ϕn+1[Γ]) =ϕH1 , . . . , ϕHn ⊢ϕHn+1[ΓH],
whereHΓp(ϕi[Γ]) = ϕHi [ΓH], for alli ∈ {1, . . . , n+ 1}. Since products in(CSg, PSg)are unique up to permutation of the list of their variable sort pairs, ifK: (CSg′, PSg′)→(CSg′′, PSg′′), then(K◦F)·T1= K·(F·T1)and clearly,id(CSg,PSg)·T1=T1. Moreover, supposeV ⊆Ob(FAL)and thatT1⊨V T2. Let (C, P) ∈ VandF: (CSg′, PSg′) → (C, P)such thatGJH·T1K ⊆kerF. ThenGJT1K ⊆ kerF ◦H and sinceT1⊨VT2,GJT2K⊆kerF◦H. It follows thatGJH·T2K⊆kerFand soH·T1⊨VH·T2. Therefore, all logics defined semantically by subcollections of Ob(FAL) are structural with respect the actions by morphisms.
This allows one to define a (first-order) logic as a closure operator⊢SgL onThSg, for each signatureSg that is structural with respect to the action of some subcollection of morphismsGofFAL between formula prop-categories. Particularly interesting candidates are when G includes all morphisms between formula prop-categories and whenGconsists of all morphismsH: (CSg, PSg)→(CSg′, PSg′)which map single sort contexts to single sort contexts.
Chapter 4
Fibered Universal Algebra