A Fibrational Framework for Substructural and Modal Logics
Dan Licata Wesleyan University Michael Shulman University of San Diego
1
Mitchell Riley Wesleyan University
A Fibrational Framework for Substructural and Modal Logics Dan - - PowerPoint PPT Presentation
A Fibrational Framework for Substructural and Modal Logics Dan Licata Michael Shulman Wesleyan University University of San Diego Mitchell Riley Wesleyan University 1 Substructural Logic B Weakening ,x:A B ,y:B,x:A B
Dan Licata Wesleyan University Michael Shulman University of San Diego
1
Mitchell Riley Wesleyan University
2
4
Linear/affine: use once (state, sessions) Relevant: strictness annotations Ordered: linguistics Bunched: separation logic Comonads: staging, metavariables, coeffects Monads: effects Interactions between products and modalities
5
higher category theory homotopy theory dependent type theory
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber]
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber]
♭A ⊢ B A ⊢ # B
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber] monad ♢
♭A ⊢ B A ⊢ # B
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber] monad ♢ comonad ☐
♭A ⊢ B A ⊢ # B
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber] monad ♢ comonad ☐ monad
♭A ⊢ B A ⊢ # B
6
Dependent type theory with modalities ∫A, ♭A, #A [Shulman,Schreiber] monad ♢ comonad ☐ monad (idempotent)
♭♭ A ≅ ♭ A ♭A ⊢ B A ⊢ # B
7
comonad monad [Finster,L.,Morehouse,Riley]
7
comonad monad
[Finster,L.,Morehouse,Riley]
7
comonad monad
[Finster,L.,Morehouse,Riley]
8
[Schreiber; Gross,L.,New,Paykin,Riley,Shulman,Wellen]
8
[Schreiber; Gross,L.,New,Paykin,Riley,Shulman,Wellen]
8
[Schreiber; Gross,L.,New,Paykin,Riley,Shulman,Wellen]
HoTT/UF Saturday!
9
morally ☐Γ× Δ → C
context is all boxed formulae (up to weakening) morally ☐Γ× Δ → C
context is all boxed formulae (up to weakening) morally ☐Γ× Δ → C
because ☐A → A
context is all !’ed formulae (no weakening) cartesian/ structural linear
context “is” a ⊗
context “is” a ⊗
context is a ⊗, up to some structural rules
14
15
Operation on contexts, with explicit or admissible structural properties Type constructor that “internalizes” the context
16
Products and left-adjoints (⊗,F) all one connective Negatives and right adjoints (⊸,U) another Cut elimination for all instances at once Equational theory: differ by structural rules Categorical semantics A framework that abstracts the common aspects of many intuitionistic substructural and modal logics
17
Non-assoc, ordered, linear, affine, relevant, cartesian, bunched products and implications N-linear variables [Reed,Abel,McBride] Monoidal, lax, non- left adjoints Non-strong, strong, ☐-strong monads Cohesion
17
Non-assoc, ordered, linear, affine, relevant, cartesian, bunched products and implications N-linear variables [Reed,Abel,McBride] Monoidal, lax, non- left adjoints Non-strong, strong, ☐-strong monads Cohesion Logical adequacy: sequent is provable iff its encoding is
18
18
Display logic, Lambek calculus, resource semantics
18
Display logic, Lambek calculus, resource semantics Adjoint linear logic [Benton&Wadler,95]
18
Display logic, Lambek calculus, resource semantics Adjoint linear logic [Benton&Wadler,95]
cartesian linear
18
Display logic, Lambek calculus, resource semantics Adjoint linear logic [Benton&Wadler,95]
cartesian linear
18
Display logic, Lambek calculus, resource semantics Adjoint linear logic [Benton&Wadler,95]
cartesian linear
18
Display logic, Lambek calculus, resource semantics Adjoint linear logic [Benton&Wadler,95] λ-calculus for Resource Separation [Atkey,2004] Adjoint logic [Reed,2009]
cartesian linear
19
A substructural/modal typing judgement is an ordinary structural judgement, annotated with a term that describes the tree structure of the context
20
21
x1:p1, … , xn:pn ⊢ α : q α ⇒ β p,q,… Modes Context Descriptors Structural Properties
21
Types p,q are “modes” of types/contexts x1:p1, … , xn:pn ⊢ α : q α ⇒ β p,q,… Modes Context Descriptors Structural Properties
21
Types p,q are “modes” of types/contexts Terms α are descriptions of the context x1:p1, … , xn:pn ⊢ α : q α ⇒ β p,q,… Modes Context Descriptors Structural Properties
21
Types p,q are “modes” of types/contexts Terms α are descriptions of the context “Transformations” α ⇒ β are structural properties x1:p1, … , xn:pn ⊢ α : q α ⇒ β p,q,… Modes Context Descriptors Structural Properties
21
Types p,q are “modes” of types/contexts Terms α are descriptions of the context “Transformations” α ⇒ β are structural properties x1:p1, … , xn:pn ⊢ α : q α ⇒ β p,q,… Modes Context Descriptors Structural Properties
cartesian/ structural
22
22
Non-associative logic: no equations/transformations
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c)
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a Relevant logic: a ⟹ a ⊗ a
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a Relevant logic: a ⟹ a ⊗ a Affine logic: a ⟹ 1
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a Relevant logic: a ⟹ a ⊗ a Affine logic: a ⟹ 1 BI: two function symbols ✻ and ⋀: (a ✻ b) ⋀ (c ✻ d)
22
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a Relevant logic: a ⟹ a ⊗ a Affine logic: a ⟹ 1 BI: two function symbols ✻ and ⋀: (a ✻ b) ⋀ (c ✻ d) Modalities: unary function symbols: r(a) ⊗ r(b) ⊗ c ⊗ d
22
cartesian
Non-associative logic: no equations/transformations Ordered logic: (a ⊗ b) ⊗ c = a ⊗ (b ⊗ c) Linear logic: a ⊗ b = b ⊗ a Relevant logic: a ⟹ a ⊗ a Affine logic: a ⟹ 1 BI: two function symbols ✻ and ⋀: (a ✻ b) ⋀ (c ✻ d) Modalities: unary function symbols: r(a) ⊗ r(b) ⊗ c ⊗ d
23
23
23
24
24
24
24
24
25
25
up to whatever structural properties you’ve asserted, the context is just x (typically x⊗y ⇒ x)
26
26
the “product” of A1 … An structured according to α
26
the “product” of A1 … An structured according to α
26
the “product” of A1 … An structured according to α
27
28
28
remember where in the tree Δ variables occur
29
30
31
31
31
31
31
31
31
31
31
31
31
32
33
33
34
35
35
35
35
36
Non-assoc, ordered, linear, affine, relevant, cartesian, bunched products and implications N-linear variables [Reed,Abel,McBride] Monoidal, lax, non- left adjoints Non-strong, strong, ☐-strong monads Spatial type theory Logical adequacy: sequent is provable iff its encoding is
37
locally discrete fibration (action of structural rules) Fα Δ makes this into an opfibration Uα(Δ|A) makes this into a fibration Sound/Complete: Syntax forms a bifibration and can be interpreted in any
derivations modes cartesian 2- multicategories
38
βη for F and U equations governing action of 2-cells: when do two terms differ by placement of structural properties?
39
Products and left-adjoints (⊗,F) all one connective Negatives and right adjoints (⊸,U) another Cut elimination for all instances at once Equational theory: differ by structural rules Categorical semantics A framework that abstracts the common aspects of many intuitionistic substructural and modal logics