58
. . Adjunction Based Categorical Logic Programming Ed Morehouse Wesleyan University March 30, 2012

Adjunction Based Categorical Logic Programming - Ed Morehouse

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Adjunction Based Categorical Logic Programming - Ed Morehouse

.

.Adjunction Based Categorical Logic Programming

Ed Morehouse

Wesleyan University

March 30, 2012

Page 2: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Outline

...1 A Brief History of Logic Programming

...2 Proof Search in Proof Theory

...3 Adjunctions in Categorical Proof Theory

...4 Connective Chirality and Search Strategy

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 3: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

...1 A Brief History of Logic Programming

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 4: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

In the beginning there was PROLOG

PROLOG has:

the logic of Horn clauses

operational semantics of resolution

denotational semantics based in model theory (classical logic)

Weaknesses:

to be practical, incorporates extra-logical features (e.g. assert/retract, cut)

not clear how to extend to other logics

ā€œlogic programming is logic plus controlā€ ā€“ Kowalski

How to get the logic to do more of the work?

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 5: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

In the beginning there was PROLOG

PROLOG has:

the logic of Horn clauses

operational semantics of resolution

denotational semantics based in model theory (classical logic)

Weaknesses:

to be practical, incorporates extra-logical features (e.g. assert/retract, cut)

not clear how to extend to other logics

ā€œlogic programming is logic plus controlā€ ā€“ Kowalski

How to get the logic to do more of the work?

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 6: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

In the beginning there was PROLOG

PROLOG has:

the logic of Horn clauses

operational semantics of resolution

denotational semantics based in model theory (classical logic)

Weaknesses:

to be practical, incorporates extra-logical features (e.g. assert/retract, cut)

not clear how to extend to other logics

ā€œlogic programming is logic plus controlā€ ā€“ Kowalski

How to get the logic to do more of the work?

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 7: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

The Miller Revolution

Dale Miller realized the connective of implication could interpret scoping andmodules [Mil89]:

The goal D āŠƒ G could mean, ā€œtry to satisfy the goal G in the current environmentaugmented by the local assumption Dā€.

But not classically:

G1āˆØ (DāŠƒG2) ā‰” G1āˆØĀ¬DāˆØG2 ā‰” (DāŠƒG1)āˆØG2 ā‰” (DāŠƒG1)āˆØ (DāŠƒG2)

Intuitionistic logic makes a natural choice.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 8: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

The Miller Revolution

Dale Miller realized the connective of implication could interpret scoping andmodules [Mil89]:

The goal D āŠƒ G could mean, ā€œtry to satisfy the goal G in the current environmentaugmented by the local assumption Dā€.

But not classically:

G1āˆØ (DāŠƒG2) ā‰” G1āˆØĀ¬DāˆØG2 ā‰” (DāŠƒG1)āˆØG2 ā‰” (DāŠƒG1)āˆØ (DāŠƒG2)

Intuitionistic logic makes a natural choice.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 9: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Abstract Logic Programming Languages

Miller et al [Mil+91] proposed an operational semantics for goal-directed proofsearch in intuitionistic logic by taking inversions of natural deduction introductionrules (sequent right rules) as search instructions (āŠ¢ ):

SUCCESS : Ī“ āŠ¢ āŠ¤ alwaysFAILURE : Ī“ āŠ¢ āŠ„ never

BOTH : Ī“ āŠ¢ A āˆ§ B only if Ī“ āŠ¢ A and Ī“ āŠ¢ BEITHER : Ī“ āŠ¢ A āˆØ B only if Ī“ āŠ¢ A or Ī“ āŠ¢ B

AUGMENT : Ī“ āŠ¢ A āŠƒ B only if Ī“ , A āŠ¢ BGENERIC : Ī“ āŠ¢ āˆ€š‘„ āˆ¶ X . A only if Ī“ āŠ¢ A [š‘„ā†¦š‘’] for š‘’ āˆ‰ FV(Ī“ , A)

INSTANCE : Ī“ āŠ¢ āˆƒš‘„ āˆ¶ X . A only if Ī“ āŠ¢ A [š‘„ā†¦š‘”] for some š‘” āˆ¶ X

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 10: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Abstract Logic Programming Languages

Miller et al [Mil+91] proposed an operational semantics for goal-directed proofsearch in intuitionistic logic by taking inversions of natural deduction introductionrules (sequent right rules) as search instructions (āŠ¢ ):

Easy to understand and implementNot complete (eg: A āˆØ B āŠ¬ A āˆØ B)They then investigated fragments of intuitionistic logics for which it is complete,calling them ā€œabstract logic programming languagesā€.The largest such fragment they identified, ā€œhereditarily Harrop logicā€, is insome sense maximal (via interpolation) [Har94].Not a complete specification: what to do with atomic goals?A natural goal-directed choice is backward-chaining ā€“ cf. Coqā€™s apply tactic

These ideas led to the development of Ī»-PROLOG.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 11: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

...2 Proof Search in Proof Theory

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 12: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Proof Theory and Proof Search

Proof search in proof theory is an active field, with surprisingly little interaction withlogic programming.

A common approach: invent clever (often complicated) sequent calculi withstructural properties that facilitate proof search (eg: contraction-free [Dyc92],permutation-free [DP96], focused [How98] [Sim12] ).

Unfortunately, all that cleverness tends to make them difficult to reason about

Being ā€œfar fromā€ natural deduction, it can be non-trivial to show equivalence,cut-admissibility; to add proof terms, etc.

But this work need be done only once, so this approach is certainly workable(cf. Coqā€™s firstorder tactic)

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 13: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Proof Theory and Proof Search

Proof search in proof theory is an active field, with surprisingly little interaction withlogic programming.

A common approach: invent clever (often complicated) sequent calculi withstructural properties that facilitate proof search (eg: contraction-free [Dyc92],permutation-free [DP96], focused [How98] [Sim12] ).

Unfortunately, all that cleverness tends to make them difficult to reason about

Being ā€œfar fromā€ natural deduction, it can be non-trivial to show equivalence,cut-admissibility; to add proof terms, etc.

But this work need be done only once, so this approach is certainly workable(cf. Coqā€™s firstorder tactic)

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 14: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Search Strategies in Sequent Calculi

A different approach: stick with a simple sequent calculus ā€œclose toā€ naturaldeduction and add a layer of search strategy on top.

This approach can describe Millerā€™s uniform proof(goal-directed strategy),Simmonsā€™ structural focalization (via erasure), potentially others.

We investigate this approach in a categorical setting.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 15: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Why Categorical Proof Theory?

Advantages of categorical proof theory:

Categorical logic / type theory a very active field, with many powerful toolsfrom category theory proper

Allows us to choose how much syntax we care about (eg: ā€œprojections insteadof variablesā€ (open-Ī±-equivalence) [AM89], normal proof-term equivalence(Ī²Ī·-equivalence) [Law69] [See83], proof-term rewriting [Gha95] [Gar09] )

Structural properties can be built-in (eg: interpreting contexts as cartesianproducts realize weakening as projection and contraction as internal diagonal)

Mostly does away with distinction between natural deduction and sequentcalculus (N.D. derivations and S.C. proofs are just arrows)

Uniform treatment of semantics: build a generic model in the classifyingcategory of a logic, then models are simply functors [LS86]

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 16: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

...3 Adjunctions in Categorical Proof Theory

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 17: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Adjointness in Foundations

Each connective of first-order intuitionistic logic is determined by an adjunction(thanks Bill Lawvere! [Law69])

It turns out that this fact alone is enough to ensure many good properties of thelogic:

harmony (local soundness and completeness)

permutation conversions of āŠ„ , āˆØ , āˆƒnormalizability of natural deduction derivations (thanks Dag Prawitz! [Pra65])

sequent cut elimination

etc. (?)

Most inference rules and properties of first-order intuitionistic natural deduction andsequent calculus arise uniformly from the adjoint formulations of the connectives.So we can generate proof theory from category theory.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 18: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Adjointness in Foundations

Each connective of first-order intuitionistic logic is determined by an adjunction(thanks Bill Lawvere! [Law69])

It turns out that this fact alone is enough to ensure many good properties of thelogic:

harmony (local soundness and completeness)

permutation conversions of āŠ„ , āˆØ , āˆƒnormalizability of natural deduction derivations (thanks Dag Prawitz! [Pra65])

sequent cut elimination

etc. (?)

Most inference rules and properties of first-order intuitionistic natural deduction andsequent calculus arise uniformly from the adjoint formulations of the connectives.So we can generate proof theory from category theory.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 19: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Example Right Connective

Conjunction isan introduction and two elimination inference rules:

A BA āˆ§ B āˆ§+ A āˆ§ B

A āˆ§āˆ’ A āˆ§ BB āˆ§āˆ’

which are harmonious:

š’Ÿ š’Ÿ

āˆ§ āˆ§āˆ§

āŸ¹āˆ§

š’Ÿ

ā„°āˆ§ āŸ¹āˆ§

ā„°āˆ§ āˆ§

ā„°āˆ§ āˆ§

āˆ§ āˆ§

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 20: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Example Right Connective

Conjunction isa cartesian product, i.e. the right adjoint to a diagonal functor (āˆ† āŠ£ āˆ§):

Ī“ āˆ§ Ī“š’Ÿ āˆ§š’Ÿ

%%KKKKK

KKKKKK

KKKKK

Prop āˆ¶ Ī“ āŸØš’Ÿ ,š’Ÿ āŸ©//

āˆ†( )

OO

A āˆ§ B

Prop Ɨ Prop āˆ¶ āˆ†Ī“ (š’Ÿ ,š’Ÿ ) //

āˆ†āŸØš’Ÿ ,š’Ÿ āŸ©%%KK

KKKK

KKKK

KKKK

KK(A , B)

ā‡‘

āˆ†(A āˆ§ B)

( , )( , )

OO

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 21: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Introduction Rule

In the syntax of derivations, this tells us that there is a natural bijection:

āˆ†Ī“š’Ÿ

(A , B)ā™­

āŸ¼Ī“

āˆ†Ī“š’Ÿ

(A , B)āˆ§(A , B)

The natural isomophism āˆ’ā™­ is interchangable for āˆ§+By being a natural isomorphism, it is automatically invertible

The rule determines an arrow from the major premise to the conclusion ofthe rule in one category (Prop) from an arrow (derivation) determined by theminor premise in another category (Prop Ɨ Prop).

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 22: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Introduction Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Ī“š’ŸA

Ī“š’ŸB

ā™­āŸ¼

Ī“

Ī“š’ŸA

Ī“š’ŸB

A āˆ§ B āˆ§+āˆ—

The natural isomophism āˆ’ā™­ is interchangable for āˆ§+By being a natural isomorphism, it is automatically invertible

The rule determines an arrow from the major premise to the conclusion ofthe rule in one category (Prop) from an arrow (derivation) determined by theminor premise in another category (Prop Ɨ Prop).

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 23: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Introduction Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Ī“š’ŸA

Ī“š’ŸB

ā™­āŸ¼

Ī“

Ī“š’ŸA

Ī“š’ŸB

A āˆ§ B āˆ§+āˆ—

The natural isomophism āˆ’ā™­ is interchangable for āˆ§+By being a natural isomorphism, it is automatically invertible

The rule determines an arrow from the major premise to the conclusion ofthe rule in one category (Prop) from an arrow (derivation) determined by theminor premise in another category (Prop Ɨ Prop).

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 24: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

The counit of the adjunction Īµ is the ordered pair of projections inProp Ɨ Prop:

A B āŸ¼A āˆ§ BA š‘“š‘ š‘” A āˆ§ B

B š‘ š‘›š‘‘

This is exactly the ordered pair of elimination rules for āˆ§.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 25: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

The counit of the adjunction Īµ is the ordered pair of projections inProp Ɨ Prop:

A B āŸ¼A āˆ§ BA āˆ§āˆ’ A āˆ§ B

B āˆ§āˆ’

This is exactly the ordered pair of elimination rules for āˆ§.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 26: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Local Soundness

We can now see how the local reduction (in Prop Ɨ Prop !):

š’Ÿ š’Ÿ

āˆ§ āˆ§ āˆ—

āˆ§

š’Ÿ š’Ÿ

āˆ§ āˆ§ āˆ—

āˆ§āŸ¹āˆ§

š’Ÿ š’Ÿ

is natural deduction notation for:

āˆ†((š’Ÿ , š’Ÿ )ā™­) ā‹… Īµ(A , B) = (š’Ÿ , š’Ÿ )

This is the universal property of the counit.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 27: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Local Soundness

We can now see how the local reduction (in Prop Ɨ Prop !):

š’Ÿ š’Ÿ

āˆ§ āˆ§ āˆ—

āˆ§

š’Ÿ š’Ÿ

āˆ§ āˆ§ āˆ—

āˆ§āŸ¹āˆ§

š’Ÿ š’Ÿ

is natural deduction notation for:

āˆ†((š’Ÿ , š’Ÿ )ā™­) ā‹… Īµ(A , B) = (š’Ÿ , š’Ÿ )

This is the universal property of the counit.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 28: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Local Completeness

Similarly, the local expansion:

ā„°āˆ§ āŸ¹āˆ§

ā„°āˆ§ āˆ§

ā„°āˆ§ āˆ§

āˆ§ āˆ§ āˆ—

is natural deduction notation for:

ā„° = (ā„°ā™Æ)ā™­ ( )ā™­

= (āˆ†ā„° ā‹… Īµ(Ī‘ , Ī’))ā™­

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 29: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Natural Deduction for Right Connectives

Pleasingly, the same relationship holds for all the connectives defined by rightadjoint functors (āŠ¤ , āˆ§ , āŠƒ , āˆ€1). We call them right connectives.

introduction rule corresponds to taking the adjoint complement āˆ’ā™­

elimination rule corresponds to composing the component of the counit Īµlocal reduction corresponds to taking the shortcut Ī²local expansion corresponds to conjugating āˆ’ā™Æ with Ī²

1almostEd Morehouse Adjunction Based Categorical Logic Programming

Page 30: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Natural Deduction for Left Connectives

The situation for connectives defined by left adjoint functors (āŠ„ , āˆØ , āˆƒ), leftconnectives, is nearly dual but there is a complication:

Intuitionistic derivations are asymmetrical : they must have a single conclusion butmay have multiple premisses.

Because the natural bijections of left connectives are determined by ā€œarrows out ofā€rather than ā€œarrows intoā€ them, it is necessary to ensure that their elimination rulesare compatible with contexts.

This requires satisfying the distributive law and Frobenius reciprocity :

Ī“ , A āˆØ B ā‰” (Ī“ āˆ§ A) āˆØ (Ī“ āˆ§ B) Ī“ , āˆƒš‘„ . A ā‰” āˆƒš‘„ . Ī“ āˆ§ A

Categorically, we get this for free in BCCC (categry of (small) bicartesian closedcategories and functors) ā€“ Thanks Nobuo Yoneda!

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 31: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Natural Deduction for Left Connectives

The situation for connectives defined by left adjoint functors (āŠ„ , āˆØ , āˆƒ), leftconnectives, is nearly dual but there is a complication:

Intuitionistic derivations are asymmetrical : they must have a single conclusion butmay have multiple premisses.

Because the natural bijections of left connectives are determined by ā€œarrows out ofā€rather than ā€œarrows intoā€ them, it is necessary to ensure that their elimination rulesare compatible with contexts.

This requires satisfying the distributive law and Frobenius reciprocity :

Ī“ , A āˆØ B ā‰” (Ī“ āˆ§ A) āˆØ (Ī“ āˆ§ B) Ī“ , āˆƒš‘„ . A ā‰” āˆƒš‘„ . Ī“ āˆ§ A

Categorically, we get this for free in BCCC (categry of (small) bicartesian closedcategories and functors) ā€“ Thanks Nobuo Yoneda!

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 32: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Natural Deduction for Left Connectives

The situation for connectives defined by left adjoint functors (āŠ„ , āˆØ , āˆƒ), leftconnectives, is nearly dual but there is a complication:

Intuitionistic derivations are asymmetrical : they must have a single conclusion butmay have multiple premisses.

Because the natural bijections of left connectives are determined by ā€œarrows out ofā€rather than ā€œarrows intoā€ them, it is necessary to ensure that their elimination rulesare compatible with contexts.

This requires satisfying the distributive law and Frobenius reciprocity :

Ī“ , A āˆØ B ā‰” (Ī“ āˆ§ A) āˆØ (Ī“ āˆ§ B) Ī“ , āˆƒš‘„ . A ā‰” āˆƒš‘„ . Ī“ āˆ§ A

Categorically, we get this for free in BCCC (categry of (small) bicartesian closedcategories and functors) ā€“ Thanks Nobuo Yoneda!

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 33: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Natural Deduction for Left Connectives

The situation for connectives defined by left adjoint functors (āŠ„ , āˆØ , āˆƒ), leftconnectives, is nearly dual but there is a complication:

Intuitionistic derivations are asymmetrical : they must have a single conclusion butmay have multiple premisses.

Because the natural bijections of left connectives are determined by ā€œarrows out ofā€rather than ā€œarrows intoā€ them, it is necessary to ensure that their elimination rulesare compatible with contexts.

This requires satisfying the distributive law and Frobenius reciprocity :

Ī“ , A āˆØ B ā‰” (Ī“ āˆ§ A) āˆØ (Ī“ āˆ§ B) Ī“ , āˆƒš‘„ . A ā‰” āˆƒš‘„ . Ī“ āˆ§ A

Categorically, we get this for free in BCCC (categry of (small) bicartesian closedcategories and functors) ā€“ Thanks Nobuo Yoneda!

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 34: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Example Left Connective

Existential quantification isa pair of inference rules:

š‘” āˆ¶ X A[š‘„ā†¦š‘”]āˆƒš‘„ āˆ¶ X . A āˆƒ+ āˆƒš‘„ āˆ¶ X . A

[š‘’ āˆ¶ X] [A[š‘„ā†¦š‘’]]š’ŸB

B āˆƒāˆ’

š‘’ may not occur outside of š’Ÿ or in any open premise

which satisfy:local soundnesslocal completenesspermutation conversion

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 35: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Example Left Connective

Existential quantification isin a hyperdoctrine, the left adjoint to a typing-context weakening (āˆƒļæ½ļæ½ āŠ£ ļæ½ļæ½āˆ—):

ļæ½ļæ½āˆ—(āˆƒš‘„ āˆ¶ X . A)

āˆ—( š’Ÿ)

''OOOOO

OOOOOO

OOOOOO

OO

ā‡“Prop(Ī¦ , š‘„ āˆ¶ X) āˆ¶ A š’Ÿ

//

( )

OO

ļæ½ļæ½āˆ—B

Prop(Ī¦) āˆ¶ āˆƒš‘„ āˆ¶ X . A š’Ÿ //

āˆƒ āˆ¶ .š’Ÿ''OO

OOOOOO

OOOOOO

OOOOO

B

āˆƒš‘„ āˆ¶ X . ļæ½ļæ½āˆ—B

( )

OO

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 36: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Aš’Ÿ

ļæ½ļæ½āˆ—(B)ā™Æ

āŸ¼āˆƒļæ½ļæ½(A)

Aš’Ÿ

ļæ½ļæ½āˆ—(B)B

But this is not interchangeable for āˆƒāˆ’. The problem is that there is in general anambient logical context, Ī“, that may be used in both branches. Given:

ā„° āˆ¶ Prop(Ī¦) (Ī“ ā†’ āˆƒš‘„ āˆ¶ X . A) š’Ÿ āˆ¶ Prop(Ī¦ , š‘„ āˆ¶ X) (ļæ½ļæ½āˆ—Ī“ āˆ§ A ā†’ ļæ½ļæ½āˆ—(B))we get the rule we want if we can fill the gap š‘“:

Ī“ āŸØ ,ā„°āŸ© // Ī“ āˆ§ āˆƒš‘„ āˆ¶ X . A //______ āˆƒš‘„ āˆ¶ X . (ļæ½ļæ½āˆ—Ī“ āˆ§ A) š’Ÿā™Æ// B

This is just Frobenius reciprocity (context distributivity for āˆƒ).Ed Morehouse Adjunction Based Categorical Logic Programming

Page 37: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Aš’ŸB

ā™ÆāŸ¼

āˆƒš‘„ āˆ¶ X . A

Aš’ŸB

B āˆƒāˆ’āˆ—

But this is not interchangeable for āˆƒāˆ’. The problem is that there is in general anambient logical context, Ī“, that may be used in both branches. Given:

ā„° āˆ¶ Prop(Ī¦) (Ī“ ā†’ āˆƒš‘„ āˆ¶ X . A) š’Ÿ āˆ¶ Prop(Ī¦ , š‘„ āˆ¶ X) (ļæ½ļæ½āˆ—Ī“ āˆ§ A ā†’ ļæ½ļæ½āˆ—(B))we get the rule we want if we can fill the gap š‘“:

Ī“ āŸØ ,ā„°āŸ© // Ī“ āˆ§ āˆƒš‘„ āˆ¶ X . A //______ āˆƒš‘„ āˆ¶ X . (ļæ½ļæ½āˆ—Ī“ āˆ§ A) š’Ÿā™Æ// B

This is just Frobenius reciprocity (context distributivity for āˆƒ).Ed Morehouse Adjunction Based Categorical Logic Programming

Page 38: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Aš’ŸB

ā™ÆāŸ¼

āˆƒš‘„ āˆ¶ X . A

Aš’ŸB

B āˆƒāˆ’āˆ—

But this is not interchangeable for āˆƒāˆ’. The problem is that there is in general anambient logical context, Ī“, that may be used in both branches. Given:

ā„° āˆ¶ Prop(Ī¦) (Ī“ ā†’ āˆƒš‘„ āˆ¶ X . A) š’Ÿ āˆ¶ Prop(Ī¦ , š‘„ āˆ¶ X) (ļæ½ļæ½āˆ—Ī“ āˆ§ A ā†’ ļæ½ļæ½āˆ—(B))we get the rule we want if we can fill the gap š‘“:

Ī“ āŸØ ,ā„°āŸ© // Ī“ āˆ§ āˆƒš‘„ āˆ¶ X . A //______ āˆƒš‘„ āˆ¶ X . (ļæ½ļæ½āˆ—Ī“ āˆ§ A) š’Ÿā™Æ// B

This is just Frobenius reciprocity (context distributivity for āˆƒ).Ed Morehouse Adjunction Based Categorical Logic Programming

Page 39: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Aš’ŸB

ā™ÆāŸ¼

āˆƒš‘„ āˆ¶ X . A

Aš’ŸB

B āˆƒāˆ’āˆ—

But this is not interchangeable for āˆƒāˆ’. The problem is that there is in general anambient logical context, Ī“, that may be used in both branches. Given:

ā„° āˆ¶ Prop(Ī¦) (Ī“ ā†’ āˆƒš‘„ āˆ¶ X . A) š’Ÿ āˆ¶ Prop(Ī¦ , š‘„ āˆ¶ X) (ļæ½ļæ½āˆ—Ī“ āˆ§ A ā†’ ļæ½ļæ½āˆ—(B))we get the rule we want if we can fill the gap š‘“:

Ī“ āŸØ ,ā„°āŸ© // Ī“ āˆ§ āˆƒš‘„ āˆ¶ X . A //______ āˆƒš‘„ āˆ¶ X . (ļæ½ļæ½āˆ—Ī“ āˆ§ A) š’Ÿā™Æ// B

This is just Frobenius reciprocity (context distributivity for āˆƒ).Ed Morehouse Adjunction Based Categorical Logic Programming

Page 40: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Elimination Rule

In the syntax of derivations, this tells us that there is a natural bijection:

Aš’ŸB

ā™ÆāŸ¼

āˆƒš‘„ āˆ¶ X . A

Aš’ŸB

B āˆƒāˆ’āˆ—

But this is not interchangeable for āˆƒāˆ’. The problem is that there is in general anambient logical context, Ī“, that may be used in both branches. Given:

ā„° āˆ¶ Prop(Ī¦) (Ī“ ā†’ āˆƒš‘„ āˆ¶ X . A) š’Ÿ āˆ¶ Prop(Ī¦ , š‘„ āˆ¶ X) (ļæ½ļæ½āˆ—Ī“ āˆ§ A ā†’ ļæ½ļæ½āˆ—(B))we get the rule we want if we can fill the gap š‘“:

Ī“ āŸØ ,ā„°āŸ© // Ī“ āˆ§ āˆƒš‘„ āˆ¶ X . A //______ āˆƒš‘„ āˆ¶ X . (ļæ½ļæ½āˆ—Ī“ āˆ§ A) š’Ÿā™Æ// B

This is just Frobenius reciprocity (context distributivity for āˆƒ).Ed Morehouse Adjunction Based Categorical Logic Programming

Page 41: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Introduction Rule

The unit of the adjunction Ī·:

A āŸ¼A

ļæ½ļæ½āˆ—(āˆƒš‘„ āˆ¶ X . A) āˆƒ+āˆ—

Also not interchangeable for āˆƒ+: lives in the wrong category (Prop(Ī¦ , š‘„ āˆ¶ X)).But it can be reindexed along any term-in-context Ī¦ āŠ¢ š‘” āˆ¶ X

āˆƒ āˆ¶ . āˆ—(āˆƒ āˆ¶ . ) āˆƒ āˆ¶ .

( )

OO

[ ā†¦ ]

āˆ—( ( ))

OO

, āˆ¶oo oojj

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 42: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Introduction Rule

The unit of the adjunction Ī·:

A āŸ¼A

ļæ½ļæ½āˆ—(āˆƒš‘„ āˆ¶ X . A) āˆƒ+āˆ—

Also not interchangeable for āˆƒ+: lives in the wrong category (Prop(Ī¦ , š‘„ āˆ¶ X)).But it can be reindexed along any term-in-context Ī¦ āŠ¢ š‘” āˆ¶ X

āˆƒ āˆ¶ . āˆ—(āˆƒ āˆ¶ . ) āˆƒ āˆ¶ .

( )

OO

[ ā†¦ ]

āˆ—( ( ))

OO

, āˆ¶oo oojj

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 43: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Permutation Conversion

Local reductions and expansions are pretty straightforward.

We point out the permutation conversion required for the proof ofnormalizability:

āˆƒ āˆ¶ .

[ ]š’Ÿ āˆ— āˆƒ

ā„°āŸ¹āˆƒ

āˆƒ āˆ¶ .

[ ]š’Ÿ āˆ— āˆ—ā„° āˆ—

āˆƒ

Categorically, this is the forward direction of:

š’Ÿā™Æ ā‹… ā„° = (š’Ÿ ā‹… ļæ½ļæ½āˆ—(ā„°))ā™Æ

which is a direct consequence of the nautrality of the bijection of theadjunction.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 44: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Deriving the Permutation Conversion

Local reductions and expansions are pretty straightforward.

We point out the permutation conversion required for the proof ofnormalizability:

āˆƒ āˆ¶ .

[ ]š’Ÿ āˆ— āˆƒ

ā„°āŸ¹āˆƒ

āˆƒ āˆ¶ .

[ ]š’Ÿ āˆ— āˆ—ā„° āˆ—

āˆƒ

Categorically, this is the forward direction of:

š’Ÿā™Æ ā‹… ā„° = (š’Ÿ ā‹… ļæ½ļæ½āˆ—(ā„°))ā™Æ

which is a direct consequence of the nautrality of the bijection of theadjunction.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 45: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Categorical Sequent Calculus

These ideas extend directly to sequent calculi ā€œclose toā€ natural deduction.

We have used this to give categorical operational interpretation to Millerā€™sconnectives as search instructions.

Points to note:

Right rules of right connectives and left rules of left connectives (ā€œeigenrulesā€)take adjoint complements, (modulo left context distribution) so are invertible

Most ā€œanderrulesā€ compose a (co)unit, those for the quantifiers allow us todelay the choice of instantiating term (cf: Coqā€™s ā€œeā€-tactics)

Left rule for āŠƒ a bit different (incorporates a built-in cut), restricting this leads tovarious (partial) proof search strategies (eg: backward and forward chaining)

Free hyperdoctrine (indexed bicartesian closed category) provides acategorical generic model for proof search

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 46: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Categorical Sequent Calculus

These ideas extend directly to sequent calculi ā€œclose toā€ natural deduction.

We have used this to give categorical operational interpretation to Millerā€™sconnectives as search instructions.

Points to note:

Right rules of right connectives and left rules of left connectives (ā€œeigenrulesā€)take adjoint complements, (modulo left context distribution) so are invertible

Most ā€œanderrulesā€ compose a (co)unit, those for the quantifiers allow us todelay the choice of instantiating term (cf: Coqā€™s ā€œeā€-tactics)

Left rule for āŠƒ a bit different (incorporates a built-in cut), restricting this leads tovarious (partial) proof search strategies (eg: backward and forward chaining)

Free hyperdoctrine (indexed bicartesian closed category) provides acategorical generic model for proof search

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 47: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

...4 Connective Chirality and Search Strategy

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 48: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructivity of Intuitionistic Logic

Can be understood to mean:

Disjuntion Property

āŠ¢ A āˆØ B āŸŗ āŠ¢ A or āŠ¢ B

Existence Property

āŠ¢ āˆƒš‘„ āˆ¶ X . A āŸŗ āŠ¢ A [š‘„ā†¦š‘”] for some š‘” āˆ¶ X

By analogy, we add:

Falsity PropertyāŠ¢ āŠ„ āŸŗ never

which simply expresses consistency.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 49: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructivity of Intuitionistic Logic

Can be understood to mean:

Disjuntion Property

āŠ¢ A āˆØ B āŸŗ āŠ¢ A or āŠ¢ B

Existence Property

āŠ¢ āˆƒš‘„ āˆ¶ X . A āŸŗ āŠ¢ A [š‘„ā†¦š‘”] for some š‘” āˆ¶ X

By analogy, we add:

Falsity PropertyāŠ¢ āŠ„ āŸŗ never

which simply expresses consistency.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 50: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructivity of Intuitionistic Logic

In the ā€™60ā€™s, Kleene and Harrop noticed:

Strong Disjuntion Property: If Ī“ contains no strictly positive disjunctionthen:

Ī“ āŠ¢ A āˆØ B āŸŗ Ī“ āŠ¢ A or Ī“ āŠ¢ B

Strong Existence Property: If Ī“ contains no strictly positive disjunction orexistential then:

Ī“ āŠ¢ āˆƒš‘„ āˆ¶ X . A āŸŗ Ī“ āŠ¢ A [š‘„ā†¦š‘”] for some š‘” āˆ¶ X

Continuing the analogy:

Strong Falsity Property: If Ī“ contains no strictly positive āŠ„ (negation) then:

Ī“ āŠ¢ āŠ„ āŸŗ never

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 51: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructivity of Intuitionistic Logic

In the ā€™60ā€™s, Kleene and Harrop noticed:

Strong Disjuntion Property: If Ī“ contains no strictly positive disjunctionthen:

Ī“ āŠ¢ A āˆØ B āŸŗ Ī“ āŠ¢ A or Ī“ āŠ¢ B

Strong Existence Property: If Ī“ contains no strictly positive disjunction orexistential then:

Ī“ āŠ¢ āˆƒš‘„ āˆ¶ X . A āŸŗ Ī“ āŠ¢ A [š‘„ā†¦š‘”] for some š‘” āˆ¶ X

Continuing the analogy:

Strong Falsity Property: If Ī“ contains no strictly positive āŠ„ (negation) then:

Ī“ āŠ¢ āŠ„ āŸŗ never

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 52: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructive Sequents

This gives a sufficient condition for the invertibility of right rules of leftconnectives.

Recall that right rules of right connectives are always invertible by the naturalbijections of their adjunctions.

By restricting left connectives to occur only positively on the right and onlynegatively on the left of a sequent we have a system where all right rules areinvertible. We call these ā€œconstructive sequentsā€.

This validates the completeness of goal directed search for constructivesequents.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 53: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Constructive Sequents

This gives a sufficient condition for the invertibility of right rules of leftconnectives.

Recall that right rules of right connectives are always invertible by the naturalbijections of their adjunctions.

By restricting left connectives to occur only positively on the right and onlynegatively on the left of a sequent we have a system where all right rules areinvertible. We call these ā€œconstructive sequentsā€.

This validates the completeness of goal directed search for constructivesequents.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 54: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Hereditarily Harrop Logic

Recursive grammar for constructive sequents

Let š’Ÿ and š’¢ be the sets of constructive antecedents (ā€œprogram formulaeā€) andconstructive succedents (ā€œgoal formulaeā€).

They may be defined by the recursive grammars:

D ā©“ P | āŠ¤ | D āˆ§ D | āˆ€š‘„ āˆ¶ X . D | G āŠƒ DG ā©“ P | āŠ¤ | āŠ„ | G āˆ§ G | G āˆØ G | āˆ€š‘„ āˆ¶ X . G | āˆƒš‘„ āˆ¶ X . G | D āŠƒ G

where P is the class of atomic propositions.

This is essentially the same as hereditarily Harrop program and goal formula, whichdonā€™t contain āŠ¤ and āŠ„, respectively (the enrichment is of little practical use).

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 55: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Hereditarily Harrop Logic

Recursive grammar for constructive sequents

Let š’Ÿ and š’¢ be the sets of constructive antecedents (ā€œprogram formulaeā€) andconstructive succedents (ā€œgoal formulaeā€).

They may be defined by the recursive grammars:

D ā©“ P | āŠ¤ | D āˆ§ D | āˆ€š‘„ āˆ¶ X . D | G āŠƒ DG ā©“ P | āŠ¤ | āŠ„ | G āˆ§ G | G āˆØ G | āˆ€š‘„ āˆ¶ X . G | āˆƒš‘„ āˆ¶ X . G | D āŠƒ G

where P is the class of atomic propositions.

This is essentially the same as hereditarily Harrop program and goal formula, whichdonā€™t contain āŠ¤ and āŠ„, respectively (the enrichment is of little practical use).

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 56: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Goal Directed Search for Atoms

Recall only right propositions may occur positively in constructive contexts(antecedents)

Positive occurrences of right connectives can be rewritten by the naturalbijection of their adjunction

In particular, constructive contexts can be rewritten with the propositions instrictly positive position all atoms

This allows a strategy of goal directed search for atoms

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 57: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

Backward Chaining

š‘„ āˆ¶ Xš‘„ āˆ¶ X

Ī“ āŸ¹ G(P Ļƒ = PĻƒ)Ī“ , P āŸ¹ P

š‘–š‘›š‘–š‘”

Ī“ , G āŠƒ P āŸ¹ PāŠƒL

ā‹® āˆ€L

Ī“ , āˆ€ļæ½ļæ½ āˆ¶ X . G āŠƒ P āŸ¹ Pāˆ€L

Ī“ āŸ¹ P š‘Lā‹® āˆ—R

Categorically, this corresponds to pre-composing an arrow named by a programclause with a derivation of an instance of the goal.

Ed Morehouse Adjunction Based Categorical Logic Programming

Page 58: Adjunction Based Categorical Logic Programming - Ed Morehouse

A Brief History of Logic Programming Proof Search in Proof Theory Adjunctions in Categorical Proof Theory Connective Chirality and Search Strategy References

References..

Andrea Asperti and Simone Martini. ā€œProjections Instead of Variables: acategory theoretic interpretation of logic programsā€. In: InternationalConference for Logic Programming. MIT Press, 1989.Roy Dyckhoff. ā€œContraction-Free Sequent Calculi for Intuitionistic Logicā€.In: Journal of Symbolic Logic 57.3 (1992), pp. 795ā€“807.Roy Dyckhoff and LuĆ­s Pinto. ā€œUniform Proofs and Natural Deductionsā€.In: International Conference on Automated Deduction. 1994.Roy Dyckhoff and LuĆ­s Pinto. A Permutation-Free Sequent Calculus forIntuitionistic Logic. Tech. rep. St. Andrews University, 1996.Richard Garner. ā€œTwo-Dimensional Models of Type Theoryā€. In:Mathematical Structures in Computer Science 19.4 (2009), 687ā€“736.url: http://arxiv.org/abs/0808.2122v2.Neil Ghani. ā€œAdjoint Rewritingā€. PhD thesis. University of Edinburgh,1995.James Harland. ā€œA Proof-theoretic Analysis of Goal-directed Provabilityā€.In: Journal of Logic and Computation 4.1 (1994), pp. 69ā€“88.Jacob Howe. ā€œProof Search Issues in Some Non-Classical Logicsā€.PhD thesis. University of St. Andrews, 1998.Joachim Lambek and Philip Scott. Introduction to Higher OrderCategorical Logic. Cambridge University Press, 1986.F. William Lawvere. ā€œAdjointness in Foundationsā€. In: Dialectica 23(1969).Dale Miller. ā€œA Logical Analysis of Modules in Logic Programmingā€. In:Journal of Logic Programming 6 (1989), pp. 79ā€“108.Dale Miller et al. ā€œUniform Proofs as a Foundation for LogicProgrammingā€. In: Annals of Pure and Applied Logic 51 (1991).Dag Prawitz. Natural Deduction: A Proof-Theoretical Study . StockholmStudies in Philosophy 3. Almqvist and Wiksell, 1965.Robert Seely. ā€œHyperdoctrines, Natural Deduction and the BeckConditionā€. In: Zeitscrift fĆ¼r Mathematische Logik und Grundlagen derMathematik (1983).Robert J. Simmons. ā€œStructural Focalizationā€. In: (2012).

Ed Morehouse Adjunction Based Categorical Logic Programming