A modal type system for safe distributed computing
Giuseppe Primiero
FWO - Flemish Research Foundation Centre for Logic and Philosophy of Science, Ghent University Giuseppe.Primiero@Ugent.be http://www.philosophy.ugent.be/giuseppeprimiero/
A modal type system for safe distributed computing Giuseppe - - PowerPoint PPT Presentation
A modal type system for safe distributed computing Giuseppe Primiero FWO - Flemish Research Foundation Centre for Logic and Philosophy of Science, Ghent University Giuseppe.Primiero@Ugent.be http://www.philosophy.ugent.be/giuseppeprimiero/
FWO - Flemish Research Foundation Centre for Logic and Philosophy of Science, Ghent University Giuseppe.Primiero@Ugent.be http://www.philosophy.ugent.be/giuseppeprimiero/
1
2
3
4
Modal Type Theory PCC12 2 / 31
1
2
3
4
Modal Type Theory PCC12 3 / 31
Modal Type Theory PCC12 3 / 31
Modal Type Theory PCC12 3 / 31
Modal Type Theory PCC12 3 / 31
◮ [Borghuis and Feijs, 2000]: focus on the representation of the order
Modal Type Theory PCC12 4 / 31
◮ [Borghuis and Feijs, 2000]: focus on the representation of the order
◮ [Davies and Pfenning, 2001], [Jia and Walker, 2004],
Modal Type Theory PCC12 4 / 31
◮ [Borghuis and Feijs, 2000]: focus on the representation of the order
◮ [Davies and Pfenning, 2001], [Jia and Walker, 2004],
◮ [Park, 2006]: distinction between transmission of safe values and
Modal Type Theory PCC12 4 / 31
◮ [Borghuis and Feijs, 2000]: focus on the representation of the order
◮ [Davies and Pfenning, 2001], [Jia and Walker, 2004],
◮ [Park, 2006]: distinction between transmission of safe values and
◮ [Bonelli and Feller, 2009]: code and certificate development;
Modal Type Theory PCC12 4 / 31
Modal Type Theory PCC12 5 / 31
◮ ai :A says that program a is executed at address i for specification
Modal Type Theory PCC12 5 / 31
◮ ai :A says that program a is executed at address i for specification
◮ xi :A says that code for specification A is validly executable at (and
Modal Type Theory PCC12 5 / 31
◮ ai :A says that program a is executed at address i for specification
◮ xi :A says that code for specification A is validly executable at (and
◮ ✷i(A true): “A is valid at every address accessible from i”;
Modal Type Theory PCC12 5 / 31
◮ ai :A says that program a is executed at address i for specification
◮ xi :A says that code for specification A is validly executable at (and
◮ ✷i(A true): “A is valid at every address accessible from i”; ◮ ✸i(A true): “A is executable from address i”;
Modal Type Theory PCC12 5 / 31
◮ ai :A says that program a is executed at address i for specification
◮ xi :A says that code for specification A is validly executable at (and
◮ ✷i(A true): “A is valid at every address accessible from i”; ◮ ✸i(A true): “A is executable from address i”; ◮ ◦Γ ⊢ ◦(A true): contexts describe networks in which code is
Modal Type Theory PCC12 5 / 31
◮ Categorical fragment used to interpret operations with safe values ◮ Functional fragment used to interpret distributed computations with
Modal Type Theory PCC12 6 / 31
1
2
3
Modal Type Theory PCC12 7 / 31
1
2
3
4
Modal Type Theory PCC12 8 / 31
Modal Type Theory PCC12 8 / 31
Modal Type Theory PCC12 8 / 31
Modal Type Theory PCC12 8 / 31
Modal Type Theory PCC12 9 / 31
Modal Type Theory PCC12 10 / 31
Modal Type Theory PCC12 11 / 31
Modal Type Theory PCC12 12 / 31
Modal Type Theory PCC12 13 / 31
◮ Program for A is everywhere satisfied; ◮ A true holds under any extension of globally valid conditions ∅, ∆.
Modal Type Theory PCC12 13 / 31
◮ Program for A is everywhere satisfied; ◮ A true holds under any extension of globally valid conditions ∅, ∆.
◮ Program for A can be executed somewhere (where correctly
◮ A true holds under some context extension ∆, Γ.
Modal Type Theory PCC12 13 / 31
Modal Type Theory PCC12 14 / 31
Modal Type Theory PCC12 14 / 31
Modal Type Theory PCC12 15 / 31
Modal Type Theory PCC12 15 / 31
Modal Type Theory PCC12 16 / 31
Modal Type Theory PCC12 16 / 31
Modal Type Theory PCC12 17 / 31
Modal Type Theory PCC12 18 / 31
Modal Type Theory PCC12 19 / 31
1
2
3
4
Modal Type Theory PCC12 20 / 31
Modal Type Theory PCC12 20 / 31
j . This means that there is a transition → from state S valid
Modal Type Theory PCC12 21 / 31
Modal Type Theory PCC12 22 / 31
Modal Type Theory PCC12 23 / 31
Modal Type Theory PCC12 24 / 31
Modal Type Theory PCC12 25 / 31
1
2
Modal Type Theory PCC12 26 / 31
1
2
3
4
Modal Type Theory PCC12 27 / 31
Modal Type Theory PCC12 27 / 31
Modal Type Theory PCC12 28 / 31
Modal Type Theory PCC12 29 / 31
Modal Type Theory PCC12 30 / 31
Modal Type Theory PCC12 31 / 31