Finn Lawler empty 7 (Rev #2, changes)

Showing changes from revision #1 to #2: Added | Removed | Changed

Contents

We’ll roughly follow the Elephant and Seely. The following is all entirely standard and here only to fix notation and terminology.

Type theory

A signature is a collection X,Y,…X, Y, \ldots of types sorts, together with function symbols f:X→→Yf \colon \vec X \to Y and relation symbols R⊂X→R \subset \vec X, where X→\vec X is a finite list X 1,X 2,…,X nX_1, X_2, \ldots, X_n of types. sorts, also called atype. We’ll denote types by X,Y,…X,Y,\ldots too.

For each sort XX there should be an inexhaustible supply of fresh variables of sort X x X x . A and bound variablesξ\xi of sort XX. A context is a finite list x→:X→ \vec x \colon \vec X of sorted variables, and or the equivalently sort of a context single is typed the variable listX→x:X 1,X 2,… \vec x X \colon X_1, X_2, \ldots . of the sorts of the variables in it.

A term is either a variable, a tuple of sort terms, or an expression of the form X f(t) X f(t) is where either a variable of x f x f of is sort a function symbol and X t X t or a an term. expression The free variables of a term are precisely the form variables that appear in it. Each term lives in a context, which must contain every variable in the term, perhaps together with ‘dummy’ variables that don’t. We write f t ( [t 1x , ]t 2,…,t n) f(t_1, t[x] t_2, \ldots, t_n) where to indicate that f x:Y 1,Y 2,…,Y n→X f x \colon Y_1, Y_2, \ldots, Y_n \to X and is each the context oft it t_i t , is and a term of sortY it[s] Y_i t[s] . to denote the obvious substitution. The free type variables of a term term-in-context are is precisely determined the variables that appear in it. the obvious way: for variables,x i[x→:X→]:X ix_i[\vec x \colon \vec X] \colon X_i, while a tuple (t 1,t 2,…,t n)[x:X]:X→Y→(t_1, t_2, \ldots, t_n)[x \colon X] \colon X \to \vec Y if each t i:X→Y it_i \colon X \to Y_i, and f(t):X→Yf(t) \colon X \to Y if f:Z→Yf \colon Z \to Y and t:X→Zt \colon X \to Z.

Formulas

The formulas of regular logic are built up from the atomic formulas R(t→t) R(\vec R(t) t) (where the sort type oft→t \vec t is the sort type ofRR) and t= Xst =_X s (where tt and ss are terms of sort typeXX) using ⊤\top (true), ∧\wedge (conjunction) and ∃\exists . , The where ifϕ[x]\phi[x] is a formula then so is ∃ξ.ϕ[ξ]\exists \xi.\phi[\xi]. The free variables of a formula are defined in the usual way. A context context.x→\vec x is suitable for a formula ϕ\phi (term tt) if the free variables of ϕ\phi (tt) are contained in x→\vec x. A formula ϕ\phi (term tt) taken in some suitable context x→\vec x will be written ϕ[x→]\phi[\vec x] (t[x→]t[\vec x]), and ϕ\phi by itself will often mean ϕ[FV(ϕ)]\phi[FV(\phi)], with the free variables FV(ϕ)FV(\phi) in some canonical order.

The substitution ϕ[t→t/x→] \phi[\vec \phi[t] t / \vec x] of the terms termt→t \vec t for the variables variablex→x \vec x is defined as usual, usual. as is the substitutiont[s→/x→]t[\vec s / \vec x].

Logic

A We’ll use the usual natural-deduction rules — conjunction and truth are governed bysequent (wrt a given signature) is an expression ϕ⊢ x→ψ\phi \vdash_{\vec x} \psi where the context x→\vec x is suitable for both ϕ\phi and ψ\psi. A theory is a set of sequents (over the same signature, obviously).

The inference rules of regular logic are the usual ones, including these

ϕψϕ∧ψϕ∧ψϕϕ∧ψψϕ⊤ \frac{\phi \qquad \psi}{\phi \wedge \psi} \qquad \qquad \frac{\phi \wedge \psi}{\phi} \qquad \frac{\phi \wedge \psi}{\psi} \qquad \qquad \frac{\phi}{\top}
ϕ⊢ x→ϕ(Axiom)ϕ⊢ x→ψψ⊢ x→χϕ⊢ x→χ(Cut) \frac{}{\phi \vdash_{\vec x} \phi} \text{(Axiom)} \qquad\qquad \frac{\phi \vdash_{\vec x} \psi \qquad \psi \vdash_{\vec x} \chi}{\phi \vdash_{\vec x} \chi} \text{(Cut)}

existentials by

ϕ⊢ x→ψϕ[t→/x→]⊢ y→ψ[t→/x→](Substitution) \frac{\phi \vdash_{\vec x} \psi}{\phi[\vec t/ \vec x] \vdash_{\vec y} \psi[\vec t / \vec x]} \text{(Substitution)}
ϕ[t]∃ξ.ϕ[ξ]∃ξ.ϕ[ξ]ϕ[x] ⋮ ψψ \frac{\phi[t]}{\exists \xi.\phi[\xi]} \qquad \qquad \frac{ \exists \xi.\phi[\xi] \qquad \begin{array}[b]{c} \phi[x] \\ \vdots \\ \psi \end{array} } {\psi}

where y→\vec y contains the variables of the terms t→\vec t. The other rules are as in Seely. We also have to add the Frobenius axiom ϕ∧∃y.ψ⊢ x→∃y.(ϕ∧ψ)\phi \wedge \exists y. \psi \vdash_{\vec x} \exists y.(\phi \wedge \psi), where yy is not in x→\vec x.

where on the right xx is not free in ψ\psi, and equality by

t=tt=sϕ[t]ϕ[s] \frac{}{t=t} \qquad \qquad \frac{t=s \qquad \phi[t]}{\phi[s]}

We also have to add the Frobenius axiom ϕ∧∃y.ψ⊢∃y.(ϕ∧ψ)\phi \wedge \exists y. \psi \vdash \exists y.(\phi \wedge \psi), where yy is not in x→\vec x.

Proofs are considered up to the rewrites given in Seely and Prawitz, together with those making the Frobenius axiom the two-sided inverse to the usual proof of the converse (see e.g. Elephant p. 832).

Models

Models of regular theories are regular fibrations.

If p:E→Bp \colon E \to B is a regular fibration, then an interpretation II of a signature assigns

  • to each sort XX an object IXI X of BB

  • to each list X→=X 1,X 2,…,X n\vec X = X_1, X_2, \ldots, X_n of sorts the product IX→=IX 1×IX 2×⋯×IX nI \vec X = I X_1 \times I X_2 \times \cdots \times I X_n

  • to each function symbol f:X→→Yf \colon \vec X \to Y a morphism If:IX→→IYI f \colon I \vec X \to I Y in BB

  • to each relation symbol R⊂X→R \subset \vec X an object IRI R in E IX→E_{I \vec X} (the fibre of pp over IX→I \vec X)

Given an interpretation of a signature, terms and formulas over it are given the following meanings:

  • I(x i[x→])=π i:Π jX j→X iI (x_i[\vec x]) = \pi_i \colon \Pi_j X_j \to X_i.

  • If(t 1,t 2,…,t n)=If∘(It 1,It 2,…,It n)I f(t_1, t_2, \ldots, t_n) = I f \circ (I t_1, I t_2, \ldots, I t_n).

  • IR(t 1,t 2,…,t n)=(It i) i *IRI R(t_1, t_2, \ldots, t_n) = (I t_i)_i^* I R, where (It i) i(I t_i)_i is the pairing of the meanings of the t it_i.

  • I(x= X→x′)=∃ Δ IX→⊤I(x =_{\vec X} x') = \exists_{\Delta_{I \vec X}} \top, where Δ IX→:IX→→IX→×IX→\Delta_{I \vec X} \colon I \vec X \to I \vec X \times I \vec X is the diagonal.

  • ⊤\top and ∧\wedge are interpreted by the finite products in EE, of course, and ∃\exists by the left adjoints ∃ π\exists_\pi to product projections π\pi.

An interpretation II satisfies a sequent S=ϕ⊢ x→ψS = \phi \vdash_{\vec x} \psi, written I⊧SI \models S, if there is a vertical morphism Iϕ→IψI \phi \to I \psi over IX→I \vec X where X→\vec X is the sort of x→\vec x.

An interpretation is a model of a theory, written I⊧TI \models T, if it satisfies each sequent contained in the theory.

Soundness Theorem

If a theory TT proves a sequent SS, then for any model II of TT, I⊧SI \models S.

Proof

…

Revision on February 23, 2011 at 16:39:43 by Finn Lawler?. See the history of this page for a list of all contributions to it.