Polymoprhic Algebraic Theoreis - Syntax, Semantics, Translations, - - PowerPoint PPT Presentation

polymoprhic algebraic theoreis
SMART_READER_LITE
LIVE PREVIEW

Polymoprhic Algebraic Theoreis - Syntax, Semantics, Translations, - - PowerPoint PPT Presentation

Polymoprhic Algebraic Theoreis - Syntax, Semantics, Translations, and Eqational Logic - LICS 2013, June, Tulane University University of Cambridge, UK Marcelo Fiore Makoto Hamana Gunma University, Japan W h a t i s P o l y m o r p h i s m


slide-1
SLIDE 1

University of Cambridge, UK Marcelo Fiore

LICS 2013, June, Tulane University

Polymoprhic Algebraic Theoreis

  • Syntax, Semantics, Translations, and Eqational Logic -

Gunma University, Japan

Makoto Hamana

slide-2
SLIDE 2

have many instances Polymorphic types = “variable types”

W h a t i s P o l y m o r p h i s m

slide-3
SLIDE 3

⇒ U n i f i e d T h e o r y f o r P o l y m o r p h i s m ⇒Mutiversal Polymoprhic Algebraic Theoreis

Various Polymorphic Sytems

OO Languages

Java, C++, Scala,etc.

Polymorphic Contracts

[Guha, et al. ’07] [Belo et al.’11]

Polymorphic

π-calculus

[Pierce, Sanngiorgi’00]

Polymorphic Logic Programming

[Shapiro’91][Hanus’91]

Polymorphic XML

[Hosoya et al.’09]

ML, Haskell

[Milner’75,78]

System Fc↑

[Yorgey et al.’12]

Polymorphic Record Calculus

[Ohori’95]

System F

[Girard’71, Reynolds’74]

System Fω λU

[Girard’72]

slide-4
SLIDE 4
  • f

Ty p e s

OO Languages

Java, C++, Scala,etc.

Polymorphic Contracts Polymorphic

π-calculus

Polymorphic Logic Programming

Polymorphic XML

ML, Haskell

System Fc↑ Polymorphic Record Calculus

System F System Fω λU

  • Universe = collection of all types (cf. Martin-Lof Type Theory)

= multiple type universes

  • Translation = algebra homomorphism

Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps Tyeps

slide-5
SLIDE 5
slide-6
SLIDE 6

How to give Algebraic Theory

  • Signatures, terms, equations
  • Clones in universal algebra
  • Lawvere theories
  • (Finitary) monads
  • Cartesian multicategories
slide-7
SLIDE 7

W h a t i s a n Al g e b ra i c T h e o r y

types, contexts

  • Signatures, terms, equations

Polymorphic

slide-8
SLIDE 8

Various other examples

  • Existential λ
  • Polymorphic FPC
  • Algebraic theory for global state

metavariable type metavariable binding meta-level subst.

  • bject variable

(Polymorphic λ-calculus)

slide-9
SLIDE 9

How to Built Polymorphic Algebirac Theory

Algebraic Characterisation of Untyped Syntax with Variable Binding

[Fiore, Plotkin, Turi LICSʼ99]

Polymorphic Algebraic Theories with Metavariables

[H. APLASʼ04]

via Σ-monoids Polymorphic Abstract Syntax

[H. FoSSaCSʼ11]

via Grothendieck Constr. Polymorphic Abstract Syntax with Metavariables This work

slide-10
SLIDE 10

initial F-algebra

slide-11
SLIDE 11
slide-12
SLIDE 12

(Polymorphic λ-calculus)

slide-13
SLIDE 13

Polymorphic Case

?

⇒Collect all possible dependent triples

  • Esp. type univese
slide-14
SLIDE 14

Types depend on type variable contexts

A universe of polymorphic types is a Σ-monoid . Def.

signature for type constructors

slide-15
SLIDE 15
slide-16
SLIDE 16

Category of Discourse for Polymorphic Systems

The Grothendieck Construction gives dependent triples. type context

slide-17
SLIDE 17

type metavariable meta-level subst.

(Polymorphic λ-calculus)

slide-18
SLIDE 18

Endofunctor for Polymorphic Syntax

signature endofunctor polynomial diagram in Cat universe = -monoid

[Moerdijk, Palmgren,Gambino, Hyland,Kock,Batanin,Weber,...]

slide-19
SLIDE 19

General notion of models

slide-20
SLIDE 20

Free polymorphic structure as “syntax with metavariabls” Any polymorphic structure as “semantics” Homomorphism = interpretation

metavariabels

▶ We may want to change a universe U in interpretation

Category

  • polymorphic strucres
  • homomorphisms
slide-21
SLIDE 21

metavariable type metavariable binding meta-level subst. Various examples

  • Existential λ
  • Polymorphic FPC
  • Algebraic theory for global state
slide-22
SLIDE 22
slide-23
SLIDE 23

Paper

Multiversal Polymorphic Algebraic Theories: Syntax, Semantics, Translations, and Equational Logic

  • Proc. of Twenty-Eighth Annual ACM/IEEE Symposium on

Logic in Computer Science (LICS 2013), IEEE Press. http://www.cs.gunma-u.ac.jp/~hamana/