An Introduction to Declarative Programming in CLIPS and PROLOG Jack L

Total Page:16

File Type:pdf, Size:1020Kb

An Introduction to Declarative Programming in CLIPS and PROLOG Jack L University of Dayton eCommons Computer Science Faculty Publications Department of Computer Science 7-2019 An Introduction to Declarative Programming in CLIPS and PROLOG Jack L. Watkin University of Nebraska - Lincoln Adam C. Volk University of Nebraska - Lincoln Saverio Perugini University of Dayton, [email protected] Follow this and additional works at: https://ecommons.udayton.edu/cps_fac_pub Part of the Graphics and Human Computer Interfaces Commons, and the Other Computer Sciences Commons eCommons Citation Watkin, Jack L.; Volk, Adam C.; and Perugini, Saverio, "An Introduction to Declarative Programming in CLIPS and PROLOG" (2019). Computer Science Faculty Publications. 179. https://ecommons.udayton.edu/cps_fac_pub/179 This Conference Paper is brought to you for free and open access by the Department of Computer Science at eCommons. It has been accepted for inclusion in Computer Science Faculty Publications by an authorized administrator of eCommons. For more information, please contact [email protected], [email protected]. Int’l Conf. Scientific Computing j CSC’19 j 105 An Introduction to Declarative Programming in CLIPS and PROLOG Jack L. Watkin, Adam C. Volk1, and Saverio Perugini2 1Department of Mathematics, University of Nebraska Lincoln, Lincoln, Nebraska, USA 2Department of Computer Science, University of Dayton, Dayton, Ohio, USA Programming Languages Abstract— We provide a brief introduction to CLIPS—a declarative/logic programming language for implementing expert systems—and PROLOG—a declarative/logic program- ming language based on first-order, predicate calculus. Un- Procedural Non-procedural like imperative languages in which the programmer specifies how to compute a solution to a problem, in a declarative Imperative Functional language, the programmer specifies what they what to find, Non-declarative Declarative C LISP and the system uses a search strategy built into the language. Artificial Rule Based Logic We also briefly discuss applications of CLIPS and PROLOG. Neural Systems CLIPS PROLOG Fig. 1: A hierarchy of programming paradigms and lan- Keywords: CLIPS, declarative programming, first-order predicate guages (adapted from [6]). calculus, logic programming, production system, PROLOG 1. Introduction CLIPS1 is a declarative/logic programming language for both declarative programming language and, thus, involve implementing expert systems. Originally called NASA’s the declaration of facts and rules, they each use fundamen- Artificial Intelligence Language (NAIL), CLIPS started as a tally different search strategies. tool for creating expert systems at NASA in the 1980s. An expert system is a computer program capable of model- ing the knowledge of a human expert [1]. CLIPS stands 2.1 Horn Clauses for CLanguage Integrated Production System. In artificial intelligence, a production system is a computer system Logic programming in PROLOG is based on first-order, which relies on facts and rules to guide its decision mak- predicate calculus—a formal system of logic which uses ing. Programming in a declarative, rule-based language variables, predicates, quantifiers, and logical connectives like CLIPS is fundamentally different than programming to produce propositions involving clauses. Clausal form is in more traditional programming languages like C or Java a standard (and simplified) form for propositions: B1 _ and more resembles programming in PROLOG [2], [3], [4], B2 _···_ Bn ⊂ A1 ^ A2 ^ · · · ^ Am. The As and Bs [5]—a declarative/logic language to which we compare are terms. The left hand side is called the consequent, CLIPS throughout this paper.2 Fig.1 situates CLIPS (and while the right hand side is called the antecedent. The PROLOG) in relation to other programming paradigms and interpretation is: if all of the As are true, then at least languages [6]. one of the Bs must be true. Advantages of representing propositions in clausal form are (i) existential quantifiers are 2. Declarative/Logic Programming unnecessary; (ii) universal quantifiers are implicit in the use In the declarative paradigm of programming, rather than of variables in the atomic propositions; (iii) no operators describing how to compute a solution as done when pro- other than conjunction and disjunction are required; and gramming in, e.g., Java, the programmer describes what a (iv) all predicate calculus propositions can be converted to solution to a problem looks like through the declaration of clausal form. “When propositions are used for resolution,[— facts and rules describing it. While CLIPS and PROLOG are a rule of inference discussed below—]only a restricted kind of clausal form called a Horn clause can be used, which 1http://www.clipsrules.net/ further simplifies the resolution process” [7]. Horn clauses 2PROLOG, which stands for PROgramming in LOGic, is a declarative/- conform to one of the three forms detailed in Table1[8]. logic programming language developed in the early 1970s for artificial intelligence applications. The PROLOG interpreter assumed in this paper All expressions in PROLOG match one of these three forms is SWI-PROLOG—http://www.swi-prolog.org/. for Horn clauses. Cite as: Watkin, J.L., Volk, A.C., & Perugini, S. (2019). An introduction to declarative programming in CLIPS and PROLOG. In Arabnia, H.R., Deligiannidis, L., Grimaila, M.R., Hodson, D.D., & Tinetti, F.G. (Eds.), Proceedings of the International Conference on Scientific Computing (CSC), 105–111. USA: CSREA Press. (Publication of the World Congress in Computer Science, Computer Engineering, and Applied Computing (CSCE). Available at https://csce.ucmss.com/cr/books/2019/LFS/CSREA2019/CSC2488.pdf.) 106 Int’l Conf. Scientific Computing j CSC’19 j Table 1: Types of Horn clauses. Table 2: Essential CLIPS shell commands. Form Horn Clause Type PROLOG Name Command Function fg ⊂ B1 ^ ::: ^ Bn; n ≥ 1 Headless Goal (run) Run the inference engine. A ⊂ fg Headed Fact (facts) Retrieve the current fact-list. A ⊂ B1 ^ ::: ^ Bn; n ≥ 1 Headed Rule (clear) Restores CLIPS to start-up state. (retract n) Retract fact n. (retract *) Retract all facts. (watch facts) Observe facts entering or exiting memory. accessible from within the CLIPS shell and usable in CLIPS scripts. For purposes of comparison, we can declare the proposi- tion ‘It is raining’ in PROLOG with the fact: weather(raining). Fig. 2: Architectural design of CLIPS (adapted from [6]). Similarly, we can declare the rule ‘If it is raining, then I carry an umbrella’ in PROLOG with the rule. carry(umbrella):− weather(raining). 2.2 Asserting Facts and Rules Additionally, consider the following set of facts and rule in Like PROLOG, in CLIPS expert systems, knowledge is PROLOG: represented as facts and rules and, thus, a CLIPS or PROLOG color(red). program consists of facts and rules. A fact is an axiom that color(yellow). is asserted as true. A rule is a declaration expressed in the color(blue). form of an IF THEN statement. For example, a fact may lightcolor(X):− color(yellow). be ‘It is raining.’ In CLIPS this fact is written as: These facts assert that red, yellow, and blue are colors. The (assert (weather raining)) rule declares that yellow is a light color. The assert keyword defines facts, which are inserted in FIFO order into the fact-list. Facts can also be added 2.3 Resolution and Unification to the fact-list with the deffacts command. An The Match-Resolve-Act cycle is the foundation of the example rule is ‘If it is raining, then I carry an umbrella’: CLIPS inference engine which performs pattern matching be- (defrule ourrule tween rules and facts through the use of the Rete Algorithm. (weather raining) => Once the CLIPS inference engine has matched all applicable (assert (carry umbrella))) rules, conflict resolution occurs. Conflict resolution is the process of scheduling rules that were matched at the same The following is the general syntax of a rule [1]3: time. Once the actions have been performed, the inference (defrule rule_name (pattern_1); IF Condition 1 engine returns to the pattern matching stage to search for (pattern_2); And Condition 2 new rules that may be matched as a result of the previous . actions. This process continues until a fixed point is reached. (pattern_N); And Condition N In PROLOG, however, the user gives the inference engine => ; THEN (action_1); Perform Action 1 a goal that it then sets out to satisfy (i.e., prove) based on (action_2); And Action 2 the knowledge base of facts and rules. To run a program, . the user supplies one or more goals, each in the form of a (action_N)) ; And Action N headless Horn clause (see Table1). The activity of supplying a goal can be viewed as asking questions of the program The CLIPS shell can be invoked in UNIX-based systems or querying the system as one does with a database system. with the clips command. From within the CLIPS shell, the user can assert facts, defrules, and (run) the When a goal is given, the inference engine attempts to match inference engine. When the user issues the (run) com- the goal with the head of a headed Horn clause, which can mand, the inference engine pattern matches facts with rules. be either a fact or a rule. PROLOG works backward from If all patterns are matched within the rule, then the actions the goal using a rule of inference called resolution to find associated with that rule are fired. To load facts and rules a series of facts and rules which can be used to prove the from an external file, use the -f option (e.g., clips -f goal. This approach is called backward chaining because database.clp). Table2 is a summary of commands the system works backward from a goal to find a path to prove that the goal is true. CLIPS, on the other hand, works 3Note that ; begins a comment. in the opposite direction. CLIPS takes asserted facts and Int’l Conf. Scientific Computing j CSC’19 j 107 attempts to match them to rules to make inferences.
Recommended publications
  • Programming Paradigms & Object-Oriented
    4.3 (Programming Paradigms & Object-Oriented- Computer Science 9608 Programming) with Majid Tahir Syllabus Content: 4.3.1 Programming paradigms Show understanding of what is meant by a programming paradigm Show understanding of the characteristics of a number of programming paradigms (low- level, imperative (procedural), object-oriented, declarative) – low-level programming Demonstrate an ability to write low-level code that uses various address modes: o immediate, direct, indirect, indexed and relative (see Section 1.4.3 and Section 3.6.2) o imperative programming- see details in Section 2.3 (procedural programming) Object-oriented programming (OOP) o demonstrate an ability to solve a problem by designing appropriate classes o demonstrate an ability to write code that demonstrates the use of classes, inheritance, polymorphism and containment (aggregation) declarative programming o demonstrate an ability to solve a problem by writing appropriate facts and rules based on supplied information o demonstrate an ability to write code that can satisfy a goal using facts and rules Programming paradigms 1 4.3 (Programming Paradigms & Object-Oriented- Computer Science 9608 Programming) with Majid Tahir Programming paradigm: A programming paradigm is a set of programming concepts and is a fundamental style of programming. Each paradigm will support a different way of thinking and problem solving. Paradigms are supported by programming language features. Some programming languages support more than one paradigm. There are many different paradigms, not all mutually exclusive. Here are just a few different paradigms. Low-level programming paradigm The features of Low-level programming languages give us the ability to manipulate the contents of memory addresses and registers directly and exploit the architecture of a given processor.
    [Show full text]
  • Functional and Imperative Object-Oriented Programming in Theory and Practice
    Uppsala universitet Inst. för informatik och media Functional and Imperative Object-Oriented Programming in Theory and Practice A Study of Online Discussions in the Programming Community Per Jernlund & Martin Stenberg Kurs: Examensarbete Nivå: C Termin: VT-19 Datum: 14-06-2019 Abstract Functional programming (FP) has progressively become more prevalent and techniques from the FP paradigm has been implemented in many different Imperative object-oriented programming (OOP) languages. However, there is no indication that OOP is going out of style. Nevertheless the increased popularity in FP has sparked new discussions across the Internet between the FP and OOP communities regarding a multitude of related aspects. These discussions could provide insights into the questions and challenges faced by programmers today. This thesis investigates these online discussions in a small and contemporary scale in order to identify the most discussed aspect of FP and OOP. Once identified the statements and claims made by various discussion participants were selected and compared to literature relating to the aspects and the theory behind the paradigms in order to determine whether there was any discrepancies between practitioners and theory. It was done in order to investigate whether the practitioners had different ideas in the form of best practices that could influence theories. The most discussed aspect within FP and OOP was immutability and state relating primarily to the aspects of concurrency and performance. ​ ​ ​ ​ ​ ​ This thesis presents a selection of representative quotes that illustrate the different points of view held by groups in the community and then addresses those claims by investigating what is said in literature.
    [Show full text]
  • Functional and Logic Programming - Wolfgang Schreiner
    COMPUTER SCIENCE AND ENGINEERING - Functional and Logic Programming - Wolfgang Schreiner FUNCTIONAL AND LOGIC PROGRAMMING Wolfgang Schreiner Research Institute for Symbolic Computation (RISC-Linz), Johannes Kepler University, A-4040 Linz, Austria, [email protected]. Keywords: declarative programming, mathematical functions, Haskell, ML, referential transparency, term reduction, strict evaluation, lazy evaluation, higher-order functions, program skeletons, program transformation, reasoning, polymorphism, functors, generic programming, parallel execution, logic formulas, Horn clauses, automated theorem proving, Prolog, SLD-resolution, unification, AND/OR tree, constraint solving, constraint logic programming, functional logic programming, natural language processing, databases, expert systems, computer algebra. Contents 1. Introduction 2. Functional Programming 2.1 Mathematical Foundations 2.2 Programming Model 2.3 Evaluation Strategies 2.4 Higher Order Functions 2.5 Parallel Execution 2.6 Type Systems 2.7 Implementation Issues 3. Logic Programming 3.1 Logical Foundations 3.2. Programming Model 3.3 Inference Strategy 3.4 Extra-Logical Features 3.5 Parallel Execution 4. Refinement and Convergence 4.1 Constraint Logic Programming 4.2 Functional Logic Programming 5. Impacts on Computer Science Glossary BibliographyUNESCO – EOLSS Summary SAMPLE CHAPTERS Most programming languages are models of the underlying machine, which has the advantage of a rather direct translation of a program statement to a sequence of machine instructions. Some languages, however, are based on models that are derived from mathematical theories, which has the advantages of a more concise description of a program and of a more natural form of reasoning and transformation. In functional languages, this basis is the concept of a mathematical function which maps a given argument values to some result value.
    [Show full text]
  • Programming Language
    Programming language A programming language is a formal language, which comprises a set of instructions that produce various kinds of output. Programming languages are used in computer programming to implement algorithms. Most programming languages consist of instructions for computers. There are programmable machines that use a set of specific instructions, rather than general programming languages. Early ones preceded the invention of the digital computer, the first probably being the automatic flute player described in the 9th century by the brothers Musa in Baghdad, during the Islamic Golden Age.[1] Since the early 1800s, programs have been used to direct the behavior of machines such as Jacquard looms, music boxes and player pianos.[2] The programs for these The source code for a simple computer program written in theC machines (such as a player piano's scrolls) did not programming language. When compiled and run, it will give the output "Hello, world!". produce different behavior in response to different inputs or conditions. Thousands of different programming languages have been created, and more are being created every year. Many programming languages are written in an imperative form (i.e., as a sequence of operations to perform) while other languages use the declarative form (i.e. the desired result is specified, not how to achieve it). The description of a programming language is usually split into the two components ofsyntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, theC programming language is specified by an ISO Standard) while other languages (such as Perl) have a dominant implementation that is treated as a reference.
    [Show full text]
  • Logic Programming Logic Department of Informatics Informatics of Department Based on INF 3110 – 2016 2
    Logic Programming INF 3110 3110 INF Volker Stolz – 2016 [email protected] Department of Informatics – University of Oslo Based on slides by G. Schneider, A. Torjusen and Martin Giese, UiO. 1 Outline ◆ A bit of history ◆ Brief overview of the logical paradigm 3110 INF – ◆ Facts, rules, queries and unification 2016 ◆ Lists in Prolog ◆ Different views of a Prolog program 2 History of Logic Programming ◆ Origin in automated theorem proving ◆ Based on the syntax of first-order logic ◆ 1930s: “Computation as deduction” paradigm – K. Gödel 3110 INF & J. Herbrand – ◆ 1965: “A Machine-Oriented Logic Based on the Resolution 2016 Principle” – Robinson: Resolution, unification and a unification algorithm. • Possible to prove theorems of first-order logic ◆ Early seventies: Logic programs with a restricted form of resolution introduced by R. Kowalski • The proof process results in a satisfying substitution. • Certain logical formulas can be interpreted as programs 3 History of Logic Programming (cont.) ◆ Programming languages for natural language processing - A. Colmerauer & colleagues ◆ 1971–1973: Prolog - Kowalski and Colmerauer teams 3110 INF working together ◆ First implementation in Algol-W – Philippe Roussel – 2016 ◆ 1983: WAM, Warren Abstract Machine ◆ Influences of the paradigm: • Deductive databases (70’s) • Japanese Fifth Generation Project (1982-1991) • Constraint Logic Programming • Parts of Semantic Web reasoning • Inductive Logic Programming (machine learning) 4 Paradigms: Overview ◆ Procedural/imperative Programming • A program execution is regarded as a sequence of operations manipulating a set of registers (programmable calculator) 3110 INF ◆ Functional Programming • A program is regarded as a mathematical function – 2016 ◆ Object-Oriented Programming • A program execution is regarded as a physical model simulating a real or imaginary part of the world ◆ Constraint-Oriented/Declarative (Logic) Programming • A program is regarded as a set of equations ◆ Aspect-Oriented, Intensional, ..
    [Show full text]
  • Multi-Paradigm Declarative Languages*
    c Springer-Verlag In Proc. of the International Conference on Logic Programming, ICLP 2007. Springer LNCS 4670, pp. 45-75, 2007 Multi-paradigm Declarative Languages⋆ Michael Hanus Institut f¨ur Informatik, CAU Kiel, D-24098 Kiel, Germany. [email protected] Abstract. Declarative programming languages advocate a program- ming style expressing the properties of problems and their solutions rather than how to compute individual solutions. Depending on the un- derlying formalism to express such properties, one can distinguish differ- ent classes of declarative languages, like functional, logic, or constraint programming languages. This paper surveys approaches to combine these different classes into a single programming language. 1 Introduction Compared to traditional imperative languages, declarative programming lan- guages provide a higher and more abstract level of programming that leads to reliable and maintainable programs. This is mainly due to the fact that, in con- trast to imperative programming, one does not describe how to obtain a solution to a problem by performing a sequence of steps but what are the properties of the problem and the expected solutions. In order to define a concrete declarative language, one has to fix a base formalism that has a clear mathematical founda- tion as well as a reasonable execution model (since we consider a programming language rather than a specification language). Depending on such formalisms, the following important classes of declarative languages can be distinguished: – Functional languages: They are based on the lambda calculus and term rewriting. Programs consist of functions defined by equations that are used from left to right to evaluate expressions.
    [Show full text]
  • Best Declarative Programming Languages
    Best Declarative Programming Languages mercurializeEx-directory Abdelfiercely cleeked or superhumanizes. or surmount some Afghani hexapod Shurlocke internationally, theorizes circumspectly however Sheraton or curve Sheffie verydepressingly home. when Otis is chainless. Unfortified Odie glistens turgidly, he pinnacling his dinoflagellate We needed to declarative programming, features of study of programming languages best declarative level. Procedural knowledge includes knowledge of basic procedures and skills and their automation. Get the highlights in your inbox every week. Currently pursuing MS Data Science. And this an divorce and lets the reader know something and achieve. Conclusion This post its not shut to weigh the two types of above query languages against this other; it is loathe to steady the basic pros and cons to scrutiny before deciding which language to relate for rest project. You describe large data: properties and relationships. Excel users and still think of an original or Google spreadsheet when your talk about tabular data. Fetch the bucket, employers are under for programmers who can revolve on multiple paradigms to solve problems. One felt the main advantages of declarative programming is that maintenance can be performed without interrupting application development. Follows imperative approach problems. To then that mountain are increasingly adding properties defined in different more abstract and declarative manner. Please enter their star rating. The any is denotational semantics, they care simply define different ways to eating the problem. Imperative programming with procedure calls. Staying organized is imperative. Functional programming is a declarative paradigm based on a composition of pure functions. Markup Language and Natural Language are not Programming Languages. Between declarative and procedural knowledge of procedural and functional programming languages permit side effects, open outer door.
    [Show full text]
  • Comparative Studies of 10 Programming Languages Within 10 Diverse Criteria
    Department of Computer Science and Software Engineering Comparative Studies of 10 Programming Languages within 10 Diverse Criteria Jiang Li Sleiman Rabah Concordia University Concordia University Montreal, Quebec, Concordia Montreal, Quebec, Concordia [email protected] [email protected] Mingzhi Liu Yuanwei Lai Concordia University Concordia University Montreal, Quebec, Concordia Montreal, Quebec, Concordia [email protected] [email protected] COMP 6411 - A Comparative studies of programming languages 1/139 Sleiman Rabah, Jiang Li, Mingzhi Liu, Yuanwei Lai This page was intentionally left blank COMP 6411 - A Comparative studies of programming languages 2/139 Sleiman Rabah, Jiang Li, Mingzhi Liu, Yuanwei Lai Abstract There are many programming languages in the world today.Each language has their advantage and disavantage. In this paper, we will discuss ten programming languages: C++, C#, Java, Groovy, JavaScript, PHP, Schalar, Scheme, Haskell and AspectJ. We summarize and compare these ten languages on ten different criterion. For example, Default more secure programming practices, Web applications development, OO-based abstraction and etc. At the end, we will give our conclusion that which languages are suitable and which are not for using in some cases. We will also provide evidence and our analysis on why some language are better than other or have advantages over the other on some criterion. 1 Introduction Since there are hundreds of programming languages existing nowadays, it is impossible and inefficient
    [Show full text]
  • Using Declarative Programming in an Introductory Computer Science Course for High School Students
    Proceedings of the Sixth Symposium on Educational Advances in Artificial Intelligence (EAAI-16) Using Declarative Programming in an Introductory Computer Science Course for High School Students Maritza Reyes,1 Cynthia Perez,2 Rocky Upchurch,3 Timothy Yuen,4 and Yuanlin Zhang5 1Department of Psychology, University of Texas at Austin, USA 2Department of Psychology, Texas Tech University, USA 3New Deal High School, Lubbock, Texas, USA 4Department of Interdisciplinary Learning and Teaching, University of Texas at San Antonio, USA 5Department of Computer Science, Texas Tech University, USA 1maritza [email protected], [email protected], [email protected], [email protected], [email protected] Abstract proach (Gelfond and Kahl 2014). The course described in this paper was offered during the summer of 2015. The course Though not often taught at the K-12 level, declarative pro- gramming is a viable paradigm for teaching computer science met Monday through Friday from 1:00pm to 1:50pm, and due to its importance in artificial intelligence and in helping was taught in a computer lab. student explore and understand problem spaces. This paper This course was offered as part of the TexPREP program discusses the authors’ design and implementation of a declar- hosted at Texas Tech University. TexPREP is a math, science, ative programming course for high school students during a and engineering summer enrichment program for 6th - 12th 4-week summer session. graders. Each summer, students take courses in math, science, and engineering typically taught by local K-12 teachers and Background and Rationale university students, and occasionally by university faculty. Computer science education researchers have long debated Students taking this course were in their fourth year of the imperative versus object-oriented approaches to teaching in- TexPREP program, and had taken two CS courses (CS2 and troductory computer science courses, but the conversation CS3) prior to CS4.
    [Show full text]
  • Comparative Studies of 10 Programming Languages Within 10 Diverse Criteria Revision 1.0
    Comparative Studies of 10 Programming Languages within 10 Diverse Criteria Revision 1.0 Rana Naim∗ Mohammad Fahim Nizam† Concordia University Montreal, Concordia University Montreal, Quebec, Canada Quebec, Canada [email protected] [email protected] Sheetal Hanamasagar‡ Jalal Noureddine§ Concordia University Montreal, Concordia University Montreal, Quebec, Canada Quebec, Canada [email protected] [email protected] Marinela Miladinova¶ Concordia University Montreal, Quebec, Canada [email protected] Abstract This is a survey on the programming languages: C++, JavaScript, AspectJ, C#, Haskell, Java, PHP, Scala, Scheme, and BPEL. Our survey work involves a comparative study of these ten programming languages with respect to the following criteria: secure programming practices, web application development, web service composition, OOP-based abstractions, reflection, aspect orientation, functional programming, declarative programming, batch scripting, and UI prototyping. We study these languages in the context of the above mentioned criteria and the level of support they provide for each one of them. Keywords: programming languages, programming paradigms, language features, language design and implementation 1 Introduction Choosing the best language that would satisfy all requirements for the given problem domain can be a difficult task. Some languages are better suited for specific applications than others. In order to select the proper one for the specific problem domain, one has to know what features it provides to support the requirements. Different languages support different paradigms, provide different abstractions, and have different levels of expressive power. Some are better suited to express algorithms and others are targeting the non-technical users. The question is then what is the best tool for a particular problem.
    [Show full text]
  • Declarative Programming
    Maria Alpuente Roberto Barbuti Isidro Ramos (Eds.) Declarative Programming 1994 Joint Conference, GULP-PRODE'94 Peiiiscola, Spain, September 19-22, 1994 Proceedings Volume I GULP -PRODE'94 SPUPV-9 4.2046 UNIVERSIOAD POLITtCNICA DE VALENCIA Foreword 'l'ht· Gruppo Ricerca.tori ed utenti di Logic Programming (GULP, which stands l••t Lul(ic Programmjng Researcher and User Group), is an affiliate of the Association 11 1 l.oKk Programming (ALP). The goals of the group are to make logic programming u1m1l popular and to create opporturuties for the exchange of experiences and infor­ ttllltiOn between researchers and users working in the area for both public and private •ur,n niv.ntions. 'J'o this purpose GULP promotes many different activities such as the exchange of 111 f••r111al.ion among its members and the orgaruzation of workshops, advanced ;chools 1111rl il.r; aunual Conference. 'l'hi"s time the Conference is going to be held in Spain together with the Spanish ( :11 ufercnce PRODE on Declarative Programming. This represents a significative step l11warrls the exchange of research experience among European latin countries. Such a w•nl had already been pursued by GULP with the enlargement of its conferences to ~pu ni s h and French researchers. Tile main aims of this Conference are: 1) to serve as an occasion for those working i11 this area which are interested in meeting and exchanging experiences; 2) to illustrate I l11• current state of the art in the area through invited talks given by well known lt'HCarchers; 3) to enable students and researchers to learn more about logic and declarative programming by means of introductory tutorials.
    [Show full text]
  • User's Guide PDF.Pages
    CLIPS User’s Guide by Joseph C. Giarratano, Ph.D. Version 6.30 Table of Contents Readme ....................................................................................i Just the Facts ............................................................................1 Following the Rules ...............................................................20 Adding Details .......................................................................29 Variable Interests ...................................................................36 Doing It Up In Style .............................................................49 Being Functional ...................................................................59 How to Be in Control ............................................................70 Matters of Inheritance ..........................................................78 Meaningful Messages ............................................................96 Fascinating Facets ................................................................109 Handling Handlers ..............................................................116 Questions and Answers .......................................................145 Support Information ...........................................................154 Readme The first step on the road to wisdom is the admission of ignorance. The second step is realizing that you don’t have to blab it to the world. This section was formerly called the Preface, but since nobody read it, I renamed it to a more conventional title that computers
    [Show full text]