Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Natural deduction
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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!
===Example: Dependent Type Theory=== {{Unreferenced section|date=May 2024}} Like logic, type theory has many extensions and variants, including first-order and higher-order versions. One branch, known as [[dependent type theory]], is used in a number of [[computer-assisted proof]] systems. Dependent type theory allows quantifiers to range over programs themselves. These quantified types are written as Ξ and Ξ£ instead of β and β, and have the following formation rules: {| style="margin-left: 2em;" |- | Ξ β’ A type Ξ, x:A β’ B type βββββββββββββββββββββββββββββ Ξ -F Ξ β’ Ξ x:A. B type | width="10%" | || Ξ β’ A type Ξ, x:A β’ B type ββββββββββββββββββββββββββββ Ξ£-F Ξ β’ Ξ£x:A. B type |} These types are generalisations of the arrow and product types, respectively, as witnessed by their introduction and elimination rules. {| style="margin-left: 2em;" |- | Ξ, x:A β’ Ο : B ββββββββββββββββββββ Ξ I Ξ β’ Ξ»x. Ο : Ξ x:A. B | width="10%" | || Ξ β’ Ο<sub>1</sub> : Ξ x:A. B Ξ β’ Ο<sub>2</sub> : A βββββββββββββββββββββββββββββ Ξ E Ξ β’ Ο<sub>1</sub> Ο<sub>2</sub> : [Ο<sub>2</sub>/x] B |} {| style="margin-left: 2em;" |- | Ξ β’ Ο<sub>1</sub> : A Ξ, x:A β’ Ο<sub>2</sub> : B βββββββββββββββββββββββββββββ Ξ£I Ξ β’ (Ο<sub>1</sub>, Ο<sub>2</sub>) : Ξ£x:A. B | width="10%" | || Ξ β’ Ο : Ξ£x:A. B ββββββββββββββββ Ξ£E<sub>1</sub> Ξ β’ '''fst''' Ο : A |} {| style="margin-left: 2em;" |- | Ξ β’ Ο : Ξ£x:A. B ββββββββββββββββββββββββ Ξ£E<sub>2</sub> Ξ β’ '''snd''' Ο : ['''fst''' Ο/x] B |} Dependent type theory in full generality is very powerful: it is able to express almost any conceivable property of programs directly in the types of the program. This generality comes at a steep price — either typechecking is undecidable ([[extensional type theory]]), or extensional reasoning is more difficult ([[intensional type theory]]). For this reason, some dependent type theories do not allow quantification over arbitrary programs, but rather restrict to programs of a given decidable ''index domain'', for example integers, strings, or linear programs. Since dependent type theories allow types to depend on programs, a natural question to ask is whether it is possible for programs to depend on types, or any other combination. There are many kinds of answers to such questions. A popular approach in type theory is to allow programs to be quantified over types, also known as ''[[parametric polymorphism]]''; of this there are two main kinds: if types and programs are kept separate, then one obtains a somewhat more well-behaved system called ''[[predicative polymorphism]]''; if the distinction between program and type is blurred, one obtains the type-theoretic analogue of higher-order logic, also known as ''[[impredicative polymorphism]]''. Various combinations of dependency and polymorphism have been considered in the literature, the most famous being the [[lambda cube]] of [[Henk Barendregt]]. The intersection of logic and type theory is a vast and active research area. New logics are usually formalised in a general type theoretic setting, known as a [[logical framework]]. Popular modern logical frameworks such as the [[calculus of constructions]] and [[LF (logical framework)|LF]] are based on higher-order dependent type theory, with various trade-offs in terms of decidability and expressive power. These logical frameworks are themselves always specified as natural deduction systems, which is a testament to the versatility of the natural deduction approach.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Natural deduction
(section)
Add topic