Elaboration on functional dependencies: Functional dependencies are dead, long live functional dependencies!

被引:0
|
作者
Karachalias G. [1 ]
Schrijvers T. [1 ]
机构
来源
ACM SIGPLAN Not. | / 10卷 / 133-147期
基金
欧盟地平线“2020”;
关键词
functional dependencies; Haskell; System FC;
D O I
10.1145/3122955.3122966
中图分类号
TP182 [专家系统、知识工程];
学科分类号
1111 ;
摘要
Functional dependencies are a popular extension to Haskell's type-class system because they provide fine-grained control over type inference, resolve ambiguities and even enable type-level computations. Unfortunately, several aspects of Haskell's functional dependencies are ill-understood. In particular, the GHC compiler does not properly enforce the functional dependency property, and rejects well-typed programs because it does not know how to elaborate them into its core language, System FC. This paper presents a novel formalization of functional dependencies that addresses these issues: We explicitly capture the functional dependency property in the type system, in the form of explicit type equalities. We also provide a type inference algorithm and an accompanying elaboration strategy which allows all well-typed programs to be elaborated into System FC,. © 2017 ACM.
引用
收藏
页码:133 / 147
页数:14
相关论文
共 50 条
  • [31] Database sampling with functional dependencies
    Bisbal, J
    Grimson, J
    INFORMATION AND SOFTWARE TECHNOLOGY, 2001, 43 (10) : 607 - 615
  • [32] Discovering Conditional Functional Dependencies
    Fan, Wenfei
    Geerts, Floris
    Li, Jianzhong
    Xiong, Ming
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2011, 23 (05) : 683 - 698
  • [33] Discovering Conditional Functional Dependencies
    Fan, Wenfei
    Geerts, Floris
    Lakshmanan, Laks V. S.
    Xiong, Ming
    ICDE: 2009 IEEE 25TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2009, : 1231 - +
  • [34] Functional dependencies in fuzzy databases
    Nakata, M
    FIRST INTERNATIONAL CONFERENCE ON KNOWLEDGE-BASED INTELLIGENT ELECTRONIC SYSTEMS, PROCEEDINGS 1997 - KES '97, VOLS 1 AND 2, 1997, : 363 - 372
  • [35] Automatic extraction of functional dependencies
    Grégoire, É
    Ostrowski, R
    Mazure, B
    Saïs, L
    THEORY AND APPLICATIONS OF SATISFIABILITY TESTING, 2005, 3542 : 122 - 132
  • [36] Functional dependencies in XML documents
    Yan, P
    Lv, T
    ADVANCED WEB AND NETWORK TECHNOLOGIES, AND APPLICATIONS, PROCEEDINGS, 2006, 3842 : 29 - 37
  • [37] Discovering Graph Functional Dependencies
    Fan, Wenfei
    Hu, Chunming
    Liu, Xueli
    Lu, Ping
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2020, 45 (03):
  • [38] Functional dependencies in Horn theories
    Ibaraki, T
    Kogan, A
    Makino, K
    ARTIFICIAL INTELLIGENCE, 1999, 108 (1-2) : 1 - 30
  • [39] Functional genomics and cancer dependencies
    Hahn, William C.
    CANCER RESEARCH, 2014, 74 (19)
  • [40] Tableaux for functional dependencies and independencies
    Wijesekera, D
    Ganesh, M
    Srivastava, J
    Nerode, A
    AUTOMATED REASONING WITH ANALYTIC TABLEAUX AND RELATED METHODS, 1997, 1227 : 358 - 372