Show cover of The Search Space

The Search Space

The Logic Programming podcast. About the history, future, and wider landscape of Logic Programming.

Tracks

Adam Smith talks about Answer Set Programming, and how he's used it in game design and other areas.Visit the show's web page: thesearch.spaceShow notes| Torsten Schaub at Potsdam UniversitySeveral of his presentations contain the formulaASP = DB + LP + KR + SMT^nASP: Answer Set ProgrammingDB: DatabaseLP: Logic ProgrammingKR: Knowledge RepresentationSMT: SAT Modulo TheoriesSAT solver: Boolean Satisfiability| this refraction game that I had made a puzzle generator forDescribed in Adam's dissertation.| the Potassco tools from University of Potsdam.potassco.org| A book called Procedural Content Generation in Gameswww.pcgbook.com| There's this idea due to Kate Compton ... of the 10 000 bowls of oatmeal problem http://www.galaxykate.com/blog/generator.html| We modeled a design space of information visualizations, line plots and scatter plots and bar charts"Formalizing Visualization Design Knowledge as Constraints: Actionable and Extensible Models in Draco"| a Python library called Clorm .. so that you can define your problem instances with Python objectsgithub.com/potassco/clorm| the concept of elaboration tolerance that when someone gives you some clarification about how your domain works, can you incorporate that change by just adding more code to add more choices or more constraints?John McCarthy's paper on elaboration tolerance| a paper from Google DeepMind ... describing a system called the Apperception Engine"Making sense of sensory input", Evans et al| taught a class called Applied ASP a few years ago Lecture slides, programming assignments, reading assignments here: canvas.ucsc.edu/courses/1338| Once you want to write a program that's more than 30 lines long, how do you profile it? How do you test it? How do you deploy it?Slides from a talk about Adam's test automation framework: Unit Test Automation for ASP with AnsunitTry ASP from your browser: https://potassco.org/clingo/run/ ★ Support this podcast ★

2/15/24 • 73:28

Visit the show's web page: thesearch.spaceShow notesI first became aware of Kevin through a series of blog posts that explain the similarities and differences between these different kinds of databasesGraph Fundamentals — Part 1: RDFGraph Fundamentals — Part 2: Labelled Property GraphsGraph Fundamentals — Part 3: Graph Schema LanguagesGraph Fundamentals Part 4: Linked DataThen I found out about TerminusDbhttps://terminusdb.com/"a bunch of Swedish hackers with a bunch of JSON blobs"https://neo4j.com/Full quote:[...] there have been many more incoherent standards and initiatives that have come out of the W3C’s standards bodies — almost all of which have  launched like lead balloons into a world that cares not a jot.  Nevertheless, it is important to recognise that, hidden in all the  nonsense, there are some exceptionally good ideas — triples, URL  identifiers and OWL itself are all tremendously good ideas in essence  and nothing else out there comes close. It is a sad testament to the  suffocating nature of design by standards committee which has consumed  countless hours of many thousands of smart and genuine researchers, that ultimately the entire community ended up getting it’s ass kicked by a  bunch of Swedish hackers with a bunch of json blobs — the Neo4j property graph guys have had a greater impact upon the real world than the whole academic edifice of semantic web research.The Semantic Web as a movement came out of Tim Berners-LeeOne of the seminal articles:https://web.archive.org/web/20171010210556/https://pdfs.semanticscholar.org/566c/1c6bd366b4c9e07fc37eb372771690d5ba31.pdfThe Semantic Web is not a separate Web but an extension of the current one, in which information is given well-defined meaning, better enabling computers and people to work in cooperation. ... Adding logic to the Web—the means to use rules to make inferences, choose courses of action and answer questions—is the task before the Semantic Web community at the moment.      — May 17, 2001, The Semantic Web - A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities, Tim Berners-Lee, James Hendler and Ora Lassila The standardization of RDF, the standardization of OWLthe big, big gap in a lot of the standards of the semantic web was some type of closed world reasoning regimeI was one of the developers of software that ran a thing called Indymedia back in the early two-thousands.most of the impetus for OWL came out of the description logic community...there's a number of very well-known and very accomplished description logic people [...] like Peter Patel-Schneider and [Ian] Horrocks in Oxford....they were using predicates to point out that two things, two data structures are the same thing. But the standard didn't ... mean for that to be used for things that just happened to be the same real world thing...Kevin discusses this misuse of owl:sameAs and owl:equivalentClass in the the fourth of his blog posts linked to above.I was talking to some of the guys in Semantic Arts, who are very busy and active consultants in the area.And then there is this thing called RDF stores...[RDF stores] are based around this concept of a triple - predicate subject objectJust like Google do actually on their front page now for their knowledge graphThe Google Knowledge Graph was introduced in 2012 with the great slogan "things, not strings"...the other thing that triples have ... is it makes revision controlled databases possible. From TerminusDB: A Technical History:...we adopted a delta encoding approach to updates as is used in source control systems such as git. This provides transaction processing and  updates using immutable database data structures, recovering standard  database management features while also providing the whole suite of  revision control features: branch, merge, squash, rollback, blame, and  time-travel...I've actually seen that very thing being described as a benefit of property graphs that each relation has its own ID and it can have [a] whole data structure associated with itSee for example neo4j's blog post RDF Triple Stores vs. Labeled Property Graphs: What’s the Difference?, in the section "Difference #1: RDF Does Not Uniquely Identify Instances of Relationships of the Same Type".You can do it in SQL these days, but it's sort of a later addition... the WITH syntax, Common Table Expressions they are called... you can actually do recursive queries. I once showed up at a neo4j meetup with some examples of doing graphy queries in PostgreSQL using Common Table Expressions. (The presentation would have been more impressive if I had but some indexes on those tables...) A way better introduction is the excellent page on The WITH Clause in the SQLite documentation.People beat up on normal-form modeling and SQL way more than they should.A good recent blog post on this topic: Normalization is not a process.Even when I'm modelling graph stuff, I start off with basically

3/20/22 • 87:07

Visit the show's web page: thesearch.spaceShow notesThe Power of Prolog, Markus' ongoing book project"It says, 'Find your way from darkness to light,' which is one of the quotes that occurs in The Knight of Cups, which is a recent movie by Terrence Malick.""I was introduced to Prolog by Ulrich Neumerkel at the Vienna University of Technology." "the convener of the Prolog ISO standard group.""He has developed his own teaching environment called GUPU, which means talk-assisted programming environment [Gesprächsunterstützende Programmierübungsumgebung]."Declarative program development in Prolog with GUPU (paper)"one fellow student came to me and asked for a solution to [what] you may now know as the SEND MORE MONEY task."SEND + MORE = MONEY"People have ... in different languages, explored multi-dispatch, multi-methods, and all kinds of stuff.""... the notion that an algorithm can be decomposed into a logic aspect and a control aspect. So this is written as 'algorithm is logic plus control.'""...let's look at the HTTP framework of SWI-Prolog""...the first use case that Prolog should solve was translating weather reports between French and English. It was the METEO system..." "For this purpose ... DCGs were invented. So this is a sub-formalism in Prolog that lets us describe lists in a very natural way.""...you have kind of a special syntax with the keyword is, and many of the normal, nice properties of Prolog start breaking down."(is)/2  is not actually a keyword or a special syntax. Markus describes the issues involved very well here:https://github.com/triska/clpz#an-impure-alternative-low-level-integer-arithmeticand here:https://www.metalevel.at/prolog/clpz "It is abbreviated as CSP: Constraint Satisfaction Problem.""You have variables, you have associated domains, which in plain Prolog are always Herbrand terms, named after Jaques Herbrand.""In the literature, this has even been mentioned as the Holy Grail of computer science. This property [or] at least the idea that users or application programmers specify a task and the system solves it."Eugene  C  Freuder.  “In  pursuit  of  the  holy  grail”.  In:Constraints 2.1 (1997), pp. 57–61. (not freely available)There is an ongoing series of workshops following up on the ideas in the original paper:https://freuder.wordpress.com/pthg-20-the-fourth-workshop-on-progress-towards-the-holy-grail/"For comparison, [...] the constraint solver for SICStus Prolog is hundreds of times faster than for example what I've implemented."> "rusty-wam, implemented in Rust"(hence renamed Scryer Prolog, with Markus being an active contributor)> "There is O-Prolog, which is implemented by Kenichi Sasagawa from Japan."> "..in the case of Tau Prolog, it's implemented in JavaScript and they can embed Prolog in a web browser"The Power of Prolog YouTube channel ★ Support this podcast ★

1/4/21 • 65:56

Visit the show's web page: thesearch.spaceShow notesChris Martens' academic websitehttps://www.csc.ncsu.edu/people/crmarten04:30"Programming Interactive Worlds with Linear Logic", Chris' Ph.D. thesis06:10James Meehan’s, Tale-Spin thesis"The Metanovel: Writing Stories by Computer"A great post about the story of Tale-Spin's creation:https://grandtextauto.soe.ucsc.edu/2006/09/13/the-story-of-meehans-tale-spin/18:40The Twelf Project"a language used to specify, implement, and prove properties of deductive systems such as programming languages and logics"The dependently typed logif LF20:50Linear logicJean-Yves GirardThe original paper(The first sentence begins: "Linear logic is a logic behind logic...")22:00"A form of logical implication pronounced A lolly B" ... I wish I had a screen to draw on"Looks like this:  A -o B  (a modified arrow from A to B)25:10The frame problem25:20Temporal logicEvent calculus26:50Pandemic board game"5% of my design royalty for Pandemic products is donated directly to Doctors Without Borders"https://www.leacock.com/about44:40Interactive fiction"software simulating environments in which players use text commands to control characters and influence the environment"https://www.ifarchive.org/47:30Behavior trees56:00R. Michael Young"His research focuses on the development of computational models of interactive narrative with applications to computer games, educational and training systems and virtual environments."57:30https://twitter.com/chrisamaphonegithub.com/chrisamaphone ★ Support this podcast ★

8/23/20 • 60:34

Show notes (full notes coming up, please check back soon)Ryan's talk about Clara at Strange Loop (2014)https://www.youtube.com/watch?v=Z6oVuYmRgkkhttps://github.com/quoll/nagahttps://github.com/ulfurinn/wongi-enginehttps://github.com/jruizgit/rules ★ Support this podcast ★

6/8/20 • 49:27

Show notes08:10John Alan Robinsonhttps://en.wikipedia.org/wiki/John_Alan_RobinsonComputational Logic: Memories of the Past and Challenges for the Futurehttp://www.computational-logic.org/iccl/downloads/Robinson-CL2000.pdfMaarten van Emden has great material about Robinson, including two interviews:https://vanemden.wordpress.com/2016/09/16/alan-robinson/https://vanemden.wordpress.com/2010/06/08/interview-with-alan-robinson-inventor-of-resolution-logic/http://aarinc.org/Newsletters/089-2010-10.html#robinson08:55The Early Years of Logic Programming (Kowalski)https://www.doc.ic.ac.uk/~rak/papers/the%20early%20years.pdf12:05The British Nationality Act as a Logic Programhttps://www.doc.ic.ac.uk/~rak/papers/British%20Nationality%20Act.pdf12:45Horn clause logichttps://en.wikipedia.org/wiki/Horn_clause14:32Dual process theoryhttps://en.wikipedia.org/wiki/Dual_process_theoryhttps://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow16:30Alternatives to logic representations of knowledgehttps://en.wikipedia.org/wiki/Semantic_networkhttps://en.wikipedia.org/wiki/And%E2%80%93or_treehttps://www.doc.ic.ac.uk/~rak/papers/History.pdf17:10Minsky’s frameshttps://en.wikipedia.org/wiki/Frame_(artificial_intelligence)17:30Non-monotonic logichttps://en.wikipedia.org/wiki/Non-monotonic_logic18:10First-order logichttps://en.wikipedia.org/wiki/First-order_logic20:45List concatenation (the append/3 predicate)http://www.learnprolognow.org/lpnpage.php?pagetype=html&pageid=lpn-htmlse2423:55Dataloghttps://en.wikipedia.org/wiki/DatalogAnswer Set Programminghttps://en.wikipedia.org/wiki/Answer_set_programming25:50Cordell Greenhttps://en.wikipedia.org/wiki/Cordell_Green26:50"it was Cordell who was interested in knowledge representation"STANFORD ARTIFICIAL INTELLIGENCE PROJECT, MEMO Al-96The Application of Theorem Proving to Question-Answering Systemshttps://www.kestrel.edu/home/people/green/publications/green-thesis.pdfTheorem-Proving by Resolution as a Basis for Question-Answering Systemshttps://www.kestrel.edu/home/people/green/publications/theorem-proving.pdf29:50Planner, Hewitt, Winogradhttps://en.wikipedia.org/wiki/Planner_(programming_language)https://en.wikipedia.org/wiki/Terry_Winograd35:00Monadshttps://en.wikipedia.org/wiki/Monad_(functional_programming)40:10Alain Colmerauerhttps://en.wikipedia.org/wiki/Alain_ColmerauerUn Systeme de Communication Homme-Machine en Francaishttp://alain.colmerauer.free.fr/alcol/ArchivesPublications/HommeMachineFr/HoMa.pdf42:00Pat Hayeshttps://en.wikipedia.org/wiki/Pat_Hayeshttps://www.ihmc.us/groups/phayes/43:15The Birth of Prolog (Alain Colmerauer and Philippe Roussel)http://alain.colmerauer.free.fr/alcol/ArchivesPublications/PrologHistory/19november92.pdf46:00Computational Logic and Human Thinking: How to be Artificially Intelligenthttps://www.doc.ic.ac.uk/~rak/papers/newbook.pdf49:00The Pyramid Principle: Logic in Writing and Thinking (Barbara Minto)https://www.goodreads.com/book/show/1990595.The_Pyramid_Principle51:00Unificationhttps://en.wikipedia.org/wiki/Unification_(computer_science)52:20Backtrackinghttps://en.wikipedia.org/wiki/Backtracking56:10Production ruleshttps://en.wikipedia.org/wiki/Production_system_(computer_science)57:10Expert systemshttps://en.wikipedia.org/wiki/Expert_systems01:08:30The Fifth Generation Computer Systems projecthttps://en.wikipedia.org/wiki/Fifth_generation_computer1:09:50MapReducehttps://en.wikipedia.org/wiki/MapReduce1:17:00Event calculushttps://en.wikipedia.org/wiki/Event_calculus1:18:20Logic Production Systemshttp://lps.doc.ic.ac.uk/1:19:40Logical Contracts (company)http://logicalcontracts.com/1:29:45Minsky's attack on the perceptronhttps://en.wikipedia.org/wiki/Perceptron ★ Support this podcast ★

4/24/20 • 95:53

Logic Programming, you say? That might sound like either an oxymoron or a tautology to you, depending on who you are. If you have heard about Logic Programming before, you are probably thinking about Prolog - a programming language that is almost 50 years old, and which many find fascinating but also frustratingly limited.What is logic? Many people consider it synonymous with dry intellect, humorless bureaucracy, the opposite of creativity. But in my understanding, logic is an attempt to capture the essence of thought, which is to say the essence of what we humans find reasonable, persuasive, and possible. The study of logic goes straight to some of our fundamental intuitions about the world and ourselves, and it's really not clear at all what they are rooted in. People have lots of different opinions about this. Logic looks very clear-cut on the surface, but when you dig you bump into some of the deepest perennial questions in philosophy. And this doesn't change when we arrive at modern, formalized logic, which sort of looks like mathematics - you are still dealing with deep questions about human psychology and cognition, and how we perceive the physical world.Now, it turns out formal logic can be used as a programming language. If you are careful about which parts of logic you use, and in which form you write things down, formal logic fits very well with how programming languages are executed. So you can write down some logical formulas, and you get two interpretations: the logical interpretation, and the procedural interpretation which is how you run it on a computer. And these two are, let's say, in sync - you get the deductions you would expect from both interpretations.As a programming paradigm, this has some really unusual and fun features, and since logic in the first place is, again, an attempt to capture the essence of human though, Logic Programming is in many respects very intuitive. To me, it's the closest to what I imagined programming would be like when I was 10 and had just started to understand that there was a way to tell computers what to do. ★ Support this podcast ★

3/4/20 • 05:53