luigi santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/ldp/lecture10.pdf · 2006. 9. 14. ·...
TRANSCRIPT
![Page 1: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/1.jpg)
Semantique denotationnelle
Luigi Santocanale
Laboratoire d’Informatique Fondamentale,Centre de Mathematiques et Informatique,
39, rue Joliot-Curie - F-13453 Marseille
Luigi Santocanale Semantique denotationnelle 1
![Page 2: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/2.jpg)
Plan
1 Semantique denotationnelle du langage IMLDefinitionSemantique denotationnelle vs. semantique operationnelle
2 Treillis complets et le theoreme de TarskiTreillis completsLes theoremes de point fixe
3 Semantique abstraite : introduction a la theorie des domaines
Luigi Santocanale Semantique denotationnelle 2
![Page 3: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/3.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Plan
1 Semantique denotationnelle du langage IMLDefinitionSemantique denotationnelle vs. semantique operationnelle
2 Treillis complets et le theoreme de TarskiTreillis completsLes theoremes de point fixe
3 Semantique abstraite : introduction a la theorie des domaines
Luigi Santocanale Semantique denotationnelle 3
![Page 4: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/4.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
A chaque expression/commande du langage on associeune relation, son interpretation :
|| · ||Aexp : Aexp −→ P(S ×N )
|| · ||Bexp : Bexp −→ P(S × {1, 0})
|| · ||Com : Com −→ P(S × S)
Luigi Santocanale Semantique denotationnelle 4
![Page 5: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/5.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions arithmetiques
|| n || = { (σ, n) |σ ∈ S }
||X || = { (σ, σ(X )) |σ ∈ S }
|| a1 + a2 || = { (σ, n1 + n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 − a2 || = { (σ, n1 − n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 ∗ a2 || = { (σ, n1n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
Luigi Santocanale Semantique denotationnelle 5
![Page 6: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/6.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions arithmetiques
|| n || = { (σ, n) |σ ∈ S }
||X || = { (σ, σ(X )) |σ ∈ S }
|| a1 + a2 || = { (σ, n1 + n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 − a2 || = { (σ, n1 − n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 ∗ a2 || = { (σ, n1n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
Luigi Santocanale Semantique denotationnelle 5
![Page 7: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/7.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions arithmetiques
|| n || = { (σ, n) |σ ∈ S }
||X || = { (σ, σ(X )) |σ ∈ S }
|| a1 + a2 || = { (σ, n1 + n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 − a2 || = { (σ, n1 − n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 ∗ a2 || = { (σ, n1n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
Luigi Santocanale Semantique denotationnelle 5
![Page 8: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/8.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions arithmetiques
|| n || = { (σ, n) |σ ∈ S }
||X || = { (σ, σ(X )) |σ ∈ S }
|| a1 + a2 || = { (σ, n1 + n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 − a2 || = { (σ, n1 − n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 ∗ a2 || = { (σ, n1n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
Luigi Santocanale Semantique denotationnelle 5
![Page 9: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/9.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions arithmetiques
|| n || = { (σ, n) |σ ∈ S }
||X || = { (σ, σ(X )) |σ ∈ S }
|| a1 + a2 || = { (σ, n1 + n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 − a2 || = { (σ, n1 − n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
|| a1 ∗ a2 || = { (σ, n1n2) | (σ, n1) ∈ || a1 ||, (σ, n2) ∈ || a2 || }
Luigi Santocanale Semantique denotationnelle 5
![Page 10: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/10.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 11: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/11.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 12: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/12.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 13: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/13.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 14: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/14.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 15: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/15.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 16: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/16.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 17: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/17.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des expressions booleennes
|| true || = { (σ, 1) |σ ∈ S }
|| false || = . . .
|| not b || = { (σ, 1) | (σ, 0) ∈ || b || } ∪ { (σ, 0) | (σ, 1) ∈ || b || }
|| b1 and b2 || = . . .
|| b1 or b2 || = . . .
|| b1 <= b2 || = { (σ, 1) | ∃n1 ≤ n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
∪ { (σ, 0) | ∃n1 > n2 t.c. (σ, n1) ∈ || b1 || et (σ, n2) ∈ || b2 || }
|| b1 = b2 || = . . .
Exercice : completer la definition.
Luigi Santocanale Semantique denotationnelle 6
![Page 18: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/18.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des commandes
|| skip || = { (σ, σ) |σ ∈ S }
|| c1; c2 || = { (σ1, σ3) | ∃σ2 t.q. (σ1, σ2) ∈ || c1 || et
(σ2, σ3) ∈ || c2 || }
||X := a || = { (σ, σ[n/X ]) | (σ, n) ∈ || a ||Aexp }
|| if ( b ) then c1 else c2 ||= { (σ1, σ2) ∈ || c1 || | (σ1, 1) ∈ || b ||Bexp }∪ { (σ1, σ2) ∈ || c2 || | (σ1, 0) ∈ || b ||Bexp }
Luigi Santocanale Semantique denotationnelle 7
![Page 19: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/19.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des commandes
|| skip || = { (σ, σ) |σ ∈ S }
|| c1; c2 || = { (σ1, σ3) | ∃σ2 t.q. (σ1, σ2) ∈ || c1 || et
(σ2, σ3) ∈ || c2 || }
||X := a || = { (σ, σ[n/X ]) | (σ, n) ∈ || a ||Aexp }
|| if ( b ) then c1 else c2 ||= { (σ1, σ2) ∈ || c1 || | (σ1, 1) ∈ || b ||Bexp }∪ { (σ1, σ2) ∈ || c2 || | (σ1, 0) ∈ || b ||Bexp }
Luigi Santocanale Semantique denotationnelle 7
![Page 20: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/20.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des commandes
|| skip || = { (σ, σ) |σ ∈ S }
|| c1; c2 || = { (σ1, σ3) | ∃σ2 t.q. (σ1, σ2) ∈ || c1 || et
(σ2, σ3) ∈ || c2 || }
||X := a || = { (σ, σ[n/X ]) | (σ, n) ∈ || a ||Aexp }
|| if ( b ) then c1 else c2 ||= { (σ1, σ2) ∈ || c1 || | (σ1, 1) ∈ || b ||Bexp }∪ { (σ1, σ2) ∈ || c2 || | (σ1, 0) ∈ || b ||Bexp }
Luigi Santocanale Semantique denotationnelle 7
![Page 21: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/21.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation des commandes
|| skip || = { (σ, σ) |σ ∈ S }
|| c1; c2 || = { (σ1, σ3) | ∃σ2 t.q. (σ1, σ2) ∈ || c1 || et
(σ2, σ3) ∈ || c2 || }
||X := a || = { (σ, σ[n/X ]) | (σ, n) ∈ || a ||Aexp }
|| if ( b ) then c1 else c2 ||= { (σ1, σ2) ∈ || c1 || | (σ1, 1) ∈ || b ||Bexp }∪ { (σ1, σ2) ∈ || c2 || | (σ1, 0) ∈ || b ||Bexp }
Luigi Santocanale Semantique denotationnelle 7
![Page 22: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/22.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation du commande while ... do ...
Soit b ∈ Bexp et comm ∈ Com.Posons :
f (R) = { (σ, σ) | (σ, 0) ∈ || b ||Bexp }∪ { (σ1, σ3) | (σ, 1) ∈ || b ||Bexp et
∃σ2 t.q. (σ1, σ2) ∈ || comm || et (σ2, σ3) ∈ R }
Observons :
f : P(S × S) −→ P(S × S) est une fonction croissante,
si c ∈ Com, alors
f (|| c ||) = || if ( b ) then comm ; c else skip || (1)
Luigi Santocanale Semantique denotationnelle 8
![Page 23: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/23.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation de while ... do ... (II)
Definissons
||while b do comm || = fix(f )
= plus petit point fixe de f .
De cette facon :
||while b do comm ||= f ( ||while b do comm || )= || if ( b ) then comm ;while b do comm else skip ||
a cause de (1).
Luigi Santocanale Semantique denotationnelle 9
![Page 24: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/24.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Interpretation de while ... do ... (II)
Definissons
||while b do comm || = fix(f )
= plus petit point fixe de f .
De cette facon :
||while b do comm ||= f ( ||while b do comm || )= || if ( b ) then comm ;while b do comm else skip ||
a cause de (1).
Luigi Santocanale Semantique denotationnelle 9
![Page 25: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/25.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Equivalences
Definition
a ≡Aexp a′ ssi || a ||Aexp = || a′ ||Aexp
b ≡Bexp b′ ssi || b ||Bexp = || b′ ||Aexp
c ≡Com c ′ ssi || c ||Com = || c ′ ||Com
Exemple : on vient de montrer que
while b do comm
≡Com if b then comm;while b do comm else skip
Luigi Santocanale Semantique denotationnelle 10
![Page 26: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/26.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Equivalences
Definition
a ≡Aexp a′ ssi || a ||Aexp = || a′ ||Aexp
b ≡Bexp b′ ssi || b ||Bexp = || b′ ||Aexp
c ≡Com c ′ ssi || c ||Com = || c ′ ||Com
Exemple : on vient de montrer que
while b do comm
≡Com if b then comm;while b do comm else skip
Luigi Santocanale Semantique denotationnelle 10
![Page 27: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/27.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Equivalences
Definition
a ≡Aexp a′ ssi || a ||Aexp = || a′ ||Aexp
b ≡Bexp b′ ssi || b ||Bexp = || b′ ||Aexp
c ≡Com c ′ ssi || c ||Com = || c ′ ||Com
Exemple : on vient de montrer que
while b do comm
≡Com if b then comm;while b do comm else skip
Luigi Santocanale Semantique denotationnelle 10
![Page 28: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/28.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Equivalences
Definition
a ≡Aexp a′ ssi || a ||Aexp = || a′ ||Aexp
b ≡Bexp b′ ssi || b ||Bexp = || b′ ||Aexp
c ≡Com c ′ ssi || c ||Com = || c ′ ||Com
Exemple : on vient de montrer que
while b do comm
≡Com if b then comm;while b do comm else skip
Luigi Santocanale Semantique denotationnelle 10
![Page 29: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/29.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Plan
1 Semantique denotationnelle du langage IMLDefinitionSemantique denotationnelle vs. semantique operationnelle
2 Treillis complets et le theoreme de TarskiTreillis completsLes theoremes de point fixe
3 Semantique abstraite : introduction a la theorie des domaines
Luigi Santocanale Semantique denotationnelle 11
![Page 30: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/30.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Rapport entre les semantiques
semantique operationnelle,
semantique denotationnelle,
semantique axiomatique,
semantique . . .
Quelle coherence ?
Proposition
Le semantique operationnelle est la meme que la semantiquedenotationnelle :
c ∼ c ′ssi c ≡ c ′ .
Luigi Santocanale Semantique denotationnelle 12
![Page 31: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/31.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Rapport entre les semantiques
semantique operationnelle,
semantique denotationnelle,
semantique axiomatique,
semantique . . .
Quelle coherence ?
Proposition
Le semantique operationnelle est la meme que la semantiquedenotationnelle :
c ∼ c ′ssi c ≡ c ′ .
Luigi Santocanale Semantique denotationnelle 12
![Page 32: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/32.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Rapport entre les semantiques (II)
Plus precisement :
Proposition
∀a ∈ Aexp
|| a ||Aexp = { (σ, n) | (a, σ) →Aexp n }
∀b ∈ Bexp
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
∀c ∈ Com
|| c ||Com = { (σ, σ′) | (c , σ) →Com σ′ } .
Luigi Santocanale Semantique denotationnelle 13
![Page 33: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/33.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Rapport entre les semantiques (II)
Plus precisement :
Proposition
∀a ∈ Aexp
|| a ||Aexp = { (σ, n) | (a, σ) →Aexp n }
∀b ∈ Bexp
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
∀c ∈ Com
|| c ||Com = { (σ, σ′) | (c , σ) →Com σ′ } .
Luigi Santocanale Semantique denotationnelle 13
![Page 34: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/34.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Rapport entre les semantiques (II)
Plus precisement :
Proposition
∀a ∈ Aexp
|| a ||Aexp = { (σ, n) | (a, σ) →Aexp n }
∀b ∈ Bexp
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
∀c ∈ Com
|| c ||Com = { (σ, σ′) | (c , σ) →Com σ′ } .
Luigi Santocanale Semantique denotationnelle 13
![Page 35: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/35.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || a ||Aexp = { (σ, n) | (a, σ) →Aexp n }Par induction sur la structure de a.
(σ, n) ∈ || m ||Aexp ssi m = n
ssi (m, σ) →Aexp n
(σ, n) ∈ ||X ||Aexp ssi σ(X ) = n
ssi (X , σ) →Aexp n
Supposons la propriete vraie pour a0, a1.
(σ, n) ∈ || a0 + a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 + n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 + n1
ssi (a0 + a1, σ) →Aexp n .
Luigi Santocanale Semantique denotationnelle 14
![Page 36: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/36.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || a ||Aexp = { (σ, n) | (a, σ) →Aexp n }Par induction sur la structure de a.
(σ, n) ∈ || m ||Aexp ssi m = n
ssi (m, σ) →Aexp n
(σ, n) ∈ ||X ||Aexp ssi σ(X ) = n
ssi (X , σ) →Aexp n
Supposons la propriete vraie pour a0, a1.
(σ, n) ∈ || a0 + a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 + n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 + n1
ssi (a0 + a1, σ) →Aexp n .
Luigi Santocanale Semantique denotationnelle 14
![Page 37: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/37.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || a ||Aexp = { (σ, n) | (a, σ) →Aexp n }Par induction sur la structure de a.
(σ, n) ∈ || m ||Aexp ssi m = n
ssi (m, σ) →Aexp n
(σ, n) ∈ ||X ||Aexp ssi σ(X ) = n
ssi (X , σ) →Aexp n
Supposons la propriete vraie pour a0, a1.
(σ, n) ∈ || a0 + a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 + n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 + n1
ssi (a0 + a1, σ) →Aexp n .
Luigi Santocanale Semantique denotationnelle 14
![Page 38: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/38.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || a ||Aexp = { (σ, n) | (a, σ) →Aexp n }Par induction sur la structure de a.
(σ, n) ∈ || m ||Aexp ssi m = n
ssi (m, σ) →Aexp n
(σ, n) ∈ ||X ||Aexp ssi σ(X ) = n
ssi (X , σ) →Aexp n
Supposons la propriete vraie pour a0, a1.
(σ, n) ∈ || a0 + a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 + n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 + n1
ssi (a0 + a1, σ) →Aexp n .
Luigi Santocanale Semantique denotationnelle 14
![Page 39: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/39.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Suite preuve
On raisonne de facon semblable pour a0 − a1 et a0 ∗ a1 :
(σ, n) ∈ || a0 − a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 − n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 − n1
ssi (a0 − a1, σ) →Aexp n .
Exercice :montrer le resultat analogue
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
pour les expression Booleennes.Luigi Santocanale Semantique denotationnelle 15
![Page 40: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/40.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Suite preuve
On raisonne de facon semblable pour a0 − a1 et a0 ∗ a1 :
(σ, n) ∈ || a0 − a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0 − n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0 − n1
ssi (a0 − a1, σ) →Aexp n .
Exercice :montrer le resultat analogue
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
pour les expression Booleennes.Luigi Santocanale Semantique denotationnelle 15
![Page 41: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/41.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Suite preuve
On raisonne de facon semblable pour a0 − a1 et a0 ∗ a1 :
(σ, n) ∈ || a0 ∗ a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0n1
ssi (a0 ∗ a1, σ) →Aexp n .
Exercice :montrer le resultat analogue
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
pour les expression Booleennes.Luigi Santocanale Semantique denotationnelle 15
![Page 42: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/42.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Suite preuve
On raisonne de facon semblable pour a0 − a1 et a0 ∗ a1 :
(σ, n) ∈ || a0 ∗ a1 ||Aexp
ssi ∃n0, n1 (σ, n0) ∈ || a0 ||Aexp, (σ, n1) ∈ || a1 ||Aexp
et n = n0n1
ssi ∃n0, n1 (a0, σ) →Aexp n0, (a1, σ) →Aexp n1,
et n = n0n1
ssi (a0 ∗ a1, σ) →Aexp n .
Exercice :montrer le resultat analogue
|| b ||Bexp = { (σ, v) | (b, σ) →Bexp v }
pour les expression Booleennes.Luigi Santocanale Semantique denotationnelle 15
![Page 43: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/43.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }
Par induction sur la structure de c .
(σ, σ′) ∈ || skip ||Com ssi σ = σ′
ssi (skip, σ) →Com σ′
(σ, σ′) ∈ ||X := a ||Com ssi σ′ = σ[n/X ] et (σ, n) ∈ || a ||Aexp
ssi σ′ = σ[n/X ] et (a, σ) →Aexp n
ssi (X , σ) →Com σ′
Luigi Santocanale Semantique denotationnelle 16
![Page 44: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/44.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }
Par induction sur la structure de c .
(σ, σ′) ∈ || skip ||Com ssi σ = σ′
ssi (skip, σ) →Com σ′
(σ, σ′) ∈ ||X := a ||Com ssi σ′ = σ[n/X ] et (σ, n) ∈ || a ||Aexp
ssi σ′ = σ[n/X ] et (a, σ) →Aexp n
ssi (X , σ) →Com σ′
Luigi Santocanale Semantique denotationnelle 16
![Page 45: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/45.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }
Par induction sur la structure de c .
(σ, σ′) ∈ || skip ||Com ssi σ = σ′
ssi (skip, σ) →Com σ′
(σ, σ′) ∈ ||X := a ||Com ssi σ′ = σ[n/X ] et (σ, n) ∈ || a ||Aexp
ssi σ′ = σ[n/X ] et (a, σ) →Aexp n
ssi (X , σ) →Com σ′
Luigi Santocanale Semantique denotationnelle 16
![Page 46: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/46.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 47: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/47.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 48: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/48.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 49: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/49.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 50: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/50.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 51: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/51.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 52: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/52.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 53: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/53.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 54: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/54.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Hypothese d’induction : la propriete est vrai pour c , c0, c1.
(σ0, σ2) ∈ || c0; c1 ||Com
ssi ∃σ1 (σ0, σ1) ∈ || c0 ||Com et (σ1, σ2) ∈ || c1 ||Com
ssi ∃σ1 (c0, σ0) →Com σ1 et (c1, σ1) →Com σ2
ssi (c0; c1, σ0) →Com σ2
(σ0, σ1) ∈ || if b then c0 else c1 ||Com
ssi (σ0, 1) ∈ || b ||Bexp et (σ0, σ1) ∈ || c0 ||Com ou
(σ0, 0) ∈ || b ||Bexp et (σ0, σ1) ∈ || c1 ||Com
ssi (b, σ0) →Bexp 1 et (c0, σ0) →Com σ1 ou
(b, σ0) →Bexp 0 et (c1, σ0) →Com σ1
ssi (if b then c0 else c1, σ0) →Com σ1 .Luigi Santocanale Semantique denotationnelle 17
![Page 55: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/55.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Rappel :
||while b do c ||Com = fix(f )
ou
f (X ) = { (σ, σ) | (σ, 0) ∈ || b ||Bexp }∪ { (σ1, σ3) | (σ1, 1) ∈ || b ||Bexp et
∃σ2 t.q. (σ1, σ2) ∈ || c ||Com et (σ2, σ3) ∈ X }On a
f (X ) = fR(X )
ou R est le systeme de regles suivant :{∅/(σ, σ) (σ, 0) ∈ || b ||Bexp
(σ2, σ3)/(σ1, σ3) (σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
et donc fix(f ) = IR .Luigi Santocanale Semantique denotationnelle 18
![Page 56: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/56.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Rappel :
||while b do c ||Com = fix(f )
ou
f (X ) = { (σ, σ) | (σ, 0) ∈ || b ||Bexp }∪ { (σ1, σ3) | (σ1, 1) ∈ || b ||Bexp et
∃σ2 t.q. (σ1, σ2) ∈ || c ||Com et (σ2, σ3) ∈ X }On a
f (X ) = fR(X )
ou R est le systeme de regles suivant :{∅/(σ, σ) (σ, 0) ∈ || b ||Bexp
(σ2, σ3)/(σ1, σ3) (σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
et donc fix(f ) = IR .Luigi Santocanale Semantique denotationnelle 18
![Page 57: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/57.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Rappel :
||while b do c ||Com = fix(f )
ou
f (X ) = { (σ, σ) | (σ, 0) ∈ || b ||Bexp }∪ { (σ1, σ3) | (σ1, 1) ∈ || b ||Bexp et
∃σ2 t.q. (σ1, σ2) ∈ || c ||Com et (σ2, σ3) ∈ X }On a
f (X ) = fR(X )
ou R est le systeme de regles suivant :{∅/(σ, σ) (σ, 0) ∈ || b ||Bexp
(σ2, σ3)/(σ1, σ3) (σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
et donc fix(f ) = IR .Luigi Santocanale Semantique denotationnelle 18
![Page 58: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/58.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Considerons maintenant l’ensemble
A = { (σ1, σ3) | (while b do c , σ1) → σ3 }
Obtenu a l’aide du systeme de regles :
(σ1, 0) ∈ || b ||Bexp
(b, σ1) → 0
(while b do c , σ1) → σ1
(σ1, 1) ∈ || b ||Bexp
(b, σ1) → 1
(σ1, σ2) ∈ || c ||Com
(c , σ1) → σ2 (while b do c , σ2) → σ3
(while b do c , σ1) → σ3
Luigi Santocanale Semantique denotationnelle 19
![Page 59: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/59.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Considerons maintenant l’ensemble
A = { (σ1, σ3) | (while b do c , σ1) → σ3 }
Obtenu a l’aide du systeme de regles :
(σ1, 0) ∈ || b ||Bexp
(b, σ1) → 0
(while b do c , σ1) → σ1
(σ1, 1) ∈ || b ||Bexp
(b, σ1) → 1
(σ1, σ2) ∈ || c ||Com
(c , σ1) → σ2 (while b do c , σ2) → σ3
(while b do c , σ1) → σ3
Luigi Santocanale Semantique denotationnelle 19
![Page 60: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/60.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Considerons maintenant l’ensemble
A = { (σ1, σ3) | (while b do c , σ1) → σ3 }
Obtenu a l’aide du systeme de regles :
(σ1, 0) ∈ || b ||Bexp
(b, σ1) → 0
(while b do c , σ1) → σ1
(σ1, 1) ∈ || b ||Bexp
(b, σ1) → 1
(σ1, σ2) ∈ || c ||Com
(c , σ1) → σ2 (while b do c , σ2) → σ3
(while b do c , σ1) → σ3
Luigi Santocanale Semantique denotationnelle 19
![Page 61: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/61.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Formulation concise des memes regles :
(σ1, 0) ∈ || b ||Bexp(. . . , σ1) → σ3
(. . . , σ2) → σ3(σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
(. . . , σ1) → σ3
c.-a-d. :
Pour montrer que (σ1, σ3) ∈ Ail faut avoir un arbre de derivation etiquette par les regles de R.
On a donc :
A = IR = fix(f ) = ||while b do c ||Com .
Luigi Santocanale Semantique denotationnelle 20
![Page 62: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/62.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Formulation concise des memes regles :
(σ1, 0) ∈ || b ||Bexp(. . . , σ1) → σ3
(. . . , σ2) → σ3(σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
(. . . , σ1) → σ3
c.-a-d. :
Pour montrer que (σ1, σ3) ∈ Ail faut avoir un arbre de derivation etiquette par les regles de R.
On a donc :
A = IR = fix(f ) = ||while b do c ||Com .
Luigi Santocanale Semantique denotationnelle 20
![Page 63: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/63.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Formulation concise des memes regles :
(σ1, 0) ∈ || b ||Bexp(. . . , σ1) → σ3
(. . . , σ2) → σ3(σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
(. . . , σ1) → σ3
c.-a-d. :
Pour montrer que (σ1, σ3) ∈ Ail faut avoir un arbre de derivation etiquette par les regles de R.
On a donc :
A = IR = fix(f ) = ||while b do c ||Com .
Luigi Santocanale Semantique denotationnelle 20
![Page 64: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/64.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
DefinitionSemantique denotationnelle vs. semantique operationnelle
Preuve : || c ||Com = { (σ, σ′) | (c , σ) →Com σ′ }Formulation concise des memes regles :
(σ1, 0) ∈ || b ||Bexp(. . . , σ1) → σ3
(. . . , σ2) → σ3(σ1, 1) ∈ || b ||Bexp et (σ1, σ2) ∈ || c ||Com
(. . . , σ1) → σ3
c.-a-d. :
Pour montrer que (σ1, σ3) ∈ Ail faut avoir un arbre de derivation etiquette par les regles de R.
On a donc :
A = IR = fix(f ) = ||while b do c ||Com .
Luigi Santocanale Semantique denotationnelle 20
![Page 65: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/65.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Plan
1 Semantique denotationnelle du langage IMLDefinitionSemantique denotationnelle vs. semantique operationnelle
2 Treillis complets et le theoreme de TarskiTreillis completsLes theoremes de point fixe
3 Semantique abstraite : introduction a la theorie des domaines
Luigi Santocanale Semantique denotationnelle 21
![Page 66: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/66.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Ensembles ordonnes
Definition
Un ensemble ordonne est un couple (P,≤) t.q.≤⊆ P × P est :
reflexive : x ≤ x , ∀x ∈ P,
transitive : x ≤ y et y ≤ z implique x ≤ z , ∀x , y , z ∈ P,
antisymetrique : x ≤ y et y ≤ x implique x = y , ∀x , y ,∈ P
Definition
Soit X ⊆ P et p ∈ P. p est un plus petit majorant de X s’ilsatisfait
∀x ∈ X x ≤ y ssi p ≤ y
On ecrit alors p =∨
X . p est un plus grand minorant ssi . . . alorsp =
∧X .
Luigi Santocanale Semantique denotationnelle 22
![Page 67: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/67.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Ensembles ordonnes
Definition
Un ensemble ordonne est un couple (P,≤) t.q.≤⊆ P × P est :
reflexive : x ≤ x , ∀x ∈ P,
transitive : x ≤ y et y ≤ z implique x ≤ z , ∀x , y , z ∈ P,
antisymetrique : x ≤ y et y ≤ x implique x = y , ∀x , y ,∈ P
Definition
Soit X ⊆ P et p ∈ P. p est un plus petit majorant de X s’ilsatisfait
∀x ∈ X x ≤ y ssi p ≤ y
On ecrit alors p =∨
X . p est un plus grand minorant ssi . . . alorsp =
∧X .
Luigi Santocanale Semantique denotationnelle 22
![Page 68: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/68.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Ensembles ordonnes
Definition
Un ensemble ordonne est un couple (P,≤) t.q.≤⊆ P × P est :
reflexive : x ≤ x , ∀x ∈ P,
transitive : x ≤ y et y ≤ z implique x ≤ z , ∀x , y , z ∈ P,
antisymetrique : x ≤ y et y ≤ x implique x = y , ∀x , y ,∈ P
Definition
Soit X ⊆ P et p ∈ P. p est un plus petit majorant de X s’ilsatisfait
∀x ∈ X x ≤ y ssi p ≤ y
On ecrit alors p =∨
X . p est un plus grand minorant ssi . . . alorsp =
∧X .
Luigi Santocanale Semantique denotationnelle 22
![Page 69: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/69.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Treillis complets
Remarque : un plus petit (grand) majorant (minorant) est unique.
Definition
Un ensemble ordonne (P,≤) est un treillis complet ssi pour toutsousensemble X ⊆ P il existe
∨X .
Lemma
Un treillis complet est aussi (( co-complet )) :∧X existe pour tout X ⊆ P.
Preuve : il suffit d’observer que∧X =
∨{ y | ∀x ∈ X x ≤ y } .
Luigi Santocanale Semantique denotationnelle 23
![Page 70: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/70.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Treillis complets
Remarque : un plus petit (grand) majorant (minorant) est unique.
Definition
Un ensemble ordonne (P,≤) est un treillis complet ssi pour toutsousensemble X ⊆ P il existe
∨X .
Lemma
Un treillis complet est aussi (( co-complet )) :∧X existe pour tout X ⊆ P.
Preuve : il suffit d’observer que∧X =
∨{ y | ∀x ∈ X x ≤ y } .
Luigi Santocanale Semantique denotationnelle 23
![Page 71: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/71.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Treillis complets
Remarque : un plus petit (grand) majorant (minorant) est unique.
Definition
Un ensemble ordonne (P,≤) est un treillis complet ssi pour toutsousensemble X ⊆ P il existe
∨X .
Lemma
Un treillis complet est aussi (( co-complet )) :∧X existe pour tout X ⊆ P.
Preuve : il suffit d’observer que∧X =
∨{ y | ∀x ∈ X x ≤ y } .
Luigi Santocanale Semantique denotationnelle 23
![Page 72: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/72.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Treillis complets
Remarque : un plus petit (grand) majorant (minorant) est unique.
Definition
Un ensemble ordonne (P,≤) est un treillis complet ssi pour toutsousensemble X ⊆ P il existe
∨X .
Lemma
Un treillis complet est aussi (( co-complet )) :∧X existe pour tout X ⊆ P.
Preuve : il suffit d’observer que∧X =
∨{ y | ∀x ∈ X x ≤ y } .
Luigi Santocanale Semantique denotationnelle 23
![Page 73: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/73.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Plan
1 Semantique denotationnelle du langage IMLDefinitionSemantique denotationnelle vs. semantique operationnelle
2 Treillis complets et le theoreme de TarskiTreillis completsLes theoremes de point fixe
3 Semantique abstraite : introduction a la theorie des domaines
Luigi Santocanale Semantique denotationnelle 24
![Page 74: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/74.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski
Theoreme de Tarski
Soit (P,≤) un treillis complet. Alors toute fonction monotonef : P −→ P possede un point fixe.
Theoreme de Davis
Soit (P,≤) un ensemble ordonne tel que toute fonction monotonef : P −→ P possede un point fixe. Alors (P,≤) est un treilliscomplet.
Luigi Santocanale Semantique denotationnelle 25
![Page 75: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/75.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski
Theoreme de Tarski
Soit (P,≤) un treillis complet. Alors toute fonction monotonef : P −→ P possede un point fixe.
Theoreme de Davis
Soit (P,≤) un ensemble ordonne tel que toute fonction monotonef : P −→ P possede un point fixe. Alors (P,≤) est un treilliscomplet.
Luigi Santocanale Semantique denotationnelle 25
![Page 76: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/76.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Posons
Preff = { x | f (x) ≤ x }
Le plus petit point prefixe µ.f :
µ.f ∈ Preff
x ∈ Preff implique µ.f ≤ x .
Luigi Santocanale Semantique denotationnelle 26
![Page 77: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/77.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Posons
Preff = { x | f (x) ≤ x }
Le plus petit point prefixe µ.f :
µ.f ∈ Preff
x ∈ Preff implique µ.f ≤ x .
Luigi Santocanale Semantique denotationnelle 26
![Page 78: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/78.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Lemma
µ.f , s’il existe, est bien un point fixe et donc il est le plus petitpoint fixe.
Car
f (µ.f ) ≤ µ.f implique
f (f (µ.f )) ≤ f (µ.f ) c.-a-d.
f (µ.f ) ∈ Preff implique
µ.f ≤ f (µ.f )
Luigi Santocanale Semantique denotationnelle 27
![Page 79: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/79.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Lemma
µ.f , s’il existe, est bien un point fixe et donc il est le plus petitpoint fixe.
Car
f (µ.f ) ≤ µ.f implique
f (f (µ.f )) ≤ f (µ.f ) c.-a-d.
f (µ.f ) ∈ Preff implique
µ.f ≤ f (µ.f )
Luigi Santocanale Semantique denotationnelle 27
![Page 80: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/80.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Lemma
Dans un treillis complet, l’element∧Preff
est le plus petit point prefixe de f , et donc le plus petit point fixede f .
Car si x ∈ Preff alors∧
Preff ≤ x , par consequent :
f (∧
Preff ) ≤ f (x) f croissante
≤ x x ∈ Preff
On obtient f (∧
Preff ) ≤∧
Preff .
Luigi Santocanale Semantique denotationnelle 28
![Page 81: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/81.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Preuve du theoreme de Tarski
Lemma
Dans un treillis complet, l’element∧Preff
est le plus petit point prefixe de f , et donc le plus petit point fixede f .
Car si x ∈ Preff alors∧
Preff ≤ x , par consequent :
f (∧
Preff ) ≤ f (x) f croissante
≤ x x ∈ Preff
On obtient f (∧
Preff ) ≤∧
Preff .
Luigi Santocanale Semantique denotationnelle 28
![Page 82: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/82.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski-Knaster, Park
Soit (P,≤) un treillis complet et f : P −→ P une fonctionmonotone.
Posons
⊥ =∨
∅ Remarque : ⊥ ≤ y pour tout y ∈ P
f 0(⊥) = ⊥f α+1(⊥) = f (f α(⊥))
f α(⊥) =∨β<α
f β(⊥) α ordinal limite.
On a ∧Preff = f α(⊥) pour quelque ordinal α
Luigi Santocanale Semantique denotationnelle 29
![Page 83: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/83.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski-Knaster, Park
Soit (P,≤) un treillis complet et f : P −→ P une fonctionmonotone.
Posons
⊥ =∨
∅ Remarque : ⊥ ≤ y pour tout y ∈ P
f 0(⊥) = ⊥f α+1(⊥) = f (f α(⊥))
f α(⊥) =∨β<α
f β(⊥) α ordinal limite.
On a ∧Preff = f α(⊥) pour quelque ordinal α
Luigi Santocanale Semantique denotationnelle 29
![Page 84: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/84.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski-Knaster, Park
Soit (P,≤) un treillis complet et f : P −→ P une fonctionmonotone.
Posons
⊥ =∨
∅ Remarque : ⊥ ≤ y pour tout y ∈ P
f 0(⊥) = ⊥f α+1(⊥) = f (f α(⊥))
f α(⊥) =∨β<α
f β(⊥) α ordinal limite.
On a ∧Preff = f α(⊥) pour quelque ordinal α
Luigi Santocanale Semantique denotationnelle 29
![Page 85: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/85.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski-Knaster, Park
Soit (P,≤) un treillis complet et f : P −→ P une fonctionmonotone.
Posons
⊥ =∨
∅ Remarque : ⊥ ≤ y pour tout y ∈ P
f 0(⊥) = ⊥f α+1(⊥) = f (f α(⊥))
f α(⊥) =∨β<α
f β(⊥) α ordinal limite.
On a ∧Preff = f α(⊥) pour quelque ordinal α
Luigi Santocanale Semantique denotationnelle 29
![Page 86: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/86.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Treillis completsLes theoremes de point fixe
Theoreme de Tarski-Knaster, Park
Soit (P,≤) un treillis complet et f : P −→ P une fonctionmonotone.
Posons
⊥ =∨
∅ Remarque : ⊥ ≤ y pour tout y ∈ P
f 0(⊥) = ⊥f α+1(⊥) = f (f α(⊥))
f α(⊥) =∨β<α
f β(⊥) α ordinal limite.
On a ∧Preff = f α(⊥) pour quelque ordinal α
Luigi Santocanale Semantique denotationnelle 29
![Page 87: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/87.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
CPOs
Definition
Un CPO est un ensemble ordonne (P,≤) tel que
⊥ ∈ P,
toute chaıne denombrable ascendante
x0 ≤ x1 ≤ . . . xn ≤ . . .
possede un p.p.borne superieure∨{ xi | i ≥ 0 }.
Exemple :Soit A → B l’ensemble des fonctions partielles de A vers B.On pose f ≤ g ssi f (a) est defini implique g(a) est defini aussi.
Luigi Santocanale Semantique denotationnelle 30
![Page 88: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/88.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
CPOs
Definition
Un CPO est un ensemble ordonne (P,≤) tel que
⊥ ∈ P,
toute chaıne denombrable ascendante
x0 ≤ x1 ≤ . . . xn ≤ . . .
possede un p.p.borne superieure∨{ xi | i ≥ 0 }.
Exemple :Soit A → B l’ensemble des fonctions partielles de A vers B.On pose f ≤ g ssi f (a) est defini implique g(a) est defini aussi.
Luigi Santocanale Semantique denotationnelle 30
![Page 89: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/89.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Schema d’interpretation : les types
La semantique d’un type est un CPO.
Exemples :|| nat || est le CPO :
⊥
0 OOOOOOOOOOOOOO
1 ???????
2 . . . noooooooooooooo
. . .
|| bool || est le CPO :
⊥
true???????
false�������
Luigi Santocanale Semantique denotationnelle 31
![Page 90: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/90.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Schema d’interpretation : les types
La semantique d’un type est un CPO.
Exemples :|| nat || est le CPO :
⊥
0 OOOOOOOOOOOOOO
1 ???????
2 . . . noooooooooooooo
. . .
|| bool || est le CPO :
⊥
true???????
false�������
Luigi Santocanale Semantique denotationnelle 31
![Page 91: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/91.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Schema d’interpretation : les types
La semantique d’un type est un CPO.
Exemples :|| nat || est le CPO :
⊥
0 OOOOOOOOOOOOOO
1 ???????
2 . . . noooooooooooooo
. . .
|| bool || est le CPO :
⊥
true???????
false�������
Luigi Santocanale Semantique denotationnelle 31
![Page 92: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/92.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Schema d’interpretation : les expressions
La semantique d’une expression
e : t1 -> t2
est une fonction continue
|| e || : || t1 || −→ || t2 ||
Definition
Soient P0,P1 des CPOs. Une fonction monotone est continue ssipour toute chaıne
x0 ≤ x1 ≤ . . . xn ≤ . . .
on a
f (∨{ xi } | i ≥ 0) =
∨{ f (xi ) | i ≥ 0 } .
Luigi Santocanale Semantique denotationnelle 32
![Page 93: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/93.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Schema d’interpretation : les expressions
La semantique d’une expression
e : t1 -> t2
est une fonction continue
|| e || : || t1 || −→ || t2 ||
Definition
Soient P0,P1 des CPOs. Une fonction monotone est continue ssipour toute chaıne
x0 ≤ x1 ≤ . . . xn ≤ . . .
on a
f (∨{ xi } | i ≥ 0) =
∨{ f (xi ) | i ≥ 0 } .
Luigi Santocanale Semantique denotationnelle 32
![Page 94: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/94.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Fonctions continues ?
On s’interesse aux fonctions continues :
G est l’interpretation d’un commande,
G (x) est le resultat des calculs avec en entree x ,
si x est un objet infini (ex: fonction, liste infinie),alors x =
∨xi , avec les xi approximations finies de x .
La relation de continuite
G (∨i≥0
xi ) =∨i≥0
G (xi )
s’interprete selon le principe suivant :
On peut approcher le resultat de G sur une entree infinie xen calculant le resultat de G sur les approximations finies de x .
Luigi Santocanale Semantique denotationnelle 33
![Page 95: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/95.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Fonctions continues ?
On s’interesse aux fonctions continues :
G est l’interpretation d’un commande,
G (x) est le resultat des calculs avec en entree x ,
si x est un objet infini (ex: fonction, liste infinie),alors x =
∨xi , avec les xi approximations finies de x .
La relation de continuite
G (∨i≥0
xi ) =∨i≥0
G (xi )
s’interprete selon le principe suivant :
On peut approcher le resultat de G sur une entree infinie xen calculant le resultat de G sur les approximations finies de x .
Luigi Santocanale Semantique denotationnelle 33
![Page 96: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/96.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Un exemple
Comparer les fonctions G et H suivantes :
Gf = fun n -> f(n + 1)
Hf =
{fun n -> 0 si f(n) = 0 pour tout n,
fun n -> 0 sinon.
La fonction G n’est pas continue.On ne peut pas definir la fonction G en OCaml.
Luigi Santocanale Semantique denotationnelle 34
![Page 97: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/97.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Quelques resultats
Proposition
Soient P0,P1 deux CPOs, alors l’espace PP01 des fonctions
continues de P0 vers P1 est lui-meme un CPO.
De facon que :
|| t1 -> t2 || = || t2 |||| t1 ||
Proposition
Si P est un CPO, alors∨
n≥0 f n(⊥) est le plus petit point fixe de f .
De facon que :
|| let rec expr(x) || = fix(|| expr(x) ||) .
Luigi Santocanale Semantique denotationnelle 35
![Page 98: Luigi Santocanalepageperso.lif.univ-mrs.fr/.../0506teaching/LDP/lecture10.pdf · 2006. 9. 14. · Plan 1 S´emantique d´enotationnelle du langage IML D´efinition S´emantique d´enotationnelle](https://reader034.vdocuments.mx/reader034/viewer/2022052102/603c42902d201707ec33e124/html5/thumbnails/98.jpg)
Semantique denotationnelle du langage IMLTreillis complets et le theoreme de Tarski
Semantique abstraite : introduction a la theorie des domaines
Quelques resultats
Proposition
Soient P0,P1 deux CPOs, alors l’espace PP01 des fonctions
continues de P0 vers P1 est lui-meme un CPO.
De facon que :
|| t1 -> t2 || = || t2 |||| t1 ||
Proposition
Si P est un CPO, alors∨
n≥0 f n(⊥) est le plus petit point fixe de f .
De facon que :
|| let rec expr(x) || = fix(|| expr(x) ||) .
Luigi Santocanale Semantique denotationnelle 35