Abstract Syntax and Semantics of Visual Languages
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Uncovering Dynamic Semantic Networks in the Brain Using Novel Approaches for EEG/MEG Connectome Reconstruction
Uncovering Dynamic Semantic Networks in the Brain Using Novel Approaches for EEG/MEG Connectome Reconstruction SEYEDEHREZVAN FARAHIBOZORG SELWYN COLLEGE MRC COGNITION AND BRAIN SCIENCES UNIT SCHOOL OF CLINICAL MEDICINE UNIVERSITY OF CAMBRIDGE This dissertation is submitted for the degree of Doctor of Philosophy February 2018 Uncovering Dynamic Semantic Networks in the Brain Using Novel Approaches for EEG/MEG Connectome Reconstruction Seyedehrezvan Farahibozorg The current thesis addresses some of the unresolved predictions of recent models of the semantic brain system, such as the hub-and-spokes model. In particular, we tackle different aspects of the hypothesis that a widespread network of interacting heteromodal (hub(s)) and unimodal (spokes) cortices underlie semantic cognition. For this purpose, we use connectivity analyses, measures of graph theory and permutation-based statistics with source reconstructed Electro- /MagnetoEncephaloGraphy (EEG/MEG) data in order to track dynamic modulations of activity and connectivity within the semantic networks while a concept unfolds in the brain. Moreover, in order to obtain more accurate connectivity estimates of the semantic networks, we propose novel methods for some of the challenges associated with EEG/MEG connectivity analysis in source space. We utilised data-driven analyses of EEG/MEG recordings of visual word recognition paradigms and found that: 1) Bilateral Anterior Temporal Lobes (ATLs) acted as potential processor hubs for higher- level abstract representation of concepts. This was reflected in modulations of activity by multiple contrasts of semantic variables; 2) ATL and Angular Gyrus (AG) acted as potential integrator hubs for integration of information produced in distributed semantic areas. This was observed using Dynamic Causal Modelling of connectivity among the main left-hemispheric candidate hubs and modulations of functional connectivity of ATL and AG to semantic spokes by word concreteness. -
Operational Semantics Page 1
Operational Semantics Page 1 Operational Semantics Class notes for a lecture given by Mooly Sagiv Tel Aviv University 24/5/2007 By Roy Ganor and Uri Juhasz Reference Semantics with Applications, H. Nielson and F. Nielson, Chapter 2. http://www.daimi.au.dk/~bra8130/Wiley_book/wiley.html Introduction Semantics is the study of meaning of languages. Formal semantics for programming languages is the study of formalization of the practice of computer programming. A computer language consists of a (formal) syntax – describing the actual structure of programs and the semantics – which describes the meaning of programs. Many tools exist for programming languages (compilers, interpreters, verification tools, … ), the basis on which these tools can cooperate is the formal semantics of the language. Formal Semantics When designing a programming language, formal semantics gives an (hopefully) unambiguous definition of what a program written in the language should do. This definition has several uses: • People learning the language can understand the subtleties of its use • The model over which the semantics is defined (the semantic domain) can indicate what the requirements are for implementing the language (as a compiler/interpreter/…) • Global properties of any program written in the language, and any state occurring in such a program, can be understood from the formal semantics • Implementers of tools for the language (parsers, compilers, interpreters, debuggers etc) have a formal reference for their tool and a formal definition of its correctness/completeness -
Denotational Semantics
Denotational Semantics CS 6520, Spring 2006 1 Denotations So far in class, we have studied operational semantics in depth. In operational semantics, we define a language by describing the way that it behaves. In a sense, no attempt is made to attach a “meaning” to terms, outside the way that they are evaluated. For example, the symbol ’elephant doesn’t mean anything in particular within the language; it’s up to a programmer to mentally associate meaning to the symbol while defining a program useful for zookeeppers. Similarly, the definition of a sort function has no inherent meaning in the operational view outside of a particular program. Nevertheless, the programmer knows that sort manipulates lists in a useful way: it makes animals in a list easier for a zookeeper to find. In denotational semantics, we define a language by assigning a mathematical meaning to functions; i.e., we say that each expression denotes a particular mathematical object. We might say, for example, that a sort implementation denotes the mathematical sort function, which has certain properties independent of the programming language used to implement it. In other words, operational semantics defines evaluation by sourceExpression1 −→ sourceExpression2 whereas denotational semantics defines evaluation by means means sourceExpression1 → mathematicalEntity1 = mathematicalEntity2 ← sourceExpression2 One advantage of the denotational approach is that we can exploit existing theories by mapping source expressions to mathematical objects in the theory. The denotation of expressions in a language is typically defined using a structurally-recursive definition over expressions. By convention, if e is a source expression, then [[e]] means “the denotation of e”, or “the mathematical object represented by e”. -
Quantum Weakest Preconditions
Quantum Weakest Preconditions Ellie D’Hondt ∗ Prakash Panangaden †‡ Abstract We develop a notion of predicate transformer and, in particular, the weak- est precondition, appropriate for quantum computation. We show that there is a Stone-type duality between the usual state-transformer semantics and the weakest precondition semantics. Rather than trying to reduce quantum com- putation to probabilistic programming we develop a notion that is directly taken from concepts used in quantum computation. The proof that weak- est preconditions exist for completely positive maps follows from the Kraus representation theorem. As an example we give the semantics of Selinger’s language in terms of our weakest preconditions. 1 Introduction Quantum computation is a field of research that is rapidly acquiring a place as a significant topic in computer science. To be sure, there are still essential tech- nological and conceptual problems to overcome in building functional quantum computers. Nevertheless there are fundamental new insights into quantum com- putability [Deu85, DJ92], quantum algorithms [Gro96, Gro97, Sho94, Sho97] and into the nature of quantum mechanics itself [Per95], particularly with the emer- gence of quantum information theory [NC00]. These developments inspire one to consider the problems of programming full-fledged general purpose quantum computers. Much of the theoretical re- search is aimed at using the new tools available - superposition, entanglement and linearity - for algorithmic efficiency. However, the fact that quantum algorithms are currently done at a very low level only - comparable to classical computing 60 years ago - is a much less explored aspect of the field. The present paper is ∗Centrum Leo Apostel , Vrije Universiteit Brussel, Brussels, Belgium, [email protected]. -
What Does Semantic Tiling of the Cortex Tell Us About Semantics? MARK ⁎ Lawrence W
Neuropsychologia 105 (2017) 18–38 Contents lists available at ScienceDirect Neuropsychologia journal homepage: www.elsevier.com/locate/neuropsychologia What does semantic tiling of the cortex tell us about semantics? MARK ⁎ Lawrence W. Barsalou University of Glasgow, UK ARTICLE INFO ABSTRACT Keywords: Recent use of voxel-wise modeling in cognitive neuroscience suggests that semantic maps tile the cortex. Semantics Although this impressive research establishes distributed cortical areas active during the conceptual processing Conceptual processing that underlies semantics, it tells us little about the nature of this processing. While mapping concepts between Neural encoding and decoding Marr's computational and implementation levels to support neural encoding and decoding, this approach ignores Multi-voxel pattern analysis Marr's algorithmic level, central for understanding the mechanisms that implement cognition, in general, and Explanatory levels conceptual processing, in particular. Following decades of research in cognitive science and neuroscience, what Cognitive mechanisms do we know so far about the representation and processing mechanisms that implement conceptual abilities? Most basically, much is known about the mechanisms associated with: (1) feature and frame representations, (2) grounded, abstract, and linguistic representations, (3) knowledge-based inference, (4) concept composition, and (5) conceptual flexibility. Rather than explaining these fundamental representation and processing mechanisms, semantic tiles simply provide a trace of their activity over a relatively short time period within a specific learning context. Establishing the mechanisms that implement conceptual processing in the brain will require more than mapping it to cortical (and sub-cortical) activity, with process models from cognitive science likely to play central roles in specifying the intervening mechanisms. -
Operational Semantics with Hierarchical Abstract Syntax Graphs*
Operational Semantics with Hierarchical Abstract Syntax Graphs* Dan R. Ghica Huawei Research, Edinburgh University of Birmingham, UK This is a motivating tutorial introduction to a semantic analysis of programming languages using a graphical language as the representation of terms, and graph rewriting as a representation of reduc- tion rules. We show how the graphical language automatically incorporates desirable features, such as a-equivalence and how it can describe pure computation, imperative store, and control features in a uniform framework. The graph semantics combines some of the best features of structural oper- ational semantics and abstract machines, while offering powerful new methods for reasoning about contextual equivalence. All technical details are available in an extended technical report by Muroya and the author [11] and in Muroya’s doctoral dissertation [21]. 1 Hierarchical abstract syntax graphs Before proceeding with the business of analysing and transforming the source code of a program, a com- piler first parses the input text into a sequence of atoms, the lexemes, and then assembles them into a tree, the Abstract Syntax Tree (AST), which corresponds to its grammatical structure. The reason for preferring the AST to raw text or a sequence of lexemes is quite obvious. The structure of the AST incor- porates most of the information needed for the following stage of compilation, in particular identifying operations as nodes in the tree and operands as their branches. This makes the AST algorithmically well suited for its purpose. Conversely, the AST excludes irrelevant lexemes, such as separators (white-space, commas, semicolons) and aggregators (brackets, braces), by making them implicit in the tree-like struc- ture. -
Making Classes Provable Through Contracts, Models and Frames
View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by CiteSeerX DISS. ETH NO. 17610 Making classes provable through contracts, models and frames A dissertation submitted to the SWISS FEDERAL INSTITUTE OF TECHNOLOGY ZURICH (ETH Zurich)¨ for the degree of Doctor of Sciences presented by Bernd Schoeller Diplom-Informatiker, TU Berlin born April 5th, 1974 citizen of Federal Republic of Germany accepted on the recommendation of Prof. Dr. Bertrand Meyer, examiner Prof. Dr. Martin Odersky, co-examiner Prof. Dr. Jonathan S. Ostroff, co-examiner 2007 ABSTRACT Software correctness is a relation between code and a specification of the expected behavior of the software component. Without proper specifica- tions, correct software cannot be defined. The Design by Contract methodology is a way to tightly integrate spec- ifications into software development. It has proved to be a light-weight and at the same time powerful description technique that is accepted by software developers. In its more than 20 years of existence, it has demon- strated many uses: documentation, understanding object-oriented inheri- tance, runtime assertion checking, or fully automated testing. This thesis approaches the formal verification of contracted code. It conducts an analysis of Eiffel and how contracts are expressed in the lan- guage as it is now. It formalizes the programming language providing an operational semantics and a formal list of correctness conditions in terms of this operational semantics. It introduces the concept of axiomatic classes and provides a full library of axiomatic classes, called the mathematical model library to overcome prob- lems of contracts on unbounded data structures. -
A Denotational Semantics Approach to Functional and Logic Programming
A Denotational Semantics Approach to Functional and Logic Programming TR89-030 August, 1989 Frank S.K. Silbermann The University of North Carolina at Chapel Hill Department of Computer Science CB#3175, Sitterson Hall Chapel Hill, NC 27599-3175 UNC is an Equal OpportunityjAfflrmative Action Institution. A Denotational Semantics Approach to Functional and Logic Programming by FrankS. K. Silbermann A dissertation submitted to the faculty of the University of North Carolina at Chapel Hill in par tial fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Science. Chapel Hill 1989 @1989 Frank S. K. Silbermann ALL RIGHTS RESERVED 11 FRANK STEVEN KENT SILBERMANN. A Denotational Semantics Approach to Functional and Logic Programming (Under the direction of Bharat Jayaraman.) ABSTRACT This dissertation addresses the problem of incorporating into lazy higher-order functional programming the relational programming capability of Horn logic. The language design is based on set abstraction, a feature whose denotational semantics has until now not been rigorously defined. A novel approach is taken in constructing an operational semantics directly from the denotational description. The main results of this dissertation are: (i) Relative set abstraction can combine lazy higher-order functional program ming with not only first-order Horn logic, but also with a useful subset of higher order Horn logic. Sets, as well as functions, can be treated as first-class objects. (ii) Angelic powerdomains provide the semantic foundation for relative set ab straction. (iii) The computation rule appropriate for this language is a modified parallel outermost, rather than the more familiar left-most rule. (iv) Optimizations incorporating ideas from narrowing and resolution greatly improve the efficiency of the interpreter, while maintaining correctness. -
Former Associate Professor of Linguistics) [email protected] Working Version 16.2
Cognitax Tool Grammar: Re-factoring the Generative Program A pervasive action dimension for linguistic description, theory and models 12 Lawrence R. Smith (Former Associate Professor of Linguistics) [email protected] Working Version 16.2 This is a preliminary and frequently changing dynamic document responsive to reader critique and is likely not the latest version available by contacting the author. (Note the title has changed.3) The later version always supersedes the earlier and typically may include major revisions. Comments and challenges are welcome for future versions. The extended version under development is freely available on request from the author. 1 We are indebted for the incisive comments of readers who suggested constructive improvements even as the ideas presented here were sometimes at considerable variance with their own current working frameworks. We owe special thanks to the following for comments on either parts or the whole of this work: John Hewson, Paul Postal, Vit Bubenik, Pieter Seurens and Willem de Reuse. 2We had considered an alternative title for this paper since it seeks to explain malformation: “A Review of Verbal Misbehavior” 3 From version 12.9 ‘Cognitax’ replaces ‘Pragmatax’ to clarify that Tool Grammar is distinct from pragmatics, as well as separate work that may refer to grammatical tools. Both were absent from the title in an earlier version. 1 Operative Motivating Hypotheses of Tool Grammar 1. There exists an empirically evident necessity for representation of linguistic structural action intent which has been generally overlooked in the theory of language, including centralized configurational syntax in the generative program. 2. Linguistic structural action intent extends the basic Chomskyan focus on linguistic creativity (unbounded generation from finite means) to a new level of representation useful for explaining and constraining the inventive means by which the species- specific features of human language are effected. -
Denotational Semantics
Denotational Semantics 8–12 lectures for Part II CST 2010/11 Marcelo Fiore Course web page: http://www.cl.cam.ac.uk/teaching/1011/DenotSem/ 1 Lecture 1 Introduction 2 What is this course about? • General area. Formal methods: Mathematical techniques for the specification, development, and verification of software and hardware systems. • Specific area. Formal semantics: Mathematical theories for ascribing meanings to computer languages. 3 Why do we care? • Rigour. specification of programming languages . justification of program transformations • Insight. generalisations of notions computability . higher-order functions ... data structures 4 • Feedback into language design. continuations . monads • Reasoning principles. Scott induction . Logical relations . Co-induction 5 Styles of formal semantics Operational. Meanings for program phrases defined in terms of the steps of computation they can take during program execution. Axiomatic. Meanings for program phrases defined indirectly via the ax- ioms and rules of some logic of program properties. Denotational. Concerned with giving mathematical models of programming languages. Meanings for program phrases defined abstractly as elements of some suitable mathematical structure. 6 Basic idea of denotational semantics [[−]] Syntax −→ Semantics Recursive program → Partial recursive function Boolean circuit → Boolean function P → [[P ]] Concerns: • Abstract models (i.e. implementation/machine independent). Lectures 2, 3 and 4. • Compositionality. Lectures 5 and 6. • Relationship to computation (e.g. operational semantics). Lectures 7 and 8. 7 Characteristic features of a denotational semantics • Each phrase (= part of a program), P , is given a denotation, [[P ]] — a mathematical object representing the contribution of P to the meaning of any complete program in which it occurs. • The denotation of a phrase is determined just by the denotations of its subphrases (one says that the semantics is compositional). -
An Agile Approach to Language Modelling and Development
ISSE manuscript No. (will be inserted by the editor) An Agile Approach to Language Modelling and Development Adrian Johnstone · Peter D. Mosses · Elizabeth Scott Received: ??? / Accepted: ??? Abstract We have developed novel techniques for 1 Introduction component-based specification of programming languages. In our approach, the semantics of each fundamental We are developing a component-based approach to language programming construct is specified independently, using an modelling. Our models are formal specifications of syntax inherently modular framework such that no reformulation and semantics. is needed when constructs are combined. A language Language designers already use formal specifications specification consists of an unrestricted context-free for syntax; we claim that formal semantics can be useful grammar for the syntax of programs, together with an and worthwhile for them too, provided that the following analysis of each language construct in terms of fundamental features are combined in a single, coherent framework: constructs. An open-ended collection of fundamental – a substantial collection of specification components that constructs is currently being developed. can be used without change; When supported by appropriate tools, our techniques – accessible formalisms and notation; allow a more agile approach to the design, modelling, – tool support for developing and checking specifications; and implementation of programming and domain-specific – tools for generating (at least prototype) implementations languages. In particular, our approach encourages lan- from tentative language specifications; guage designers to proceed incrementally, using prototype – successful case studies involving major languages; and implementations generated from specifications to test – an online repository providing access to all specifica- tentative designs. The components of our specifications tions. -
Probabilistic Predicate Transformers
Probabilistic Predicate Transformers CARROLL MORGAN, ANNABELLE McIVER, and KAREN SEIDEL Oxford University Probabilistic predicates generalize standard predicates over a state space; with probabilistic pred- icate transformers one thus reasons about imperative programs in terms of probabilistic pre- and postconditions. Probabilistic healthiness conditions generalize the standard ones, characterizing “real” probabilistic programs, and are based on a connection with an underlying relational model for probabilistic execution; in both contexts demonic nondeterminism coexists with probabilis- tic choice. With the healthiness conditions, the associated weakest-precondition calculus seems suitable for exploring the rigorous derivation of small probabilistic programs. Categories and Subject Descriptors: D.2.4 [Program Verification]: Correctness Proofs; D.3.1 [Programming Languages]: Formal Definitions and Theory; F.1.2 [Modes of Computation]: Probabilistic Computation; F.3.1 [Semantics of Programming Languages]: Specifying and Ver- ifying and Reasoning about Programs; G.3 [Probability and Statistics]: Probabilistic Algorithms General Terms: Verification, Theory, Algorithms, Languages Additional Key Words and Phrases: Galois connection, nondeterminism, predicate transformers, probability, program derivation, refinement, weakest preconditions 1. MOTIVATION AND INTRODUCTION The weakest-precondition approach of Dijkstra [1976] has been reasonably success- ful for rigorous derivation of small imperative programs, even (and especially) those involving demonic