Theory and Practice of Coherent Logic (extended overview) Marc Bezem University of Bergen.

Slides:



Advertisements
Similar presentations
First-Order Logic.
Advertisements

SLD-resolution Introduction Most general unifiers SLD-resolution
1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Automated Reasoning Systems For first order Predicate Logic.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
Logic Use mathematical deduction to derive new knowledge.
Logic Concepts Lecture Module 11.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
Copyright © Zeph Grunschlag,
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Chapter 3 Propositional Logic
Chapter 2 Reasoning and Proofs. Chapter 2 Glossary Terms Conjecture Inductive Reasoning Counter Examples Statement Truth Value Negation Compound Statement.
0 1 Todays Topics Resolution – top down and bottom up j-DREW BU procedure Subsumption – change to procedure Infinite Loops RuleML input – Prolog output.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
Fall 98 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases and inferences Logic as a representation.
Logical Agents Logic Propositional Logic Summary
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
Logic Logic can be traced back to Aristotle, and more recently to Frege who introduced predicate logic as a language for representing and reasoning about.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Bertram Ludäscher Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
Automated Reasoning Systems For first order Predicate Logic.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
DEDUCTION PRINCIPLES AND STRATEGIES FOR SEMANTIC WEB Chain resolution and its fuzzyfication Dr. Hashim Habiballa University of Ostrava.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Process Algebra (2IF45) Basic Process Algebra (Completeness proof) Dr. Suzana Andova.
Propositional SAT The search for a model of a given proposition.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
An Introduction to Classical Logic (propositional and Predicate Logic)
Copyright 1999Paul F. Reynolds, Jr. Foundations of Logic Programming.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Chapter 7. Propositional and Predicate Logic
Review of Probability.
Knowledge Representation and Reasoning
Thinking Mathematically
Completeness of the SLD-Resolution
Lecture 2 Propositional Logic
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
NP-Completeness Proofs
CSE 311 Foundations of Computing I
CS 416 Artificial Intelligence
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Search techniques.
Lecture Notes for SWE 623 by Duminda Wijesekera
Presentation transcript:

Theory and Practice of Coherent Logic (extended overview) Marc Bezem University of Bergen

CL as a fragment of FOL Coherent formula: C => D, where C = A 1 /\ …/\ An (n≥0, Ai atoms) and D = E 1 \/ …\/ Em (m≥0), where each Ej = (∑ x 1 …x k ) Cj (k≥0 may vary with j, each Cj a conjunction of atoms) No function symbols (yet), only constants Coherent theory = set of coherent formulas

Examples Lattices (meet is associative, Horn clause, ternary relation): x∩y=u /\ u∩z=v /\ y∩z=w => x∩w=u Projective unicity (resolution clause): p|l /\ p|m /\ q|l /\ q|m => p=q \/ l=m Diamond property (coherent clause): a →b /\ a→c => (∑ d) (b→d /\ c→d) In general: A 1 /\... /\ An => ((∑ x) A 11 /\.../\ A 1i ) \/... \/ ((∑ y) A k1 /\... /\ A kj )

Rationale Horn clauses: DCG and Prolog Resolution: ATP coherent logic: ATP and ? –Why skolemize, e.g., p(x,y) => (∑z) p(x,z) ? –Direct proofs –Constructive logic –Natural proof theory/objects

Inductive definition of X├ (T) D (base) X |- D if X |= D (step) X,C 1 |- D, …, X,Cn |- D (℅) X |- D X a finite set of facts (= closed atoms) D closed coherent disjunction (parameters in D must occur in X) X |= D iff D =... \/ (∑ x) C \/ … and X contains all facts in C[x:=a], for some disjunct in D and for suitable parameters a (℅) there exists a closed instance C 0 =>D 0 of an axiom in T with C 0 included in X (X contains all facts in C 0 ) and D 0 = …\/ (∑ x) Ci \/…, each Ci a fresh instance of Ci ( 1 ≤i≤n)

Examples of derivations T={true=>p, p=>q}, Ø |- q T={p\/q, p=>r, q=>r}, Ø |- r T={p, p=>q, q=>false}, Ø |- r T={(∑ x)p(x), p(x)=>q}, Ø |- q T={s(a,b), s(x,y)=>(∑ z) s(y,z)}, Ø |- (∑ x y)(s(a,x)/\s(x,y)) Forward ground reasoning!

Metaproperties Soundness Completeness wrt Tarskian semantics Constructivity Reduction of FOL to CL Semidecidability (even without functions!) CL with = is Finite Model Complete Automation (SATCHMO!)

Samples of ATP Various *.in (input) files enclosed To be processed with CL.pl Yielding files: *.out (output) *.prf (intermediate proof format) *.v (Coq proof object)

Semantics and completeness coherent logic: no proof by contradiction (= EM, TND, A \/ ~A, ~ ~A => A) Digression: constructivism in mathematics – p \/ q stronger than ~(~p /\ ~q) –(∑ x) p(x) stronger than ~(A x) ~p(x) –more strict on ontology of objects –EM only in specific cases, f.e., for integers (A x)(x=0 \/ x≠0), but not for reals

Example of non-constructivism (digression) Do there exist irrational real numbers x and y such that x y is rational ? Greek constructivists: √2 is irrational Non-constructivist: take x = y = √2. If x y is rational, then I’m done. If x y is not rational, then I’m also done: (x y ) y = x y∙y = x 2 = 2 is rational. Next problem, please. Constructivist: what do you mean?

Tarskian semantics Truth values from a complete Boolean algebra, without loss of generality ({0,1}, max, min, not(x) =1-x), [|p\/q|]= max([|p|] [|q|]) etc. Thus p\/q is true iff p is true or q is true (Girard: ``what a discovery!´´) Sound but not complete for constructive logic, not sound for some forms of constructive mathematics Constructive logic is more expressive (\/, ∑) and requires a more refined semantics …

Semantics for constructivism (digr.) Algebraic: complete Heyting algebras (plural!) Topological: open sets as truth values Kripke semantics: tree-structured Tarski models (graph-stuctured for modal logic), creative subject Curry-Howard interpretation: [|φ|] is the set of proofs of φ Kleene, Beth, Joyal, … Different aspects, counter models, metatheory, …

Semantics for CL Tarskian (non-constructive completeness) Beth-Joyal-Coquand (fully constructive, extra information, but highly non-trivial) Curry-Howard (for proof objects) Other semantics unexplored …

Completeness wrt Tarskian models Given D true in all models of T, how do you find a proof ? Try them all ! Breadth-first derivability on the blackboard Herbrand models along the branches König’s Lemma to get the tree finite Finite tree => breadth-first proof => |- proof Details in paper

Further reading M.A. Bezem and T. Coquand, Automating Coherent Logic. In: G. Sutcliffe and A. Voronkov, editors, Proceedings LPAR-12, LNCS 3835, pages , H. De Nivelle and J. Meng, Geometric Resolution: A Proof Procedure based on Finite Model Search. To appear in: Proceedings IJCAR (CL with =, refutation complete and finite model complete)