Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Formal system
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Concepts == [[File:Formal languages.svg|thumb|300px|This diagram shows the [[Syntax (logic)|syntactic entities]] that may be constructed from [[formal language]]s. The symbols and [[string (computer science)|strings of symbols]] may be broadly divided into [[nonsense]] and [[Well-formed formula|well-formed formulas]]. A formal language can be thought of as identical to the set of its well-formed formulas, which may be broadly divided into [[theorem]]s and non-theorems.]] A formal system has the following:<ref>{{planetmath reference|urlname=formalsystem|title=Formal System}}</ref><ref>{{Cite web |last=Rapaport |first=William J. |date=25 March 2010 |title=Syntax & Semantics of Formal Systems |url=https://cse.buffalo.edu/~rapaport/formalsystems |website=University of Buffalo}}</ref><ref>{{proofwiki reference|id=Definition:Formal_System|name=Formal System}}</ref> * [[Formal language]], which is a set of [[Well-formed formula|well-formed formulas]], which are strings of [[Symbol (formal)|symbols]] from an [[Alphabet (formal languages)|alphabet]], formed by a [[formal grammar]] (consisting of [[Production (computer science)|production rules]] or [[Formation rule|formation rules]]). * [[Deductive system]], deductive apparatus, or [[Proof calculus|proof system]], which has [[rule of inference|rules of inference]] that take [[Axiom|axioms]] and infers [[theorem]]s, both of which are part of the formal language. A formal system is said to be [[Recursive set|recursive]] (i.e. effective) or recursively enumerable if the set of axioms and the set of inference rules are [[decidable set]]s or [[recursively enumerable set|semidecidable sets]], respectively. === Formal language === {{Formal languages}} {{Main|Formal language|Formal grammar|Syntax (logic)|Logical form}} A [[formal language]] is a language that is defined by a formal system. Like languages in [[linguistics]], formal languages generally have two aspects: * the [[Syntax (logic)|syntax]] is what the language looks like (more formally: the set of possible expressions that are valid utterances in the language) * the [[Semantics of logic|semantics]] are what the utterances of the language mean (which is formalized in various ways, depending on the type of language in question) Usually only the [[Syntax (logic)|syntax]] of a formal language is considered via the notion of a [[formal grammar]]. The two main categories of formal grammar are that of [[generative grammar]]s, which are sets of rules for how strings in a language can be written, and that of [[analytic grammar]]s (or reductive grammar<ref>{{cite dictionary |dictionary=Dictionary of Scientific and Technical Terms |url=http://encyclopedia2.thefreedictionary.com/reductive+grammar |title=Reductive grammar |publisher=McGraw-Hill |edition=6th |quote=Reductive grammar: (''computer science'') A set of syntactic rules for the analysis of strings to determine whether the strings exist in a language.}}</ref>{{unreliable source?|date=February 2015}}<ref>{{cite web|url=http://bitsavers.informatik.uni-stuttgart.de/pdf/sri/arc/rulifson/A_Tree_Meta_For_The_XDS_940_Appendix_D_Apr68.pdf|title=A Tree Meta for the XDS 940 | publisher=[[Augmentation Research Center]] |date=April 1968 |last=Rulifson |first=Johns F. |author-link=Jeff Rulifson |access-date=30 November 2024 |quote="There are two classes of formal-language definition compiler-writing schemes. The productive [[formal grammar|grammar]] approach is the most common. A productive grammar consists primarrly of a set of rules that describe a method of generating all possible strings of the language. The reductive or [[formal grammar#Analytic grammars|analytical grammar]] technique states a set of rules that describe a method of analyzing any string of characters and deciding whether that string is in the language."}}</ref>), which are sets of rules for how a string can be analyzed to determine whether it is a member of the language. ===Deductive system=== {{Cleanup|date=October 2023|reason=This section needs better organization and more citations.|section}} {{Main|Inference|Logical consequence|Deductive reasoning}} A ''deductive system'', also called a ''deductive apparatus'',<ref name=":1">{{proofwiki reference|id=Definition:Deductive_Apparatus |title=Deductive Apparatus |access-date=30 November 2024}}</ref> consists of the [[Axiom#Role_in_mathematical_logic|axiom]]s (or [[axiom schema]]ta) and [[rules of inference]] that can be used to [[formal proof|derive]] [[theorem]]s of the system.{{sfn|Hunter|1996|p=7}} Such deductive systems preserve [[deductive reasoning|deductive]] qualities in the [[formula (mathematical logic)|formula]]s that are expressed in the system. Usually the quality we are concerned with is [[truth]] as opposed to falsehood. However, other [[modal logic|modalities]], such as [[Theory of justification|justification]] or [[belief]] may be preserved instead. In order to sustain its deductive integrity, a ''deductive apparatus'' must be definable without reference to any [[intended interpretation]] of the language. The aim is to ensure that each line of a [[Mathematical proof|derivation]] is merely a [[logical consequence]] of the lines that precede it. There should be no element of any [[Interpretation (logic)|interpretation]] of the language that gets involved with the deductive nature of the system. The [[logical consequence]] (or entailment) of the system by its logical foundation is what distinguishes a formal system from others which may have some basis in an abstract model. Often the formal system will be the basis for or even identified with a larger [[theory]] or field (e.g. [[Euclidean geometry]]) consistent with the usage in modern mathematics such as [[model theory]].{{clarify|reason=This section doesn't really do a group job stating what an entailment actually is.|date=September 2017}} An example of a deductive system would be the rules of inference and [[First-order_logic#Equality_and_its_axioms|axioms regarding equality]] used in [[First-order logic|first order logic]]. The two main types of deductive systems are proof systems and formal semantics.<ref name=":1" /><ref>{{cite book|title=Formal Semantics and Logic|url=https://www.princeton.edu/~fraassen/books/pdfs/Formal%20Semantics%20and%20Logic.pdf |last=van Fraassen |first=Bas C. |author-link=Bas van Fraassen |year=2016 |orig-date=1971 |publisher=Nousoul Digital Publishers|page=12|quote=Metalogic can in turn be roughly divided into two parts: proof theory and formal semantics... The division is not exact; many questions have been dealt with from both points of view, and some proof-theoretic methods and results are indispensable in semantics.}}</ref> ==== Proof system ==== {{Main|Proof system|Formal proof}} Formal proofs are sequences of [[well-formed formula]]s (or WFF for short) that might either be an [[axiom]] or be the product of applying an inference rule on previous WFFs in the proof sequence. The last WFF in the sequence is recognized as a [[Theorem#Theorems in logic|theorem]]. Once a formal system is given, one can define the set of theorems which can be proved inside the formal system. This set consists of all WFFs for which there is a proof. Thus all axioms are considered theorems. Unlike the grammar for WFFs, there is no guarantee that there will be a [[decidability (logic)|decision procedure]] for deciding whether a given WFF is a theorem or not. The point of view that generating formal proofs is all there is to mathematics is often called ''[[Formalism (philosophy of mathematics)|formalism]]''. [[David Hilbert]] founded [[metamathematics]] as a discipline for discussing formal systems. Any language that one uses to talk about a formal system is called a ''[[metalanguage]]''. The metalanguage may be a natural language, or it may be partially formalized itself, but it is generally less completely formalized than the formal language component of the formal system under examination, which is then called the ''object language'', that is, the object of the discussion in question. The notion of ''theorem'' just defined should not be confused with ''theorems about the formal system'', which, in order to avoid confusion, are usually called [[metatheorem]]s. ==== Formal semantics of logical system ==== {{main|Semantics of logic|Interpretation (logic)|Model theory}} A ''logical system'' is a deductive system (most commonly [[First-order logic|first order logic]]) together with additional [[non-logical axioms]]. According to [[model theory]], a logical system may be given [[interpretation (logic)|interpretation]]s which describe whether a given [[Structure (mathematical logic)|structure]] - the mapping of formulas to a particular meaning - satisfies a well-formed formula. A structure that satisfies all the axioms of the formal system is known as a [[Model (model theory)|model]] of the logical system. A logical system is: *[[Soundness|Sound]], if each well-formed formula that can be inferred from the axioms is satisfied by every model of the logical system. *[[Completeness (logic)#Semantic completeness|Semantically complete]], if each well-formed formula that is satisfied by every model of the logical system can be inferred from the axioms. An example of a logical system is [[Peano arithmetic]]. The standard model of arithmetic sets the [[domain of discourse]] to be the [[nonnegative integer]]s and gives the symbols their usual meaning.<ref>{{cite book |last1=Kaye |first1=Richard |title=Models of Peano arithmetic |date=1991 |publisher=Clarendon Press |location=Oxford |isbn=9780198532132 |page=10 |chapter=1. The Standard Model}}</ref> There are also [[non-standard model of arithmetic|non-standard models of arithmetic]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)