A sequent calculus for a semi-associative law 1 Noam Zeilberger - - PowerPoint PPT Presentation

a sequent calculus for
SMART_READER_LITE
LIVE PREVIEW

A sequent calculus for a semi-associative law 1 Noam Zeilberger - - PowerPoint PPT Presentation

A sequent calculus for a semi-associative law 1 Noam Zeilberger University of Birmingham 25-May-2018 CLA 2018 (Paris) 1 Based on a paper: https://arxiv.org/abs/1803.10080 1 / 33 Introduction 2 / 33 The Tamari order The partial order on


slide-1
SLIDE 1

A sequent calculus for a semi-associative law1

Noam Zeilberger

University of Birmingham

25-May-2018 CLA 2018 (Paris)

1Based on a paper: https://arxiv.org/abs/1803.10080 1 / 33

slide-2
SLIDE 2

Introduction

2 / 33

slide-3
SLIDE 3

The Tamari order The partial order on binary trees induced by right2 rotation − → Equivalently, order on bracketings induced by semi-associativity (A ∗ B) ∗ C ≤ A ∗ (B ∗ C) plus monotonicity (A ≤ A′ and B ≤ B′ implies A ∗ B ≤ A′ ∗ B′)

2Alternatively: left 3 / 33

slide-4
SLIDE 4

Example: (p ∗ (q ∗ r)) ∗ s ≤ p ∗ (q ∗ (r ∗ s)) − → − →

4 / 33

slide-5
SLIDE 5

First studied by Dov Tamari. [An excerpt from “Monoïdes préordonnés et chaînes de Malcev,” PhD Thesis, Université de Paris, 1951.]

5 / 33

slide-6
SLIDE 6

Tamari lattices Let Yn be the set of Cn =

2n

n

/(n + 1) Catalan objects of size n,

  • rdered by the Tamari order. Yn is in fact a lattice.

◮ H. Friedman and D. Tamari, “Problèmes d’associativité: une

structure de treillis finis induite par une loi demi-associative,” J. Combinatorial Theory, vol. 2, 1967.

◮ S. Huang and D. Tamari, “Problems of associativity: A simple proof

for the lattice property of systems ordered by a semi-associative law,” J. Combin. Theory Ser. A, vol. 13, no. 1, 1972.

The Hasse diagram of Yn is the skeleton of an n − 1 dimensional polytope known as an “associahedron”.

6 / 33

slide-7
SLIDE 7

Y3

7 / 33

slide-8
SLIDE 8

Y4

1 1 2 1 2 1 1 1 2 1 2 3 1 3 1 3 2 3 1 2 3

(cf. Knuth, “The associative law, or the anatomy of rotations in binary trees”, https://www.youtube.com/watch?v=Xp7bnx1wDz4)

8 / 33

slide-9
SLIDE 9

Counting intervals in Tamari lattices Theorem (Chapoton 2006) Let In = { (A, B) ∈ Yn × Yn | A

Tam

≤ B }. Then |In| =

2(4n+1)! (n+1)!(3n+2)!.

For example, Y3 contains 13 intervals: Note: the formula (A000260) was originally derived by Tutte, but for a completely different family of objects!

9 / 33

slide-10
SLIDE 10

Counting rooted maps [An excerpt from “A census of planar triangulations,” Canad. J. Math., vol. 14, pp. 21–38, 1962]

10 / 33

slide-11
SLIDE 11

Counting lambda terms family of lambda terms family of rooted maps OEIS linear terms 3-valent maps A062980 planar terms planar 3-valent maps A002005 unitless linear bridgeless 3-valent A267827 unitless planar bridgeless planar 3-valent A000309 normal linear terms/∼ maps A000698 normal planar terms planar maps A000168 normal unitless linear/∼ bridgeless maps A000699 normal unitless planar bridgeless planar A000260

11 / 33

slide-12
SLIDE 12

So the Tamari order must be related to lambda calculus?? Perhaps it would be helpful to study it as a logical system...

12 / 33

slide-13
SLIDE 13

Sequent calculus

13 / 33

slide-14
SLIDE 14

A formula is either a product (A ∗ B) or atomic (p, q, . . . ) A context (Γ, ∆, . . . ) is a list of formulas A sequent is a pair of a context and a formula (Γ − → A) A derivation is a tree of sequents, constructed via four rules: A − → A id Θ − → A Γ, A, ∆ − → B Γ, Θ, ∆ − → B cut A, B, ∆ − → C A ∗ B, ∆ − → C ∗L Γ − → A ∆ − → B Γ, ∆ − → A ∗ B ∗R (Note: no “weakening”, “contraction”, or “exchange” rules.)

14 / 33

slide-15
SLIDE 15

Tamari vs Lambek These rules are almost straight from Lambek3... A, B, ∆ − → C A ∗ B, ∆ − → C ∗L versus Γ, A, B, ∆ − → C Γ, A ∗ B, ∆ − → C ∗Lamb . . . but this simple restriction makes all the difference!

  • 3J. Lambek, “The mathematics of sentence structure,” The American

Mathematical Monthly, vol. 65, no. 3, pp. 154–170, 1958.

15 / 33

slide-16
SLIDE 16

≤ Example: (p ∗ (q ∗ r)) ∗ s ≤ p ∗ (q ∗ (r ∗ s)) p − → p q − → q r − → r s − → s r, s − → r ∗ s R q, r, s − → q ∗ (r ∗ s) R q ∗ r, s − → q ∗ (r ∗ s) L p, q ∗ r, s − → p ∗ (q ∗ (r ∗ s)) R p ∗ (q ∗ r), s − → p ∗ (q ∗ (r ∗ s)) L (p ∗ (q ∗ r)) ∗ s − → p ∗ (q ∗ (r ∗ s)) L

16 / 33

slide-17
SLIDE 17

≤ Counterexample: p ∗ (q ∗ (r ∗ s)) ≤ (p ∗ (q ∗ r)) ∗ s p − → p q − → q r − → r q, r − → q ∗ r R p, q, r − → p ∗ (q ∗ r) R s − → s p, q, r, s − → (p ∗ (q ∗ r)) ∗ s R p, q, r ∗ s − → (p ∗ (q ∗ r)) ∗ s Lamb p, q ∗ (r ∗ s) − → (p ∗ (q ∗ r)) ∗ s Lamb p ∗ (q ∗ (r ∗ s)) − → (p ∗ (q ∗ r)) ∗ s L

17 / 33

slide-18
SLIDE 18

Theorem (Completeness) If A

Tam

≤ B then A − → B. Theorem (Soundness) If Γ − → B then φ[Γ]

Tam

≤ B, where φ[A0, . . . , An] = ((A0 ∗ A1) · · · ) ∗ An is the left-associated product

18 / 33

slide-19
SLIDE 19

Proof of completeness (easy) Reflexivity + transitivity: immediate by id and cut. Monotonicity:

A − → A′ B − → B′ A, B − → A′ ∗ B′ R A ∗ B − → A′ ∗ B′ L

Semi-associativity:

A − → A B − → B C − → C B, C − → B ∗ C R A, B, C − → A ∗ (B ∗ C) R A ∗ B, C − → A ∗ (B ∗ C) L (A ∗ B) ∗ C − → A ∗ (B ∗ C) L

19 / 33

slide-20
SLIDE 20

Proof of soundness (mildly satisfying) Key lemmas about φ[−]:

◮ “colaxity”: φ[Γ, ∆] ≤ φ[Γ] ∗ φ[∆] ◮ φ[Γ, ∆] = φ[Γ] ⊛ ∆, where the (monotonic) right action

− ⊛ ∆ is defined by A ⊛ (B1, . . . , Bn) = ((A ∗ B1) · · · ) ∗ Bn Soundness follows by induction on derivations... (Case id): by reflexivity. (Case ∗L): φ[A ∗ B, Γ] = φ[A, B, Γ] ≤ C (Case ∗R): φ[Γ, ∆] ≤ φ[Γ] ∗ φ[∆] ≤ A ∗ B (Case cut): φ[Γ, Θ, ∆] = φ[Γ, Θ] ⊛ ∆ ≤ (φ[Γ] ∗ φ[Θ]) ⊛ ∆ ≤ (φ[Γ] ∗ A) ⊛ ∆ = φ[Γ, A, ∆] ≤ B

20 / 33

slide-21
SLIDE 21

We say that a derivation is focused if it only uses ∗L and the following restricted forms of ∗R and id (and no cut): Γirr − → A ∆ − → B Γirr, ∆ − → A ∗ B ∗Rfoc p − → p idatm where Γirr denotes an “irreducible” context (atomic on the left) Theorem (Focusing completeness) Every derivable sequent has a focused derivation. Theorem (Coherence) Every derivable sequent has exactly one focused derivation. (Proofs not difficult by standard inductions – no surprises other than that it works!)

21 / 33

slide-22
SLIDE 22

Application #1: counting intervals

22 / 33

slide-23
SLIDE 23

By the coherence theorem, the problem of counting intervals is equivalent to the problem of counting focused derivations! Consider the bivariate OGFs L(z, x) and R(z, x), where [znxk]L(z, x) = # focused derivations of sequents of the form Γ − → A with len(Γ) = k and size(A) = n. [znxk]R(z, x) = # focused derivations of sequents of the form Γirr − → A with len(Γirr) = k and size(A) = n. We have (by the coherence theorem) that |In| = [zn]L1(z) where L1(z) = [x1]L(z, x).

23 / 33

slide-24
SLIDE 24

From the inductive definition of focused derivations. . . A, B, ∆ − → C A ∗ B, ∆ − → C ∗L Γirr − → A ∆ − → B Γirr, ∆ − → A ∗ B ∗Rfoc p − → p idatm we immediately obtain the following functional equations: L(z, x) = (L(z, x) − xL1(z))/x + R(z, x) = x R(z, x) − R(z, 1) x − 1 (1) R(z, x) = zR(z, x)L(z, x) + x (2) These can be solved via quadratic method (Cori & Schaeffer ’03) to obtain the formula [zn]L1(z) = [zn]R(z, 1) =

2(4n+1)! (n+1)!(3n+2)!.

24 / 33

slide-25
SLIDE 25

Comparison to Chapoton Chapoton likewise defined a bivariate OGF Φ(z, x), where x keeps track of “the number of segments along the left border” of the tree at the lower end of the interval, and obtains the following equation: Φ(z, x) = x2z(1 + Φ(z, x)/x)

  • 1 + Φ(z, x) − Φ(z, 1)

x − 1

  • (3)

In fact (3) can be derived from (1) and (2) by taking Φ(z, x) = R(z, x) − x because Chapoton excludes the case n = 0. (In other words, our proof in the end is very similar to Chapoton’s, just a little more systematic.)

25 / 33

slide-26
SLIDE 26

Application #2: lattice property

26 / 33

slide-27
SLIDE 27

We can use the calculus to give a new proof of the lattice property

  • f the Tamari order, i.e., that each Yn has joins (and meets).

First step: extend the order to contexts via substitution ordering, i.e., least relation such that: 1) Γ − → A implies Γ ≤ A; 2) · ≤ ·; and 3) if Γ1 ≤ Γ2 and Θ1 ≤ Θ2 then (Γ1, Θ1) ≤ (Γ2, Θ2). Defines a family of posets F(Y)[n] of forests with n + 1 leaves.

27 / 33

slide-28
SLIDE 28

Key observation: there is an adjoint triple Yn F(Y)[n]

i ψ φ

φ[Γ] ≤ A ⇐ ⇒ Γ ≤ i[A] ψ[A] ≤ Θ ⇐ ⇒ A ≤ φ[Θ] where i is the evident inclusion, φ is the left-associated product, and ψ the maximal decomposition of a tree along its left border.4 We can use this to reduce any join of trees to a join of forests:5 A ∨ B = φ[ψ[A] ⊔ ψ[B]]

4The adjunction φ ⊣ i corresponds to soundness & completeness of the

sequent calculus, while ψ ⊣ φ follows from focusing completeness.

5Since “left adjoints preserve colimits”. 28 / 33

slide-29
SLIDE 29

Conversely, we can use the fact that F(Y)[n] lives naturally over the lattice of compositions ordered by refinement6 O[n] ∼ = 2n to reduce any join of forests to a join of compositions, together with joins of trees in Ym for m < n: Γ ⊔ ∆ = i[φ[Γ1] ∨ φ[∆1]], . . . , i[φ[Γk] ∨ φ[∆k]] where the splittings Γ = (Γ1, . . . , Γk) and ∆ = (∆1, . . . , ∆k) are determined by joining the underlying compositions of Γ and ∆.

6In the sense that there is an evident “forgetful mapping” F(Y)[n] → O[n]. 29 / 33

slide-30
SLIDE 30

Example: A = p ∗ ((q ∗ (r ∗ ((s ∗ t) ∗ u))) ∗ v) B = (p ∗ (q ∗ r)) ∗ ((s ∗ t) ∗ (u ∗ v))

round A ψ[A] B ψ[B] ψ[A] ⊔ ψ[B] 1 p((q(r((st)u)))v) p, (q(r((st)u)))v (p(qr))((st)(uv)) p, qr, (st)(uv) p, A2 ∨ B2 2 (q(r((st)u)))v q, r((st)u), v (qr)((st)(uv)) q, r, (st)(uv) q, A3 ∨ B3 3 (r((st)u))v r, (st)u, v r((st)(uv)) r, (st)(uv) r, A4 ∨ B4 4 ((st)u)v s, t, u, v (st)(uv) s, t, uv s, t, A5 ∨ B5 5 uv u, v uv u, v u, v

We conclude that A ∨ B = (p ∗ (q ∗ (r ∗ ((s ∗ t) ∗ (u ∗ v))))).

30 / 33

slide-31
SLIDE 31

Conclusion

31 / 33

slide-32
SLIDE 32

Conclusions and questions We’ve given a surprising application of proof theory to combinatorics. Does the sequent calculus help us to understand any other of the fascinating properties of the associahedra? What about the permutahedra and other “generalized permutahedra”? (cf. Aguiar and Ardila, arXiv:1709.07504) What else can we learn by counting proofs?

32 / 33

slide-33
SLIDE 33

Selected references

  • F. Chapoton. Sur le nombre d’intervalles dans les treillis de tamari.

Séminaire Lotharingien de Combinatoire, (B55f), 2006. 18 pp. (electronic).

  • H. Friedman and D. Tamari. Problèmes d’associativité: une

structure de treillis finis induite par une loi demi-associative. Journal

  • f Combinatorial Theory, 2:215–242, 1967.

Joachim Lambek. The mathematics of sentence structure. The American Mathematical Monthly, 65(3):154–170, 1958. Folkert Müller-Hoissen and Hans-Otto Walther, editors. Associahedra, Tamari Lattices and Related Structures: Tamari Memorial Festschrift, volume 299 of Progress in Mathematics. Birkhauser, 2012. Noam Zeilberger. A sequent calculus for a semi-associative law. In 2nd International Conference on Formal Structures for Computation and Deduction (FSCD 2017), pages 33:1–33:16, 2017. Extended version: arXiv:1803.10080.

33 / 33