From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization...

93
From pre-models to models normalization by Heyting algebras Olivier H 18 Mars 2008

Transcript of From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization...

Page 1: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

From pre-models to modelsnormalization by Heyting algebras

Olivier H

18 Mars 2008

Page 2: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction System : natural deduction (NJ)

I first-order logic: function and predicate symbols, logicalconnectors: ∧,∨,⇒,¬, and quantifiers ∀,∃.

Γ,A ` Aaxiom

Γ ` A Γ ` BΓ ` A ∧ B

∧ -iΓ ` A ∧ B

Γ ` A∧ -e1

Γ ` A ∧ BΓ ` B

∧ -e2

Γ,A ` B⇒-i

Γ ` A ⇒ BΓ ` A ⇒ B Γ ` A

⇒-eΓ ` B

Γ ` ∀xA [x]

Γ ` A [t]∀-e, any t

Γ ` A [x]

Γ ` ∀xA [x]∀-i, x free

Page 3: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo: allowed rewriting

I General form (free variables are possible):

l → r

I use: We replace t = σl by σr (unification). Rewriting could bedeep in the term.

I rewriting on terms:

x + S(y)→ S(x + y)

I and on propositions (predicate symbols):

x ∗ y = 0→ x = 0 ∨ y = 0

I advantage: expressivenessI we obtain a congruence modulo R (chosen set of rules): ≡

Page 4: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo: allowed rewriting

I General form (free variables are possible):

l → rI use: We replace t = σl by σr (unification). Rewriting could be

deep in the term.

I rewriting on terms:

x + S(y)→ S(x + y)

I and on propositions (predicate symbols):

x ∗ y = 0→ x = 0 ∨ y = 0

I advantage: expressivenessI we obtain a congruence modulo R (chosen set of rules): ≡

Page 5: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo: allowed rewriting

I General form (free variables are possible):

l → rI use: We replace t = σl by σr (unification). Rewriting could be

deep in the term.I rewriting on terms:

x + S(y)→ S(x + y)

I and on propositions (predicate symbols):

x ∗ y = 0→ x = 0 ∨ y = 0

I advantage: expressivenessI we obtain a congruence modulo R (chosen set of rules): ≡

Page 6: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo: allowed rewriting

I General form (free variables are possible):

l → rI use: We replace t = σl by σr (unification). Rewriting could be

deep in the term.I rewriting on terms:

x + S(y)→ S(x + y)

I and on propositions (predicate symbols):

x ∗ y = 0→ x = 0 ∨ y = 0

I advantage: expressiveness

I we obtain a congruence modulo R (chosen set of rules): ≡

Page 7: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo: allowed rewriting

I General form (free variables are possible):

l → rI use: We replace t = σl by σr (unification). Rewriting could be

deep in the term.I rewriting on terms:

x + S(y)→ S(x + y)

I and on propositions (predicate symbols):

x ∗ y = 0→ x = 0 ∨ y = 0

I advantage: expressivenessI we obtain a congruence modulo R (chosen set of rules): ≡

Page 8: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Natural deduction modulo - first presentation

Γ,A ` Aaxiom

Γ ` A Γ ` BΓ ` A ∧ B

∧ -iΓ ` A ∧ B

Γ ` A∧ -e1

Γ ` A ∧ BΓ ` B

∧ -e2

Γ,A ` B⇒-i

Γ ` A ⇒ BΓ ` A ⇒ B Γ ` A

⇒-eΓ ` B

Γ ` ∀xA [x]

Γ ` A [t]∀-e, any t

Γ ` A [x]

Γ ` ∀xA [x]∀-i, x free

I Add the following conversion rule

Γ ` A A ≡ BΓ ` B

Page 9: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Natural deduction modulo - first presentation

Γ,A ` Aaxiom

Γ ` A Γ ` BΓ ` A ∧ B

∧ -iΓ ` A ∧ B

Γ ` A∧ -e1

Γ ` A ∧ BΓ ` B

∧ -e2

Γ,A ` B⇒-i

Γ ` A ⇒ BΓ ` A ⇒ B Γ ` A

⇒-eΓ ` B

Γ ` ∀xA [x]

Γ ` A [t]∀-e, any t

Γ ` A [x]

Γ ` ∀xA [x]∀-i, x free

I Add the following conversion rule

Γ ` A A ≡ BΓ ` B

Page 10: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Natural deduction modulo, second version

Γ,A ` Baxiom, A ≡ B

Γ ` A Γ ` BΓ ` C

∧ -i, C ≡ A ∧ BΓ ` CΓ ` A

∧ -e1,C ≡ A ∧ BΓ ` CΓ ` B

∧ -e2,C ≡ A ∧ B

Γ,A ` B⇒-i, C ≡ A ∧ B

Γ ` CΓ ` C Γ ` A

⇒-e, C ≡ A ∧ BΓ ` B

Γ ` A [x]

Γ ` B∀-i, x free,B ≡ ∀xA [x]

Γ ` BΓ ` A [t]

∀-e, any t ,B ≡ ∀xA [x]

Page 11: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

∀xP(x) ` A ∧ B

Page 12: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

∀xP(x) ` A ∀xP(x) ` B∧-i

∀xP(x) ` A ∧ B

Page 13: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

∀xP(x) ` ∀xP(x)∀-e

∀xP(x) ` A∀xP(x) ` ∀xP(x)

∀-e∀xP(x) ` B

∧-r∀xP(x) ` A ∧ B

Page 14: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

∀xP(x) ` ∀xP(x)∀-e

∀xP(x) ` P(0)conv

∀xP(x) ` A

∀xP(x) ` ∀xP(x)∀-e

∀xP(x) ` P(1)conv

∀xP(x) ` B∧-r

∀xP(x) ` A ∧ B

Page 15: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

∀xP(x) ` ∀xP(x)∀-e

∀xP(x) ` A∀xP(x) ` ∀xP(x)

∀-e∀xP(x) ` B

∧-r∀xP(x) ` A ∧ B

Page 16: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Example: 3

I consider the rewriting system R:

P(0) → A

P(1) → B

axiom∀xP(x) ` ∀xP(x)

∀-e∀xP(x) ` A

axiom∀xP(x) ` ∀xP(x)

∀-e∀xP(x) ` B

∧-r∀xP(x) ` A ∧ B

Page 17: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A Cut: a detour

Γ ` AΓ,A ` B

⇒-iΓ ` A ⇒ B

⇒-eΓ ` B

I show Γ ` A and Γ,A ` BI then, you have showed Γ ` BI it is the application of a lemma.

Page 18: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A Cut: a detour

π1

Γ ` Aπ2

Γ ` B∧-i

Γ ` A ∧ B∧-e

Γ ` A

General pattern of a cut: an introduction rule, followed by anelimination on the same symbol.This is unnecessary, consider only π1.

π1

Γ ` A

Page 19: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A Cut: a detour

In deduction modulo:

θΓ ` A ′

πΓ,A ` B

⇒-i, C ≡ A ⇒ BΓ ` C

⇒-e, C ≡ A ′ ⇒ B′Γ ` B′

I need for cut elimination: the heart of logic.

I two main methods:I semantic: cut admissibility.I syntactic: proof normalization.

I indecidable, need for conditions on R.

Page 20: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A Cut: a detour

In deduction modulo:

θΓ ` A ′

πΓ,A ` B

⇒-i, C ≡ A ⇒ BΓ ` C

⇒-e, C ≡ A ′ ⇒ B′Γ ` B′

I need for cut elimination: the heart of logic.I two main methods:

I semantic: cut admissibility.I syntactic: proof normalization.

I indecidable, need for conditions on R.

Page 21: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A Cut: a detour

In deduction modulo:

θΓ ` A ′

πΓ,A ` B

⇒-i, C ≡ A ⇒ BΓ ` C

⇒-e, C ≡ A ′ ⇒ B′Γ ` B′

I need for cut elimination: the heart of logic.I two main methods:

I semantic: cut admissibility.I syntactic: proof normalization.

I indecidable, need for conditions on R.

Page 22: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

II – The semantic method

Page 23: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

The semantical method

Γ ` Asoundness

-

completenessΓ |= A

Γ `cf A

GentzenTait-Girard

Dowek-Werner... ?

Page 24: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

The semantical method

Γ ` Asoundness

- Γ |= A

Γ `cf A

GentzenTait-Girard

Dowek-Werner... ? strong completeness

Page 25: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Heyting algebras

I a universe Ω

I an order

I operations on it: lowest upper bound (join: ∪), greatest lowerbound (meet: ∩), arrow→ (more that lattice).

a ∩ b ≤ a a ∩ b ≤ b c ≤ a and c ≤ b implies c ≤ a ∩ b

a ≤ a ∪ b b ≤ a ∪ b a ≤ c and b ≤ c implies a ∪ b ≤ c

a ≤ b → c iff a ∩ b ≤ c

I like Boolean algebras, with weaker complement

Page 26: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Heyting algebras

I a universe Ω

I an orderI operations on it: lowest upper bound (join: ∪), greatest lower

bound (meet: ∩), arrow→ (more that lattice).

a ∩ b ≤ a a ∩ b ≤ b c ≤ a and c ≤ b implies c ≤ a ∩ b

a ≤ a ∪ b b ≤ a ∪ b a ≤ c and b ≤ c implies a ∪ b ≤ c

a ≤ b → c iff a ∩ b ≤ c

I like Boolean algebras, with weaker complement

Page 27: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

an example

I R and open sets (infinite g.l.b. is not infinite intersection)

I complement is weaker:

−∞¬A

[|0

]A

- ∞

Page 28: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

an example

I R and open sets (infinite g.l.b. is not infinite intersection)I complement is weaker:

−∞¬A

[|0

]A

- ∞

Page 29: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A modelI a domain D to interpret the first-order terms.I a Heyting algebra ΩI a interpretation function for each symbol:

f : Dn → D

P : Dm → Ω

I that we extend readily to all terms and all formulae and terms:

(x)∗φ := φ(x)

(f(t1, · · · , tn))∗φ := f(((t1)∗φ, · · · , (tn)∗φ))

(P(t1, · · · , tn))∗φ := P(((t1)∗φ, · · · , (tn)∗φ))

(A ∧ B)∗φ := (A)∗φ ∩ (B)∗φ

I degree of freedom: how to choose f and P.I in deduction modulo, additional condition:

A ≡R B implies A∗ = B∗

Page 30: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

A modelI a domain D to interpret the first-order terms.I a Heyting algebra ΩI a interpretation function for each symbol:

f : Dn → D

P : Dm → Ω

I that we extend readily to all terms and all formulae and terms:

(x)∗φ := φ(x)

(f(t1, · · · , tn))∗φ := f(((t1)∗φ, · · · , (tn)∗φ))

(P(t1, · · · , tn))∗φ := P(((t1)∗φ, · · · , (tn)∗φ))

(A ∧ B)∗φ := (A)∗φ ∩ (B)∗φ

I degree of freedom: how to choose f and P.I in deduction modulo, additional condition:

A ≡R B implies A∗ = B∗

Page 31: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cannonical model: Lindenbaum algebra

I defined for provabilityI elements of Ω: the equivalence class of formulae [A ].

[A ] := B | ` A ⇔ B

I order: [A ] ≤ [B] iff ` A ⇒ B is provableI meet: [A ] ∩ [B] iff [A ∧ B]

I and so on ... (domain D: open terms).I with this model, one proves completeness

Page 32: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cannonical model: Lindenbaum algebra

I defined for provabilityI elements of Ω: the equivalence class of formulae [A ].

[A ] := B | ` A ⇔ B

I order: [A ] ≤ [B] iff ` A ⇒ B is provableI meet: [A ] ∩ [B] iff [A ∧ B]

I and so on ... (domain D: open terms).I with this model, one proves completeness

Page 33: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cannonical model: Lindenbaum algebra

I defined for provability with cutsI elements of Ω: the equivalence class of formulae [A ].

[A ] := B | ` A ⇔ B

I “intersection”: [A ] ∩ [B] iff [A ∧ B]

I “order”: [A ] ≤ [B] iff ` A ⇒ BI and so on ... (domain D: open terms)I with this model, one proves completeness: cuts are needed

for transitivity of the order.

Page 34: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut-free cannonical model

I defined for provability without cutsI elements of Ω: the contexts proving A cut-free.

[A ] := Γ | Γ `∗ A

I the [A ] generate Ω with their (arbitrary) intersection andpseudo-union (l.u.b.):

a ∪ b =⋂[A ] | a ⊆ [A ] and b ⊆ [A ]

I order: a ≤ b iff a ⊆ bI and so on ...I with this model, one proves cut-free completeness.

Page 35: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo

I what about the domain ?I what about the validity of the rewrite rules ?

A ≡R B implies A∗ = B∗

Page 36: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Deduction modulo

I what about the domain: it depends on R (not always openterm).

I what about the validity of the rewrite rules: choose carefullythe interpretation of predicates and function symbols,depends on R.

Page 37: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

An example: Simple Theory of Types

I aka higher-order (intuitionistic) logic.I basic types o, ι, and arrow: o → o, o → ι, ...I constants of each typeI application (t u) and λ-abstraction or combinators: S,KI logical connectors: constants ∧ : o → o → o, ...I e.g. we can form the formula: ∀P.PI same deduction rules as NJ plus lambda-conversion.

Page 38: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI problem number one, circularity:

...` ∀.P(P ⇒ P)

` (P⇒ P)

I no more induction on the size of the formulae.I solution, same as Girard:

Define RA : quantify over all RB : Circular

Avoid circularity: define C a priori, quantify over C instead,Prove a posteriori that RB ∈ C.

I define “semantic candidates” [Okada] for (A)∗ withoutinduction:

α ∈ Ω | A ∈ α ⊆ [A ]

I then quantify over all truth-values candidates. Identifies whichof the α is (A)∗.

Page 39: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI problem number one, circularity:

...` ∀.P(P ⇒ P)

` (∀P.(P ⇒ P)⇒ ∀P.(P ⇒ P))I no more induction on the size of the formulae.

I solution, same as Girard:

Define RA : quantify over all RB : Circular

Avoid circularity: define C a priori, quantify over C instead,Prove a posteriori that RB ∈ C.

I define “semantic candidates” [Okada] for (A)∗ withoutinduction:

α ∈ Ω | A ∈ α ⊆ [A ]

I then quantify over all truth-values candidates. Identifies whichof the α is (A)∗.

Page 40: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI problem number one, circularity:

...` ∀.P(P ⇒ P)

` (∀P.(P ⇒ P)⇒ ∀P.(P ⇒ P))I no more induction on the size of the formulae.I solution, same as Girard:

Define RA : quantify over all RB : Circular

Avoid circularity: define C a priori, quantify over C instead,Prove a posteriori that RB ∈ C.

I define “semantic candidates” [Okada] for (A)∗ withoutinduction:

α ∈ Ω | A ∈ α ⊆ [A ]

I then quantify over all truth-values candidates. Identifies whichof the α is (A)∗.

Page 41: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI problem number one, circularity:

...` ∀.P(P ⇒ P)

` (∀P.(P ⇒ P)⇒ ∀P.(P ⇒ P))I no more induction on the size of the formulae.I solution, same as Girard:

Define RA : quantify over all RB : Circular

Avoid circularity: define C a priori, quantify over C instead,Prove a posteriori that RB ∈ C.

I define “semantic candidates” [Okada] for (A)∗ withoutinduction:

α ∈ Ω | A ∈ α ⊆ [A ]

I then quantify over all truth-values candidates. Identifies whichof the α is (A)∗.

Page 42: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI problem number one, circularity:

...` ∀.P(P ⇒ P)

` (∀P.(P ⇒ P)⇒ ∀P.(P ⇒ P))I no more induction on the size of the formulae.I solution, same as Girard:

Define RA : quantify over all RB : Circular

Avoid circularity: define C a priori, quantify over C instead,Prove a posteriori that RB ∈ C.

I define “semantic candidates” [Okada] for (A)∗ withoutinduction:

α ∈ Ω | A ∈ α ⊆ [A ]

I then quantify over all truth-values candidates. Identifies whichof the α is (A)∗.

Page 43: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:

P(A) A ⇔ BP(B)

I implicates: although semantic truth value of A is in Ω, itsdomain of interpretation should not be Ω.

I usual trick:I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 44: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:

P(A) A ⇔ BP(B)

I implicates: although semantic truth value of A is in Ω, itsdomain of interpretation should not be Ω.

I usual trick:I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 45: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:P(A) A ⇔ B

P(B)I implicates: although semantic truth value of A is in Ω, its

domain of interpretation should not be Ω.I usual trick:

α ∈ Ω | A ∈ α ⊆ [A ]

I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 46: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:P(A) A ⇔ B

P(B)I implicates: although semantic truth value of A is in Ω, its

domain of interpretation should not be Ω.I usual trick: pairing (V-complexes).

Do = 〈A , α〉 | A ∈ α ⊆ [A ]

I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 47: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:P(A) A ⇔ B

P(B)I implicates: although semantic truth value of A is in Ω, its

domain of interpretation should not be Ω.I usual trick: pairing (V-complexes).

Do = 〈A , α〉 | A ∈ α ⊆ [A ]

I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 48: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility in STTI Problem 2: logical intensionality. In STT, as in λProlog:

P(A ∧ A)= P(A)

No logical extensionality rule:P(A) A ⇔ B

P(B)I implicates: although semantic truth value of A is in Ω, its

domain of interpretation should not be Ω.I usual trick: pairing (V-complexes).

Do = 〈A , α〉 | A ∈ α ⊆ [A ]

I interpret everything within those domains, e.g.:

∧ := 〈∧, λ〈B , b〉.〈∧ · B , λ〈C , c〉.〈∧ · B · C , b ∩ c〉〉〉

I then, “extract” the truth value:

ω(A∗) = π2(A∗)

Page 49: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

STT in deduction moduloI same types, same symbols ∧, ∀, · · ·I application:

K · x · y → x

S · x · y · z → (xz)(yz)

I how to express ∀P.P in a first-order setting ?

I solution: embed P into ε(P), and define:

ε(∧ · A · B) → ε(A) ∧ ε(B)

ε(∀A) → ∀x.ε(Ax)

I duplication of “connectors”: ∧ (of the type hierarchy)connecting terms and ∧, connecting propositions.

I two “formulae”: P, a term, and ε(P), at the logical level.I ε is the only predicate symbol.I ε embeds in the syntax the ω is in the semantics: separates

truth value and propositional content.

Page 50: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

STT in deduction moduloI same types, same symbols ∧, ∀, · · ·I application:

K · x · y → x

S · x · y · z → (xz)(yz)

I how to express ∀P.P in a first-order setting ?I solution: embed P into ε(P), and define:

ε(∧ · A · B) → ε(A) ∧ ε(B)

ε(∀A) → ∀x.ε(Ax)

I duplication of “connectors”: ∧ (of the type hierarchy)connecting terms and ∧, connecting propositions.

I two “formulae”: P, a term, and ε(P), at the logical level.I ε is the only predicate symbol.I ε embeds in the syntax the ω is in the semantics: separates

truth value and propositional content.

Page 51: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

STT in deduction moduloI same types, same symbols ∧, ∀, · · ·I application:

K · x · y → x

S · x · y · z → (xz)(yz)

I how to express ∀P.P in a first-order setting ?I solution: embed P into ε(P), and define:

ε(∧ · A · B) → ε(A) ∧ ε(B)

ε(∀A) → ∀x.ε(Ax)

I duplication of “connectors”: ∧ (of the type hierarchy)connecting terms and ∧, connecting propositions.

I two “formulae”: P, a term, and ε(P), at the logical level.I ε is the only predicate symbol.

I ε embeds in the syntax the ω is in the semantics: separatestruth value and propositional content.

Page 52: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

STT in deduction moduloI same types, same symbols ∧, ∀, · · ·I application:

K · x · y → x

S · x · y · z → (xz)(yz)

I how to express ∀P.P in a first-order setting ?I solution: embed P into ε(P), and define:

ε(∧ · A · B) → ε(A) ∧ ε(B)

ε(∀A) → ∀x.ε(Ax)

I duplication of “connectors”: ∧ (of the type hierarchy)connecting terms and ∧, connecting propositions.

I two “formulae”: P, a term, and ε(P), at the logical level.I ε is the only predicate symbol.I ε embeds in the syntax the ω is in the semantics: separates

truth value and propositional content.

Page 53: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

III - Normalization

Page 54: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Curry-Howard correspondence

I Notation for proofs. Give a name to each of the hypothesis:

Γ = x1 : A1, . . . , xn : An

AxiomΓ, x : A ` x : A

Γ ` π : A ∧ B∧-e1

Γ ` fst(π) : A

Γ ` π1 : A Γ ` π2 : B∧-i

Γ ` 〈π1, π2〉 : A ∧ BΓ ` π : A ∧ B

∧-e2Γ ` snd(π) : A

Γ, x : A ` π : B⇒-i

Γ ` λx.π : A ⇒ BΓ ` π′ : A Γ ` π : A ⇒ B

Γ ` (ππ′) : B

I very similar to a type systemI in deduction modulo, rewrite rules are silent:

Γ ` π : A A ≡ BΓ ` π : B

Page 55: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Curry-Howard correspondence

I Notation for proofs. Give a name to each of the hypothesis:

Γ = x1 : A1, . . . , xn : An

AxiomΓ, x : A ` x : A

Γ ` π : A ∧ B∧-e1

Γ ` fst(π) : A

Γ ` π1 : A Γ ` π2 : B∧-i

Γ ` 〈π1, π2〉 : A ∧ BΓ ` π : A ∧ B

∧-e2Γ ` snd(π) : A

Γ, x : A ` π : B⇒-i

Γ ` λx.π : A ⇒ BΓ ` π′ : A Γ ` π : A ⇒ B

Γ ` (ππ′) : B

I very similar to a type system

I in deduction modulo, rewrite rules are silent:

Γ ` π : A A ≡ BΓ ` π : B

Page 56: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Curry-Howard correspondence

I Notation for proofs. Give a name to each of the hypothesis:

Γ = x1 : A1, . . . , xn : An

AxiomΓ, x : A ` x : A

Γ ` π : A ∧ B∧-e1

Γ ` fst(π) : A

Γ ` π1 : A Γ ` π2 : B∧-i

Γ ` 〈π1, π2〉 : A ∧ BΓ ` π : A ∧ B

∧-e2Γ ` snd(π) : A

Γ, x : A ` π : B⇒-i

Γ ` λx.π : A ⇒ BΓ ` π′ : A Γ ` π : A ⇒ B

Γ ` (ππ′) : B

I very similar to a type systemI in deduction modulo, rewrite rules are silent:

Γ ` π : A A ≡ BΓ ` π : B

Page 57: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut elimination with proof terms

I Cut elimination is a process, similar to function execution.

Γ ` π1 : A Γ ` π2 : B∧-i

Γ ` 〈π1, π2〉 : A ∧ B∧-e

Γ ` fst(〈π1, π2〉) : AB Γ ` π1 : A

Γ ` θ : AΓ, x : A ` π : B

⇒-iΓ ` λx.π : A ⇒ B

⇒-eΓ ` (λx.π)θ : B

B Γ ` θ/xπ : B

I showing that every proof normalizes: the cut eliminationprocess terminates.

Page 58: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut elimination with proof terms

I Cut elimination is a process, similar to function execution.

Γ ` π1 : A Γ ` π2 : B∧-i

Γ ` 〈π1, π2〉 : A ∧ B∧-e

Γ ` fst(〈π1, π2〉) : AB Γ ` π1 : A

Γ ` θ : AΓ, x : A ` π : B

⇒-iΓ ` λx.π : A ⇒ B

⇒-eΓ ` (λx.π)θ : B

B Γ ` θ/xπ : B

I showing that every proof normalizes: the cut eliminationprocess terminates.

Page 59: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Normalization [Dowek,Werner]

I deduction modulo is high-level: circularity hence reducibilitycandidates.

I A reducibility candidate: a set of normalizing proof terms (andother closure properties).

I to each formula A , associates a candidate ~A: this is aC-valued model (pre-model).

I in deduction modulo, if A ≡ B, additional constraint:

~A = ~B

I then prove the main theorem:

Theorem: if Γ ` π : A then for any ψ substitution, φ model assignment,θ environment (mapping α : B ∈ Γ to ~Aφ),we have θψπ ∈ ~Aφ

Page 60: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Normalization [Dowek,Werner]

I deduction modulo is high-level: circularity hence reducibilitycandidates.

I A reducibility candidate: a set of normalizing proof terms (andother closure properties).

I to each formula A , associates a candidate ~A: this is aC-valued model (pre-model).

I in deduction modulo, if A ≡ B, additional constraint:

~A = ~B

I then prove the main theorem:

Theorem: if Γ ` π : A then for any ψ substitution, φ model assignment,θ environment (mapping α : B ∈ Γ to ~Aφ),we have θψπ ∈ ~Aφ

Page 61: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Normalization [Dowek,Werner]

I deduction modulo is high-level: circularity hence reducibilitycandidates.

I A reducibility candidate: a set of normalizing proof terms (andother closure properties).

I to each formula A , associates a candidate ~A: this is aC-valued model (pre-model).

I in deduction modulo, if A ≡ B, additional constraint:

~A = ~B

I then prove the main theorem:

Theorem: if Γ ` π : A then for any ψ substitution, φ model assignment,θ environment (mapping α : B ∈ Γ to ~Aφ),we have θψπ ∈ ~Aφ

Page 62: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Normalization [Dowek,Werner]

I deduction modulo is high-level: circularity hence reducibilitycandidates.

I A reducibility candidate: a set of normalizing proof terms (andother closure properties).

I to each formula A , associates a candidate ~A: this is aC-valued model (pre-model).

I in deduction modulo, if A ≡ B, additional constraint:

~A = ~B

I then prove the main theorem:

Theorem: if Γ ` π : A then for any ψ substitution, φ model assignment,θ environment (mapping α : B ∈ Γ to ~Aφ),we have θψπ ∈ ~Aφ

Page 63: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Normalization [Dowek,Werner]

I deduction modulo is high-level: circularity hence reducibilitycandidates.

I A reducibility candidate: a set of normalizing proof terms (andother closure properties).

I to each formula A , associates a candidate ~A: this is aC-valued model (pre-model).

I in deduction modulo, if A ≡ B, additional constraint:

~A = ~B

I then prove the main theorem:

Theorem: if Γ ` π : A then for any ψ substitution, φ model assignment,θ environment (mapping α : B ∈ Γ to ~Aφ),we have θψπ ∈ ~Aφ

Page 64: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

IV – From Normalization to usual semantics

Page 65: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

I such methods are defined in deduction modulo (Heytingarithmetic, higher-order logic, Zermelo’s set theory, ...)

I the pre-model have a structure: pseudo Heyting algebras, ortruth value algebras (TVA) [Dowek].

Page 66: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

I such methods are defined in deduction modulo (Heytingarithmetic, higher-order logic, Zermelo’s set theory, ...)

I the pre-model have a structure: pseudo Heyting algebras, ortruth value algebras (TVA) [Dowek].

Page 67: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Heyting algebras

I a universe Ω

I an orderI operations on it: lowest upper bound (join: ∪), greatest lower

bound (meet: ∩ – intersection).

a ∩ b ≤ a a ∩ b ≤ b c ≤ a and c ≤ b implies c ≤ a ∩ b

a ≤ a ∪ b b ≤ a ∪ b a ≤ c and b ≤ c implies a ∪ b ≤ c

I like Boolean algebras, with weaker complement

Page 68: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

pseudo-Heyting algebras, aka Truth Values Algebras

I a universe Ω

I a pre-order: a ≤ b and b ≤ a with a , b possible.I operations on it: lowest upper bound (join: ∪ – pseudo union),

greatest lower bound (meet: ∩ – intersection).

a ∩ b ≤ a a ∩ b ≤ b c ≤ a and c ≤ b implies c ≤ a ∩ b

a ≤ a ∪ b b ≤ a ∪ b a ≤ c and b ≤ c implies a ∪ b ≤ c

Page 69: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Candidates form a pseudo-Heyting algebra

I > = ⊥ = SN

I ~A ∩ ~B = ~A ∧ BI and so on.I pre-order: trivial one.I But ~A ∧ A ≤≥ ~A only.I of course:

A ≡ B implies ~A = ~B

Page 70: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I the pre-model construction (domain, ...) does not depends onthe properties of C.

I consistency: there exists a model.

I super-consistency: for every TVA, there exists a model(interpretation): construction has to be uniform.

I condition in DM: A ≡ B implies ~A = ~B

I Super consistency implies cut elimination.

Page 71: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I the pre-model construction (domain, ...) does not depends onthe properties of C.

I consistency: there exists a model.I super-consistency: for every TVA, there exists a model

(interpretation): construction has to be uniform.I condition in DM: A ≡ B implies ~A = ~B

I Super consistency implies cut elimination.

Page 72: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I the pre-model construction (domain, ...) does not depends onthe properties of C.

I consistency: there exists a model.I super-consistency: for every TVA, there exists a model

(interpretation): construction has to be uniform.I condition in DM: A ≡ B implies ~A = ~BI Super consistency implies cut elimination.

Page 73: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I e.g. higher-order logic is super-consistent:

Mι = ι (dummy)

Mo = C

Mt→u = MMtu

I hence, it has a model in thepseudo-Heying Algebra of candidates

I Γ ` π : A implies π ∈ ~A.I the system enjoys proof normalization.

Page 74: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I e.g. higher-order logic is super-consistent:

Mι = ι (dummy)

Mo = C

Mt→u = MMtu

I hence, it has a model in thepseudo-Heying Algebra of candidates

I Γ ` π : A implies π ∈ ~A.I the system enjoys proof normalization.

Page 75: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Towards usual semantics

Γ ` Asoundness

- Γ |= A

Γ `cf A

GentzenTait-Girard

Dowek-Werner... ? strong completeness

Page 76: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I e.g. higher-order logic is super-consistent:

Mι = ι (dummy)

Mo = C

Mt→u = MMtu

I hence, it has a model in the pseudo-Heying Algebraof reducibility candidates

~A = π such that ...

I but, ~> ∧ ~> , ~>

Page 77: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Super consistency

I e.g. higher-order logic is super-consistent:

Mι = ι (dummy)

Mo = C

Mt→u = MMtu

I hence, it has a model in the pseudo-Heying Algebraof reducibility candidates

~A = π such that ...

I but, ~> ∧ ~> , ~>

Page 78: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Towards usual semantics

I How to transform a TVA into a Heyting algebra.I assume we have a modelM, ~ in the previous

pseudo-Heyting algebra of sequents.I first idea: pseudo-Heyting to Heyting by quotienting.

I trivial pseudo order implies > = ⊥.

Page 79: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Towards usual semantics

I How to transform a TVA into a Heyting algebra.I assume we have a modelM, ~ in the previous

pseudo-Heyting algebra of sequents.I first idea: pseudo-Heyting to Heyting by quotienting.I trivial pseudo order implies > = ⊥.

Page 80: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

The link: extract contexts

I Assumption: we have a pre-model (~Aφ, modelM defined).Set:

[A ]σφ = Γ | Γ ` π : σA , and for any environment θ, assignment ψ,

θψπ ∈ ~Aφ

I ~Aφ contains proof terms associated to ∆ ` π : B. Extractthe contexts corresponding to A .

I this forms a Heyting algebra ([A ]: basis)I interpretation of formulas in it:

A∗ = [A ]σφ

Page 81: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

The link: extract contexts

I Assumption: we have a pre-model (~Aφ, modelM defined).Set:

[A ]σφ = Γ | Γ ` π : σA , and for any environment θ, assignment ψ,

θψπ ∈ ~Aφ

I ~Aφ contains proof terms associated to ∆ ` π : B. Extractthe contexts corresponding to A .

I this forms a Heyting algebra ([A ]: basis)

I interpretation of formulas in it:

A∗ = [A ]σφ

Page 82: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

The link: extract contexts

I Assumption: we have a pre-model (~Aφ, modelM defined).Set:

[A ]σφ = Γ | Γ ` π : σA , and for any environment θ, assignment ψ,

θψπ ∈ ~Aφ

I ~Aφ contains proof terms associated to ∆ ` π : B. Extractthe contexts corresponding to A .

I this forms a Heyting algebra ([A ]: basis)I interpretation of formulas in it:

A∗ = [A ]σφ

Page 83: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Wait a minute !I interpretation ? [A ]σφ .

I Need for one single substitution. hybridization: σ × φ.

D = T ×M

I interpretation for symbols were, in C:

fM(d1, ..., dn) ∈ M PM(d1, ..., dn) ∈ C

I Now they are:

fD(〈t1, d1〉, ..., 〈tn, dn〉) = 〈f(t1, ..., tn), fM(d1, ..., dn)〉

PD(〈t1, d1〉, ..., 〈tn, dn〉) = [P](t1/x1,...,tn/xn)

(d1/x1,...,dn/xn)

= Γ | (Γ ` π : P(−→t )) ∈ ~P

(−→d /−→x )

I Holds for any theory in DM. extends the V-complexes.I pointwise application

〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (vv′)〉

instead of 〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (v(〈t ′, v′〉))〉

Page 84: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Wait a minute !I interpretation ? [A ]σφ .I Need for one single substitution. hybridization: σ × φ.

D = T ×M

I interpretation for symbols were, in C:

fM(d1, ..., dn) ∈ M PM(d1, ..., dn) ∈ C

I Now they are:

fD(〈t1, d1〉, ..., 〈tn, dn〉) = 〈f(t1, ..., tn), fM(d1, ..., dn)〉

PD(〈t1, d1〉, ..., 〈tn, dn〉) = [P](t1/x1,...,tn/xn)

(d1/x1,...,dn/xn)

= Γ | (Γ ` π : P(−→t )) ∈ ~P

(−→d /−→x )

I Holds for any theory in DM. extends the V-complexes.I pointwise application

〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (vv′)〉

instead of 〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (v(〈t ′, v′〉))〉

Page 85: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Wait a minute !I interpretation ? [A ]σφ .I Need for one single substitution. hybridization: σ × φ.

D = T ×M

I interpretation for symbols were, in C:

fM(d1, ..., dn) ∈ M PM(d1, ..., dn) ∈ C

I Now they are:

fD(〈t1, d1〉, ..., 〈tn, dn〉) = 〈f(t1, ..., tn), fM(d1, ..., dn)〉

PD(〈t1, d1〉, ..., 〈tn, dn〉) = [P](t1/x1,...,tn/xn)

(d1/x1,...,dn/xn)

= Γ | (Γ ` π : P(−→t )) ∈ ~P

(−→d /−→x )

I Holds for any theory in DM. extends the V-complexes.I pointwise application

〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (vv′)〉

instead of 〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (v(〈t ′, v′〉))〉

Page 86: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Wait a minute !I interpretation ? [A ]σφ .I Need for one single substitution. hybridization: σ × φ.

D = T ×M

I interpretation for symbols were, in C:

fM(d1, ..., dn) ∈ M PM(d1, ..., dn) ∈ C

I Now they are:

fD(〈t1, d1〉, ..., 〈tn, dn〉) = 〈f(t1, ..., tn), fM(d1, ..., dn)〉

PD(〈t1, d1〉, ..., 〈tn, dn〉) = [P](t1/x1,...,tn/xn)

(d1/x1,...,dn/xn)

= Γ | (Γ ` π : P(−→t )) ∈ ~P

(−→d /−→x )

I Holds for any theory in DM. extends the V-complexes.I pointwise application

〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (vv′)〉

instead of 〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (v(〈t ′, v′〉))〉

Page 87: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Wait a minute !I interpretation ? [A ]σφ .I Need for one single substitution. hybridization: σ × φ.

D = T ×M

I interpretation for symbols were, in C:

fM(d1, ..., dn) ∈ M PM(d1, ..., dn) ∈ C

I Now they are:

fD(〈t1, d1〉, ..., 〈tn, dn〉) = 〈f(t1, ..., tn), fM(d1, ..., dn)〉

PD(〈t1, d1〉, ..., 〈tn, dn〉) = [P](t1/x1,...,tn/xn)

(d1/x1,...,dn/xn)

= Γ | (Γ ` π : P(−→t )) ∈ ~P

(−→d /−→x )

I Holds for any theory in DM. extends the V-complexes.I pointwise application

〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (vv′)〉

instead of 〈t , v〉 〈t ′, v′〉 = 〈(tt ′), (v(〈t ′, v′〉))〉

Page 88: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

I Need to prove [A ∧ B] = [A ] ∩ [B] to have a modelinterpretation.Usually (semantic cut elim), only:

A ∧ B ∈ [A ] ∩ [B] ⊂ [A ∧ B]

I proof resembles the proof for normalization.

Page 89: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

I Need to prove [A ∧ B] = [A ] ∩ [B] to have a modelinterpretation.Usually (semantic cut elim), only:

A ∧ B ∈ [A ] ∩ [B] ⊂ [A ∧ B]

I proof resembles the proof for normalization.

Page 90: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility

Assume Γ ` A has a proof (with cuts)I [Γ] ≤ [A ] in D by (usual) soundnessI Γ ∈ [Γ]

I Γ ∈ [A ] implies Γ `cf AI Q.E.D.

I compared to the former main lemma: Γ ` π : A impliesπ ∈ ~A, and hence π is SN .

Page 91: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Cut admissibility

Assume Γ ` A has a proof (with cuts)I [Γ] ≤ [A ] in D by (usual) soundnessI Γ ∈ [Γ]

I Γ ∈ [A ] implies Γ `cf AI Q.E.D.I compared to the former main lemma: Γ ` π : A impliesπ ∈ ~A, and hence π is SN .

Page 92: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Γ ` Asoundness

- Γ |= A

Γ `cf A

GentzenTait-Girard

Dowek-Werner... ?

strong completeness

I This diagram does not commute in deduction modulo.

Page 93: From pre-models to models @let@token normalization by ...hermant/docs/PPS_0308.pdf · normalization by Heyting algebras ... Heyting algebras I a universe ... I with this model, one

Further work

I what is the computational content of this algorithm ?I there is normalization by evaluation work, but in a Kripke

style: links ?I do the proof terms (candidates) always have a “pseudo-”

structure ?I realizing rewrite rule not with λx.x (not silently), could recover

(some) normalization and make the previous diagramcommute again.

Γ ` π : A A ≡ BΓ ` π : B