In
logic, syntax is anything having to do with
formal languages or
formal systems without regard to any
interpretation
Interpretation may refer to:
Culture
* Aesthetic interpretation, an explanation of the meaning of a work of art
* Allegorical interpretation, an approach that assumes a text should not be interpreted literally
* Dramatic Interpretation, an event ...
or
meaning
Meaning most commonly refers to:
* Meaning (linguistics), meaning which is communicated through the use of language
* Meaning (philosophy), definition, elements, and types of meaning discussed in philosophy
* Meaning (non-linguistic), a general te ...
given to them. Syntax is concerned with the rules used for constructing, or transforming the symbols and words of a language, as contrasted with the
semantics of a language which is concerned with its meaning.
The
symbols
A symbol is a mark, sign, or word that indicates, signifies, or is understood as representing an idea, object, or relationship. Symbols allow people to go beyond what is known or seen by creating linkages between otherwise very different conc ...
,
formulas,
system
A system is a group of Interaction, interacting or interrelated elements that act according to a set of rules to form a unified whole. A system, surrounded and influenced by its environment (systems), environment, is described by its boundaries, ...
s,
theorems,
proofs
Proof most often refers to:
* Proof (truth), argument or sufficient evidence for the truth of a proposition
* Alcohol proof, a measure of an alcoholic drink's strength
Proof may also refer to:
Mathematics and formal logic
* Formal proof, a co ...
, and
interpretations expressed in formal languages are syntactic entities whose properties may be studied without regard to any meaning they may be given, and, in fact, need not be given any.
Syntax is usually associated with the rules (or grammar) governing the composition of texts in a formal language that constitute the
well-formed formulas of a formal system.
In
computer science, the term ''
syntax
In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure ( constituency) ...
'' refers to the rules governing the composition of well-formed
expressions in a
programming language. As in mathematical logic, it is independent of semantics and interpretation.
Syntactic entities
Symbols
A symbol is an
idea,
abstraction or
concept,
tokens of which may be marks or a metalanguage of marks which form a particular pattern. Symbols of a formal language need not be symbols of anything. For instance there are
logical constants which do not refer to any idea, but rather serve as a form of punctuation in the language (e.g. parentheses). A symbol or string of symbols may comprise a well-formed formula if the formulation is consistent with the formation rules of the language. Symbols of a formal language must be capable of being specified without any reference to any interpretation of them.
Formal language
A ''formal language'' is a syntactic entity which consists of a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of finite
strings
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
of
symbol
A symbol is a mark, sign, or word that indicates, signifies, or is understood as representing an idea, object, or relationship. Symbols allow people to go beyond what is known or seen by creating linkages between otherwise very different conc ...
s which are its words (usually called its
well-formed formulas). Which strings of symbols are words is determined by the creator of the language, usually by specifying a set of
formation rules. Such a language can be defined without
reference to any
meaning
Meaning most commonly refers to:
* Meaning (linguistics), meaning which is communicated through the use of language
* Meaning (philosophy), definition, elements, and types of meaning discussed in philosophy
* Meaning (non-linguistic), a general te ...
s of any of its expressions; it can exist before any
interpretation
Interpretation may refer to:
Culture
* Aesthetic interpretation, an explanation of the meaning of a work of art
* Allegorical interpretation, an approach that assumes a text should not be interpreted literally
* Dramatic Interpretation, an event ...
is assigned to it – that is, before it has any meaning.
Formation rules
''Formation rules'' are a precise description of which
strings
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
of
symbol
A symbol is a mark, sign, or word that indicates, signifies, or is understood as representing an idea, object, or relationship. Symbols allow people to go beyond what is known or seen by creating linkages between otherwise very different conc ...
s are the
well-formed formulas of a formal language. It is synonymous with the set of
strings
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
over the
alphabet of the formal language which constitute well formed formulas. However, it does not describe their
semantics (i.e. what they mean).
Propositions
A proposition is a
sentence expressing something
true or
false. A proposition is identified
ontologically as an
idea,
concept or
abstraction whose
token instances are patterns of
symbols
A symbol is a mark, sign, or word that indicates, signifies, or is understood as representing an idea, object, or relationship. Symbols allow people to go beyond what is known or seen by creating linkages between otherwise very different conc ...
, marks, sounds, or
strings
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
of words. Propositions are considered to be syntactic entities and also
truthbearers.
Formal theories
A formal theory is a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of
sentences in a
formal language.
Formal systems
A ''formal system'' (also called a ''logical calculus'', or a ''logical system'') consists of a formal language together with a
deductive apparatus (also called a ''deductive system''). The deductive apparatus may consist of a set of
transformation rules (also called ''inference rules'') or a set of
axiom
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or f ...
s, or have both. A formal system is used to derive one expression from one or more other expressions. Formal systems, like other syntactic entities may be defined without any
interpretation
Interpretation may refer to:
Culture
* Aesthetic interpretation, an explanation of the meaning of a work of art
* Allegorical interpretation, an approach that assumes a text should not be interpreted literally
* Dramatic Interpretation, an event ...
given to it (as being, for instance, a system of arithmetic).
Syntactic consequence within a formal system
A formula A is a syntactic consequence
within some formal system
of a set Г of formulas if there is a
derivation in
formal system of A from the set Г.
:
Syntactic consequence does not depend on any
interpretation
Interpretation may refer to:
Culture
* Aesthetic interpretation, an explanation of the meaning of a work of art
* Allegorical interpretation, an approach that assumes a text should not be interpreted literally
* Dramatic Interpretation, an event ...
of the formal system.
[Hunter, Geoffrey, Metalogic: An Introduction to the Metatheory of Standard First-Order Logic, University of California Press, 1971, p. 75.]
Syntactic completeness of a formal system
A formal system
is ''syntactically complete''
(also ''deductively complete'', ''maximally complete'', ''negation complete'' or simply ''complete'') iff for each formula A of the language of the system either A or ¬A is a theorem of
. In another sense, a formal system is syntactically complete iff no unprovable axiom can be added to it as an axiom without introducing an
inconsistency. Truth-functional
propositional logic and first-order
predicate logic are semantically complete, but not syntactically complete (for example the propositional logic statement consisting of a single variable "a" is not a theorem, and neither is its negation, but these are not
tautologies).
Gödel's incompleteness theorem shows that no
recursive system
Recursion (adjective: ''recursive'') occurs when a thing is defined in terms of itself or of its type. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathematic ...
that is sufficiently powerful, such as the
Peano axioms, can be both consistent and complete.
Interpretations
An ''interpretation'' of a formal system is the assignment of meanings to the symbols, and
truth values to the sentences of a formal system. The study of interpretations is called
formal semantics. ''Giving an interpretation'' is synonymous with ''constructing a
model''. An interpretation is expressed in a
metalanguage
In logic and linguistics, a metalanguage is a language used to describe another language, often called the ''object language''. Expressions in a metalanguage are often distinguished from those in the object language by the use of italics, quot ...
, which may itself be a formal language, and as such itself is a syntactic entity.
See also
*
Symbol (formal)
*
Formation rule
*
Formal grammar
*
Syntax (linguistics)
*
Syntax (programming languages)
*
Mathematical logic
*
Well-formed formula
References
External links
{{DEFAULTSORT:Syntax (Logic)
Formal languages
Metalogic
Concepts in logic
Philosophy of logic