Some proof-theoretical approaches to Monadic Second-Order logic PhD - - PowerPoint PPT Presentation

some proof theoretical approaches to monadic second order
SMART_READER_LITE
LIVE PREVIEW

Some proof-theoretical approaches to Monadic Second-Order logic PhD - - PowerPoint PPT Presentation

Some proof-theoretical approaches to Monadic Second-Order logic PhD defense Pierre Pradic Supervised by Henryk Michalewski (University of Warsaw) & Colin Riba (NS Lyon) June 23 rd , 2020 1 / 36 Verification of engineered


slide-1
SLIDE 1

Some proof-theoretical approaches to Monadic Second-Order logic

PhD defense Pierre Pradic

Supervised by Henryk Michalewski (University of Warsaw) & Colin Riba (ÉNS Lyon)

June 23rd, 2020

1 / 36

slide-2
SLIDE 2

Verification of engineered systems/programs

Goal : check safety of engineered systems ◮ “The green and red lights are not on at the same time” ◮ “Orange is flashed before red” ◮ . . .

2 / 36

slide-3
SLIDE 3

Verification of engineered systems/programs

Goal : check safety of engineered systems ◮ “The green and red lights are not on at the same time” ◮ “Orange is flashed before red” ◮ . . . Some more complicated devices:

2 / 36

slide-4
SLIDE 4

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

3 / 36

slide-5
SLIDE 5

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

Typical task: Given a specification ϕ (logical formula). . .

3 / 36

slide-6
SLIDE 6

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

Typical task: Given a specification ϕ (logical formula). . . . . . can the following be done automatically?

3 / 36

slide-7
SLIDE 7

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

Typical task: Given a specification ϕ (logical formula). . . . . . can the following be done automatically?

Model checking

Answer whether yes or no a system satisfies ϕ?

3 / 36

slide-8
SLIDE 8

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

Typical task: Given a specification ϕ (logical formula). . . . . . can the following be done automatically?

Model checking

Answer whether yes or no a system satisfies ϕ?

Synthesis

Generate a system satisfying ϕ from scratch.

3 / 36

slide-9
SLIDE 9

Logic for verification

Typical system: ≈

start 1 (0, _)|0 (1, 0)|0 (1, 1)|1 (0, 1)|0 (1, _)|1

Typical task: Given a specification ϕ (logical formula). . . . . . can the following be done automatically?

Model checking

Answer whether yes or no a system satisfies ϕ?

Synthesis

Generate a system satisfying ϕ from scratch. Decide logic?

3 / 36

slide-10
SLIDE 10

Logic and decidability, algorithmically

Hilbert’s dream

The more extreme version of Hilbert’s program (1920s): ◮ Reduce mathematics to formalized arithmetics. ◮ A mechanical method to decide the (mathematical) truth.

4 / 36

slide-11
SLIDE 11

Logic and decidability, algorithmically

Hilbert’s dream

The more extreme version of Hilbert’s program (1920s): ◮ Reduce mathematics to formalized arithmetics. ◮ A mechanical method to decide the (mathematical) truth.

Incompleteness [Gödel-Turing (1930s)]

Impossible in general

4 / 36

slide-12
SLIDE 12

Logic and decidability, algorithmically

Hilbert’s dream

The more extreme version of Hilbert’s program (1920s): ◮ Reduce mathematics to formalized arithmetics. ◮ A mechanical method to decide the (mathematical) truth.

Incompleteness [Gödel-Turing (1930s)]

Impossible in general

Decidable subcases

◮ Logics over fixed finite domains. ◮ Monadic Second Order (MSO) logic over infinite words.

4 / 36

slide-13
SLIDE 13

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . .

5 / 36

slide-14
SLIDE 14

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . . ◮ . . . but also insight into limitations and the geometry of proofs.

5 / 36

slide-15
SLIDE 15

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . . ◮ . . . but also insight into limitations and the geometry of proofs. Not all mathematical arguments are equally informative.

5 / 36

slide-16
SLIDE 16

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . . ◮ . . . but also insight into limitations and the geometry of proofs. Not all mathematical arguments are equally informative.

Theorem

π + e is transcendental or e · π is transcendental (or both are).

5 / 36

slide-17
SLIDE 17

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . . ◮ . . . but also insight into limitations and the geometry of proofs. Not all mathematical arguments are equally informative.

Theorem

π + e is transcendental or e · π is transcendental (or both are). . . . but we do not know whether π + e is transcendental or not. . .

5 / 36

slide-18
SLIDE 18

Proof theory and constructivity

Proof theory at a very high level

Formalize mathematically what is a correct proof. ◮ How to under-approximate truth correctly. . . ◮ . . . but also insight into limitations and the geometry of proofs. Not all mathematical arguments are equally informative.

Theorem

π + e is transcendental or e · π is transcendental (or both are). . . . but we do not know whether π + e is transcendental or not. . . A constructive proof would be more informative.

proofs − → computable witnesses

5 / 36

slide-19
SLIDE 19

Monadic Second-Order (MSO) logic and constructiveness

Monadic Second-Order logic (MSO)

◮ A fragment of Second-Order logic. ◮ Algorithmically decidable over

N, Q, the infinite binary tree {0, 1}∗, . . .

◮ Subsumes many verification logics.

LTL, CTL, . . .

6 / 36

slide-20
SLIDE 20

Monadic Second-Order (MSO) logic and constructiveness

Monadic Second-Order logic (MSO)

◮ A fragment of Second-Order logic. ◮ Algorithmically decidable over

N, Q, the infinite binary tree {0, 1}∗, . . .

◮ Subsumes many verification logics.

LTL, CTL, . . .

Decidable = constructive

Soundness of decision procedures ⇐ = non-constructive theorems. ◮ Over N: infinite Ramsey theorem, weak König’s Lemma. ◮ Over {0, 1}∗: determinacy of infinite parity games.

6 / 36

slide-21
SLIDE 21

Motivating questions

How (non)-constructive is MSO?

7 / 36

slide-22
SLIDE 22

Motivating questions

How (non)-constructive is MSO?

What axiomatic strength characterizes a given MSO theory? ◮ With H. Michalewski, L. Kołodziejczyk and M. Skrzypczak in Warsaw. When can we extract computational content from MSO proofs? ◮ With C. Riba in Lyon.

7 / 36

slide-23
SLIDE 23

Motivating questions

How (non)-constructive is MSO?

What axiomatic strength characterizes a given MSO theory? ◮ With H. Michalewski, L. Kołodziejczyk and M. Skrzypczak in Warsaw. Metatheoretical analysis of Büchi’s decidability theorem. When can we extract computational content from MSO proofs? ◮ With C. Riba in Lyon. Refinement of MSO(N) with witness extraction.

7 / 36

slide-24
SLIDE 24

Outline

Monadic Second-Order logic Part I: Reverse Mathematics Part II: proof systems for Church’s synthesis Conclusion

8 / 36

slide-25
SLIDE 25

MSO over infinite words

Syntax of MSO(N)

ϕ, ψ ::= n ∈ X | n < k | ∃n ϕ | ∃X ϕ | ¬ϕ | ϕ ∧ ψ ◮ Can be regarded as a subsystem of Second-Order Arithmetic ◮ Standard model: n ∈ N, X ∈ P(N) ◮ Only unary predicates.

no pairing, no addition

9 / 36

slide-26
SLIDE 26

MSO over infinite words

Syntax of MSO(N)

ϕ, ψ ::= n ∈ X | n < k | ∃n ϕ | ∃X ϕ | ¬ϕ | ϕ ∧ ψ ◮ Can be regarded as a subsystem of Second-Order Arithmetic ◮ Standard model: n ∈ N, X ∈ P(N) ◮ Only unary predicates.

no pairing, no addition

Typical MSO(N)-definable properties

◮ “The set X ⊆ N is infinite.” ◮ “The set X ⊆ N is finite.”

9 / 36

slide-27
SLIDE 27

MSO over infinite words

Syntax of MSO(N)

ϕ, ψ ::= n ∈ X | n < k | ∃n ϕ | ∃X ϕ | ¬ϕ | ϕ ∧ ψ ◮ Can be regarded as a subsystem of Second-Order Arithmetic ◮ Standard model: n ∈ N, X ∈ P(N) ◮ Only unary predicates.

no pairing, no addition

Typical MSO(N)-definable properties

◮ “The set X ⊆ N is infinite.” ◮ “The set X ⊆ N is finite.” Corresponds exactly to sets recognizable by automata over infinite words. ◮ Infinite words: regard sets as sequences of bits through P(N) ≃ 2ω ◮ ϕ(X1, . . . Xk): formula over Σω for Σ = 2k

9 / 36

slide-28
SLIDE 28

Non-deterministic Büchi automata (NBA)

Definition

A non-deterministic Büchi automaton (NBA) A : Σ is a tuple (Q, q0, δ, F) ◮ Q is a finite set of states, q0 ∈ Q ◮ transition function δ : Σ × Q → P(Q) ◮ F ⊆ Q accepting states Recognizes languages of infinite words L(A) ⊆ Σω: w ∈ L(A) iff there is a run over w ∈ Σω hitting F infinitely often

non-recursive acceptance condition

10 / 36

slide-29
SLIDE 29

Non-deterministic Büchi automata (NBA)

Definition

A non-deterministic Büchi automaton (NBA) A : Σ is a tuple (Q, q0, δ, F) ◮ Q is a finite set of states, q0 ∈ Q ◮ transition function δ : Σ × Q → P(Q) ◮ F ⊆ Q accepting states Recognizes languages of infinite words L(A) ⊆ Σω: w ∈ L(A) iff there is a run over w ∈ Σω hitting F infinitely often

non-recursive acceptance condition

Example:

0, 1

L(A) = streams with finitely many 1.

10 / 36

slide-30
SLIDE 30

MSO/automata correspondance

MSO formulas over Σ

ϕ→Aϕ

  • ϕ→L(ϕ)
  • automata over Σ

A→L(A)

  • P(Σω)

Decidability [Büchi (1962)]

MSO over infinite words is decidable. ◮ Proof idea: automata theoretic-construction for each logical connective. ◮ Hard case for infinite words: negation ¬.

corresponds to complementation

11 / 36

slide-31
SLIDE 31

Complementation, determinization and constructivity

For finite word automata: easy complementation for deterministic automata.

0, 1

. . . but Büchi automata are hard to determinize.

12 / 36

slide-32
SLIDE 32

Complementation, determinization and constructivity

For finite word automata: easy complementation for deterministic automata.

0, 1

. . . but Büchi automata are hard to determinize.

Theorem [McNaughton (1968)]

Non-deterministic Büchi automata can be determinized into Rabin automata.

more complex acceptance condition

◮ Büchi’s original complementation procedure: w/o determinization. ◮ Effective algorithms for automata . . .

12 / 36

slide-33
SLIDE 33

Complementation, determinization and constructivity

For finite word automata: easy complementation for deterministic automata.

0, 1

. . . but Büchi automata are hard to determinize.

Theorem [McNaughton (1968)]

Non-deterministic Büchi automata can be determinized into Rabin automata.

more complex acceptance condition

◮ Büchi’s original complementation procedure: w/o determinization. ◮ Effective algorithms for automata . . . ◮ . . . but non-constructive proofs of soundness!

usual proofs: infinite Ramsey theorem, weak König’s lemma

12 / 36

slide-34
SLIDE 34

Complementation, determinization and constructivity

For finite word automata: easy complementation for deterministic automata.

0, 1

. . . but Büchi automata are hard to determinize.

Theorem [McNaughton (1968)]

Non-deterministic Büchi automata can be determinized into Rabin automata.

more complex acceptance condition

◮ Büchi’s original complementation procedure: w/o determinization. ◮ Effective algorithms for automata . . . ◮ . . . but non-constructive proofs of soundness!

usual proofs: infinite Ramsey theorem, weak König’s lemma

Quantify how non-constructive they are?

12 / 36

slide-35
SLIDE 35

Outline

Monadic Second-Order logic Part I: Reverse Mathematics Reverse Mathematics Büchi’s theorem Beyond infinite words Part II: proof systems for Church’s synthesis Conclusion

13 / 36

slide-36
SLIDE 36

Reverse Mathematics

◮ A framework to analyze axiomatic strength. ◮ Vast program.

[Friedman, Simpson, Steele 70s]

Methodology

◮ Consider a theorem T formulated in second-order arithmetic. ◮ Work in the weak theory RCA0. ◮ Target some natural axiom A such that RCA0 A. ◮ Show that RCA0 ⊢ A ⇔ T. Essentially independence proofs. . . ◮ Similar in spirit to statements like “Tychonoff’s theorem is equivalent to the axiom of choice.”

14 / 36

slide-37
SLIDE 37

The big five

Outliers: infinite Ramsey for pairs, determinacy statements.

15 / 36

slide-38
SLIDE 38

The big five

Outliers: infinite Ramsey for pairs, determinacy statements. Where does Büchi’s theorem sit in this hierarchy?

15 / 36

slide-39
SLIDE 39

Büchi’s decidability theorem (over RCA0)

Weak K¨

  • nig’s lemma

Infinite Ramsey theorem Bounded weak K¨

  • nig’s lemma

Determinization of NBA

⇓ ⇓

  • Compl. of NBA

MSO(ω) Σ0

2-induction

Additive Ramsey

⇑ ⇓ ⇐ ⇒ ⇑

The Logical Strength of Büchi’s Decidability Theorem

[Kołodziejczyk, Michalewski, P., Skrzypczak, 2016]

16 / 36

slide-40
SLIDE 40

Beyond infinite words

Theorem [Kołodziejczyk, Michalewski (2015)]

Decidability of MSO over the infinite binary tree is not provable in Π1

2-CA0.

◮ Rabin’s theorem requires much higher axiomatic strength.

◮ Roughly on par with determinacy of infinite parity games.

BC(Σ0

2) games 17 / 36

slide-41
SLIDE 41

Beyond infinite words

Theorem [Kołodziejczyk, Michalewski (2015)]

Decidability of MSO over the infinite binary tree is not provable in Π1

2-CA0.

◮ Rabin’s theorem requires much higher axiomatic strength.

◮ Roughly on par with determinacy of infinite parity games.

BC(Σ0

2) games

◮ Intermediate cases?

17 / 36

slide-42
SLIDE 42

Beyond infinite words

Theorem [Kołodziejczyk, Michalewski (2015)]

Decidability of MSO over the infinite binary tree is not provable in Π1

2-CA0.

◮ Rabin’s theorem requires much higher axiomatic strength.

◮ Roughly on par with determinacy of infinite parity games.

BC(Σ0

2) games

◮ Intermediate cases?

MSO over the rationals (MSO(Q))

◮ Decidable via a reduction to the infinite tree. ◮ Cover all countable linear orders. ◮ Direct algebraic decidability proofs.

[Shelah (1975)], [Carton, Colcombet, Puppis (2013)]

17 / 36

slide-43
SLIDE 43

Strength of additive Ramsey over Q and MSO(Q)

Theorem

[Kołodziejczyk, Michalewski, P., Skrzypczak]

Over RCA0, the following are equivalent: ◮ the shuffle principle

[Carton, Colcombet, Puppis (2013)]

◮ Shelah’s additive Ramseyan theorem over Q

[Shelah (1975)]

◮ induction for Σ0

2 formulas

18 / 36

slide-44
SLIDE 44

Strength of additive Ramsey over Q and MSO(Q)

Theorem

[Kołodziejczyk, Michalewski, P., Skrzypczak]

Over RCA0, the following are equivalent: ◮ the shuffle principle

[Carton, Colcombet, Puppis (2013)]

◮ Shelah’s additive Ramseyan theorem over Q

[Shelah (1975)]

◮ induction for Σ0

2 formulas

However, does not gauge the strength of MSO(Q)

18 / 36

slide-45
SLIDE 45

Strength of additive Ramsey over Q and MSO(Q)

Theorem

[Kołodziejczyk, Michalewski, P., Skrzypczak]

Over RCA0, the following are equivalent: ◮ the shuffle principle

[Carton, Colcombet, Puppis (2013)]

◮ Shelah’s additive Ramseyan theorem over Q

[Shelah (1975)]

◮ induction for Σ0

2 formulas

However, does not gauge the strength of MSO(Q)

Expressivity

The classical theory MSO(Q) has a sentence equivalent to Π1

1-CA0.

18 / 36

slide-46
SLIDE 46

Strength of additive Ramsey over Q and MSO(Q)

Theorem

[Kołodziejczyk, Michalewski, P., Skrzypczak]

Over RCA0, the following are equivalent: ◮ the shuffle principle

[Carton, Colcombet, Puppis (2013)]

◮ Shelah’s additive Ramseyan theorem over Q

[Shelah (1975)]

◮ induction for Σ0

2 formulas

However, does not gauge the strength of MSO(Q)

Expressivity

The classical theory MSO(Q) has a sentence equivalent to Π1

1-CA0.

Conjecture

Over RCA0, the following are equivalent: ◮ The axiom of finite Π1

1-recursion.

◮ Determinacy of infinite weak parity games.

BC(Σ0

1) games

◮ Soundness of the decision algorithm for MSO(Q).

18 / 36

slide-47
SLIDE 47

Outline

Monadic Second-Order logic Part I: Reverse Mathematics Reverse Mathematics Büchi’s theorem Beyond infinite words Part II: proof systems for Church’s synthesis Church’s synthesis and witness extraction Constructive proof systems Categorical/syntactic approach Conclusion

19 / 36

slide-48
SLIDE 48

Church’s synthesis (1/2): causal functions

1

b|a , a|a a|a b|b

Causal/synchronous stream functions f : Σω → Γω

◮ Interpret n ∈ N as time steps. ◮ Lifted from functions ˆ f : Σ+ → Γ as ˆ f : Σω → Γω s → n → f (s(0) . . . s(n)) i.e., the output does not depend on the future. ◮ Focus on finite-state causal functions.

(Correspond to Mealy machines)

◮ All f.s. causal functions are recursive. ◮ All causal functions are continuous. ◮ Some recursive functions are not causal.

w − → n → wn+1

20 / 36

slide-49
SLIDE 49

Church’s synthesis (2/2): the Büchi-Landweber theorem

Church’s synthesis problem

Given a formula ϕ(X, Y ), find a f. s. causal f : Σω → Γω such that ∀w ϕ(w, f (w))

21 / 36

slide-50
SLIDE 50

Church’s synthesis (2/2): the Büchi-Landweber theorem

Church’s synthesis problem

Given a formula ϕ(X, Y ), find a f. s. causal f : Σω → Γω such that ∀w ϕ(w, f (w)) Example (inspired from [Thomas (2008)]): ◮ ϕ(X, Y ) ≡ (X infinite ⇒ Y infinite) and ∀i (i ∈ Y ⇒ i + 1 / ∈ Y ) 1

1|0 , 0|0 0|0 1|1

Theorem [Büchi-Landweber (1969)]

Algorithmic solution for ϕ(X, Y ) in MSO. ◮ Algorithmically costly. . .

21 / 36

slide-51
SLIDE 51

MSO and proofs

MSO can also be seen as a classical axiomatic theory

Theorem [Siefkes (1970)]

MSO is completely axiomatized by the axioms of second-order arithmetic.

22 / 36

slide-52
SLIDE 52

MSO and proofs

MSO can also be seen as a classical axiomatic theory

Theorem [Siefkes (1970)]

MSO is completely axiomatized by the axioms of second-order arithmetic. Church’s synthesis reminiscent of extraction from proofs: MSO ⊢ ∀x∃y ϕ(x, y)

?

= ⇒ ∃f f.s. causal ∀x ϕ(x, f (x))

22 / 36

slide-53
SLIDE 53

MSO and proofs

MSO can also be seen as a classical axiomatic theory

Theorem [Siefkes (1970)]

MSO is completely axiomatized by the axioms of second-order arithmetic. Church’s synthesis reminiscent of extraction from proofs: MSO ⊢ ∀x∃y ϕ(x, y) ⇒ ∃f f.s. causal ∀x ϕ(x, f (x))

Classical theorems in MSO

◮ Excluded middle

(subtle point {0, 1}ω vs P(N))

◮ The infinite pigeonhole principle ◮ Instances of additive Ramsey No algorithmic witnesses for ∀∃ theorems.

22 / 36

slide-54
SLIDE 54

Extraction from proofs

Goal: a refinement of MSO(N) with extraction for causal functions. ◮ Toward semi-automatic approach to synthesis. ◮ Approach inspired by realizability.

[Kleene (1945), . . . ]

23 / 36

slide-55
SLIDE 55

Extraction from proofs

Goal: a refinement of MSO(N) with extraction for causal functions. ◮ Toward semi-automatic approach to synthesis. ◮ Approach inspired by realizability.

[Kleene (1945), . . . ]

Analogous example: extraction for intuitionistic arithmetic (HA)

If HA ⊢ ∀x∃yϕ(x, y), there is an algorithm computing f : N → N recursive such that ∀x ϕ(x, f (x))

◮ A subset of classical arithmetic (PA). ◮ As expressive as classical arithmetic. (ϕ → ϕ¬¬) ◮ Can be refined to System T functions.

[Gödel (1930s)]

Analogy

Classical system MSO(N) PA Realizers Causal functions System T Intuitionistic system ??? HA

23 / 36

slide-56
SLIDE 56

Synchronous MSO (SMSO) [P., Riba (2017)]

Intuitionistic version of MSO ϕ, ψ ::= α | ϕ ∧ ψ | ∃X ϕ | ¬ϕ

Quantification over individuals encoded as usual

24 / 36

slide-57
SLIDE 57

Synchronous MSO (SMSO) [P., Riba (2017)]

Intuitionistic version of MSO ϕ, ψ ::= α | ϕ ∧ ψ | ∃X ϕ | ¬ϕ

Quantification over individuals encoded as usual

Glivenko’s theorem for SMSO

MSO ⊢ ϕ if and only if SMSO ⊢ ¬¬ϕ ◮ Negation erases computational contents.

24 / 36

slide-58
SLIDE 58

Synchronous MSO (SMSO) [P., Riba (2017)]

Intuitionistic version of MSO ϕ, ψ ::= α | ϕ ∧ ψ | ∃X ϕ | ¬ϕ

Quantification over individuals encoded as usual

Glivenko’s theorem for SMSO

MSO ⊢ ϕ if and only if SMSO ⊢ ¬¬ϕ ◮ Negation erases computational contents.

Extraction of f.s. causal functions

SMSO ⊢ ∃y ¬¬ϕ(x, y) iff there is a f.s. causal f s.t. MSO ⊢ ∀x ϕ(x, f (x)) ◮ Proofs ϕ ⊢ ψ interpreted as simulations between ND automata.

24 / 36

slide-59
SLIDE 59

Synchronous MSO (SMSO) [P., Riba (2017)]

Intuitionistic version of MSO ϕ, ψ ::= α | ϕ ∧ ψ | ∃X ϕ | ¬ϕ

Quantification over individuals encoded as usual

Glivenko’s theorem for SMSO

MSO ⊢ ϕ if and only if SMSO ⊢ ¬¬ϕ ◮ Negation erases computational contents.

Extraction of f.s. causal functions

SMSO ⊢ ∃y ¬¬ϕ(x, y) iff there is a f.s. causal f s.t. MSO ⊢ ∀x ϕ(x, f (x)) ◮ Proofs ϕ ⊢ ψ interpreted as simulations between ND automata.

No interpretation for ⇒ and ∀

24 / 36

slide-60
SLIDE 60

Synchronous MSO (SMSO) [P., Riba (2017)]

Intuitionistic version of MSO ϕ, ψ ::= α | ϕ ∧ ψ | ∃X ϕ | ¬ϕ

Quantification over individuals encoded as usual

Glivenko’s theorem for SMSO

MSO ⊢ ϕ if and only if SMSO ⊢ ¬¬ϕ ◮ Negation erases computational contents.

Extraction of f.s. causal functions

SMSO ⊢ ∃y ¬¬ϕ(x, y) iff there is a f.s. causal f s.t. MSO ⊢ ∀x ϕ(x, f (x)) ◮ Proofs ϕ ⊢ ψ interpreted as simulations between ND automata.

No interpretation for ⇒ and ∀ Polarity restriction

24 / 36

slide-61
SLIDE 61

A linear refinement LMSO [P., Riba (2018)]

◮ Polarized system with dualities. ◮ Requires the introduction of linear connectives.

Linear MSO (LMSO)

ϕ, ψ ::= α | ϕ ⊗ ψ | ϕ ` ψ | ϕ ⊸ ψ | ∀Xϕ | ∃Xϕ | !ϕ− | ?ϕ+ | . . .

25 / 36

slide-62
SLIDE 62

A linear refinement LMSO [P., Riba (2018)]

◮ Polarized system with dualities. ◮ Requires the introduction of linear connectives.

Linear MSO (LMSO)

ϕ, ψ ::= α | ϕ ⊗ ψ | ϕ ` ψ | ϕ ⊸ ψ | ∀Xϕ | ∃Xϕ | !ϕ− | ?ϕ+ | . . . Deterministic (±) Non-deterministic (+) Universal (−)

?(−) ⊗, `, ∃ ⊗, `, ⊸ !(−) ⊗, `, ∀ (−)⊥

Alternating (∀, ∃, ⊗, `, ⊸)

25 / 36

slide-63
SLIDE 63

A linear refinement LMSO [P., Riba (2018)]

◮ Polarized system with dualities. ◮ Requires the introduction of linear connectives.

Linear MSO (LMSO)

ϕ, ψ ::= α | ϕ ⊗ ψ | ϕ ` ψ | ϕ ⊸ ψ | ∀Xϕ | ∃Xϕ | !ϕ− | ?ϕ+ | . . . Deterministic (±) Non-deterministic (+) Universal (−)

?(−) ⊗, `, ∃ ⊗, `, ⊸ !(−) ⊗, `, ∀ (−)⊥

Alternating (∀, ∃, ⊗, `, ⊸)

SMSO ≈ restriction to positives

25 / 36

slide-64
SLIDE 64

A linear refinement LMSO [P., Riba (2018)]

◮ Polarized system with dualities. ◮ Requires the introduction of linear connectives.

Linear MSO (LMSO)

ϕ, ψ ::= α | ϕ ⊗ ψ | ϕ ` ψ | ϕ ⊸ ψ | ∀Xϕ | ∃Xϕ | !ϕ− | ?ϕ+ | . . . Deterministic (±) Non-deterministic (+) Universal (−)

?(−) ⊗, `, ∃ ⊗, `, ⊸ !(−) ⊗, `, ∀ (−)⊥

Alternating (∀, ∃, ⊗, `, ⊸)

SMSO ≈ restriction to positives

25 / 36

slide-65
SLIDE 65

Expressivity and proof extraction for LMSO

Conservativity

LMSO → MSO ϕ → ⌈ϕ⌉

If LMSO ⊢ ϕ, then MSO ⊢ ⌈ϕ⌉.

Expressivity

MSO → LMSO ϕ → ϕL

If MSO ⊢ ϕ, then LMSO ⊢ ϕL. LMSO ϕ → Aϕ

  • ϕ → ϕ
  • Alternating automata

Acceptance game

  • Simulation games

26 / 36

slide-66
SLIDE 66

Expressivity and proof extraction for LMSO

Conservativity

LMSO → MSO ϕ → ⌈ϕ⌉

If LMSO ⊢ ϕ, then MSO ⊢ ⌈ϕ⌉.

Expressivity

MSO → LMSO ϕ → ϕL

If MSO ⊢ ϕ, then LMSO ⊢ ϕL. LMSO ϕ → Aϕ

  • ϕ → ϕ
  • Alternating automata

Acceptance game

  • Simulation games

Extraction of f.s. causal functions

LMSO ⊢ ∀x∃y ϕL(x, y) iff there is a f.s causal f s.t. MSO ⊢ ∀x ϕ(x, f (x))

26 / 36

slide-67
SLIDE 67

Simulation model: logical aspects

◮ LMSO includes Full Intuitionistic Multiplicative Linear Logic.

[Hyland, de Paiva (1993)]

◮ Similarities with Dialectica categories DC:

[de Paiva (1989,1991)]

27 / 36

slide-68
SLIDE 68

Simulation model: logical aspects

◮ LMSO includes Full Intuitionistic Multiplicative Linear Logic.

[Hyland, de Paiva (1993)]

◮ Similarities with Dialectica categories DC:

[de Paiva (1989,1991)]

Realized principles

◮ Linear Markov principle and independence of premise.

27 / 36

slide-69
SLIDE 69

Simulation model: logical aspects

◮ LMSO includes Full Intuitionistic Multiplicative Linear Logic.

[Hyland, de Paiva (1993)]

◮ Similarities with Dialectica categories DC:

[de Paiva (1989,1991)]

Realized principles

◮ Linear Markov principle and independence of premise. ◮ A classically false choice-like scheme

∀x ∈ Σω ∃y ∈ Γω ϕ(x, y)

− ⊸

∃f ∈ (Σ → Γ)ω ∀x ∈ Σω ϕ(x, f (x))

f (x) for pointwise application

27 / 36

slide-70
SLIDE 70

Simulation model: logical aspects

◮ LMSO includes Full Intuitionistic Multiplicative Linear Logic.

[Hyland, de Paiva (1993)]

◮ Similarities with Dialectica categories DC:

[de Paiva (1989,1991)]

Realized principles

◮ Linear Markov principle and independence of premise. ◮ A classically false choice-like scheme

∀x ∈ Σω ∃y ∈ Γω ϕ(x, y)

− ⊸

∃f ∈ (Σ → Γ)ω ∀x ∈ Σω ϕ(x, f (x))

f (x) for pointwise application

Double linear-negation elimination

For every ϕ, there is a realizer (ϕ ⊸ ⊥) ⊸ ⊥ − ⊸ ϕ

27 / 36

slide-71
SLIDE 71

Simulation model: logical aspects

◮ LMSO includes Full Intuitionistic Multiplicative Linear Logic.

[Hyland, de Paiva (1993)]

◮ Similarities with Dialectica categories DC:

[de Paiva (1989,1991)]

Realized principles

◮ Linear Markov principle and independence of premise. ◮ A classically false choice-like scheme

∀x ∈ Σω ∃y ∈ Γω ϕ(x, y)

− ⊸

∃f ∈ (Σ → Γ)ω ∀x ∈ Σω ϕ(x, f (x))

f (x) for pointwise application

Double linear-negation elimination

For every ϕ, there is a realizer (ϕ ⊸ ⊥) ⊸ ⊥ − ⊸ ϕ but no canonical iso in general! ◮ Also holds in DC if the base satisfies choice.

27 / 36

slide-72
SLIDE 72

Why automata?

The above logic can be defined without reference to automata. ◮ ω-word automata guarantee decidability properties. . . ◮ But they are not needed to extract realizers.

28 / 36

slide-73
SLIDE 73

Why automata?

The above logic can be defined without reference to automata. ◮ ω-word automata guarantee decidability properties. . . ◮ But they are not needed to extract realizers. A purely logical reformulation of LMSO using categorical semantics.

Goals

◮ Purely syntactic transformations. ◮ Understand links with typed realizability and Dialectica.

28 / 36

slide-74
SLIDE 74

Finite-state causal functions as terms

Define the category M of causal functions ◮ Objects: sets of streams Σω for Σ finite ◮ Morphisms: finite-state causal functions ◮ Cartesian products Σω × Γω ≃ (Σ × Γ)ω, but not cartesian-closed

29 / 36

slide-75
SLIDE 75

Finite-state causal functions as terms

Define the category M of causal functions ◮ Objects: sets of streams Σω for Σ finite ◮ Morphisms: finite-state causal functions ◮ Cartesian products Σω × Γω ≃ (Σ × Γ)ω, but not cartesian-closed

Inductive presentation

f : Σ → Γ f ω : Σω → Γω f : Σω × Γω → Γω b0 ∈ Γ fixb0(f ) : Σω → Γω

+ closure under composition Σω Γω Γω f b0 fixb0(f)

≈ guarded recursion fix : A◮A → A

topos of trees

29 / 36

slide-76
SLIDE 76

MSO(N) as an equational logic over M

FOM (First-Order Mealy)

ϕ, ψ ::= t =Σω u | ϕ ∧ ψ | ¬ϕ | ∃x ∈ Σω ϕ ◮ Typed variables stand for streams, terms for every f.s. causal functions.

Proposition

FOM and MSO(N) are interpretable in one another. ◮ Justifies focusing on FOM.

30 / 36

slide-77
SLIDE 77

MSO(N) as an equational logic over M

FOM (First-Order Mealy)

ϕ, ψ ::= t =Σω u | ϕ ∧ ψ | ¬ϕ | ∃x ∈ Σω ϕ ◮ Typed variables stand for streams, terms for every f.s. causal functions.

Proposition

FOM and MSO(N) are interpretable in one another. ◮ Justifies focusing on FOM.

Tarskian semantics (categorical logic)

◮ Regard M as a multi-sorted Lawvere theory. Tarskian semantics ≈ indexed category, from global section functor Γ Γ : Σω − → HomM (1ω, Σω) Σω − → (P (Γ (Σω)) , ⊆)

30 / 36

slide-78
SLIDE 78

SMSO and the simple fibration

Simple slice C//X = full subcategory of C/X with objects X × Y

π

− → X the simple fibration s(C) → C

The construction Sum

Sum(E) Sum(p)

  • E

p

  • s(C)

×

  • C

C

◮ Sum(p)-predicate: (U, ϕ(a, u))

U object of C, ϕ over A × U (in p) ≈ ∃u : U ϕ(a, u)

◮ Freely adds existential quantifications

(simple sums)

◮ Reminiscent of typed realizability

realizers in C

31 / 36

slide-79
SLIDE 79

SMSO and the simple fibration

Simple slice C//X = full subcategory of C/X with objects X × Y

π

− → X the simple fibration s(C) → C

The construction Sum

Sum(E) Sum(p)

  • E

p

  • s(C)

×

  • C

C

◮ Sum(p)-predicate: (U, ϕ(a, u))

U object of C, ϕ over A × U (in p) ≈ ∃u : U ϕ(a, u)

◮ Freely adds existential quantifications

(simple sums)

◮ Reminiscent of typed realizability

realizers in C

Reconstructing SMSO

Simulations of non-determinstic automata ≈ Sum applied to FOM

31 / 36

slide-80
SLIDE 80

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO Sum(p)

LNL-adjunction

Dial(p)

Prod(p)

  • 32 / 36
slide-81
SLIDE 81

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO and exponentials

!(U, X, ϕ(u, x)) = (U, 1, ∀x ϕ(u, x)

Sum(p)

LNL-adjunction

Dial(p)

Prod(p)

  • 32 / 36
slide-82
SLIDE 82

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO and exponentials

!(U, X, ϕ(u, x)) = (U, 1, ∀x ϕ(u, x)

Sum(p)

LNL-adjunction

Dial◮(p)

Prod(p)

  • Realized Dialectica-like construction Dial◮

32 / 36

slide-83
SLIDE 83

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO and exponentials

!(U, X, ϕ(u, x)) = (U, 1, ∀x ϕ(u, x)

Sum(p)

LNL-adjunction

Dial◮(p)

Prod(p)

  • Realized Dialectica-like construction Dial◮

◮ Only over a CCC extension of M

!(U, X, ϕ(u, x)) = (U◮X , 1, ∀x ϕ(f (◮ x), x)

32 / 36

slide-84
SLIDE 84

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO and exponentials

!(U, X, ϕ(u, x)) = (U, 1, ∀x ϕ(u, x)

Sum(p)

LNL-adjunction

Dial◮(p)

Prod(p)

  • Realized Dialectica-like construction Dial◮

◮ Only over a CCC extension of M

!(U, X, ϕ(u, x)) = (U◮X , 1, ∀x ϕ(f (◮ x), x)

◮ Relationship with Dial via a “feedback” monad

exploits fix : A◮A → A

32 / 36

slide-85
SLIDE 85

Linking LMSO with Dialectica

Fibered Dialectica

[Hyland (2001)]

Dial ∼ = Sum ◦ Prod

Prod(p) ∼ = Sum(pop)op [Hofstra (2011)]

◮ Dial(p)-predicate over A ≈ (U, X, ϕ(a, u, x))

think ∃u ∀x ϕ(a, u, x)

◮ interprets full intuitionistic MLL+FO and exponentials

!(U, X, ϕ(u, x)) = (U, 1, ∀x ϕ(u, x)

Sum(p)

LNL-adjunction

Dial◮(p)

Prod(p)

  • Realized Dialectica-like construction Dial◮

◮ Only over a CCC extension of M

!(U, X, ϕ(u, x)) = (U◮X , 1, ∀x ϕ(f (◮ x), x)

◮ Relationship with Dial via a “feedback” monad

exploits fix : A◮A → A

◮ Polarity restrictions ≈ model of LMSO

(restricted exponentials)

32 / 36

slide-86
SLIDE 86

Outline

Monadic Second-Order logic Part I: Reverse Mathematics Part II: proof systems for Church’s synthesis Conclusion

33 / 36

slide-87
SLIDE 87

Part I : the logical strength of MSO

Summary

Axiomatic strength of two classical MSO theories. ◮ In the context of Reverse Mathematics. ◮ Strong link between Σ0

2-induction and MSO(N).

◮ Preliminary results on MSO(Q).

34 / 36

slide-88
SLIDE 88

Part I : the logical strength of MSO

Summary

Axiomatic strength of two classical MSO theories. ◮ In the context of Reverse Mathematics. ◮ Strong link between Σ0

2-induction and MSO(N).

◮ Preliminary results on MSO(Q).

Related work

◮ Characterizations of the topological complexity of MSO-definable sets. ◮ Extension to the Reverse-mathematical analysis to intuitionistic logic.

[Lichter and Smolka (2018)]

◮ Conservativity results for cyclic arithmetic.

[Simpson (2017), Das (2019)]

34 / 36

slide-89
SLIDE 89

Part II: Curry-Howard for MSO(N)

Summary

◮ Realizability models based on simulations between automata ◮ Abstract reformulation

link with Dialectica and typed realizability

◮ Complete extension of LMSO

  • mitted from the talk [P., Riba (2019)]

35 / 36

slide-90
SLIDE 90

Part II: Curry-Howard for MSO(N)

Summary

◮ Realizability models based on simulations between automata ◮ Abstract reformulation

link with Dialectica and typed realizability

◮ Complete extension of LMSO

  • mitted from the talk [P., Riba (2019)]

Related work

◮ Fibrations of tree automata

[Riba (2015)]

◮ Good-for-games automata

[Henziger, Piterman (2006), Kuperberg Skrzypczak (2015)]

35 / 36

slide-91
SLIDE 91

Final word

Some further questions

◮ Realizability for continuous functions Σω → Γω? ◮ Extensions of Dial◮ for fibrations over the topos of trees?

Fam(Fam(pop)op) instead of Dial(p)

◮ Undecidability of the equational logic of higher-order extensions of FOM?

36 / 36

slide-92
SLIDE 92

Final word

Some further questions

◮ Realizability for continuous functions Σω → Γω? ◮ Extensions of Dial◮ for fibrations over the topos of trees?

Fam(Fam(pop)op) instead of Dial(p)

◮ Undecidability of the equational logic of higher-order extensions of FOM?

Thanks for your attention! Questions?

36 / 36

slide-93
SLIDE 93

Induction and comprehension

RCA0 is defined by restricting induction and comprehension

Comprehension axiom

For every formula φ(n) (with X / ∈ FV (φ) ∃X ∀n ∈ N (φ(n) ⇔ n ∈ X) ◮ RCA0: restricted to ∆0

1 formulas

recursive comprehension

Induction axiom

To prove that ∀n ∈ Nφ(n) it suffices to show ◮ φ(0) holds ◮ for every n ∈ N, φ(n) implies φ(n + 1) ◮ RCA0: restricted to Σ0

1 formulas.

∃n δ(n) with δ ∈ ∆0

1

◮ Equivalent to minimization principles and comprehension for finite sets.

1 / 6

slide-94
SLIDE 94

Additive Ramsey over ω

Additive Ramsey

Let M be a monoid. For every map f : [N]2 → M such that f (i, j)f (j, k) = f (i, k), there exists an infinite set X ⊆ N and c ∈ M such that f (i, j) = c for i, j ∈ X.

Theorem

Over RCA0, additive Ramsey is equivalent to Σ0

2-IND.

2 / 6

slide-95
SLIDE 95

Combinatorics for coloring over Q

Let D be a dense linear order (≃ Q). A function f : D → X is called homogeneous if f −1(x) is either dense or empty for every x ∈ X.

The shuffle principle

For any coloring c : Q → 0, n, there is ]x, y[ such that c

  • ]x,y[ is homogeneous.

◮ the key additional principle behind the usual inductive argument in [Carton, Colcombet, Puppis (2015)]

Shelah’s additive Ramseyan theorem

Let M be a monoid. For every map f : [Q]2 → M such that f (q, r)f (r, s) = f (q, s), there exists an interval I ⊆ Q and a finite partition into finitely many dense sets Di of I such that f is constant over each [Di]2. ◮ the key additional principle behind the usual inductive argument in [Shelah (1975)]

3 / 6

slide-96
SLIDE 96

The Büchi-Landweber theorem

Consider a formula ϕ(u, x). (u ∈ Uω, x ∈ X ω) Infinite 2-player game Gϕ between P and O.

O x0 x1 xn P u0 u1 . . . un . . .

P wins ⇐ ⇒ ϕ(u, x) holds

4 / 6

slide-97
SLIDE 97

The Büchi-Landweber theorem

Consider a formula ϕ(u, x). (u ∈ Uω, x ∈ X ω) Infinite 2-player game Gϕ between P and O.

O x0 x1 xn P u0 u1 . . . un . . .

P wins ⇐ ⇒ ϕ(u, x) holds

P-strategies ≃ X + → U O-strategies ≃ U∗ → X

causal functions eager causal functions

4 / 6

slide-98
SLIDE 98

The Büchi-Landweber theorem

Consider a formula ϕ(u, x). (u ∈ Uω, x ∈ X ω) Infinite 2-player game Gϕ between P and O.

O x0 x1 xn P u0 u1 . . . un . . .

P wins ⇐ ⇒ ϕ(u, x) holds

P-strategies ≃ X + → U O-strategies ≃ U∗ → X

causal functions eager causal functions

Theorem [Büchi-Landweber (1969)]

Suppose ϕ is MSO-definable. The game Gϕ is determined: ◮ Either there exists a finite-state P-strategy sP(x) s.t. ∀x ∈ X ω ϕ(sP(x), x) ◮ Or there exists a finite-state O-strategy sO(u) s.t. ∀u ∈ Uω ¬ϕ(u, sO(u))

4 / 6

slide-99
SLIDE 99

The realizability notion for SMSO

Uniform non-deterministic automata

Tuples A = (Q, q0, U, δA, ΩA) : Σ where ◮ U a set of moves

≃ amount of non-determinism

◮ transition function δA : Σ × Q × U → Q

induces δ∗

A : Σω × Uω → Qω

◮ ΩA ⊆ Qω reasonable acceptance condition

(parity, Muller, . . . )

◮ Same definable languages L(A) = {w | ∃u δ∗

A(w, u)}

U ≃ Q

5 / 6

slide-100
SLIDE 100

The realizability notion for SMSO

Uniform non-deterministic automata

Tuples A = (Q, q0, U, δA, ΩA) : Σ where ◮ U a set of moves

≃ amount of non-determinism

◮ transition function δA : Σ × Q × U → Q

induces δ∗

A : Σω × Uω → Qω

◮ ΩA ⊆ Qω reasonable acceptance condition

(parity, Muller, . . . )

◮ Same definable languages L(A) = {w | ∃u δ∗

A(w, u)}

U ≃ Q

Simulations A f : B

Finite-state causal function f : Σω × Uω → V ω such that ∀w ∈ Σω∀u ∈ Uω δ∗

A(w, u) ∈ ΩA

⇒ δ∗

A(w, f (w, u)) ∈ ΩB

5 / 6

slide-101
SLIDE 101

The realizability notion for SMSO

Uniform non-deterministic automata

Tuples A = (Q, q0, U, δA, ΩA) : Σ where ◮ U a set of moves

≃ amount of non-determinism

◮ transition function δA : Σ × Q × U → Q

induces δ∗

A : Σω × Uω → Qω

◮ ΩA ⊆ Qω reasonable acceptance condition

(parity, Muller, . . . )

◮ Same definable languages L(A) = {w | ∃u δ∗

A(w, u)}

U ≃ Q

Simulations A f : B

Finite-state causal function f : Σω × Uω → V ω such that ∀w ∈ Σω∀u ∈ Uω δ∗

A(w, u) ∈ ΩA

⇒ δ∗

A(w, f (w, u)) ∈ ΩB

◮ If A B, then L(A) ⊆ L(B) ◮ Natural interpretation for ∃, ∧ and ¬ for deterministic automata. . .

5 / 6

slide-102
SLIDE 102

Alternating uniform automata

Define a notion of alternating uniform automata (Q, q0, U, X, δ, Ω) ◮ sets of P-moves U and O-moves X ◮ δ : Σ × Q × U × X → Q ◮ w ∈ L(A) iff P wins an acceptance game

Simulation game

(U , X) − ⊸ (V , Y ) . . . O un P vn O yn P xn . . . P wins iff u, x P-winning ⇒ v, y P-winning ◮ X ≃ 1 non-deterministic uniform automata ◮ U ≃ X ≃ 1 deterministic automata

trivial simulations

6 / 6