Automated Reasoning

Automated Reasoning

Automated Reasoning Maria Paola Bonacina Alberto Martelli Dipartimento di Informatica Dipartimento di Informatica Universita` degli Studi di Verona Universita` degli Studi di Torino A central problem in automated reasoning is to deter- automated model building. mine whether a conjecture ϕ, that represents a property to In classical first-order logic, deductive theorem proving be verified, is a logical consequence of a set S of assump- is semi-decidable, while inductive theorem proving and tions, which express properties of the object of study (e.g., model building are not even semi-decidable. It is signif- a system, a circuit, a program, a data type, a communica- icant that while books in theorem proving date from the tion protocol, a mathematical structure). early seventies [22, 48, 16, 27, 77, 44, 70], the first book A conjoint problem is that of knowledge representation, on model building appeared only recently [21]. Most ap- or finding suitable formalisms for S and ϕ to represent as- proaches to automated model building belong to one of the pects of the real world, such as action, space, time, men- following three classes, or combine their principles: tal events and commonsense reasoning. While classical logic has been the principal formalism in automated rea- 1. Enumeration methods generate interpretations and soning, and many proof techniques have been studied and test whether they are models of the given set of for- implemented, non-classical logics, such as modal, tempo- mulæ; ral, description or nonmonotonic logics, have been widely 2. Saturation methods extract models from the finite set investigated to represent knowledge. of formulæ generated by a failed refutation attempt; and 1 Automated reasoning in classical logic 3. Simultaneous methods search simultaneously for a Given the above central problem, one can try to answer af- refutation or a model of the given set of formulæ. firmatively, by finding a proof of ϕ from S. This problem In higher-order logics, that allow universal and existen- and the methods to approach it are called theorem prov- tial statements, not only on individuals, but also on func- ing. Theorem proving comprises both deductive theorem tions and predicates, even deductive theorem proving is no proving, which is concerned precisely with the entailment longer semi-decidable. Clearly, fully automated theorem problem as stated above (in symbols: S |= ϕ), and induc- proving focuses on deductive theorem proving, while in- tive theorem proving, where the problem is to determine duction, model generation and reasoning in higher-order whether S entails all ground instances of ϕ (in symbols: logics resort to a larger extent to interactive theorem prov- S |= ϕσ, for all ground substitutions σ). ing. Since the most important feature of higher-order logic In (fully) automated theorem proving, the machine alone for computer science are higher-order functions, that are is expected to find a proof. In interactive theorem proving, a staple of functional programming languages, an inter- a proof is born out of the interaction between human and mediate solution is to develop a first-order system, with machine. Since it is too difficult to find a proof ignoring a functional programming language, used simultaneously the conjecture, the vast majority of theorem-proving meth- as programming language and as logical language [20, 43]. ods work refutationally, that is, they prove that ϕ follows logically from S, by showing that S ∪ {¬ϕ} generates a 1.1 Fully automated theorem proving contradiction, or is inconsistent. Otherwise, given assumptions S and conjecture ϕ, one Semi-decidability means that no algorithm is guaranteed to can try to answer negatively, disproving ϕ, by finding a halt, and return a proof, whenever S∪{¬ϕ} is inconsistent, counter-example, or counter-model, that is, a model of or a model, whenever S ∪{¬ϕ} is consistent. The best one S ∪ {¬ϕ}. This branch of automated reasoning is called can have is a semi-decision procedure, that is guaranteed to halt and return a proof, if S ∪ {¬ϕ} is inconsistent. If 2. the form of admissible formulae for S or ϕ, or it halts without a proof, we can conclude that S ∪ {¬ϕ} 3. the theory presented by the assumptions in S. is consistent, and try to extract a model from its output. However, if S ∪ {¬ϕ} is consistent, the procedure is not An example of Case 1 is the guarded fragment of first- guaranteed to halt. order logic, which propositional modal logic can be re- Intuitively, proofs of inconsistency of a given problem duced to. The most prominent instance is propositional S ∪ {¬ϕ} are finite, if they exist, but there is an infinite logic, whose decidable satisfiability problem is known as search space of logical consequences where to look for a SAT. Many problems in computer science can be encoded contradiction. A machine can explore only a finite part in propositional logic, reduced to SAT and submitted to of this infinite space, and the challenge is to find a proof SAT solvers. As automated reasoning is concerned primar- using as little resources as possible. A fundamental insight ily with complete SAT solvers, the dominating paradigm was the recognition that the ability to detect and discard is the DPLL procedure [25, 24, 79], implemented, among redundant formulæ is as crucial as the ability to generate others, in [78, 52]. consequences of given formulæ. In addition to standard As an example of Case 2, the Bernays-Schonfinkel¨ class expansion inference rules of the form admits only sentences in the form A ...A ∃x , . x .∀y , . y .P [x , . x , y , . y ] 1 n (1) 1 n 1 m 1 n 1 m B ...B 1 m where P is quantifier-free. Decidable classes based on syn- which add inferred formulæ B1,...,Bm to the set of tactic restrictions are surveyed in [21]. known theorems, that already includes the premises Case 3 includes Presburger arithmetic or theories of data A1,...,An, contemporary inference systems feature con- structures, such as lists or arrays. For the latter, the typical traction rules, that delete or simplify already-inferred the- approach is to build a “little engine of proof” for each the- orems. The “double-ruled inference rule” form ory [66], by building the theory’s axioms into a congruence closure algorithm to handle ground equalities [67, 54, 9]. A1 ...An (2) Little engines are combined to handle combinations of the- B1 ...Bm ories [53, 68, 31]. However, also generic theorem-proving methods proved competitive on these problems [5]. means that the formulæ (Ai) above the rule are replaced by Decidable does not mean pratical, and the decidable rea- those below (Bj). It is a deletion rule if the consequences soning problems are typically NP-complete. Since auto- are a proper subset of the premises; otherwise, it is a sim- mated reasoning problems range from decidable, but NP- plification rule. complete, to semi-decidable, or not even semi-decidable, An expansion rule is sound if what is generated is automated reasoning relies pretty much universally on the logical consequence of the premises ({A1 ...An} |= artificial intelligence paradigm of search. {B1 ...Bm}). Classical examples are resolution and paramodulation. A contraction rule is sound if what is 1.3 Automated reasoning as a search problem removed is logical consequence of what is left or added ({B1 ...Bm} |= {A1 ...An}). Classical examples are Automated reasoning methods are strategies, composed subsumption and equational simplification from Knuth- of an inference system and a search plan. The inference Bendix completion. An inference system is sound if all its system is a non-deterministic set of inference rules, that rules are, and it is refutationally complete, if it allows us to defines a search space containing all possible inferences. derive a contradiction, whenever the initial set of formulæ Describing formally the search space of a reasoning prob- is inconsistent. The challenge is dealing with contraction lem is not obvious, and can be approached through differ- without endangering completeness [36, 7, 8, 18]: a key ent formalisms that capture different levels of abstraction ingredient is to order the data (terms, literals, clauses, for- [62, 19]. The search plan guides the search and determines mulæ, proofs) according to well-founded orderings. Infer- the unique derivation ence systems of this nature were applied successfully also S ` S ` ...S ` S ` ... to inductive theorem proving as in inductionless induction 0 1 i i+1 or proof by the lack of inconsistency [37, 40, 18]. that the strategy computes from a given input S0 = S ∪ {¬ϕ}. It is the addition of the search plan that turns a non- 1.2 Decision procedures and SAT solvers deterministic inference system into a deterministic proof procedure. Decidable instances of reasoning problems do exist. For The search plan decides, at each step, which inference these problems, the search space is finite and decision pro- rule to apply to which data. If it selects an expansion rule, cedures are known. Decidability may stem from imposing the set of formulæ is expanded: restrictions on S S ⊂ S0 1. the logic, S0 If it selects a contraction rule, the set of formulæ is con- existence of databases of computer-checked mathematics tracted: [51]. Theorem provers are capable of proving non-trivial S 0 0 mathematical theorems in theories such as Boolean alge- S 6⊆ S S ≺mul S S0 bras, rings, groups, quasigroups and many-valued logic where ≺mul is the multiset extension of a well-founded [3, 2, 41, 49, 75]. Last, the study of mechanical forms ordering on clauses. Strategies that employ well-founded of logical reasoning is part of the fundamental quest about orderings to restrict expansion and define contraction are what computing machines can do. called ordering-based.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us