02.11.2012 Views

Reduction and Elimination in Philosophy and the Sciences

Reduction and Elimination in Philosophy and the Sciences

Reduction and Elimination in Philosophy and the Sciences

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Calculus of Inductive Constructions as a Foundation for<br />

Semantics<br />

Piotr Wilk<strong>in</strong>, Warsaw, Pol<strong>and</strong><br />

S<strong>in</strong>ce Frege started his work on formaliz<strong>in</strong>g natural<br />

language semantics, <strong>the</strong> framework for those semantics<br />

has been set-based. First, most <strong>the</strong>ories have been based<br />

on type <strong>the</strong>ory, later replaced by Zermelo-Fraenkel’s set<br />

<strong>the</strong>ory. Today, this paradigm is rarely questioned <strong>and</strong> even<br />

if some attempts are made to circumvent ZFC, for example<br />

to elim<strong>in</strong>ate some paradoxes <strong>in</strong> quantified modal logic<br />

(Oksanen 1999), most of <strong>the</strong> development is done with<strong>in</strong><br />

that framework. This raises two major problems: set <strong>the</strong>ory<br />

is structuralistic <strong>and</strong> extensional <strong>in</strong> nature. The latter needs<br />

no explanation, <strong>the</strong> former can be expla<strong>in</strong>ed this way: <strong>in</strong><br />

set <strong>the</strong>ory, one expresses structures, not functionality. This<br />

is well seen <strong>in</strong> <strong>the</strong> def<strong>in</strong>ition of <strong>the</strong> ordered pair – <strong>in</strong> ZFC,<br />

one def<strong>in</strong>es as {{a},{a,b}} <strong>and</strong> only later proves that<br />

this construct satisfies <strong>the</strong> properties we require of <strong>the</strong><br />

ordered pair – namely, to be able to construct an ordered<br />

pair from two elements <strong>and</strong> to retrieve, respectively, <strong>the</strong><br />

first or second element.<br />

What I propose here is to switch to a certa<strong>in</strong><br />

<strong>in</strong>tuitionistic sett<strong>in</strong>g to express semantics, namely, <strong>the</strong><br />

Calculus of Inductive Constructions. I am aware that <strong>the</strong><br />

term “<strong>in</strong>tuitionistic” will make some people, <strong>and</strong> especially<br />

philosophers, wary of <strong>the</strong> idea, s<strong>in</strong>ce this <strong>in</strong>stantly<br />

suggests a connection with Brouwer’s philosophical<br />

concept of <strong>in</strong>tuitionism as a philosophy of ma<strong>the</strong>matics.<br />

However, I believe that while <strong>in</strong>tuitionism might be<br />

questionable as a framework for ma<strong>the</strong>matics, it is wellsuited<br />

as a framework for natural-language semantics.<br />

This is because <strong>the</strong> subjects of both discipl<strong>in</strong>es are<br />

fundamentally different. With natural-language semantics,<br />

we want to describe not an idealized area such as<br />

ma<strong>the</strong>matics, but a very real one – how people use <strong>the</strong><br />

language. While <strong>in</strong> ma<strong>the</strong>matics it is often advisable to<br />

abstract away from <strong>the</strong> specific means of obta<strong>in</strong><strong>in</strong>g some<br />

result (namely, <strong>the</strong> calculation), it is hardly plausible to<br />

suggest that we can do <strong>the</strong> same with language<br />

expressions, as <strong>the</strong>re are clearly some cases (as <strong>in</strong> <strong>the</strong><br />

case of <strong>in</strong>tensional contexts or, more specifically,<br />

propositional attitudes) where we cannot abstract from <strong>the</strong><br />

way a specific human be<strong>in</strong>g reconstructs a language<br />

expression.<br />

From Frege’s times, <strong>the</strong> accepted <strong>and</strong> widespread<br />

form of a logical assertion has been C � ϕ, where C st<strong>and</strong>s<br />

for <strong>the</strong> context <strong>and</strong> ϕ represents <strong>the</strong> expression to be<br />

asserted (<strong>in</strong> <strong>the</strong> given context). This is true for provability,<br />

as well as for logical consequence <strong>in</strong> a model (obviously,<br />

<strong>the</strong> two relations differ <strong>in</strong> nature, but a common<br />

characteristic is shared – <strong>the</strong>y are both b<strong>in</strong>ary relations<br />

between a context <strong>and</strong> an evaluated expression, whe<strong>the</strong>r<br />

<strong>the</strong> context be a model or a <strong>the</strong>ory). However, a<br />

counterproposal to this form can be submitted: C � ϕ : t,<br />

which reads: <strong>in</strong> context C, <strong>the</strong> expression ϕ is of type t.<br />

This is called a typ<strong>in</strong>g judgement. The concept of types<br />

dates back to <strong>the</strong> <strong>the</strong>ory of types from Pr<strong>in</strong>cipia<br />

Ma<strong>the</strong>matica, but this specific idea owes its roots to<br />

Church’s <strong>the</strong>ory of simple types (Church 1940), which was<br />

based on <strong>the</strong> lambda calculus <strong>and</strong> proposed as an<br />

alternative.<br />

Once we enter <strong>the</strong> area of semantics, one can see<br />

<strong>the</strong> usefulness of <strong>the</strong> typ<strong>in</strong>g assertion over <strong>the</strong> traditional<br />

logical one. In semantics, we are often <strong>in</strong>terested not only<br />

<strong>in</strong> <strong>in</strong>formation about true sentences, we also want to know<br />

whe<strong>the</strong>r a given expression is a properly constructed<br />

sentence or whe<strong>the</strong>r some expression is actually a def<strong>in</strong>ite<br />

description. Indeed, various solutions like <strong>the</strong> Montague<br />

grammar (Montague 1974) exploit this concept with <strong>the</strong><br />

use of semantic categories, which is a concept parallel to<br />

<strong>the</strong> one by Church but designed specifically for natural<br />

language analysis <strong>in</strong> <strong>the</strong> early XX century by Polish<br />

logicians Stanislaw Lesniewski <strong>and</strong> Kazimierz Ajdukiewicz<br />

(Ajdukiewicz 1935). However, <strong>the</strong> <strong>in</strong>terest<strong>in</strong>g modification<br />

here lies not only <strong>in</strong> <strong>the</strong> add<strong>in</strong>g of <strong>the</strong> type, but also <strong>in</strong><br />

modify<strong>in</strong>g <strong>the</strong> way we read <strong>the</strong> expression. This was first<br />

noticed by <strong>the</strong> logician Haskell Curry (Curry 1934), who<br />

recognized that <strong>in</strong> case of simply typed comb<strong>in</strong>ators (an<br />

analogon to Church’s simple type system), if we only<br />

assign types to basic lambda terms, <strong>the</strong> proper types<br />

correspond exactly to tautologies of a m<strong>in</strong>imal (consist<strong>in</strong>g<br />

only of <strong>the</strong> implication, without <strong>the</strong> o<strong>the</strong>r connectives)<br />

<strong>in</strong>tuitionistic propositional calculus. Thus, for example, <strong>the</strong><br />

K comb<strong>in</strong>ator (λxλy.x) becomes a proof of <strong>the</strong> known<br />

tautology α → (β → α). How so? Accord<strong>in</strong>g to <strong>the</strong> functional<br />

<strong>in</strong>terpretation (known as <strong>the</strong> Brouwer-Heyt<strong>in</strong>g-Kolmogorov<br />

<strong>in</strong>terpretation (Sorensen <strong>and</strong> Urzyczyn 2006)), a proof of<br />

implication is a function transform<strong>in</strong>g a proof of <strong>the</strong> LHS to<br />

a proof of <strong>the</strong> RHS. So <strong>in</strong> this case, we want <strong>the</strong> function <strong>in</strong><br />

question to take an argument be<strong>in</strong>g a proof of α, <strong>the</strong>n<br />

return us an argument which itself is a function from β to α.<br />

The K comb<strong>in</strong>ator is exactly that – it takes an x (of type α),<br />

<strong>the</strong>n returns us λy.x, which is itself a function – that takes<br />

an y (of type β) <strong>and</strong> returns <strong>the</strong> previously taken x (of type α).<br />

This approach, while generally <strong>in</strong>terest<strong>in</strong>g, is hardly<br />

revolutionary. However, this has to be coupled with a<br />

different idea – Church designed his simple type system<br />

not with this <strong>in</strong>tuitionistic read<strong>in</strong>g <strong>in</strong> m<strong>in</strong>d, but to avoid a<br />

form of Russell’s Paradox for his untyped lambda calculus,<br />

which is represented by <strong>the</strong> Omega term: (λx.xx)(λx.xx) –<br />

a self-apply<strong>in</strong>g function applied to itself will never reduce to<br />

a normal form. It can be easily proven that any term that<br />

can be typed <strong>in</strong> <strong>the</strong> simple type system has <strong>the</strong> SN (strong<br />

normalization) property – any path of reductions of that<br />

term will term<strong>in</strong>ate. The question raised by Curry’s<br />

discovery was – can one construct a more advanced logic<br />

than <strong>the</strong> one represented by <strong>the</strong> simple type system, but<br />

one that is still based only on strongly normalizable terms?<br />

We now know that <strong>the</strong> answer is positive, <strong>and</strong> highly so:<br />

one can represent higher-order <strong>in</strong>tuitionistic logic us<strong>in</strong>g this<br />

sort type system, <strong>and</strong> add <strong>in</strong>ductively def<strong>in</strong>ed predicates to<br />

<strong>the</strong> logic to make it easier to formalize certa<strong>in</strong> concepts.<br />

One such system is <strong>the</strong> Calculus of Inductive<br />

Constructions (CIC), which is <strong>the</strong> <strong>the</strong>oretical basis for an<br />

<strong>in</strong>teractive proof assistant program named Coq (Herbel<strong>in</strong><br />

et al. 2006). For a sample of <strong>the</strong> expressive power of <strong>the</strong><br />

system, one can po<strong>in</strong>t to <strong>the</strong> formalized version of <strong>the</strong> fourcolor<br />

<strong>the</strong>orem proof – s<strong>in</strong>ce <strong>the</strong> proof itself is a tangible<br />

ma<strong>the</strong>matical object, this removes <strong>the</strong> need to “believe” a<br />

computer-based check of each of <strong>the</strong> hundreds of cases –<br />

one only has to believe <strong>the</strong> <strong>the</strong>ory beh<strong>in</strong>d <strong>the</strong> prover,<br />

namely, <strong>the</strong> CIC itself. For a more logically <strong>in</strong>terest<strong>in</strong>g<br />

example, a (constructive) proof of Gödel’s <strong>in</strong>completeness<br />

397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!