请输入您要查询的字词:

 

单词 A0Preliminaries
释义

A.0 Preliminaries


In http://planetmath.org/node/87533Chapter 1, we presented the two basic judgmentsof type theoryPlanetmathPlanetmath. The first, a:A, asserts that a term a has type A. The second,ab:A, states that the two terms a and b are judgmentallyequalat type A. These judgments are inductively defined by a set ofinference rules described in \\autorefsec:syntax-more-formally.

To construct an element a of a type A is to derive a:A; in the book, wegive informal arguments which describe the construction of a, but formally,one must specify a precise term a and a full derivation that a:A.

However, the main differencePlanetmathPlanetmath between the presentationMathworldPlanetmathPlanetmathPlanetmath of type theory in the bookand in this appendix is that here judgments are explicitlyformulated in an ambient context,or list of assumptions, of the form

x1:A1,x2:A2,,xn:An.

An element xi:Ai of the context expresses the assumption that thevariablexi has type Ai. The variables x1,,xn appearing inthe context must be distinct. We abbreviate contexts with the letters Γand Δ.

The judgment a:A in context Γ is written

Γa:A

and means that a:A under the assumptions listed in Γ. When the list ofassumptions is empty, we write simply

a:A

or

a:A

where denotes the empty context. The same applies to the equalityjudgment

Γab:A

However, such judgments are sensible only for well-formed contexts,a notion captured by our third and final judgment

(x1:A1,x2:A2,,xn:An)𝖼𝗍𝗑

expressing that each Ai is a type in the context x1:A1,x2:A2,,xi-1:Ai-1. In particular, therefore, if Γa:A andΓ𝖼𝗍𝗑, then we know that each Ai contains only the variablesx1,,xi-1, and that a and A contain only the variablesx1,,xn.

In informal mathematical presentations, the context isimplicit. At each point in a proof, the mathematician knows whichvariables are available and what types they have, either by historicalconvention (n is usually a number, f is a function, etc.) orbecause variables are explicitly introduced with sentencesMathworldPlanetmath such as“let x be a real number”. We discuss some benefits of using explicitcontexts in \\autorefsec:more-formal-pi,\\autorefsec:more-formal-sigma.

We write B[a/x] for the substitutionof a term a for free occurrences ofthe variable x in the term B, with possible capture-avoidingrenaming of bound variables,as discussed in§1.2 (http://planetmath.org/12functiontypes). The general form of substitution

B[a1,,an/x1,,xn]

substitutes expressions a1,,an for the variablesx1,,xn simultaneously.

To bind a variable x in an expression Bmeans to incorporate both of them into a larger expression, called an abstraction,whose purpose is to express the fact that x is “local” to B, i.e., itis not to be confused with other occurrences of x appearingelsewhere. Bound variables are familiar to programmers, but less so to mathematicians.Various notations are used for binding, such as xB,λx.B, and x.B, depending on the situation. We may write C[a] for thesubstitution of a term a for the variable in the abstracted expression, i.e.,we may define (x.B)[a] to be B[a/x]. As discussed in§1.2 (http://planetmath.org/12functiontypes), changing the name of a bound variable everywhere within an expression (“α-conversion”)does not change the expression. Thus, to be veryprecise, an expression is an equivalence classMathworldPlanetmathPlanetmath of syntactic formswhich differ in names of bound variables.

One may also regard each variable xi of a judgment

x1:A1,x2:A2,,xn:Ana:A

to be bound in its scope,consisting of the expressions Ai+1,,An, a, and A.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 8:14:45