PFPL Chapter 12 Constructive Logic
This part is not shown on PFPL preview version.
What is Constructive Logic
Constructive logic codifies the principles of mathematical reasoning as it is actually practiced.
In mathematics, a proposition is judged true exactly when it has a proof, and false exactly when refutation occurs. Since there’re always, and will always be, unsolved problems, we can’t expect in general a proposition be either true or false.
Constructive Semantics
Constructive logic is concerned with 2 judgments:
, stating expresses a proposition. , stating is a true proposition.
What distinguishes constructive from non-constructive logic is that proposition is not conceived of merely a truth value, but instead as a problem statement whose solution, if it has one, is given by a proof.
Truth with Proof
Identifying truth with proof has some consequences. One cannot say that a proposition is either true or false. There exists a chaos state indicating there’s no proof for it.
In this sense, constructive logic is a logic of positive, or affirmative, information. One must have explicit evidence in the form of a proof or refutation to prove the truth or falsity of the proposition.
Decidable or Undecidable
It’s clear that not every proposition is either true or false. If
My Personal Fav
The constructive attitude is simply to accept the situation as inevitable, and make out peace with that.
When faced with a problem, we have no choice but to roll up our sleeves and try to prove it or refute it. There is not guarantee of success! Life is hard, but we muddle though somehow.
Constructive Logic
Judgments
The structural properties of the hypothetical judgment, when specialized to constructive logic, define what we mean by reasoning under hypotheses
Two more rules are required in that we regard
Provability
The syntax table of constructive logic is
The connectives of propositional logic are given meaning by rules that define
- what constitutes a “direct” proof of propositional formed form that connective
- how to exploit existence of such proof in an “indirect” proof of another proposition.
These are called introduction and elimination rules for the connectives.
The principle of conservation of proof states that these rules are inverse to one another: the elimination cannot extract more information than information we put it by introduction rule, and vise versa.
Truth
Truth proposition is trivially true, no information goes into proving it, no information can be obtained from it.
Thus there is no elimination form only introduction form.
Conjunction
Implication
Falsehood
Falsehood expresses the trivially false (refutable) proposition.
Thus there is no introduction form since no judgment supports falsehood, only elimination form.
Disjunction
Negnation
Since constructive truth is defined to be the existence of proof, the implied semantics of negation is strong.
A problem
Proof Terms
The key to propositions-as-types principles is to make explicit the forms of proof.
Basic judgment
The hypothetical judgment form is changed into form
We again let
range over such hypothesis lists, subject to the restriction that no variable occurs more than once.
The syntax table for proof terms is
The rules of constructive propositional logic can be restated with proof terms
Truth
Conjunction
Implication
Falsehood
Disjunction
Proof Dynamics
Proof terms in constructive logic are given a dynamics by Gentzen’s Principle, stating that elimination forms are inverse to the introduction forms.
One aspect of Gentzen’s Principle is the principle of conservation of proof.
Conjunction
Implication
Disjunction
Falsehood
Propositions as Types
Exercise
Law of the Excluded Middle
For
Plausible: LEM cannot be expected to hold for a general
.
For
Formally, we can see that the type of the proposition is
Thus we can construct proof term as
Double Negation Elimination
Suppose LEM holds universally,
By LEM,
By previous problem, we can derive proof term as
General Heyting Algebra Distributivity
Consider the equivalence
Let
Assume the equivalence is achieved. Then we can see that
The former and latter ones are immediate, which are trivial. Thus
If we want to show
This only shows that
For
On
On
Boolean/Heyting Algebra De Morgen
One can see that
According to definition, the first de Morgan duality law can be proved by any Heyting Algebra.
The second one might encounter the case