A Metalanguage for Interactive Proof In

Total Page:16

File Type:pdf, Size:1020Kb

A Metalanguage for Interactive Proof In Conference Record of the Fifth Annual ACM Sym~sium on Principles of Programming Languages A Metalanguage for Interactive Prcof in ICE’* M. Gordon, R. Milner University of Fdinburgh L. Morris Syracuse University M. Newey Australian National University C. Wadsworth University of Edinburgh Introduction cqmting system) of ML and PPI began over three years ago at Edinburgh; for abut two years the LCF (Icqic for Caqmtable Functions) is a system has keen usable, and its development is now prcof generating system mnsisting of an inter- virtually ccmplete. Recently it has been used in active programing language MG (MetaLmguage) for various studies concerning formal semantics: mnducting prcofs in PPA (Polynmrphic Predicate theorems about data structures, recursion remval, A-calculus) , a deductive calculus suitable for the direct versus continuation semantics, and Other formalisation of reasoning almut recursively topics. defined functions, in particular about the syntax, semantics and iq?lementations of many prqrcmming The need for and design of ML is based on languages. PPI is an enrichment (in respect of experience with an earlier system at Stanford type structure and expressive pcwer) of an extended [17, 181 . In that system, beyond the ability to a-calculus due to Dana Scott and is fully discussed direct it to execute a basic inference (e.g. beta elsewhere [ 22 I . The puxposes of this paper are conversion, or transitivity of equivalence) , the (a) to illustrate the features of ML which me user could it of general interest in language design (a) invoke .s@lif ication with respect to a set quite independently of its use for machine of equivalences specified by him, assistd formal pxcof, (b) adopt a goal-directed pr~f style, gener- (b) to illustrate ML applied to PPA, in ating subgoals by built-in tactics based encoding interesting prcof -finding-and- qn the inference rules and simplification, perfonning procedures, and and (c) to convey a methodology for controlled semi- (c) use theorems previously proved. automatic proof. These facilities were enough to enable several We avoid formal descrj ption; we hope that our non-trivial case studies to be tackled [1,23,24,34] qles and discussion will achieve these purposes but further use of the systein hecam increasingly mme clearly. A qlete description of ML, and limited by the fixed, and rather primitive, nature its use with PPA, exists as a techriical reprt [91. of its repertoire of ccmnands (rather like using an interactive assenbly language - and one without The in@enemtation (using LISP on a DEC 10 —.- a prow stirou~e feature at mat: - in whim W’his work was supprted by the Science I@search one is working all the t- at top-level) . Prcnfs Council of Great Britain under grant n- oft.em contained many instances of a few patterns of B/RG/48175. inference which one would like to express as 119 derived inference rules or - in the goal-directed prcofs, the following ingredients in ML were soon style - as derived tactics or strategies. found to be expedkmt (almost necessary) : the ability to handle higher order functions, a rigorous Our present point of view is that neither a but flexible type structure, a mechanism for gen- straightforward prcof -checker ( lalmrious and re@t- erating and trapping failures, and an abstract itive to use) nor an autcmatic theorem-prover synta~ic rePres-tation of the object language (inefficient because of general search) is satis- PPa . factory. What is required is a framswork in which a user can both design his own partial prmf Acknowledgments strategies (where he can find them) and execute single steps of proof (where he needs to) . We We are indebted to Dana Scmtt for providing believe also that, although formal proofs are @?- a large part of the theoretical basis for oux vmrk: ortant and should be retrievable, it is pragmatic- to John McCarthy for encmrcaging the forerunner of ally more convincing to achieve clear expression of this project at Stanford: to Richard Weyhrauch who p~f strategy; the latter entails that the way in contributed greatly to that project: to Tony Hoare which the strategy is built from sub-stratqies and Jexry Schwarz for help with the notion of should be evident in its expressicm. abstract -s in ML : to Avra Cohn for help in the final design stages through her experiments: In other words, we’ re not so concerned with to Rod Burstall and many colleagues in ~inburgh checking or generating prcofs as with per forming for ilhnnina ting discussions. procf s . ‘RnJs, we don’ t normally store or display proofs but only the results of them - i.e. theorems. These form an abstract type on which the only allowed operations are the inference rules of PPI ; this ensures that a well-typed pnqcam carmot Outline of ML. perform faulty proofs (it may not prove the theorem ML is a higher-crder functional programing expected but the result ~ be a theorem!) . If language in the tradition of ISWIM [15], PAL [8], extra security or formal prcof -checking is desired, POP2 [6] and @DANKEN [26 1, but differs princip- full proofs are easily generated - only minor ally in its handling of failure and, more so, of changes in the implementation of the abstract t~ typ2s . It is an expression-based language, for theorems wmld be required. though expressions may have side-effects because The principal aims then in designing ML were of the presence of assignment (the expression to make it impossible to prove non-theorems yet “X: =e” has as value the value of e , and also easy to prcgram strategies for performing pnmfs. gives x this value) . An @mrtant expression A strategy - or recipe for proof - cm.dd be scane- construct is “let x = e —in e’”, which binds x thing like “induction on f and g , f ollad by to the value of e throughout e‘ ; alternative assuning antecedents and doing case analysis, all forms of declaration are “let f (x,y,. ..) = e“ interleaved with sinplif ication”. This is for def irdng functions, “letrec f (x,y,.. ) = e“ inprecise - analysis of what cases? - what kind of for defining functions recursively, “letref x = e” induction, etc, etc. - but these in turn may well for declaring and initializing assignable variables, be given by further recipes, still in the sam and generalizations of these forms for s~taneous style. The point is that such strategies appear declarations. to be built frcm sinpler ones (which we call Another imprtant expression construct is tactics rather than strategies) by a number of ‘Ie ? evtp (read “e or else e’”), whose value is the general operations in fairly regular ways; we value of e unless e generates a failure, in which call these operations tacticals by analcgy w’ith case it is the value of e’. The systen generates functional. certain failures autcnnatically, and the user may For progr arming tactics and tacticals, and generate his own with the expression “fail”, or mre generally for manipulation of PP1 in f ind.ing the expression “failwith e“ where the value of e 120 is a token which identifies the kind of failure; Notes: (1) “letrec f(x,y, z)(urv) = - - -“ a generalization of the form “e ? e’” can be used is equivalent to to trap only certain failure tokens (kinds of “letrec f = l(x,y, z).l(u,v). - - -“. failure) . The type token is one of ML’s basic (Similarly, let . ..). That is, scala.r- types; tokens are just synbol strings. In our prod and”itscalarprod are defined here current application of ML, the use of failure as a as (partially) curried functions, as dynamic escqe and escape-trapping mechanism facil- is the style in functional progrann.ing. itates a natural programing style for caqosing The separation of argments into two tactics and strategies which are usually inapplic- groups allows scalarprcxi to be able to certain goals. “partially applied” to three argummts to obtain particular scalar prcduct AS hinted above, if d is a declamation and: functions; it also suggests a more e an expression, then “d —in e“ is an expression. efficient recursive definition in which In interactive prcgramning (which is how prcofs we replace are conducted) , one evaluates a mixed sequence of declarations and expressions, separated by “;;” . letrec scalarprcx3($*, $+, zero) (kl,12) = ML is a “static binding” language, like ISWIM, PAL - - -scalaqrod ($*, $+, zero) (11’, ~2’)- - and GEDWWEN (but unlike LISP and FOP2) ; a free by a form which recurses on only & variable z in the declaration “let f(x) = . ..” arguments, nawly refers to the textually enclosing declaration of let scalarprcd($*., $+, zero) = scalp z , not to any subsequat declaration. whererec scalp (!l, t2) = An example which illustrates most of the --- scalp (n’ ,12’) - - - features of MT is a generalised scalar product (2) Prefixing $ to a token enables its use (sum the prcducts of two vectors) which is param- as a binaq infix without the $. eterised on its prcduct and sunnnation functions and on a zero (for null vectors) . Two ways - the (3) Infixed “.” is the cons function. Use first recursive and the second iterative - of on the left of a declaration, as here, writing this in ML, with vectors represented as binds xl and kl’ to the head and tail, lists and failure for vectors of unequal length, respectively, of !1, with failure when are as follows: U is null. letrec scalarprod ($*, $+, zero) (.U,~2) = (1,2) (4) The failure trappd by “?” here is that ( —let xl. il’ = L1 —and x2. L2’ = ~2 (.3) of the declaration when one of R1, L2 in (x1*x2) +5Cakqwcd($*, $+rzero) (!1’ ,X2’ ) is null. ); (4) (5) “q e“ repeats e until failure.
Recommended publications
  • Truth-Conditions
    PLIN0009 Semantic Theory Spring 2020 Lecture Notes 1 1 What this module is about This module is an introduction to truth-conditional semantics with a focus on two impor- tant topics in this area: compositionality and quantiication. The framework adopted here is often called formal semantics and/or model-theoretical semantics, and it is characterized by its essential use of tools and concepts developed in mathematics and logic in order to study semantic properties of natural languages. Although no textbook is required, I list some introductory textbooks below for your refer- ence. • L. T. F. Gamut (1991) Logic, Language, and Meaning. The University of Chicago Press. • Irene Heim & Angelika Kratzer (1998) Semantics in Generative Grammar. Blackwell. • Thomas Ede Zimmermann & Wolfgang Sternefeld (2013) Introduction to Semantics: An Essential Guide to the Composition of Meaning. De Gruyter Mouton. • Pauline Jacobson (2014) Compositional Semantics: An Introduction to the Syntax/Semantics. Oxford University Press. • Daniel Altshuler, Terence Parsons & Roger Schwarzschild (2019) A Course in Semantics. MIT Press. There are also several overview articles of the ield by Barbara H. Partee, which I think are enjoyable. • Barbara H. Partee (2011) Formal semantics: origins, issues, early impact. In Barbara H. Partee, Michael Glanzberg & Jurģis Šķilters (eds.), Formal Semantics and Pragmatics: Discourse, Context, and Models. The Baltic Yearbook of Cognition, Logic, and Communica- tion, vol. 6. Manhattan, KS: New Prairie Press. • Barbara H. Partee (2014) A brief history of the syntax-semantics interface in Western Formal Linguistics. Semantics-Syntax Interface, 1(1): 1–21. • Barbara H. Partee (2016) Formal semantics. In Maria Aloni & Paul Dekker (eds.), The Cambridge Handbook of Formal Semantics, Chapter 1, pp.
    [Show full text]
  • Lecture 1: Tarski on Truth Philosophy of Logic and Language — HT 2016-17
    Lecture 1: Tarski on Truth Philosophy of Logic and Language — HT 2016-17 Jonny McIntosh [email protected] Alfred Tarski (1901-1983) was a Polish (and later, American) mathematician, logician, and philosopher.1 In the 1930s, he published two classic papers: ‘The Concept of Truth in Formalized Languages’ (1933) and ‘On the Concept of Logical Consequence’ (1936). He gives a definition of truth for formal languages of logic and mathematics in the first paper, and the essentials of the model-theoretic definition of logical consequence in the second. Over the course of the next few lectures, we’ll look at each of these in turn. 1 Background The notion of truth seems to lie at the centre of a range of other notions that are central to theorising about the formal languages of logic and mathematics: e.g. validity, con- sistency, and completeness. But the notion of truth seems to give rise to contradiction: Let sentence (1) = ‘sentence (1) is not true’. Then: 1. ‘sentence (1) is not true’ is true IFF sentence (1) is not true 2. sentence (1) = ‘sentence (1) is not true’ 3. So, sentence (1) is true IFF sentence (1) is not true 4. So, sentence (1) is true and sentence (1) is not true Tarski is worried that, unless the paradox can be resolved, metatheoretical results in- voking the notion of truth or other notions that depend on it will be remain suspect. But how can it be resolved? The second premise is undeniable, and the first premise is an instance of a schema that seems central to the concept of truth, namely the following: ‘S’ is true IFF S, 1The eventful story of Tarski’s life is told by Anita and Solomon Feferman in their wonderful biography, Alfred Tarski: Life and Logic (CUP, 2004).
    [Show full text]
  • Conceptual Semantics and Natural Semantic Metalanguage Theory 413
    1 Conceptual semantics and natural semantic 2 metalanguage theory have different goals 3 4 5 RAY JACKENDOFF 6 7 8 9 10 11 12 My interview with Istvan Kecskes, ‘‘On Conceptual Semantics (OCS),’’ 13 o¤ers some brief remarks on the relation of my approach to Anna Wierz- 14 bicka’s theory of semantic primitives, Natural Language Metalanguage 15 Theory (NSM). Wierzbicka’s response, ‘‘Theory and Empirical Findings: 16 A Response to Jackendo¤’’ (henceforth TEF) calls for some further 17 commentary. 18 My remarks began, ‘‘Although I think Wierzbicka has o¤ered many in- 19 sightful discussions of word meaning, I do not think that her approach 20 ultimately responds to the goals of Conceptual Semantics.’’ TEF makes 21 it clear that Conceptual Semantics does not respond to the goals of 22 NSM either. That is, the two theories, although they overlap on some 23 issues of word meaning, are ultimately asking di¤erent questions and set- 24 ting di¤erent standards for answers. 25 Conceptual Semantics is concerned not only with encoding word mean- 26 ings but also with accounting for (a) the combination of word meanings 27 into phrase and sentence meanings, (b) the character of inference, both 28 logical and heuristic, and (c) the relation of linguistic meaning to nonlin- 29 guistic understanding of the world, including the aspects of understanding 30 provided through the perceptual systems. Conceptual Semantics in turn 31 is embedded in a theory of the organization of language, the Parallel Ar- 32 chitecture (Jackendo¤ 2002, Culicover and Jackendo¤ 2005), which ad- 33 dresses the relation of semantics to syntax, phonology, and the lexicon.
    [Show full text]
  • Metalanguage of Race”
    608 y Symposium: “The Metalanguage of Race” Difference, Power, and Lived Experiences: Revisiting the “Metalanguage of Race” Dayo F. Gore first encountered Evelyn Brooks Higginbotham’s “African-American I Women’s History and the Metalanguage of Race” (1992) as a graduate student in a women’s history course in 1996, and the article has traveled with me ever since. I have assigned the article in at least one of my courses every year, even as I’ve taught across a number of fields, including African American history, feminist theory, and social movement history. Moreover, it has been one of the key theoretical texts I have employed to frame my own research and writing. Although I came to the article after it had been in circulation for four years, it resonated with me as a powerful and much- needed intervention in feminist theory and women’shistory.Indeed,“Meta- language” stands as one of those rare articles that continues to be relevant in ongoing debates about gender, sexuality, and race, and serves as a useful guidepost for my own scholarship. Higginbotham’s article provides an incisive response to debates among a broad spectrum of feminist scholars about how to be attentive to gender across difference and differently lived experiences, and it represented an im- portant addition to the theorization of what would become popularly known as intersectionality. Black feminist legal scholar Kimberlé Crenshaw is most often credited with coining the term “intersectionality” as she details it in two key articles, “Demarginalizing the Intersection of Race and Sex,” pub- lished in 1989, and “Mapping the Margins,” a law review article published in 1991.
    [Show full text]
  • Propositional Calculus
    CSC 438F/2404F Notes Winter, 2014 S. Cook REFERENCES The first two references have especially influenced these notes and are cited from time to time: [Buss] Samuel Buss: Chapter I: An introduction to proof theory, in Handbook of Proof Theory, Samuel Buss Ed., Elsevier, 1998, pp1-78. [B&M] John Bell and Moshe Machover: A Course in Mathematical Logic. North- Holland, 1977. Other logic texts: The first is more elementary and readable. [Enderton] Herbert Enderton: A Mathematical Introduction to Logic. Academic Press, 1972. [Mendelson] E. Mendelson: Introduction to Mathematical Logic. Wadsworth & Brooks/Cole, 1987. Computability text: [Sipser] Michael Sipser: Introduction to the Theory of Computation. PWS, 1997. [DSW] M. Davis, R. Sigal, and E. Weyuker: Computability, Complexity and Lan- guages: Fundamentals of Theoretical Computer Science. Academic Press, 1994. Propositional Calculus Throughout our treatment of formal logic it is important to distinguish between syntax and semantics. Syntax is concerned with the structure of strings of symbols (e.g. formulas and formal proofs), and rules for manipulating them, without regard to their meaning. Semantics is concerned with their meaning. 1 Syntax Formulas are certain strings of symbols as specified below. In this chapter we use formula to mean propositional formula. Later the meaning of formula will be extended to first-order formula. (Propositional) formulas are built from atoms P1;P2;P3;:::, the unary connective :, the binary connectives ^; _; and parentheses (,). (The symbols :; ^ and _ are read \not", \and" and \or", respectively.) We use P; Q; R; ::: to stand for atoms. Formulas are defined recursively as follows: Definition of Propositional Formula 1) Any atom P is a formula.
    [Show full text]
  • Carnap's Contribution to Tarski's Truth
    JOURNAL FOR THE HISTORY OF ANALYTICAL PHILOSOPHY CARNAP’S CONTRIBUTION TO TARSKI’S TRUTH VOLUME 3, NUMBER 10 MONIKA GrUBER EDITOR IN CHIEF KEVIN C. KLEMENt, UnIVERSITY OF MASSACHUSETTS In his seminal work “The Concept of Truth in Formalized Lan- guages” (1933), Alfred Tarski showed how to construct a for- EDITORIAL BOARD mally correct and materially adequate definition of true sentence GaRY EBBS, INDIANA UnIVERSITY BLOOMINGTON for certain formalized languages. These results have, eventu- GrEG FROSt-ARNOLD, HOBART AND WILLIAM SMITH COLLEGES ally, been accepted and applauded by philosophers and logi- HENRY JACKMAN, YORK UnIVERSITY cians nearly in unison. Its Postscript, written two years later, SANDRA LaPOINte, MCMASTER UnIVERSITY however, has given rise to a considerable amount of contro- LyDIA PATTON, VIRGINIA TECH versy. There is an ongoing debate on what Tarski really said MARCUS ROSSBERG, UnIVERSITY OF CONNECTICUT in the postscript. These discussions often regard Tarski as pu- MARK TEXTOR, KING’S COLLEGE LonDON tatively changing his logical framework from type theory to set AUDREY YAP, UnIVERSITY OF VICTORIA theory. RICHARD ZACH, UnIVERSITY OF CALGARY In what follows, we will compare the original results with those REVIEW EDITORS presented two years later. After a brief outline of Carnap’s pro- JULIET FLOYD, BOSTON UnIVERSITY gram in The Logical Syntax of Language we will determine its sig- CHRIS PINCOCK, OHIO STATE UnIVERSITY nificance for Tarski’s final results. ASSISTANT REVIEW EDITOR SEAN MORRIS, METROPOLITAN STATE UnIVERSITY OF DenVER DESIGN DaNIEL HARRIS, HUNTER COLLEGE C 2015 MONIKA GrUBER CARNAP’S CONTRIBUTION TO TARSKI’S TRUTH couple of years ago. In particular, in addition to the previously studied languages, he decides to investigate the languages the MONIKA GrUBER structure of which cannot be brought into harmony with the principles of the theory of semantical categories.
    [Show full text]
  • Warren Goldfarb, Notes on Metamathematics
    Notes on Metamathematics Warren Goldfarb W.B. Pearson Professor of Modern Mathematics and Mathematical Logic Department of Philosophy Harvard University DRAFT: January 1, 2018 In Memory of Burton Dreben (1927{1999), whose spirited teaching on G¨odeliantopics provided the original inspiration for these Notes. Contents 1 Axiomatics 1 1.1 Formal languages . 1 1.2 Axioms and rules of inference . 5 1.3 Natural numbers: the successor function . 9 1.4 General notions . 13 1.5 Peano Arithmetic. 15 1.6 Basic laws of arithmetic . 18 2 G¨odel'sProof 23 2.1 G¨odelnumbering . 23 2.2 Primitive recursive functions and relations . 25 2.3 Arithmetization of syntax . 30 2.4 Numeralwise representability . 35 2.5 Proof of incompleteness . 37 2.6 `I am not derivable' . 40 3 Formalized Metamathematics 43 3.1 The Fixed Point Lemma . 43 3.2 G¨odel'sSecond Incompleteness Theorem . 47 3.3 The First Incompleteness Theorem Sharpened . 52 3.4 L¨ob'sTheorem . 55 4 Formalizing Primitive Recursion 59 4.1 ∆0,Σ1, and Π1 formulas . 59 4.2 Σ1-completeness and Σ1-soundness . 61 4.3 Proof of Representability . 63 3 5 Formalized Semantics 69 5.1 Tarski's Theorem . 69 5.2 Defining truth for LPA .......................... 72 5.3 Uses of the truth-definition . 74 5.4 Second-order Arithmetic . 76 5.5 Partial truth predicates . 79 5.6 Truth for other languages . 81 6 Computability 85 6.1 Computability . 85 6.2 Recursive and partial recursive functions . 87 6.3 The Normal Form Theorem and the Halting Problem . 91 6.4 Turing Machines .
    [Show full text]
  • Object Language and Metalanguage Formal Languages • Sentence
    Object Language and Metalanguage Formal Languages • Sentence Logic and Predicate Logic are formal languages. • A formal language is a set of sentences generated by rules of formation from a vocabulary. • The sentences of Sentence Logic and Predicate Logic are not part of natural language (though some may resemble natural-language sentences). • The formal languages Sentence Logic and Predicate Logic are the objects of our study, and as such they are called object languages. The Metalanguage • If we are going to state anything about an object language, we must make use of a language. • We call a language used to study an object language a metalanguage. • In theory, the metalanguage may be identical to or include the object language. – We use English to study English in linguistics. • We will strictly separate our metalanguage (English with some extra technical vocabulary) from our object languages. • Keeping the languages separate allows us to avoid semantical paradox (Tarski). Use and Mention • When we talk about an item of language, we are said to mention it. • Whenever an item of any object language is mentioned, it must be placed within single quotation marks. • We may use English to mention an item of English. – ‘Bush’ has four letters and starts with a ‘B’. – ‘George W. Bush was born in Texas’ is false. – ‘This sentence is false’ is true. Metavariables • We may also use English to mention items of Sentence Logic and Predicate Logic. – ‘⊃’ is a connective of Sentence Logic. – ‘P ⊃ Q’ is a conditional. – If ‘P’ is true and ‘P ⊃ Q’ is true, then ‘Q’ is true.
    [Show full text]
  • Propositional Logic
    Propositional Logic LX 502 - Semantics September 19, 2008 1. Semantics and Propositions Natural language is used to communicate information about the world, typically between a speaker and an addressee. This information is conveyed using linguistic expressions. What makes natural language a suitable tool for communication is that linguistic expressions are not just grammatical forms: they also have content. Competent speakers of a language know the forms and the contents of that language, and how the two are systematically related. In other words, you can know the forms of a language but you are not a competent speaker unless you can systematically associate each form with its appropriate content. Syntax, phonology, and morphology are concerned with the form of linguistic expressions. In particular, Syntax is the study of the grammatical arrangement of words—the form of phrases but not their content. From Chomsky we get the sentence in (1), which is grammatical but meaningless. (1) Colorless green ideas sleep furiously Semantics is the study of the content of linguistic expressions. It is defined as the study of the meaning expressed by elements in a language and combinations thereof. Elements that contribute to the content of a linguistic expression can be syntactic (e.g., verbs, nouns, adjectives), morphological (e.g., tense, number, person), and phonological (e.g., intonation, focus). We’re going to restrict our attention to the syntactic elements for now. So for us, semantics will be the study of the meaning expressed by words and combinations thereof. Our goals are listed in (2). (2) i. To determine the conditions under which a sentence is true of the world (and those under which it is false) ii.
    [Show full text]
  • Handout 5 – the Semantics of Predicate Logic LX 502 – Semantics I October 17, 2008
    Handout 5 – The Semantics of Predicate Logic LX 502 – Semantics I October 17, 2008 1. The Interpretation Function This handout is a continuation of the previous handout and deals exclusively with the semantics of Predicate Logic. When you feel comfortable with the syntax of Predicate Logic, I urge you to read these notes carefully. The business of semantics, as I have stated in class, is to determine the truth-conditions of a proposition and, in so doing, describe the models in which a proposition is true (and those in which it is false). Although we’ve extended our logical language, our goal remains the same. By adopting a more sophisticated logical language with a lexicon that includes elements below the sentence-level, we now need a more sophisticated semantics, one that derives the meaning of the proposition from the meaning of its constituent individuals, predicates, and variables. But the essentials are still the same. Propositions correspond to states of affairs in the outside world (Correspondence Theory of Truth). For example, the proposition in (1) is true if and only if it correctly describes a state of affairs in the outside world in which the object corresponding to the name Aristotle has the property of being a man. (1) MAN(a) Aristotle is a man The semantics of Predicate Logic does two things. It assigns a meaning to the individuals, predicates, and variables in the syntax. It also systematically determines the meaning of a proposition from the meaning of its constituent parts and the order in which those parts combine (Principle of Compositionality).
    [Show full text]
  • Logical Metalanguage for Linguistic Description
    Motivation Problem: Metalanguage of language description Solution: Formal Logic as a linguistic metalanguage Future work References Logical Metalanguage for Linguistic Description Hossep Dolatian Stony Brook University August 10, 2018 1 Motivation Problem: Metalanguage of language description Solution: Formal Logic as a linguistic metalanguage Future work References Motivation ● Background: Linguistics is the scientific description of language ● Problem: What metalanguage do you use to describe language? ● Solution: Develop a computational+logical metalanguage for linguistic description ● Illustration: Use it to describe Armenian ● Implementation: Develop software to run logical formula for linguistics (phonology & morphology) 2 ▸ Describe ▸ Analyze ▸ Share ● Like with who? ▸ Other language-specialists ▸ Theoretical linguists ▸ Computational linguists 1. Develop computational resources 2. Industrial NLP applications Motivation Problem: Metalanguage of language description What is linguistic description Solution: Formal Logic as a linguistic metalanguage Problems with current linguistic metalanguages Future work Illustration with Armenian References What’s linguistics for ● What do linguists do? 3 ▸ Analyze ▸ Share ● Like with who? ▸ Other language-specialists ▸ Theoretical linguists ▸ Computational linguists 1. Develop computational resources 2. Industrial NLP applications Motivation Problem: Metalanguage of language description What is linguistic description Solution: Formal Logic as a linguistic metalanguage Problems with current linguistic
    [Show full text]
  • Logic of Computational Semi-Effects and Categorical Gluing for Equivariant Functors
    Logic of computational semi-effects and categorical gluing for equivariant functors Yuichi Nishiwaki University of Tokyo, Japan [email protected] Toshiya Asai University of Tokyo, Japan [email protected] Abstract In this paper, we revisit Moggi’s celebrated calculus of computational effects from the perspective of logic of monoidal action (actegory). Our development takes the following steps. Firstly, we perform proof-theoretic reconstruction of Moggi’s computational metalanguage and obtain a type theory with a modal type B as a refinement. Through the proposition-as-type paradigm, its logic can be seen as a decomposition of lax logic via Benton’s adjoint calculus. This calculus models as a programming language a weaker version of effects, which we call semi-effects. Secondly, we give its semantics using actegories and equivariant functors. Compared to previous studies of effects and actegories, our approach is more general in that models are directly given by equivariant functors, which include Freyd categories (hence strong monads) as a special case. Thirdly, we show that categorical gluing along equivariant functors is possible and derive logical predicates for B-modality. We also show that this gluing, under a natural assumption, gives rise to logical predicates that coincide with those derived by Katsumata’s categorical >>-lifting for Moggi’s metalanguage. 2012 ACM Subject Classification Theory of computation → Categorical semantics Keywords and phrases computational effects, actegories, logical relations, categorical gluing, proof theoretic semantics, modal logic, Curry-Howard correspondence, fibrations 1 Introduction It has passed about three decades since the deep connection between the notion of computation and monads in category theory was revealed by Moggi [29, 30].
    [Show full text]