Abstract
Lambda λ is an abstraction and a method that provides a logical explanation for studying various domains of knowledge cross-disciplines. Semantics, which is a branch of linguistics, has been well known for discussing a typed lambda λ calculus. Coppock and Champollion have elegantly been elaborated a sense of natural language expressions through various moods including a lambda λ calculus. We adopt this proposal here and are trying to understand the computation part in generating algorithms. While on the other hand, we able to find out some predicate-based (complex and compound) cases during the investigation.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Church introduced a Lambda operator λ in 1941 and it is a vital tool used in syntax and semantics. Since Montague’s times, a typed formation of lambda abstraction has been popular in linguistics [1].Footnote 1 Sometimes, a lambda operator can be defined under lambda expressions to focus on a specific property in a context. It appears such as (a term = property) and fetching the predicate expressions in a second order logic and first order logic, respectively [2].Footnote 2 On the other hand, a lambda calculus is a set of expressions and rules that produce certain new expressions. In general, a single typed and monotyped lambda calculus is discussed many times in a literature [3].
However, it is a fact that the first order logic in contrast to a simple typed lambda calculus allows infinite types of expressions that fundamentally enumerate from the finite forms.Footnote 3 Secondly, typed lambda notations are standard in mathematics and computer science. At the same time, a single term calculus in itself has denoted a formal representation of syntactic structures that are somehow different from the first order and high order logic. On the other hand, we find three schemes when we seeing the axiomatic nature of a simple typed lambda calculus [4]. The following schemes are as
In the context of a natural language (i.e. English), lambda operator λ resolves passive and other cases within the propositional functions. It transforms such a function into one place predicate situation and binds the variables (x, y) in abstraction to define the expressions in the following way.Footnote 4
Here (d) shows that variable (x) is bound by the lambda operator and it is a well-formed expression for <e, t> type [5, p. 116].
The paper has a total of five sections. The first section begins with the basic introduction of lambda calculus. The second section discusses the syntactic and semantic background of lambda calculus. The third section deals with the aims/objectives of the study. The fourth section analyzes the natural language expressions concerning lambda abstraction and application. The fifth section concludes the results and the future research.
2 Related Works
As already has been pointed out lambda abstraction finds significant during Montague, and later many semanticists incorporated this into linguistics. It became a powerful tool to establish formal semantics. The following Fig. 1 shows the grammatical nature of a lambda expression.
Figure 1 interprets how lambda expression applies in relative clause, predicates and many other cases in a natural language. However, a classic instance of the lambda abstraction usually defines under ‘the proper treatment of quantifiers in English’. See the Table 1.
Table 1 specifies that syntactic rules on the left handside translate into parallel with lambda symbol λ that directly controls the NP and VP constitutes [1, 6, p. 350].
In fact, lambda operator/abstraction operator λ is a kind of binder which denotes the infinite set of individuals in L1. In that case, it shows the characteristic function of the set and sometimes, it shows the value description with the notation φ. On the other hand, when both lambda operator and value notation removes from the set, the left part is called β-reduction. Based on such function, almost many predicates like love, like, kill, eat, see, meet, etc., defines effortlessly [7, pp. 94–95].
Table 2 demonstrates that a predicate ‘like’ can be expressed with various names (i.e. Mary, John, Bill, Keat, etc.) bind with λ operator. It has a wide range here and may cover set of individual those who like m = Mary. Secondly, the value notation φ characterizes the set of individuals. And at last, both lambda operator λ and value notation φ can be removed from the set of individuals to form a β-reduction situation.
3 Aims and Objectives
-
To present a general survey on lambda operator λ
-
To analysis natural language expressions in syntax and semantics through typed lambda calculus λ
-
To compute results when typed lambda calculus switches from one natural language to another
-
To propose an algorithm based on semantics of typed lambda calculus λ.
4 Analysis with Typed Lambda Calculus λ
We know that all objects around us identify with certain names, symbols, and terms, etc. Moreover, they are significant for a natural language considered English, Hindi, Punjabi, Marathi, Malayalam, etc. It is fascinating and challenging for us to develop any logical system for such languages. We take English as a formal language to understand the logical system for its expressions through typed lambda calculus. We begin with the following proposition.
It is a combination of Subject/NP and Predicate/VP where an individual constant Bill and Elysha respectively around the verb ‘loves’. Here V denotes a verb that has binary relations and it is called a binary predicate. The ‘loves’ predicate attracts both arguments, but the first argument is an empty slot intituitvely. The following way defines this in L1.
We can compare the empty situation of ‘loves’ predicate with an abstraction that requires the formal representation to fill it up. See Table 3.
Table 3 shows that a proposition ‘Bill loves Elysha’ has a binary predicate where the empty slot (_____) is equal to abstraction. It fills up with a lambda operator λ under the name of a variable x.Footnote 5
4.1 Lambda Abstraction (Syntax and Semantics)
Furthermore, we must discuss both syntax and semantics-based lambda abstraction rules.
Table 4, suggests that the input type goes to set of individuals and [λu. α] is the output expression. At the same time, the semantics rule gives [[λu. α]]M,g expression if there is an α and the domain of type must be under truth values.
4.2 Lambda Operator λ in Syntax
In syntax, individuals and their truth values and statements with conjunctions, disjunctions, quantifiers and formulas are TYPE only according to simply-typed lambda calculus. Thus, each expression carries at least one type of expression. Table 5 induces such expressions formally as.
Of these seven categories, the first is the basic level information about variables such as x, y, z in a constant form. The second application part deals with α and β; those also type expressions. The third part shows that α and β both represent similarity if they are terms. The negation part tells us that if φ is a formula then it can appear with ¬ also. Binary connectives mean that if any formula comes with φ ψ then it can be combined with ˅, ˄, ¬, ↔ like connectives. In quantification, a universal quantifier ∀ and existential quantifier ∃ exist with variables in a formula. On the other hand, in the lambda abstraction, any t expression binds with a lambda operator λ.
4.3 Lambda Operator λ in Semantics
Model and assignment function determine the natural language expressions by mapping the semantic values in Lλ. Further, we say that <D, I> both are necessary for M as a model that assigns the semantic values.Footnote 6 The following way describes this in L1.
Table 6 shows that the first slot is for basic expressions with a non-logical constant and a variable. The second one is about the application of α and β expressions in the context of type. The third ‘equality slot’ discusses the truth value of α and β if they belong to the same type. The fourth ‘negation slot' tell us that the φ formula translates into a ¬φ form. The fifth slot is the (negative, conjunctive, junction, etc.) binary connectives formed by wffs. The sixth ‘quantification slot' deals with universal and existential quantifiers, and the last seventh slot shows the lambda λ as a binder for types [7, 8, pp. 170–88].
5 Discussions and Results
Based on the above lambda abstraction λ in Tables 5 and 6, we take as input to compare two different languages to see the actual output. The first abstraction rule in syntax begins with usual expressions and ends with the lambda λ. It is sufficient to generalize the formal syntactic representations in both languages here. Secondly, abstraction rule in semantics has similar categorization and it computes such languages.
We see Tables 7 and 8 where both languages (English and Punjabi) have 1:1 correspondance in syntax and semantics of lambda calculus λ. Moreover, two natural languages are going to map in the same way. In other words, we argue that any ‘y’ kind of a natural language gets generated by formal language ‘xs’ . However, double complex and compound predicates, reduplicated forms and mainly addressing notes are typical instances that will discuss by following intention and intuition-based research and applications [8, 9].
Step 1: Objects with < e , t / et >
Under step 1 we take two sets of common nouns (CNs) and proper nouns (PNs) with a single predicate ‘loves’. AGR refers to another name such as arguments of both CNs and PNs that represent either e type or t type in a discourse [10, 11].
Step 2: Slots (______)
According to step 2, it shows that an external or a front AGR place must be an empty slot in a predicate ‘loves’. Such slot finds with CNs and PNs sets.
Step 3: Slots with lambda operator λ
Step 3 determines that the empty slots in CNs and PNs are abstraction places that fills up with a lambda operator λ. We add this operator in front of each empty slot.
Step 4: Lambda operator λ as binder for variables x
In step 4, we argue that a lambda operator λ binds x variable in the same slot. Because it is difficult to select each name separately for the same function here.
Step 5: Model and assignment functions
The step 5 defines the formal representation with a model (M) that contains (D) and (I) function assignment as g. Any set of individuals, as appears in step 1, is a part of e, t/et domain which directly links with truth values (1, 0).
6 Conclusion
We understand that a language like English has a formal representation. Small and simple statements in any natural language are expressions that are nothing but a set of finite or infinite types. We find that a lambda operator λ describes such infinite sets better because it takes all types of expressions (equality-based, negation-based, and so on) in the form of a type and binds them to avoid repeating any name. It also frames syntax and semantics of a natural language. Following such observations, a proposed algorithm helps us to analyze small CNs and PNs individual sets.
Notes
- 1.
It discusses a well-formed system in semantics through a systematic arrangement of typed mechanism in terms of natural language expressions that are semantically motivated. It represents the following
(i) e is a type
(ii) t is a type then
(iii) both <e, t> is a type.
- 2.
See Allwood et al. [2, p. 156].
- 3.
Carpenter [4, p. 40] has pointed out that in a simple typed lambda calculus, each type either belong to a basic type or a functional type.
- 4.
For more details see Cann [5, p. 116].
- 5.
Note that e denotes entity and t denotes truth values however both e, t used for functional types such as <e, t>. These functional types also called a set of infinites. They denote individuals and truth values under the domain. It is represented by De = the domain of individuals and Dt expresses the truth values in the form of Dt = {1, 0} Coppock and Champollion [6, pp. 167–68].
- 6.
Remember that in a model M = <D, I>, D is the domain for a set of individuals which interpretes with De and Dt describes the truth values in the form of {0, 1}.
References
Partee BB, Ter Meulen AG, Wall R (2012) Mathematical methods in linguistics, vol 30. Springer, Dordrecht
Allwood J, Andersson GG, Andersson LG, Dahl O (1977) Logic in linguistics. Cambridge University Press, Cambridge
Gillon BS (2019) Natural language semantics: formation and valuation. MIT Press, Massachusetts
Carpenter B (1997) Type-logical semantics. MIT Press, Massachusetts
Cann R (1993) Formal semantics: an introduction. Cambridge University Press, Cambridge
Coppock E, Champollion L (2019) Invitation to formal semantics. Manuscript, Boston University and New York University. http://eecoppock.info/semantics-boot-camp.pdf
Barendregt HP (1984) The lambda calculus: its syntax and semantics. In: Studies in Logic, vol 103. NorthHolland Publishing Company, Netherlands
Moggi E (1988) Computational lambda-calculus and monads. University of Edinburgh, Department of Computer Science, Laboratory for Foundations of Computer Science
Lamping J (1989, December) An algorithm for optimal lambda calculus reduction. In: Proceedings of the 17th ACM SIGPLAN-SIGACT symposium on principles of programming languages, pp 16–30
Liang P (2013) Lambda dependency-based compositional semantics. Technical Report, arXiv:1309.4408
Boudol G, Curien PL, Lavatelli C (1999) A semantics for lambda calculi with resources. Math Struct Comput Sci 9(4):437–482
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Singh, H. (2021). Visualizing and Computing Natural Language Expressions: Through a Typed Lambda Calculus λ. In: Bajpai, M.K., Kumar Singh, K., Giakos, G. (eds) Machine Vision and Augmented Intelligence—Theory and Applications. Lecture Notes in Electrical Engineering, vol 796. Springer, Singapore. https://doi.org/10.1007/978-981-16-5078-9_49
Download citation
DOI: https://doi.org/10.1007/978-981-16-5078-9_49
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-5077-2
Online ISBN: 978-981-16-5078-9
eBook Packages: Computer ScienceComputer Science (R0)