Subtyping in Type Theory: Coercion Contexts and Local Coercions
- Z. Luo and F. Part
Subtyping in Type Theory: Coercion Contexts and Local Coercions Z. - - PowerPoint PPT Presentation
Subtyping in Type Theory: Coercion Contexts and Local Coercions Z. Luo and F. Part Dept of Computer Science Royal Holloway, Univ of London This talk Subsumptive v.s. coercive subtyping Review and background Coercion contexts and local
2
Review and background
Subtyping in contexts/terms Coherence
3
Type assignment
Types as collections of canonical objects
4
5
================================
Canonicity fails (LSX 2012) Subject reduction fails (Luo 1999)
T T[C], coercive subtyping extension
===================== ====== ====== ====== ====== ====== ====== == ====================== ====== ====== ====== ====== ====== ======
Coherence conservativity (SL02, LSX12) Preserves consistency, canonicity, SR, …
6
Coercion contexts (cf, Coq): x:C, …, A<cB, …├ …
Local coercions in terms: coercion A<cB in t
7
8
introduced into contexts as assumptions, and moved to the right of├ to form local coercions.
9
With global coercions [LSX12], coherence is a global notion
For coercion contexts, graph-based coherence checking (as
10
=========================================================================================================
===============================================================================
11
=============================================================================================
12
13