Harrop: a new tool in the kitchen of intuitionistic logic Matteo - - PowerPoint PPT Presentation

harrop a new tool in the kitchen of intuitionistic logic
SMART_READER_LITE
LIVE PREVIEW

Harrop: a new tool in the kitchen of intuitionistic logic Matteo - - PowerPoint PPT Presentation

Harrop: a new tool in the kitchen of intuitionistic logic Matteo Manighetti 1 Andrea Condoluci 2 ESSLLI 2018 Student Session Sofia, August 16, 2018 1 INRIA Saclay & LIX, Ecole Polytechnique, France 2 DISI, Universit` a di Bologna, Italy


slide-1
SLIDE 1

Harrop: a new tool in the kitchen of intuitionistic logic

Matteo Manighetti 1 Andrea Condoluci 2 ESSLLI 2018 Student Session Sofia, August 16, 2018

1INRIA Saclay & LIX, ´

Ecole Polytechnique, France

2DISI, Universit`

a di Bologna, Italy

slide-2
SLIDE 2

Background: proof-theoretic kitchen

slide-3
SLIDE 3

Background: structural proof theory

What are we talking about?

  • Proof theory:
  • Given some ingredients (axioms) and tools (inference rules)
  • What can we cook (prove) in the proof system?

⊢ (A → B) → A → B

  • Structural proof theory: how do recipes look like?

A → B ⊢ A → B ⊢ (A → B) → A → B

1

slide-4
SLIDE 4

Backgound: natural deduction, intuitionistic propositional logic

Natural deduction: a very well known set of tools to cook proofs in intuitionistic propositional logic (IPC) They look like this: Γ ⊢ A Γ ⊢ B ∧-I: Γ ⊢ A ∧ B Γ ⊢ A ∧ B ∧-E Γ ⊢ A Γ ⊢ A ∨-I Γ ⊢ A ∨ B Γ ⊢ A ∨ B Γ, A ⊢ C Γ, B ⊢ C ∨-E Γ ⊢ C That is: pairs of introduction and elimination tools for each connective

2

slide-5
SLIDE 5

Background: proof reductions

A central notion in structural proof theory: proof reduction (aka “normalization”, “cut elimination”) Say we have a recipe ending with Π1 A ⊢ B →-I ⊢ A → B Π2 ⊢ A →-E ⊢ B There is a detour! Preparing A → B first is not necessary Π1 A ⊢ B ⊢ A → B Π2 ⊢ A ⊢ B

  • Π2

⊢ A Π1 ⊢ B

3

slide-6
SLIDE 6

Background: proof reductions

Why do we like Intuitionistic Logic?

  • Disjunction property: if ⊢ A ∨ B is provable, we know which
  • f the two is provable
  • Curry-Howard: proofs correspond to idealized functional

programs Why Natural Deduction?

  • Transform directly axioms in elimination rules
  • Easily get Curry-Howard terms

4

slide-7
SLIDE 7

Intro: Admissibility in propositional intuitionistic logic

slide-8
SLIDE 8

Basic definitions

Definition (Admissible and derivable rules) A rule A / B is admissible if whenever ⊢ A is provable, then ⊢ B is provable. It is derivable if ⊢ A → B is provable Definition (Structural completeness) A logic is structurally complete if all admissible rules are derivable So: an admissible rule is a tool we can actually do without If it is derivable: we can describe how to do without, with a recipe inside the logic! In a structurally complete logic: we always have recipes to explain how to avoid using admissible tools

5

slide-9
SLIDE 9

Basic definitions

Definition (Admissible and derivable rules) A rule A / B is admissible if whenever ⊢ A is provable, then ⊢ B is provable. It is derivable if ⊢ A → B is provable Definition (Structural completeness) A logic is structurally complete if all admissible rules are derivable Note Classical logic is structurally complete. Just think of truth tables! Technical remark Rules here refer just to formulas, not to Natural Deduction judgements! Thus: different from cut/weakening admissibility

5

slide-10
SLIDE 10

Basic definitions

Definition (Admissible and derivable rules) A rule A / B is admissible if whenever ⊢ A is provable, then ⊢ B is provable. It is derivable if ⊢ A → B is provable Definition (Structural completeness) A logic is structurally complete if all admissible rules are derivable Theorem (Harrop 1960) Intuitionistic propositional logic is not structurally complete Proof. Counterexample: ¬B → (A1 ∨ A2) / (¬B → A1) ∨ (¬B → A2) is admissible but not derivable We study: admissible but non-derivable “principles” (axioms/rules)

5

slide-11
SLIDE 11

A bit of history

  • Friedman (1975): Are the admissible rules of IPC countable?
  • Rybakov (1984) answered positively; De Jongh and Visser

conjectured a basis for them

  • Iemhoff (2001) proved the conjecture semantically
  • Less known: Rozi`

ere (1992) independently obtained the same result proof-theoretically

6

slide-12
SLIDE 12

Visser’s basis

Theorem (Iemhoff 2001, Rozi` ere 1992) All admissible and non derivable rules are obtained by the usual intuitionistic rules and the following rules Vn : (Bi → Ci)i=1...n → A1∨A2/                    n

j=1((Bi → Ci)i=1...n → Bj)

∨ ((Bi → Ci)i=1...n → A1) ∨ ((Bi → Ci)i=1...n → A2)

7

slide-13
SLIDE 13

Our plan: proof reductions and admissible rules

Problem Whenever we have a recipe for A, there is one for B. We can’t have a recipe for A → B How are the two recipes related? Looks like we miss some reductions! Idea

  • Allow admissible inferences in a Natural Deduction system
  • Add reduction rules to make these inferences disappear
  • . . . end up with the desired intuitionistic recipe!

8

slide-14
SLIDE 14

Adding tools to the intuitionistic kitchen

slide-15
SLIDE 15

Harrop’s rule and the Kreisel-Putnam logic

The most famous admissible principle of IPC: Harrop’s principle (¬B → (A1 ∨ A2)) → (¬B → A1) ∨ (¬B → A2) By adding it to IPC we obtain the Kreisel-Putnam logic KP It’s a particular case of V1, with ⊥ for C: V1 : ((B → C) → (A1∨A2)) → (((B → C) → A1)∨((B → C) → A2)) Trivia KP was the first non-intuitionistic logic to be shown to have the disjunction property

9

slide-16
SLIDE 16

Harrop’s rule and the Kreisel-Putnam logic

The most famous admissible principle of IPC: Harrop’s principle (¬B → (A1 ∨ A2)) → (¬B → A1) ∨ (¬B → A2) Transform it to a Natural Deduction rule (based on disjunction elimination) Γ, ¬B ⊢ A1 ∨ A2 Γ, ¬B → A1 ⊢ D Γ, ¬B → A2 ⊢ D D Ask a proof of the antecedent of Harrop, eliminate the conclusion

9

slide-17
SLIDE 17

Harrop’s rule and the Kreisel-Putnam logic

The most famous admissible principle of IPC: Harrop’s principle (¬B → (A1 ∨ A2)) → (¬B → A1) ∨ (¬B → A2) The final rule, together with a Curry-Howard term annotation: Γ, x : ¬B ⊢ t : A1 ∨ A2 Γ, y : ¬B → A1 ⊢ u1 : D Γ, y : ¬B → A2 ⊢ u2 : D Γ ⊢ hop[x.t | | y.u1 | y.u2] : D

9

slide-18
SLIDE 18

Harrop’s rule and the Kreisel-Putnam logic

Let’s turn to the reduction rules! In the Curry-Howard notation:

✞ ✝ ☎ ✆

  • Harrop-inj: hop[x.inji t |

| y.u1 | y.u2] → ✞ ✝ ☎ ✆ ui{λ

  • x. t/y}
  • Harrop-app: hop[x.efq [x t] |

| y.u1 | y.u2] → ui{(λx. efq x t)/y} Π Γ, ¬B ⊢ A1 ∨-I Γ, ¬B ⊢ A1 ∨ A2 Ξ1 Γ, ¬B → A1 ⊢ D Ξ2 Γ, ¬B → A2 ⊢ D Harrop: Γ ⊢ D . . . reduces to Π Γ, ¬B ⊢ Ai →-I Γ ⊢ ¬B → Ai Ξi Γ ⊢ D

10

slide-19
SLIDE 19

Harrop’s rule and the Kreisel-Putnam logic

Let’s turn to the reduction rules! In the Curry-Howard notation:

  • Harrop-inj: hop[x.inji t |

| y.u1 | y.u2] → ui{λ

  • x. t/y}

✞ ✝ ☎ ✆

  • Harrop-app: hop[x.efq [x t] |

| y.u1 | y.u2] → ✞ ✝ ☎ ✆ ui{(λx. efq x t)/y} Π Γ, ¬B ⊢ ⊥ efq Γ, ¬B ⊢ A1 ∨ A2 Ξ1 Γ, ¬B → A1 ⊢ D Ξ2 Γ, ¬B → A2 ⊢ D Harrop: Γ ⊢ D . . . reduces to Π Γ, ¬B ⊢ ⊥ efq Γ, ¬B ⊢ A1 →-I Γ ⊢ ¬B → A1 Ξ1 Γ ⊢ D

11

slide-20
SLIDE 20

Harrop’s rule and the Kreisel-Putnam logic

Definition (Normal form) A proof is in normal form if no reduction rule is applicable to it Definition (Strong Normalization) A proof system has the Strong Normalization property if all proofs reduce to a normal form, regardless of the strategy Theorem Our calculus for KP has the Strong Normalization property

12

slide-21
SLIDE 21

Harrop’s rule and the Kreisel-Putnam logic

Lemma (Classification) Let Γ¬ ⊢ t : τ for t in n.f. and t not an exfalso:

  • If τ = A → B, then t is an abstraction or a variable in Γ¬;
  • If τ = A ∨ B, then t is an injection;
  • If τ = A ∧ B, then t is a pair;
  • If τ = ⊥, then t = x v for some v and some x ∈ Γ¬;

Theorem (Disjunction property) If ⊢ t : A ∨ B, then there is t′ such that either ⊢ t′ : A or ⊢ t′ : B.

13

slide-22
SLIDE 22

Rozi` ere’s logic AD

What if we try to add the full V1 principle? Theorem (Rozi` ere, 1992) In the logic characterized by the axiom V1, all Vi are derivable and all admissible rules are derivable Rozi` ere called this logic AD and showed that it isn’t classical logic. However: Theorem (Iemhoff, 2001) The only logic with the disjunction property where all Vn are admissible is IPC

14

slide-23
SLIDE 23

Rozi` ere’s logic AD

We can as before provide a term assignment for AD:

Γ, x : B → C ⊢ t : A1 ∨ A2 Γ, y : (B → C) → A1 ⊢ u1 : D Γ, y : (B → C) → A2 ⊢ u2 : D Γ, z : (B → C) → B ⊢ v : D Γ ⊢ V1[x.t | | y.u1 | y.u2 | | z.v] : D Although it doesn’t have the disjunction property, AD seems an interesting and not well studied logic. Rozi` ere posed the problem of finding a functional interpretation for it; we go in this direction by providing a term assignment to proofs

15

slide-24
SLIDE 24

Conclusions

slide-25
SLIDE 25

Conclusions

  • Transformed admissible rules into natural deduction rules
  • Studied arising logics
  • Studied associated Curry-Howard calculus (in the paper)

16

slide-26
SLIDE 26

Conclusions

  • Transformed admissible rules into natural deduction rules
  • Studied arising logics
  • Studied associated Curry-Howard calculus (in the paper)

But hey! The resulting recipes are in KP, AD, . . . not IPC! Check out (soon):

M M and A C. “Admissible Tools in the Kitchen of Intuitionistic Logic”. In: 7th International Workshop on Classical Logic & Computation. 2018

Where we take a different road, sticking to IPC and characterizing all the Visser rule

16

slide-27
SLIDE 27

Conclusions

The logic based on admissible principles way:

  • More in-depth study of AD
  • Add new admissible principles

The admissibility way:

  • Port the system for Visser’s rules to other (modal) logics
  • Study admissible principles of intuitionistic arithmetic (HA)
  • . . . and admissible principles of first-order logic

17

slide-28
SLIDE 28

Thank you

17

slide-29
SLIDE 29

A Curry-Howard system for admissible rules

slide-30
SLIDE 30

Idea: explain Visser’s basis with Natural Deduction + Curry-Howard Advantages:

  • Axioms can be translated to rules right away
  • Simple way to assign lambda terms
  • Focus on reduction rules

The rule should have the shape of a disjunction elimination

slide-31
SLIDE 31

Natural deduction rules for Vn

Add to a Natural Deduction system a rule for each of the Vn:

∅, (Bi → Ci)i ⊢ A1 ∨ A2 Γ, (Bi → Ci)i → A1 ⊢ D Γ, (Bi → Ci)i → A2 ⊢ D [Γ, (Bi → Ci)i → Bj ⊢ D]j=1...n Γ ⊢ D

Idea: a disjunction elimination, parametrized over n implications Note The context of the main premise is empty. Otherwise we would be able to prove Vn!

slide-32
SLIDE 32

Term assignment

Usual terms for IPC, plus the new one for the V-rules t, u, v ::= x | u v | λx. t | efq t | < u, v> | proji t | inji t | case[t | | y.u | y.v] |

✞ ✝ ☎ ✆

Vn[ x.t | | y.u1 | y.u2 | | z. v] (Visser)

  • x : (Bi → Ci)i ⊢ t : A1 ∨ A2

Γ, y : (Bi → Ci)i → A1 ⊢ u1 : D Γ, y : (Bi → Ci)i → A2 ⊢ u2 : D [Γ, z : (Bi → Ci)i → Bj ⊢ vj : D]j=1...n Vn[ x.t | | y.u1 | y.u2 | | z. v] : D

slide-33
SLIDE 33

Reduction rules

Evaluation contexts for IPC: W ::= [·] | W t | t W | efq W | proji W | case[W | | − | −] Evaluation contexts for Vn: structural closure of the reduction rules The usual rules for IPC, plus:

  • Visser-inj: Vn[

x.inji t | | y.u1 | y.u2 | | z. v ] → ui{λ

  • x. t/y} (i = 1, 2)
  • Visser-app: Vn[

x.W [xj t] | | y.u1 | y.u2 | | z. v ] → vj{λ

  • x. t/z} (j = 1 . . . n)
slide-34
SLIDE 34

The reduction rules tell us:

  • One of the disjuncts is proved directly, or
  • A proof for an Bj was provided, to be used on a V-hypothesis

This provides a succint explanation of what admissible rules can do The context is empty, so all the hypotheses are Visser-hypotheses, and we can move the terms around Subject reduction and termination are easy results!

slide-35
SLIDE 35

Arithmetic

Theorem (De Jongh) The propositional formulas whose arithmetical instances are provable in HA are the theorems of IPC There is ongoing work to relate admissibility in IPC and HA through provability logics We believe our approach can be extended to such cases For example: the arithmetical Independence of premises (¬P → ∃x A(x)) → ∃x (¬P → A(x)) can be interpretated with a rule resembling ours

slide-36
SLIDE 36

First-order logic

The situation in first-order logic seems much more complicated However there are some well-behaved examples: Markov’s Principle; Constant Domains These principles give rise to the class of Herbrand-constructive logics (Aschieri & M.): whenever ∃x A(x) is provable, there are t1, . . . tn such that A(t1) ∨ . . . A(tn) is provable