The Semantic Model of the Type Inference of Haskell Languages

Author
FengCaiNing
Advisor
DingZhiYi
School
Ningxia University
Major
Computer Software and Theory
Classification
TP391.1 Text Processing
Degree
Master's thesis
Year
2013
Downloads
0
Citations
0

Request the full text

Abstract

As the size and complexity of software systems is growing dramatically, Functional languages have provided a particularly elegant framework to address these issues, but the running efficiency of Functional languages is slow. The author wants to dig out the advantages of the Functional language by studying the Semantic Model on the Type inference of the Haskell Functional language.Firstly, the thesis makes a brief introduction about the development and current situation of the Type inference through studying the background and development of the Haskell Functional language. It also discusses the characteristics of Haskell language and its advantages as a Functional language. The study has academic a realistic meaning for improving the quality and the exploring efficiency of the software and value for Haskell language.Secondly, the author puts forward the Semantic Model of the Type inference based on the Haskell language according to the related theory of the formal semantics. This Semantic Model includes two types of Semantic Model. One is Deductive Semantic Model of Singleton and Polymorphic types, which is illustrated from constraints and Function application respectively. The constraints are relatively simply for the type can be deducted from the known directly and Function application needs to use the way of Unity to get the final Type. The other is the Deductive Semantic Model of the Function types, which is got by the type inference of Higher-order functions and mainly consists of Higher-order functions and Function composition.

Table of contents

Summary 3-4 Abstract 4-7 first chapter 7-13 1.1 Background 7-8 1.2 Haskell language development and research status Status 1.2.1 foreign studies 8-10 8-9 1.2.2 domestic research status 9 - 10 1.3 Haskell type inference language development status 10-11 basic features 1.4 Haskell language 11 1.5 significance 11-12 <br / > 1.6 thesis is organized 12-13 Chapter II functional programming language Haskell 13-24 2.1 Introduction 13 2.2 Haskell language Introduction 13-17 2.2.1 Haskell language definition 13-14 2.2.2 Haskell language program structure 14 2.2. function 3 Haskell language 14-16 2.2.4 instance 16-17 features 2.3 Haskell language 17-19 2.3. 1 Haskell lazy evaluation features 17-18 list connotation characteristics 2.3.2 Haskell language 18 high-end features 2.3.3 Haskell language 18 - 19 practicality nbsp 2.4 Haskell language ; 19 nbsp efficiency 2.5 Haskell language ; related concepts 19-20 2.6 formal semantics 20-22 2.6.1 inert operational semantics 20-22 2.6.2 inert denotational semantics 22 2.7 structural induction 22-23 <br / > 2.8 Summary 23-24 Chapter monomorphic and polymorphic type inference semantic model 24-35 3.1 monomorphic type inference 24-26 3.1.1 expressions 24-26 3.1.2 function 26 3.2 monomorphic type inference semantic model 26-28 <br / > basic Types 3.2.1 Haskell language definition syntax defined set of 26 3.2.2 Haskell language 26-27 3.2.3 Haskell type in some common functions 27 3.2.4 Haskell language type construction rules 27 3.2.5 monomorphic type inference semantic model 27-28 3.3 polymorphic type reasoning 28-32 3.3.1 polymorphic type 28 3.3.2 constraints 28-30 3.3.3 application of polymorphic functions type inference 30-32 3.4 polymorphic type inference semantic model function 32-34 3.4.1 Haskell language in some of the polymorphic types of 32 <br / > 3.4.2 type Description 32-33 3.4.3 types of polymorphic type inference semantic model 33-34 3.5 Summary 34-35 Chapter IV function type inference semantic model 35-43 4.1 Lambda calculus 35-36 4.2 function layer defines 36 4.3 high-end type 36-37 4.4 higher order functions 37-41 4.4.1 map function 38-39 4.4.2 filter function compound 39 4.4.3 function 39-41 4.5 higher order function type inference semantic model 41-42 4.5.1 the higher-order functions in Haskell 41 4.5.2 types of high-end definitions and rules 41 4.5.3 type Inference higher-order functions semantic model 41-42 4.6 This chapter summarizes 42-43 Chapter summary and Outlook 43-45 5.1 thesis summary 43 5.2 follow-up work and outlook 43-45 References 45-48 Thanks 48-49 Profile 49

Related dissertations

  1. A Twig Query Oriented XML Type Inference
    LuoQing ·Beijing University of Technology ·2013 ·Master's thesis
  2. The Research on Optimizing Based on Program Transformation of the Decision Tree Algorithms
  3. Skeleton oriented parallel computing system
    DengSunGen ·Jiangxi Normal University ·2002 ·Master's thesis
  4. Research and Exploration on Enhancing the Ability of the Students Reading in Chinese Teaching of Secondary Vocational School
    YuLu ·East China Normal University ·2009 ·Master's thesis