Abstract
Universal quantification is a logical operation that asserts a property holds for all elements in a domain, written . In type theory, universal quantification is interpreted as a dependent product type, providing a computational method to construct a proof for any element.
Definition
In Predicate Logic
In predicate logic, the universal quantifier binds a variable and asserts that a predicate holds for every element in the domain of discourse. The formula is true if and only if holds for every element in .
Under the Curry-Howard Correspondence, universal quantification corresponds to dependent function types. The constructive interpretation of is: An element of this type is a function that takes any and produces a proof of .
In HoTT
In Homotopy Type Theory, the universal quantifier is defined as:
Unlike existential quantification, the universal quantifier is not truncated. The dependent product:
- Provides computational content via function application
- Allows extraction of proofs for specific elements
- Can be eliminated into arbitrary types
- Is not necessarily a proposition
When is a proposition for all , the dependent product is also a proposition, making it equivalent to a truncated universal statement.
Type Rules
Introduction Rule
To prove a universal statement, assume an arbitrary and construct a proof of . In type theory, this corresponds to lambda abstraction.
Elimination Rule
From a universal statement and a specific element , obtain a proof of via function application.
Computation Rule
Function application computes by substituting the argument for the bound variable. This is beta reduction.
Eta Rule
For any :
Every function is equal to its eta expansion.
Special Case: Implication
When does not depend on , the dependent product reduces to ordinary function types:
This shows that implication is a special case of universal quantification.
Duality with Existential Quantification
Universal quantification is dual to existential quantification:
In constructive logic, this duality requires the Law of the Excluded Middle.
Properties
Instantiation
Universal statements can be instantiated to any particular element:
Distribution
Universal quantification distributes over conjunction:
But not over disjunction in general.
Monotonicity
If for all , then .
Scope and Binding
The universal quantifier is a binding construct. In , the variable is bound and its scope extends over .
Alpha-equivalent formulas are considered identical:
In Constructive Mathematics
In constructive mathematics, a proof of must provide a method to construct a proof of for arbitrary . The proof must be algorithmic.
BHK Interpretation
The BHK Interpretation views a proof of as a function mapping each to a proof of . This corresponds directly to the dependent product type.
In Different Logics
Classical Logic
In classical logic, universal quantification combined with negation gives full expressive power through duality with existential quantification.
Intuitionistic Logic
In intuitionistic logic, requires a constructive method to prove for arbitrary . The proof must be algorithmic.
Higher-Order Logic
In higher-order logic, universal quantification can range over predicates and functions, not just individuals.
Related Concepts
- Dependent Product: The type-theoretic counterpart
- Existential: The dual quantifier
- Lambda Calculus: The computational interpretation
- Function Type: The non-dependent special case
- Type Family: Dependent types in the codomain
- Predicate: What is quantified over
- BHK Interpretation: Constructive semantics
- Curry-Howard Correspondence: Logic-computation connection
- Beta Reduction: Computation rule for functions