Showing changes from revision #1 to #2:
Added | Removed | Changed
We’ll roughly follow the Elephant and Seely. The following is all entirely standard and here only to fix notation and terminology.
A signature is a collection of types sorts, together with function symbols and relation symbols , where is a finite list of types. sorts, also called atype. We’ll denote types by too.
For each sort there should be an inexhaustible supply of fresh variables of sort . A and bound variables of sort . A context is a finite list of sorted variables, and or the equivalently sort of a context single is typed the variable list . 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 is where either a variable of of is sort a function symbol and 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 where to indicate that and is each the context of , is and a term of sort . 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,, while a tuple if each , and if and .
The formulas of regular logic are built up from the atomic formulas (where the sort type of is the sort type of) and (where and are terms of sort type) using (true), (conjunction) and . , The where if is a formula then so is . The free variables of a formula are defined in the usual way. A context context. is suitable for a formula (term ) if the free variables of () are contained in . A formula (term ) taken in some suitable context will be written (), and by itself will often mean , with the free variables in some canonical order.
The substitution of the terms term for the variables variable is defined as usual, usual. as is the substitution.
A We’ll use the usual natural-deduction rules — conjunction and truth are governed bysequent (wrt a given signature) is an expression where the context is suitable for both and . A theory is a set of sequents (over the same signature, obviously).
The inference rules of regular logic are the usual ones, including these
existentials by
where contains the variables of the terms . The other rules are as in Seely. We also have to add the Frobenius axiom , where is not in .
where on the right is not free in , and equality by
We also have to add the Frobenius axiom , where is not in .
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 of regular theories are regular fibrations.
If is a regular fibration, then an interpretation of a signature assigns
to each sort an object of
to each list of sorts the product
to each function symbol a morphism in
to each relation symbol an object in (the fibre of over )
Given an interpretation of a signature, terms and formulas over it are given the following meanings:
.
.
, where is the pairing of the meanings of the .
, where is the diagonal.
and are interpreted by the finite products in , of course, and by the left adjoints to product projections .
An interpretation satisfies a sequent , written , if there is a vertical morphism over where is the sort of .
An interpretation is a model of a theory, written , if it satisfies each sequent contained in the theory.
If a theory proves a sequent , then for any model of , .
…