Least and greatest fixed points in ludics 10 September 2015 - CSL - - PowerPoint PPT Presentation

least and greatest fixed points in ludics
SMART_READER_LITE
LIVE PREVIEW

Least and greatest fixed points in ludics 10 September 2015 - CSL - - PowerPoint PPT Presentation

Least and greatest fixed points in ludics 10 September 2015 - CSL 2015 David Baelde, Amina Doumane and Alexis Saurin Least and greatest fixed points in Ludics Least and greatest fixed points in Ludics A logic modelling inductive and coinductive


slide-1
SLIDE 1

Least and greatest fixed points in ludics

10 September 2015 - CSL 2015 David Baelde, Amina Doumane and Alexis Saurin

slide-2
SLIDE 2

Least and greatest fixed points in Ludics

slide-3
SLIDE 3

Least and greatest fixed points in Ludics

A logic modelling inductive and coinductive reasoning:

not only to express statements, but also a proof system in sequent calculus: in the paper, MALL with fixed points. extends the proof-program correspondence to recursive and co-recusive programming, with coinductive datatypes.

slide-4
SLIDE 4

Least and greatest fixed points in Ludics

A logic modelling inductive and coinductive reasoning:

not only to express statements, but also a proof system in sequent calculus: in the paper, MALL with fixed points. extends the proof-program correspondence to recursive and co-recusive programming, with coinductive datatypes.

Semantics of proofs:

Interprets not only formulas, but also inteprets proofs. Interactive semantics (ludics, geometry of interaction, Hyland-Ong game semantics, ...) completeness properties (not only at the level of provability, but also at the level of proofs).

On the completeness of an interactive semantics for a logic with least and greatest fixed points.

slide-5
SLIDE 5

Logics with fixed points

slide-6
SLIDE 6

Formulas

F ::= F ⊗F | FF | ... Propositional logic with | µX.F least fixed point and | νX.F greatest fixed point. µ and ν are dual. Examples: Nat := µX.1X List(A) := µX.1(A⊗X) Stream(A) := νX.1(A⊗X)

slide-7
SLIDE 7

Sequent calculus

Usual logical rules ∆ ⊢ Γ,F1,F2

()

∆ ⊢ Γ,F1F2 ∆1 ⊢ Γ1,F1 ∆2 ⊢ Γ2,F2

(⊗)

∆1,∆2 ⊢ Γ1,Γ2,F1⊗F2 ... Identity rules

(ax)

F ⊢ F ∆1 ⊢ Γ1,F F,∆2 ⊢ Γ2

(cut)

∆1,∆2 ⊢ Γ1,Γ2

slide-8
SLIDE 8

Sequent calculus

Usual logical rules ∆ ⊢ Γ,F1,F2

()

∆ ⊢ Γ,F1F2 ∆1 ⊢ Γ1,F1 ∆2 ⊢ Γ2,F2

(⊗)

∆1,∆2 ⊢ Γ1,Γ2,F1⊗F2 ... Identity rules

(ax)

F ⊢ F ∆1 ⊢ Γ1,F F,∆2 ⊢ Γ2

(cut)

∆1,∆2 ⊢ Γ1,Γ2 Rules for µ and ν See next couple of slides

slide-9
SLIDE 9

Knaster-Tarski fixed point theorem

Theorem

Let C be a complete lattice and F a monotonic operator on C. F has a least fixed point µX.F. µX.F is the least pre-fixed point, i.e.: F(µX.F) ⊆ µX.F and ∀S F(S) ⊆ S ⇒ µX.F ⊆ S

slide-10
SLIDE 10

Knaster-Tarski fixed point theorem

Theorem

Let C be a complete lattice and F a monotonic operator on C. F has a least fixed point µX.F. µX.F is the least pre-fixed point, i.e.: F(µX.F) ⊆ µX.F and ∀S F(S) ⊆ S ⇒ µX.F ⊆ S This gives right and left rules for µ: H ⊢ F[µX.F/X] H ⊢ µX.F (µr) F[S/X] ⊢ S µX.F ⊢ S (µl)

slide-11
SLIDE 11

Knaster-Tarski fixed point theorem

Theorem

Let C be a complete lattice and F a monotonic operator on C. F has a greatest fixed point νX.F. νX.F is the greatest post-fixed point, i.e.: νX.F ⊆ F(νX.F) and ∀S S ⊆ F(S) ⇒ S ⊆ νX.F This gives right and left rules for ν: F[νX.F/X] ⊢ H νX.F ⊢ H (νl) S ⊢ F[S/X] S ⊢ νX.F (νr)

slide-12
SLIDE 12

Ludics

slide-13
SLIDE 13

Semantics of proofs

In matematics, more interest for theorems and their truth than for their proofs. ⇒ In Logic one traditionaly interprets formulas only. The proof-programs correspondence changed this perspective: Curry-Howard correspondence Proof theory Programming languages Formulas Types Proofs Programs Cut elimination Evaluation Consequently, one aims at understanding the meaning of programs and proofs.

slide-14
SLIDE 14

Semantics of proofs and programs

From extentional semantics: interpret programs (or proofs) by the functions they compute. What? To intentional semantics: the semantics keeps information about how computation is achieved, e.g. Game semantics. How? Proof theory Programming languages Game semantics Proofs Programs Strategies Formulas Types Arenas Cut elimination Evaluation Interaction

slide-15
SLIDE 15

Semantics of proofs and programs

From extentional semantics: interpret programs (or proofs) by the functions they compute. What? To intentional semantics: the semantics keeps information about how computation is achieved, e.g. Game semantics. How? Proof theory Programming languages Ludics Proofs Programs Designs Formulas Types Behaviours Cut elimination Evaluation Interaction

slide-16
SLIDE 16

Ludics

Designs

Signature: A set of names

Designs

The set of positive designs p and negative designs n are coinductively generated by: p :=

  • Daimon

Success | Ω Omega Failure | n0 | an1,...,nk Named application n := x Variables | ∑a( xa).pa Sum of named abstractions Reduction rule: (∑a( xa).pa) | b

  • n → pb[
  • n/

xb].

slide-17
SLIDE 17

Ludics

Behaviours

Orthogonality between two designs p and n: p⊥n ⇐ ⇒ p[n/x] →⋆ Orthogonal of a set of designs X: X⊥ = {d | ∀e ∈ X, e⊥d}. Behaviours are set of designs such that: X = X⊥⊥

slide-18
SLIDE 18

Interpretation of propositional logic

Interpretation of formulas XE = E (X) F1⊗F2E = {(x |⊗r1,r2) : r1 ∈ F1E ,r2 ∈ F2E }⊥⊥ F1F2E = ¬F1⊗¬F2E

Interpretation of proofs By induction on the last applied rule: p ⊢ Γ,x : F1,y : F2

()

(x,y).p ⊢ Γ,F1F2 n1 ⊢ ∆,F1 n2 ⊢ Γ,F2

(⊗)

x |⊗n1,n2 ⊢ Γ,∆,x : F1 ∧F2

slide-19
SLIDE 19

Properties of the interpretation

Theorem (Soundness)

If π is a proof of F, then π ∈ F.

Theorem

The interpretation is invariant under cut elimination.

Theorem (Completeness)

If s ∈ F and / ∈ s, then there is a proof π of F such that s = π.

slide-20
SLIDE 20

Interpretation of fixed points

slide-21
SLIDE 21

Interpretation of fixed point

Interpretation of fixed point formulas µX.FE = lfp(Φ) and νX.FE = gfp(Φ) where Φ : C − → FE ∪(X→C). Interpretation of fixed point rules Should behave well w.r.t cut elimination!

slide-22
SLIDE 22

Interpretation of fixed point

Interpretation of fixed point formulas µX.FE = lfp(Φ) and νX.FE = gfp(Φ) where Φ : C − → FE ∪(X→C). Interpretation of fixed point rules Rule µ:

p ⊢ Γ,x : P[µX.P/X] (µ) p ⊢ Γ,x : µX.P

Rule ν:

d ⊢ x : S,N[S⊥/X] (ν) GN,d ⊢ S,νX.N

Should behave well w.r.t cut elimination!

slide-23
SLIDE 23

Interpretation of ν rule

The key (µ)−(ν) step:

Π ⊢ Γ,N⊥[(µX.N⊥)/X] (µ) ⊢ Γ,µX.N⊥ Θ ⊢ S,N[S⊥/X] (ν) ⊢ S,νX.N (cut) ⊢ Γ,S ↓ Π ⊢ Γ,N⊥[(µX.N⊥)/X] Θ ⊢ S,N[S⊥/X] Θ ⊢ S,N[S⊥/X] (ν) ⊢ S,νX.N (N) ⊢ N⊥[S/X],N[(νX.N)/X] (cut) ⊢ S,N[(νX.N)/X] (cut) ⊢ Γ,S

When we annotate these two proofs, we obtain an equation which we take as the definition of the ν rule.

slide-24
SLIDE 24

Properties of the interpretation

Theorem (Soundness)

If π is a proof of F, then π ∈ F.

Theorem

The interpretation is invariant under cut elimination.

slide-25
SLIDE 25

Properties of the interpretation

Theorem (Soundness)

If π is a proof of F, then π ∈ F.

Theorem

The interpretation is invariant under cut elimination. What about completeness?

slide-26
SLIDE 26

On completeness

slide-27
SLIDE 27

Completeness for Essentially Finite Designs

Completeness is at the level of proof, not at the level of provability, that means a class of elements of the models which are all interpretations of proofs.

Definition (Essentially finite designs – EFD)

Designs with a finite prefix, followed by a copycat.

Theorem (Completeness for EFD)

Let d be an EFD. If d ∈ F then there is a proof π of F such that d = π.

slide-28
SLIDE 28

Idea of the proof

The completeness for EFD reduces to:

Theorem (Completeness for semantic inclusion)

If Q ⊆ P then there is a proof π of P ⊢ Q. Introducing an infinitary proof system S∞ with a validity condition, inspired by Santocanale’s proof systems. Every valid proof in S∞ can be translated into a proof in our proof system. If Q ⊆ P then there is a valid proof of Q ⊢ P in S∞ (and conversely)

slide-29
SLIDE 29

Idea of the proof

The completeness for EFD reduces to:

Theorem (Completeness for semantic inclusion)

If Q ⊆ P then there is a proof π of P ⊢ Q. Introducing an infinitary proof system S∞ with a validity condition, inspired by Santocanale’s proof systems. Every valid proof in S∞ can be translated into a proof in our proof system. If Q ⊆ P then there is a valid proof of Q ⊢ P in S∞ (and conversely) As a bonus Validity of S∞ proofs is a decidable property. This gives us decidability of semantic inclusion.

slide-30
SLIDE 30

Conclusion

A correct semantics for a fixed point logic in Ludics. Completeness for essentially finite designs. Decidability of semantic inclusion. Future work Completeness for regular strategies. Full abstraction.

slide-31
SLIDE 31

Conclusion

A correct semantics for a fixed point logic in Ludics. Completeness for essentially finite designs. Decidability of semantic inclusion. Future work Completeness for regular strategies. Full abstraction. Thank you for your attention!