SlideShare ist ein Scribd-Unternehmen logo
1 von 42
Downloaden Sie, um offline zu lesen
1
Michael Genesereth and Eric Kao
Computer Science Department
Stanford University
The Herbrand Manifesto
Thinking Inside the Box
The traditional semantics for Relational Logic (sometimes called Tarskian semantics) is based on the notion of interpretations of constants in terms of objects
external to the Logic. Herbrand semantics is an alternative semantics that is based on truth assignments for ground sentences without reference to external
objects. Herbrand semantics is simpler and more intuitive than Tarskian semantics; and, consequently, it is easier to teach and learn. Moreover, it is stronger
than Tarskian semantics. For example, while it is not possible to finitely axiomatize integer arithmetic with Tarskian semantics, this can be done easily with
Herbrand Semantics. The downside is a loss of some common logical properties, such as compactness and inferential completeness. However, there is no loss of
inferential power - anything that can be deduced according to Tarskian semantics can also be deduced according to Herbrand semantics. Based on these results,
we argue that there is value in using Herbrand semantics for Relational Logic in place of Tarskian semantics. It alleviates many of the current problems with
Relational Logic and ultimately may foster a wider use of Relational Logic in human reasoning and computer applications.
Language of Logic
q(b,c)p(a,b)
∀x.∀y.(p(x,y) ⇒ q(x,y))
∃x.p(x,d)
¬p(b,d)
p(c,b) ∨ p(c,d)
One of the main strengths of Logic is that it provides us with a well-defined language for expressing complex information about objects and their relationships. We can write
negations, disjunctions, implications, quantified sentences, and so forth.
Premises
∀x.∀y.(p(x,y) ⇒ r(x,y))
∀x.∀y.(q(x,y) ⇒ r(x,y))
∀x.∃y.(p(x,y) ∨ q(x,y))
Conclusion:
∀x.∃y.r(x,y)
Non-Conclusion:
∃y.∀x.r(x,y)
Logical Entailment
Logic also provides us with precise rules for deriving conclusions from sentences expressed within this language and a way of knowing which sentences are *not* conclusions.
A model is a mathematical structure that (directly or
indirectly) assigns truth values to sentences in our language.
A set of premises logically entails a conclusion iff every
model that satisfies the premises satisfies the conclusion.
Semantics
What makes it all work is that the language of Relational Logic has a clearly defined semantics, which gives meaning to logical connectives and quantifiers. This allows us to know
that we are using those connectives and quantifiers correctly; and it allows to be sure that, in our reasoning, we are deriving conclusions that follow from our premises and
avoiding those that do not.
The basis for almost all treatments of logical semantics is the notion of a model. A model is a mathematical structure that tells us which sentences are true and which are false.
And this is the basis for logical entailment. We say that a set of premises logically entails a conclusion if and only if every model that satisfies the premises also satisfies the
conclusion. In other words, the conclusion must be true in every model in which the premises are true.
The main question we are addressing today is the nature of these models. In particular, I plan to talk about two alternative types of models - one that is taught in the vast majority
of logic courses and one that is used in the majority of work on database and rule systems. They are not the same.
A vocabulary is a set of symbols.
{a, b, f, q}
A universe of discourse is an arbitrary set of objects.
{1, 2, 3, 4, …}
An interpretation is an assignment to symbols in language.
a=1, b=2
f={1→2, 2→3, …}
q={〈1,2〉,〈2,3〉,〈2,4〉, …}
Tarskian Semantics
Tarskian semantics is the traditional semantics for Relational Logic. In Tarskian semantics, a model consists of an arbitrary set of objects (called the universe of discourse) and an
interpretation function (1) that maps object constants into elements of this set, (2) that maps function constants into functions on this set, and (3) that maps relation constants into
relations on this set. A model of this sort completely determines the truth or falsity of all sentences in the language.
A vocabulary is a set of symbols.
{a, b, p, q}
The Herbrand base is the set of all ground atoms.
{p(a), p(b), q(a,a), q(a,b), q(b,a), q(b,b)}
A Herbrand model is any subset of the Herbrand base.
{p(a), q(a,b), q(b,a)}
Herbrand Semantics
Herbrand semantics is an alternative. We start out with the notion of a Herbrand base, simply the set of ground atoms in our language. A model is a simply a subset of the
Herbrand base, viz. the elements that are assigned the value true. Or, equivalently, it is a truth assignment for the the elements of the Herbrand base. Given the meaning of
logical connectives and quantifiers, a Herbrand model completely determines the truth or falsity of all sentences in the language, not just the ground atoms.
Tarskian Semantics - all conceivable universes
{1, 2, 3, 4, …}
{〈1, 2〉, 〈3, 4〉, …}
{{〈1, 2〉, 〈3, 4〉}, {〈5, 6〉, 〈7, 8〉}…}
{♠, ♣, ♥, ♦}
Herbrand Semantics - symbols only
{p(a), q(a,b), q(b,a)}
Thinking Inside the Box
In much of the literature, Herbrand semantics is treated (somewhat understandably) as a special case of Tarskian semantics - the case where we look at so-called Herbrand
interpretations. Although the two are similar in many ways, they are not the same.
First of all, in Tarskian semantics, there are unboundedly many interpretations for any language, and entailment is defined over all conceivable universes - finite, countably infinite,
uncountable, and beyond. In Herbrand, Logic is defined independently of the mapping between terms and real world objects. There is no external universe, only symbols and
sentences in the language. In a sense, it is *thinking inside the box*.
In Herbrand semantics, we effectively separate the semantics of the logic from the mapping between the symbols and the real world and thereby simplify the semantics.
Benefits of Tarski over Herbrand:
Compact
Complete proof procedure
Semi-decidable
Benefits of Herbrand over Tarski:
Simpler and more intuitive
Equivalent or greater inferential power
More things definable
Partial unifier of traditional logic and logic programs
Comparison
There are benefits and disadvantages to doing things this way. On the one hand, with Herbrand semantics, we no longer have many of the nice features of Tarskian semantics -
compactness, inferential completeness, and semidecidability. On the other hand, there are some real benefits to Herbrand semantics. Most importantly, Herbrand semantics is
conceptually a lot simpler than Tarskian semantics; as a result, it is easier to teach and learn. It has equivalent or greater inferential power. And more things are definable with
Herbrand semantics than with Tarskian semantics. Interestingly, in a way, Herbrand semantics is a partial unifier of traditional logic and logic programs.
In order to understand the trade-off between these two approaches to semantics, Eric Kao and I decided to study Herbrand semantics in its own right instead of as a special case
of Tarskian semantics. Along the way, we confirmed some more or less obvious points but we also realized a few interesting properties that we had not initially expected. My
goal today is to go over some of these results with you, as a way of explaining my newfound enthusiasm for Herbrand semantics and my view that it ought to supplant Tarskian
semantics in some CS research and most logic education.
French:
er-brahn
English / American:
her-brand
Pronunciation
Before I get into all of that, a word on pronunciation. Herbrand semantics is named after the logician Jacques Herbrand, who developed some of its key concepts. As Herbrand is
French, it should properly be pronounced "air-brahn". However, most people resort to the usual Anglicization of this, instead pronouncing it “her-brand".
French:
er-brahn
English / American:
her-brand
Stanley Peters:
Mike’s hare-brained logic
Pronunciation
One exception is my colleague Stanley Peters, who frequently to this work as “Mike’s hare-brained logic".
Nuts and Bolts
Let’s start with the basics - the definition of Herbrand semantics and some of the differences between Herbrand and Tarskian semantics.
The Herbrand base is the set of all ground atoms.
{p(a), p(b), q(a,a), q(a,b), q(b,a), q(b,b)}
A Herbrand model is an arbitrary subset.
{p(a), q(a,b), q(b,a)}
Equivalently, a truth assignment for the ground atoms.
p(a)=1 q(a,a)=0 q(b,a)=1
p(b)=0 q(a,b)=1 q(b,b)=0
Herbrand Semantics
Recall that we start out with the notion of a Herbrand base, simply the set of ground atoms in our language. We define a model as an arbitrary subset of this set. Equivalently, it is
a truth assignment for the ground atomic sentences in the language.
Ground Atomic Sentences:
ϕ = 1 iff ϕ ∈ Δ
Ground Logical Sentences:
(¬ϕ) = 1 iff ϕ = 0
(ϕ ∧ ψ) = 1 iff ϕ = 1 and ψ = 1
(ϕ ∨ ψ) = 1 iff ϕ = 1 or ψ = 1
(ϕ ⇒ ψ) = 1 iff ϕ = 0 or ψ = 1
(ϕ ⇔ ψ) = 1 iff ϕ = ψ
Quantified Sentences:
(∀x.ϕ(x)) = 1 iff ϕ(τ) = 1 for every instance τ
(∃x.ϕ(x)) = 1 iff ϕ(τ) = 1 for some instance τ
Truth of Complex Sentences
Given this notion, the definition of satisfaction is straightforward. A ground atom is true iff it is in the dataset. The truth values of logical sentences are defined the same as with
Tarskian semantics. A negation is true iff the negated sentence is false. A conjunction is true iff the conjuncts are both true. And so forth. Finally, a universally quantified
sentence is true if and only all of its instances are true.
A set of premises logically entails a conclusion iff every
model that satisfies the premises satisfies the conclusion.
{ x.(p(x) ⇒ q(x)), p(a)} ⊨ q(a)
Herbrand Entailment
Finally, we say that a set of premises logically entails a conclusion if and only if every model that satisfies the premises also satisfies the conclusion. In other words, the
conclusion must be true whenever the premises are true. That’s the entire semantics.
This is simpler than Tarskian semantics. But it is not entirely equivalent.
If Δ ⊨ p(𝜏) for every ground term 𝜏, does Δ ⊨ ∀x.p(x)?
Suppose Δ ⊨ {p(a), p(f(a)), p(f(f(a))), p(f(f(f(a)))), ...}.
Is it the case that Δ ⊨ x.p(x)?
Stanford CS Comprehensive Exam Question
Let’s look at an example. For many years, I was the author of a portion of Stanford's doctoral comprehensive exam. One of my favorite questions concerned logical entailment.
Suppose we are given a set Delta of sentences in the language of first-order logic such that Delta logically entails phi(tau) for every ground term in the language. Is it the case that
Delta logically entails AX:phi(X)?
If Δ ⊨ p(𝜏) for every ground term 𝜏, does Δ ⊨ ∀x.p(x)?
Suppose Δ ⊨ {p(a), p(f(a)), p(f(f(a))), p(f(f(f(a)))), ...}.
Is it the case that Δ ⊨ x.p(x)?
Most Common Answer: yes
Correct Answer with Tarskian Semantics: no
Correct Answer with Herbrand Semantics: yes
Stanford CS Comprehensive Exam Question
The question is not difficult if one knows the semantics of FOL, but apparently not everyone knows this. The most common answer to this question is 'yes' - people seem to think
that, if Delta logically entails every ground instance of phi, it must entail the universally quantified version. Of course, that answer is wrong. There can be some unnamed element
of the universe of discourse for which the sentence is false.
However, the popularity of the incorrect answer suggests that perhaps our semantics does not capture our intuitions about logic. Maybe it should. The good news is that, with
Herbrand semantics, the answer to this question is 'yes' as most people think it should be. Moreover, Herbrand semantics solves not just this problem but a variety of other
problems as well.
A logic is compact if and only if every unsatisfiable set of
sentences has a finite subset that is unsatisfiable.
Theorem: Logic with Tarskian semantics is compact.
Theorem: Logic with Herbrand semantics is not compact.
{p(0), p(s(0)), p(s(s(0))), … , ∃x.¬p(x)}
Compactness
Another difference concerns compactness. A logic is compact if and only if every unsatisfiable set of sentences has a finite subset that is unsatisfiable.
Relational Logic with Tarskian semantics turns out to be compact. The upshot is that it is possible to demonstrate unsatisfiability in finite space; alternatively, all proofs are finite.
By contrast, Herbrand Logic is not compact - there are infinite sets of sentences that are unsatisfiable while every finite subset is satisfiable. Consider the set of sentences shown
here. It is clearly unsatisfiable under Herbrand semantics; but, if we remove any one sentence, it becomes satisfiable.
The upshot of this is that there are infinite sets of sentences where we cannot demonstrate unsatisfiability with a finite argument within the language itself. Fortunately, this does
not cause any practical difficulties, since in all cases of practical interest we are working with finite sets of premises.
A proof procedure is sound if and only if everything that is
provable is true.
Δ ⊢ ϕ → Δ ⊨ ϕ
A proof procedure is complete if and only if everything that is
true is provable.
Δ ⊨ ϕ → Δ ⊢ ϕ
Soundness and Completeness
More disturbing is that there are differences in soundness and completeness. A proof procedure is sound if and only if everything that is provable is true. A proof procedure is
complete if and only if everything that is rue is provable.
Theorem: There is a proof procedure for logic with Tarskian
semantics that is both sound and complete.
Therefore, provability and logical entailment for Tarskian
semantics are semi-decidable.
Theorem: There is no complete proof procedure for
Herbrand Semantics.
Moreover, provability and logical entailment for Herbrand
semantics is not semi-decidable.
Completeness
FOL Logic with Tarskiamn semanics is know to have complete proof procedure. Not so with Herbrand semantics. Unfortunately, there is no complete proof procedure for Logic
with Herbrand semantics. Moreover, provability and logical entailment for Herbrand semantics are not semi-decidable.
Theorem: Any sound proof procedure for Tarskian
semantics is sound for Herbrand semantics.
The logic is not weaker. In fact, it is stronger. There are
more things that are true. We cannot prove them all, but
we can prove everything we could prove before.
By building in induction, we can prove more things.
Anything they can do we can do better.
Results with Herbrand Semantics
However, this is not as bad as it seems. It turns out that everything that is true under Tarskian semantics is also true under Herbrand semantics, so we can use the same rules of
inference. The upshot here is that we lost nothing by switching to Herbrand semantics. In fact, we can add some additional rules of inference. It is not that Herbrand logic is
weaker. In fact, it is stronger. There are more things that are true. We cannot prove them all, but we can prove everything we could prove before.
Some may be disturbed by the fact that Herbrand entailment is not semi-decidable. But a similar argument could be leveled against Tarskian semantics. Semi-decidability is not
that great either, as a prof procedure might still run forever if the proposed conclusion does not follow from the premises.
Not in Kansas Anymore
So much for standard logical properties. It turns out that, when we look at the use of logic on some practical problems things get more interesting.
The power of Herbrand semantics is due to the implicit
domain closure - there are no objects in the universe
except for ground terms.
This allows complete definitions for things that cannot be
completely defined with Tarskian Semantics.
Interesting Uses
The power of Herbrand semantics is, in large part, due to the implicit property of domain closure - there are no objects in the universe except for ground terms.
This allows us to give complete definitions to things that cannot be completely defined with Tarskian Semantics. We have already seen Peano arithmetic. It turns
out that, under Herbrand semantics, we can also define some other useful concepts that are not definable with Tarskian semantics, and we can do so without
resort to more complex logical mechanisms, such as negation as failure.
Standard “definition”:
∀x.∀z.(q(x,z) ⇔ p(x,z) ∨ ∃y.(q(x,y) ∧ q(y,z)))
Base relation p Desired closure q
Unfortunately, the desired closure is not the only possibility.
Transitive Closure
cal cam coe cory
bob bud
art
cal cam coe cory
bob bud
art
Let's look at transitive closure first. Let's say that we have a binary relation p and we want to axiomatize the transitive closure q.
The typical approach in Relational Logic would be to write the definition shown here.
It is easy to see that q contains the transitive closure of p. The problem is that, in general, it can contain additional elements as well, corresponding to various
non-standard models. For example, the universe of discourse might contain an object that does not have any p relationships at all. However, if we link all
objects to it via q, this satisfies our definition. The upshot is that we have a model of our sentence that is a proper superset of the transitive closure of p. Not
good.
Standard “definition”:
∀x.∀z.(q(x,z) ⇔ p(x,z) ∨ ∃y.(q(x,y) ∧ q(y,z)))
Base relation p Non-standard closure q
There is no finite set of sentences that defines transitive
closure of infinite relations under Tarskian semantics.
Non-Standard Model
cal cam coe cory
bob bud
art
cal cam coe cory
bob bud
art
The problem is that, in general, it can contain additional elements as well, corresponding to various non-standard models. For example, the universe of
discourse might contain an object that does not have any p relationships at all. However, if we link all objects to it via q, this satisfies our definition. The upshot
is that we have a model of our sentence that is a proper superset of the transitive closure of p. Not good.
Problem exists for Herbrand semantics as well. What is needed is some for of minimization. This can be accomplished by writing sentences that achieve this
effect with Herbrand semantics but not with Tarskian semantics.
Definition of helper relation qq:
∀x.∀z.(qq(x,z,0) ⇔ p(x,z))
∀x.∀z.(qq(x,z,s(n)) ⇔ qq(x,z,n) ∨ ∃y.(qq(x,y,n) ∧ qq(y,z,n)))
Think of the third argument as representing the number of
applications of the transitivity rule to p.
p(a,b) qq(a,b,0) qq(a,b,s(0)) qq(a,b,s(s(0)))
p(b,c) qq(b,c,0) qq(b,c,s(0)) qq(b,c,s(s(0)))
p(c,d) qq(c,d,0) qq(c,d,s(0)) qq(c,d,s(s(0)))
qq(a,c,s(0)) qq(a,c,s(s(0)))
qq(b,d,s(0)) qq(b,d,s(s(0)))
qq(a,d,s(s(0)))
Transitive Closure in Herbrand
By contrast, we *can* define the transitive closure of a relation in a Logic with Herbrand semantics. It is not as simple or intuitive as this simple definition, but it
is theoretically possible. The trick is to exploit the enumerability of the Herbrand universe. Suppose we have the object constant 0, an arbitrary unary relation
constant s; and suppose our job is to define q as the transitive closure of p.
We start by defining a helper relation qq as shown below. The basic idea here is that qq(X,Z,N) is the transitive closure in which no intermediate variable is bigger
than N.
Definition of helper relation qq:
∀x.∀z.(qq(x,z,0) ⇔ p(x,z))
∀x.∀z.(qq(x,z,s(n)) ⇔ qq(x,z,n) ∨ ∃y.(qq(x,y,n) ∧ qq(y,z,n)))
Definition of q in terms of qq:
∀x.∀z.(q(x,z) ⇔ ∃n.qq(x,z,n))
Theorem: If a model satisfies these axioms under Herbrand
semantics, then q is the transitive closure of p.
Transitive Closure in Herbrand
Once we have qq, we can easily define q in terms of qq. q is true of two elements if and only if there is a level at which qq becomes true of those elements.
It is easy to see that q is exactly the transitive closure of p. The only disadvantage of this axiomatization is that we need the helper relation qq. But that causes
no significant problems.
Curiouser and Curiouser
But wait. There's more! We can also get this effect by using a logic programming language that includes some form of negation as failure semantics.
As we know, it is possible to encode some relation in logic programs that cannot be encoded in Relational Logic with Tarskian semantics. Rule systems get this
power from the use of negation as failure to minimize defined relations.
Logic programs are collections of rules.
t(0) :-
t(Y) :- t(X) & r(X,Y)
A rule is safe if and only if every variable in the head occurs
in a positive subgoal.
A set of rules is stratified if and only if no relation is defined
(directly or indirectly) in terms of its own negation.
Safe, stratified logic programs have unique minimal models.
Logic Programs
The cool thing is that, even without any form of negation as failure, it is possible to encode those relations in FOL with Herbrand semantics. Moreover, various minimization
policies can result from different axiomatizations. We can extend the transitive closure technique to logic programs, showing that the effect of model minimization can be obtained
without extensions to the logic.
Original Program:
t(0) :-
t(Y) :- t(X) & r(X,Y)
Normalized Program:
t(Y) :- Y=0
t(Y) :- t(X) & r(X,Y)
Transformed Program:
∀y.(tt(y,0) ⇔ y = 0)
∀y.∀n.(tt(y,s(n)) ⇔ tt(y,n) ∨ ∃x.(tt(x,n) ∧ r(x,y)))
Projection:
∀y.(t(y) ⇔ ∃n.tt(y,n))
Transformation
Consider the logic program we just saw. The first step of our conversion is to normalize the program so that the head of every rule consists of variables. This is easy to do using
equality (defined as we did earlier in Peano Arithmetic).
Next we transform the normalized program as follows. The two sentences here are the result of transforming the original axioms to define the helper relation ss. For each rule
defining an n-ary relation in the normalized program, we define the corresponding n+1-ary helper relation as shown here. ss is true of y and 0 iff y=0. ss is true of y and s(n) iff (1)
is true on step n *or* (2) if there is an x such that the definition holds of elements on step n.
Finally, we define s in terms of ss, as we did in the transitive closure example.
Theorem: Let P be an arbitrary safe, stratified program over
R. Let M be the unique minimal model of P under stratified
semantics. Then, this transformation has a unique model M’
under Herbrand semantics such that M’ = M over R.
Logic Programs
Now the interesting thing is that it turns out that we can do this transformation in general (for arbitrary logic programs so long as they are safe and stratified). And the result is quite
good. Let P be an arbitrary safe, stratified program over R. Let M be the unique minimal model of P under stratified semantics. Then, this transformation has a unique model M’
under Herbrand semantics such that M’ = M over R. Voila - minimization without negation as failure.
Upshot:
:- can be thought of as syntactic sugar
no theoretical need for negation as failure semantics
Disadvantage:
:- can be used to encode definitions more naturally
computation with :- more efficient
Why not have the best of both worlds?
Hybrid logic:
Complete definitions expressed as rules
Incomplete information expressed in relational logic
Advantages and Disadvantages
One consequence of this result is that we can treat :- as syntactic sugar for definitions requiring minimization. There is no need for a different logic. Which does
note mean that :- is unimportant. In fact, the oddity of those definitions makes clear the value of :- in expressing definitions intuitively.
I think there is also another, more subtle benefit of this theorem. One possible practical consequence of this work concerns the relationship between rule
systems and ordinary logic. Rules and ordinary logic are often are often seen as alternatives. Herbrand semantics has the potential to bring these two branches
of Logic closer together in a fruitful way. This upshot would be a possible re-prioritization of research in these two areas.
To me, the power and beauty of rule systems is their suitability for writing complete definitions. We start with some completely specified base relations and
define other relations in terms of these base relations, working our way up the definitional hierarchy. At every point in time we have a complete model of the
world.
Unfortunately, complete theories are not always possible; and in such situations we need to provide for expressing incomplete information. In an attempt to deal
with incomplete information, researchers have proposed various extensions to rule systems, e.g. negations, disjunctions, and existentials in the heads of rules,
unstratified rules systems, and so forth. Unfortunately, extensions like these mar the beauty of rule systems and ruin their computational properties.
The alternative is to switch to Relational Logic in such situations. Unfortunately, for many, that is not an option. As I have argued, FOL with Tarskian semantics is
more complex and weaker than is desirable. There is no negation as failure.
Axioms:
q(x,y) :- p(x,y)
q(x,z) :- q(x,y) ∧ q(y,z)
even(0) :-
even(s(s(x))) :- even(x)
∀x.∀y.(p(x,y) ∧ even(x) ⇒ even(y))
Questions:
∀x.∀y.(q(x,y) ∧ even(x) ⇒ even(y))?
¬p(0,s(s(0)))?
Example
My argument is that Herbrand semantics for ordinary logic gives us an ideal middle ground between rules and traditional Relational Logic, allowing us to combine
rules with ordinary Logic without losing the benefits that each brings to the table. We can use rules for definitions and ordinary logical operators for constraints.
Here we have an example. q is defined to be the transitive closure of p. We know some disjunctive information about p and we know that q is not reflexive.
Taken together we should be able to answer questions like the ones shown here. There cannot be an x such that p(x,x). And we know that at most one of p(a,b)
and p(b,a) can be true (though we do not know which).
The two can co-exist. Now I do not now whether this is practically possible or not. However, I think it is an idea worthy of study. I cannot imagine that the result
would be worse than the alternatives currently in place.
Education
These results are encouraging. That said, there is a lot we still do not know, e.g. the relationship to answer set programming, the nature of second order and
metalevel logic and Herbrand semantics, and so forth.
The one thing that is clear is that Herbrand semantics is simpler than Tarskian semantics. Whether or not we use it in research and applications remains to be
seen. However, I am sure that it has clear value in education.
Tarskian Semantics
a=1, b=2
f={1→2, 2→3, …}
q={〈1,2〉,〈2,3〉,〈2,4〉, …}
Herbrand Semantics
{p(a), q(a,b), q(b,a)}
Models
Second, Tarskian semantics requires an understanding of relations as sets of tuples, which is a novel concept for many students. In Herbrand semantics, everything is defined in
terms of sentences, which are ore concrete and which students already understand.
Tarskian version:
An interpretation i and a variable assignment s satisfy a universally
quantified sentence if and only if i and s satisfy the scope of the
sentence for every version of the variable assignment.
A version s[ν→x] of a variable assignment s is a variable assignment
that assigns ν the value x and agrees with s on all other variables.
Herbrand version:
A model satisfies a universally quantified sentence if and only if it
satisfies all instances.
Quantified Sentences
Finally, in Tarskian semantics, there is also greater complexity in the definition of satisfaction. Here is the definition in Tarskian semantics. An interpretation i
satisfies … A version is … If you got all of that, if you think it is intuitive, then you are better at all of this than I am and my students. Now compare the
definition in Herbrand semantics. A dataset satisfies a universally quantified sentences if an only if it satisfies every instance. That’s it. Shorter and easier to
understand.
Tarskian semantics confuses students. As a result, they feel insecure and are all too often turned off on Logic.
CS157 - Computational Logic course at Stanford
Introduction to Symbolic Logic
from computational perspective
Taught for 20 years with Tarskian semantics
Tarskian Semantics the stumbling block
Taught for 3 years now with Herbrand semantics
Students do not complain about semantics
Do better on same questions about semantics
Logic Education
For many years, while teaching logic the old-fashioned way, I kept thinking that there had to be a better way. I kept thinking that Herbrand semantics might be the answer. To test
this, a few years ago, we switched our course on Logic from Tarskian semantics to Herbrand semantics. The results have been gratifying. Students get semantics right away.
They do better on quizzes. And there are fewer complaints about feeling lost. From talking with students, I get the sense that many students come away from the course feeling
empowered and intent on using Logic. More so than before anyway.
Introduction to Logic MOOC
2011 2012 2013 2014
45,789
61,820
78,420
92,603
The Logic course is now available a MOOC (and an associated book). It was one of the first MOOCs taught at Stanford. We teach it each year in the Fall. Typical enrollment is
now almost 100,000 students per session. To date, almost 500,000 students have enrolled in all. I grant that, as is typical with MOOCs, only a fraction of these students finish.
Even so, more students have seen this material than I had taught in my entire life before MOOCs. More students have seen this than have graduated from Stanford's math
program in its entire history. So, while mathematicians are still routinely teaching Tarskian semantics in their courses, at least students have an alternative and many are taking
advantage of it.
High School
Year long course on Critical Thinking
Logic as 6 week component
Targeting 9th grade
Curriculum
Propositional Logic
Relational Logic with Herbrand Semantics
Logic Programs - Logical Spreadsheets, General Game Playing
Greek Trivium
Secondary School
We are looking at using this approach to teaching logic in secondary schools. In Greek times, Logic was one of the three basic disciplines that students learned.
Today, it is taught in only a very small percentage of secondary schools. Instead, we are taught geometry. I learned how to bisect an angle in high school, but no
one taught me logic. Since high school I have never really needed to bisect any angles, but I have had to use logic in my professional life and in my private life,
e.g. to understand political arguments, court cases, and so forth. But we do not teach logic. I think that if we could make logic more useful and easier to teach,
this could change.
Conclusion
During a keynote address at RuleML a few years ago, I talked about Logical Spreadsheets. On that occasion, I mentioned the goal of popularizing logic and
suggested that what we need is a way to make logic more accessible and we need tools that make it clear that logic is useful, not just as an intellectual tool but as
a practical technology as well.
This time, I have talked about a way to make Logic more accessible - to teach people enough logic so that they can use logical spreadsheets and other logic-
based technologies. If Logic easy to learn, my hope is that we can make it more popular. Not just to promote our interests as researchers but also, if we are
right, to benefit society with the fruits of our research.
Manifesto being nailed to the door of the Stanford philosophy department.
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box

Weitere ähnliche Inhalte

Was ist angesagt?

Constructive Hybrid Logics
Constructive Hybrid LogicsConstructive Hybrid Logics
Constructive Hybrid Logics
Valeria de Paiva
 
Text smilarity02 corpus_based
Text smilarity02 corpus_basedText smilarity02 corpus_based
Text smilarity02 corpus_based
cyan1d3
 
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
ijaia
 

Was ist angesagt? (20)

Exempler approach
Exempler approachExempler approach
Exempler approach
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
 
J79 1063
J79 1063J79 1063
J79 1063
 
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARSPARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
 
Distributional semantics
Distributional semanticsDistributional semantics
Distributional semantics
 
Barreiro-Batista-LR4NLP@Coling2018-presentation
Barreiro-Batista-LR4NLP@Coling2018-presentationBarreiro-Batista-LR4NLP@Coling2018-presentation
Barreiro-Batista-LR4NLP@Coling2018-presentation
 
Constructive Hybrid Logics
Constructive Hybrid LogicsConstructive Hybrid Logics
Constructive Hybrid Logics
 
Text smilarity02 corpus_based
Text smilarity02 corpus_basedText smilarity02 corpus_based
Text smilarity02 corpus_based
 
Fol
FolFol
Fol
 
AMBIGUITY-AWARE DOCUMENT SIMILARITY
AMBIGUITY-AWARE DOCUMENT SIMILARITYAMBIGUITY-AWARE DOCUMENT SIMILARITY
AMBIGUITY-AWARE DOCUMENT SIMILARITY
 
LDG-basic-slides
LDG-basic-slidesLDG-basic-slides
LDG-basic-slides
 
Why parsing is a part of Language Faculty Science (by Daisuke Bekki)
Why parsing is a part of Language Faculty Science (by Daisuke Bekki)Why parsing is a part of Language Faculty Science (by Daisuke Bekki)
Why parsing is a part of Language Faculty Science (by Daisuke Bekki)
 
West greenlandic antipassive
West greenlandic antipassiveWest greenlandic antipassive
West greenlandic antipassive
 
Constructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, FormallyConstructive Adpositional Grammars, Formally
Constructive Adpositional Grammars, Formally
 
MORPHOLOGICAL SEGMENTATION WITH LSTM NEURAL NETWORKS FOR TIGRINYA
MORPHOLOGICAL SEGMENTATION WITH LSTM NEURAL NETWORKS FOR TIGRINYAMORPHOLOGICAL SEGMENTATION WITH LSTM NEURAL NETWORKS FOR TIGRINYA
MORPHOLOGICAL SEGMENTATION WITH LSTM NEURAL NETWORKS FOR TIGRINYA
 
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
AN IMPLEMENTATION, EMPIRICAL EVALUATION AND PROPOSED IMPROVEMENT FOR BIDIRECT...
 
Presentation1
Presentation1Presentation1
Presentation1
 
AbstractKR on Pargram 2006
AbstractKR on Pargram 2006AbstractKR on Pargram 2006
AbstractKR on Pargram 2006
 
Glue Semantics for Proof Theorists
Glue Semantics for Proof TheoristsGlue Semantics for Proof Theorists
Glue Semantics for Proof Theorists
 
A Distributional Semantics Approach for Selective Reasoning on Commonsense Gr...
A Distributional Semantics Approach for Selective Reasoning on Commonsense Gr...A Distributional Semantics Approach for Selective Reasoning on Commonsense Gr...
A Distributional Semantics Approach for Selective Reasoning on Commonsense Gr...
 

Andere mochten auch

Health Care Event Program - No Mt. Sinai 1.04pm
Health Care Event Program - No Mt. Sinai 1.04pmHealth Care Event Program - No Mt. Sinai 1.04pm
Health Care Event Program - No Mt. Sinai 1.04pm
Angel Rivera
 
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
gsdoifus
 
부평오피&강남오피#사이트【http://dasom10.net】부천오피
부평오피&강남오피#사이트【http://dasom10.net】부천오피부평오피&강남오피#사이트【http://dasom10.net】부천오피
부평오피&강남오피#사이트【http://dasom10.net】부천오피
dasomygirl
 

Andere mochten auch (18)

RuleML2015: Norwegian State of Estate: A Reporting Service for the State-Owne...
RuleML2015: Norwegian State of Estate: A Reporting Service for the State-Owne...RuleML2015: Norwegian State of Estate: A Reporting Service for the State-Owne...
RuleML2015: Norwegian State of Estate: A Reporting Service for the State-Owne...
 
RuleML2015: Using PSL to Extend and Evaluate Event Ontologies
RuleML2015: Using PSL to Extend and Evaluate Event OntologiesRuleML2015: Using PSL to Extend and Evaluate Event Ontologies
RuleML2015: Using PSL to Extend and Evaluate Event Ontologies
 
RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...
RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...
RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...
 
RuleML2015: FOWLA, a federated architecture for ontologies
RuleML2015: FOWLA, a federated architecture for ontologiesRuleML2015: FOWLA, a federated architecture for ontologies
RuleML2015: FOWLA, a federated architecture for ontologies
 
RuleML2015: Input-Output STIT Logic for Normative Systems
RuleML2015: Input-Output STIT Logic for Normative SystemsRuleML2015: Input-Output STIT Logic for Normative Systems
RuleML2015: Input-Output STIT Logic for Normative Systems
 
RuleML2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML2015:  Semantics of Notation3 Logic: A Solution for Implicit Quantifica...RuleML2015:  Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
 
Transformation and aggregation preprocessing for top-k recommendation GAP rul...
Transformation and aggregation preprocessing for top-k recommendation GAP rul...Transformation and aggregation preprocessing for top-k recommendation GAP rul...
Transformation and aggregation preprocessing for top-k recommendation GAP rul...
 
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and RulesRuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
 
RuleML2015: GRAAL - a toolkit for query answering with existential rules
RuleML2015:  GRAAL - a toolkit for query answering with existential rulesRuleML2015:  GRAAL - a toolkit for query answering with existential rules
RuleML2015: GRAAL - a toolkit for query answering with existential rules
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
RuleML2015: Towards Formal Semantics for ODRL Policies
RuleML2015: Towards Formal Semantics for ODRL PoliciesRuleML2015: Towards Formal Semantics for ODRL Policies
RuleML2015: Towards Formal Semantics for ODRL Policies
 
LR Womans Day !!!!
LR Womans Day !!!!LR Womans Day !!!!
LR Womans Day !!!!
 
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
 
Safe in the_sun_2016 ισχύουν εώς 15/09/2016
Safe in the_sun_2016 ισχύουν εώς 15/09/2016Safe in the_sun_2016 ισχύουν εώς 15/09/2016
Safe in the_sun_2016 ισχύουν εώς 15/09/2016
 
Health Care Event Program - No Mt. Sinai 1.04pm
Health Care Event Program - No Mt. Sinai 1.04pmHealth Care Event Program - No Mt. Sinai 1.04pm
Health Care Event Program - No Mt. Sinai 1.04pm
 
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
2금융대학생대출『BU797』.『COM』바베큐펜션 수원호텔
 
부평오피&강남오피#사이트【http://dasom10.net】부천오피
부평오피&강남오피#사이트【http://dasom10.net】부천오피부평오피&강남오피#사이트【http://dasom10.net】부천오피
부평오피&강남오피#사이트【http://dasom10.net】부천오피
 
The APIconomy for the Language Industry. Diego Bartolome, tauyou
The APIconomy for the Language Industry. Diego Bartolome, tauyouThe APIconomy for the Language Industry. Diego Bartolome, tauyou
The APIconomy for the Language Industry. Diego Bartolome, tauyou
 

Ähnlich wie RuleML2015 The Herbrand Manifesto - Thinking Inside the Box

Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
maartenmarx
 
Learning Verb-Noun Relations to Improve Parsing
Learning Verb-Noun Relations to Improve ParsingLearning Verb-Noun Relations to Improve Parsing
Learning Verb-Noun Relations to Improve Parsing
Andi Wu
 
05 linguistic theory meets lexicography
05 linguistic theory meets lexicography05 linguistic theory meets lexicography
05 linguistic theory meets lexicography
Duygu Aşıklar
 

Ähnlich wie RuleML2015 The Herbrand Manifesto - Thinking Inside the Box (20)

Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
Learning Verb-Noun Relations to Improve Parsing
Learning Verb-Noun Relations to Improve ParsingLearning Verb-Noun Relations to Improve Parsing
Learning Verb-Noun Relations to Improve Parsing
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
L6.pptxsdv dfbdfjftj hgjythgfvfhjyggunghb fghtffn
L6.pptxsdv dfbdfjftj hgjythgfvfhjyggunghb fghtffnL6.pptxsdv dfbdfjftj hgjythgfvfhjyggunghb fghtffn
L6.pptxsdv dfbdfjftj hgjythgfvfhjyggunghb fghtffn
 
AI-09 Logic in AI
AI-09 Logic in AIAI-09 Logic in AI
AI-09 Logic in AI
 
Grammatical and Ungrammatical Sentences.pdf
Grammatical and Ungrammatical Sentences.pdfGrammatical and Ungrammatical Sentences.pdf
Grammatical and Ungrammatical Sentences.pdf
 
Allerton
AllertonAllerton
Allerton
 
Natural Language Processing with Python
Natural Language Processing with PythonNatural Language Processing with Python
Natural Language Processing with Python
 
Lecture Notes-Are Natural Languages Regular.pdf
Lecture Notes-Are Natural Languages Regular.pdfLecture Notes-Are Natural Languages Regular.pdf
Lecture Notes-Are Natural Languages Regular.pdf
 
Knowledge Extraction
Knowledge ExtractionKnowledge Extraction
Knowledge Extraction
 
Nlp ambiguity presentation
Nlp ambiguity presentationNlp ambiguity presentation
Nlp ambiguity presentation
 
6 shallow parsing introduction
6 shallow parsing introduction6 shallow parsing introduction
6 shallow parsing introduction
 
ijcai11
ijcai11ijcai11
ijcai11
 
P99 1067
P99 1067P99 1067
P99 1067
 
Analyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in PythonAnalyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in Python
 
05 linguistic theory meets lexicography
05 linguistic theory meets lexicography05 linguistic theory meets lexicography
05 linguistic theory meets lexicography
 
NLP
NLPNLP
NLP
 
Learning to summarize using coherence
Learning to summarize using coherenceLearning to summarize using coherence
Learning to summarize using coherence
 

Mehr von RuleML

A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
RuleML
 

Mehr von RuleML (20)

Aggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and SolutionsAggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and Solutions
 
A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
 
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
 
RuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule EventsRuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule Events
 
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth ContextRuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
 
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
 
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive ConceptsRule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
 
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?
 
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
 
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
 
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
 
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function SymbolsRuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
 
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge PlatformsRuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
 
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
RuleML2015: Rule-Based Exploration of Structured Data in the BrowserRuleML2015: Rule-Based Exploration of Structured Data in the Browser
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
RuleML2015: Compact representation of conditional probability for rule-based...
RuleML2015:  Compact representation of conditional probability for rule-based...RuleML2015:  Compact representation of conditional probability for rule-based...
RuleML2015: Compact representation of conditional probability for rule-based...
 
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information SystemsRuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
 
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
 
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
 
RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...
RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...
RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...
 

Kürzlich hochgeladen

Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
Lokesh Kothari
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
Sérgio Sacani
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Sérgio Sacani
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 

Kürzlich hochgeladen (20)

Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 

RuleML2015 The Herbrand Manifesto - Thinking Inside the Box

  • 1. 1 Michael Genesereth and Eric Kao Computer Science Department Stanford University The Herbrand Manifesto Thinking Inside the Box The traditional semantics for Relational Logic (sometimes called Tarskian semantics) is based on the notion of interpretations of constants in terms of objects external to the Logic. Herbrand semantics is an alternative semantics that is based on truth assignments for ground sentences without reference to external objects. Herbrand semantics is simpler and more intuitive than Tarskian semantics; and, consequently, it is easier to teach and learn. Moreover, it is stronger than Tarskian semantics. For example, while it is not possible to finitely axiomatize integer arithmetic with Tarskian semantics, this can be done easily with Herbrand Semantics. The downside is a loss of some common logical properties, such as compactness and inferential completeness. However, there is no loss of inferential power - anything that can be deduced according to Tarskian semantics can also be deduced according to Herbrand semantics. Based on these results, we argue that there is value in using Herbrand semantics for Relational Logic in place of Tarskian semantics. It alleviates many of the current problems with Relational Logic and ultimately may foster a wider use of Relational Logic in human reasoning and computer applications.
  • 2. Language of Logic q(b,c)p(a,b) ∀x.∀y.(p(x,y) ⇒ q(x,y)) ∃x.p(x,d) ¬p(b,d) p(c,b) ∨ p(c,d) One of the main strengths of Logic is that it provides us with a well-defined language for expressing complex information about objects and their relationships. We can write negations, disjunctions, implications, quantified sentences, and so forth.
  • 3. Premises ∀x.∀y.(p(x,y) ⇒ r(x,y)) ∀x.∀y.(q(x,y) ⇒ r(x,y)) ∀x.∃y.(p(x,y) ∨ q(x,y)) Conclusion: ∀x.∃y.r(x,y) Non-Conclusion: ∃y.∀x.r(x,y) Logical Entailment Logic also provides us with precise rules for deriving conclusions from sentences expressed within this language and a way of knowing which sentences are *not* conclusions.
  • 4. A model is a mathematical structure that (directly or indirectly) assigns truth values to sentences in our language. A set of premises logically entails a conclusion iff every model that satisfies the premises satisfies the conclusion. Semantics What makes it all work is that the language of Relational Logic has a clearly defined semantics, which gives meaning to logical connectives and quantifiers. This allows us to know that we are using those connectives and quantifiers correctly; and it allows to be sure that, in our reasoning, we are deriving conclusions that follow from our premises and avoiding those that do not. The basis for almost all treatments of logical semantics is the notion of a model. A model is a mathematical structure that tells us which sentences are true and which are false. And this is the basis for logical entailment. We say that a set of premises logically entails a conclusion if and only if every model that satisfies the premises also satisfies the conclusion. In other words, the conclusion must be true in every model in which the premises are true. The main question we are addressing today is the nature of these models. In particular, I plan to talk about two alternative types of models - one that is taught in the vast majority of logic courses and one that is used in the majority of work on database and rule systems. They are not the same.
  • 5. A vocabulary is a set of symbols. {a, b, f, q} A universe of discourse is an arbitrary set of objects. {1, 2, 3, 4, …} An interpretation is an assignment to symbols in language. a=1, b=2 f={1→2, 2→3, …} q={〈1,2〉,〈2,3〉,〈2,4〉, …} Tarskian Semantics Tarskian semantics is the traditional semantics for Relational Logic. In Tarskian semantics, a model consists of an arbitrary set of objects (called the universe of discourse) and an interpretation function (1) that maps object constants into elements of this set, (2) that maps function constants into functions on this set, and (3) that maps relation constants into relations on this set. A model of this sort completely determines the truth or falsity of all sentences in the language.
  • 6. A vocabulary is a set of symbols. {a, b, p, q} The Herbrand base is the set of all ground atoms. {p(a), p(b), q(a,a), q(a,b), q(b,a), q(b,b)} A Herbrand model is any subset of the Herbrand base. {p(a), q(a,b), q(b,a)} Herbrand Semantics Herbrand semantics is an alternative. We start out with the notion of a Herbrand base, simply the set of ground atoms in our language. A model is a simply a subset of the Herbrand base, viz. the elements that are assigned the value true. Or, equivalently, it is a truth assignment for the the elements of the Herbrand base. Given the meaning of logical connectives and quantifiers, a Herbrand model completely determines the truth or falsity of all sentences in the language, not just the ground atoms.
  • 7. Tarskian Semantics - all conceivable universes {1, 2, 3, 4, …} {〈1, 2〉, 〈3, 4〉, …} {{〈1, 2〉, 〈3, 4〉}, {〈5, 6〉, 〈7, 8〉}…} {♠, ♣, ♥, ♦} Herbrand Semantics - symbols only {p(a), q(a,b), q(b,a)} Thinking Inside the Box In much of the literature, Herbrand semantics is treated (somewhat understandably) as a special case of Tarskian semantics - the case where we look at so-called Herbrand interpretations. Although the two are similar in many ways, they are not the same. First of all, in Tarskian semantics, there are unboundedly many interpretations for any language, and entailment is defined over all conceivable universes - finite, countably infinite, uncountable, and beyond. In Herbrand, Logic is defined independently of the mapping between terms and real world objects. There is no external universe, only symbols and sentences in the language. In a sense, it is *thinking inside the box*. In Herbrand semantics, we effectively separate the semantics of the logic from the mapping between the symbols and the real world and thereby simplify the semantics.
  • 8. Benefits of Tarski over Herbrand: Compact Complete proof procedure Semi-decidable Benefits of Herbrand over Tarski: Simpler and more intuitive Equivalent or greater inferential power More things definable Partial unifier of traditional logic and logic programs Comparison There are benefits and disadvantages to doing things this way. On the one hand, with Herbrand semantics, we no longer have many of the nice features of Tarskian semantics - compactness, inferential completeness, and semidecidability. On the other hand, there are some real benefits to Herbrand semantics. Most importantly, Herbrand semantics is conceptually a lot simpler than Tarskian semantics; as a result, it is easier to teach and learn. It has equivalent or greater inferential power. And more things are definable with Herbrand semantics than with Tarskian semantics. Interestingly, in a way, Herbrand semantics is a partial unifier of traditional logic and logic programs. In order to understand the trade-off between these two approaches to semantics, Eric Kao and I decided to study Herbrand semantics in its own right instead of as a special case of Tarskian semantics. Along the way, we confirmed some more or less obvious points but we also realized a few interesting properties that we had not initially expected. My goal today is to go over some of these results with you, as a way of explaining my newfound enthusiasm for Herbrand semantics and my view that it ought to supplant Tarskian semantics in some CS research and most logic education.
  • 9. French: er-brahn English / American: her-brand Pronunciation Before I get into all of that, a word on pronunciation. Herbrand semantics is named after the logician Jacques Herbrand, who developed some of its key concepts. As Herbrand is French, it should properly be pronounced "air-brahn". However, most people resort to the usual Anglicization of this, instead pronouncing it “her-brand".
  • 10. French: er-brahn English / American: her-brand Stanley Peters: Mike’s hare-brained logic Pronunciation One exception is my colleague Stanley Peters, who frequently to this work as “Mike’s hare-brained logic".
  • 11. Nuts and Bolts Let’s start with the basics - the definition of Herbrand semantics and some of the differences between Herbrand and Tarskian semantics.
  • 12. The Herbrand base is the set of all ground atoms. {p(a), p(b), q(a,a), q(a,b), q(b,a), q(b,b)} A Herbrand model is an arbitrary subset. {p(a), q(a,b), q(b,a)} Equivalently, a truth assignment for the ground atoms. p(a)=1 q(a,a)=0 q(b,a)=1 p(b)=0 q(a,b)=1 q(b,b)=0 Herbrand Semantics Recall that we start out with the notion of a Herbrand base, simply the set of ground atoms in our language. We define a model as an arbitrary subset of this set. Equivalently, it is a truth assignment for the ground atomic sentences in the language.
  • 13. Ground Atomic Sentences: ϕ = 1 iff ϕ ∈ Δ Ground Logical Sentences: (¬ϕ) = 1 iff ϕ = 0 (ϕ ∧ ψ) = 1 iff ϕ = 1 and ψ = 1 (ϕ ∨ ψ) = 1 iff ϕ = 1 or ψ = 1 (ϕ ⇒ ψ) = 1 iff ϕ = 0 or ψ = 1 (ϕ ⇔ ψ) = 1 iff ϕ = ψ Quantified Sentences: (∀x.ϕ(x)) = 1 iff ϕ(τ) = 1 for every instance τ (∃x.ϕ(x)) = 1 iff ϕ(τ) = 1 for some instance τ Truth of Complex Sentences Given this notion, the definition of satisfaction is straightforward. A ground atom is true iff it is in the dataset. The truth values of logical sentences are defined the same as with Tarskian semantics. A negation is true iff the negated sentence is false. A conjunction is true iff the conjuncts are both true. And so forth. Finally, a universally quantified sentence is true if and only all of its instances are true.
  • 14. A set of premises logically entails a conclusion iff every model that satisfies the premises satisfies the conclusion. { x.(p(x) ⇒ q(x)), p(a)} ⊨ q(a) Herbrand Entailment Finally, we say that a set of premises logically entails a conclusion if and only if every model that satisfies the premises also satisfies the conclusion. In other words, the conclusion must be true whenever the premises are true. That’s the entire semantics. This is simpler than Tarskian semantics. But it is not entirely equivalent.
  • 15. If Δ ⊨ p(𝜏) for every ground term 𝜏, does Δ ⊨ ∀x.p(x)? Suppose Δ ⊨ {p(a), p(f(a)), p(f(f(a))), p(f(f(f(a)))), ...}. Is it the case that Δ ⊨ x.p(x)? Stanford CS Comprehensive Exam Question Let’s look at an example. For many years, I was the author of a portion of Stanford's doctoral comprehensive exam. One of my favorite questions concerned logical entailment. Suppose we are given a set Delta of sentences in the language of first-order logic such that Delta logically entails phi(tau) for every ground term in the language. Is it the case that Delta logically entails AX:phi(X)?
  • 16. If Δ ⊨ p(𝜏) for every ground term 𝜏, does Δ ⊨ ∀x.p(x)? Suppose Δ ⊨ {p(a), p(f(a)), p(f(f(a))), p(f(f(f(a)))), ...}. Is it the case that Δ ⊨ x.p(x)? Most Common Answer: yes Correct Answer with Tarskian Semantics: no Correct Answer with Herbrand Semantics: yes Stanford CS Comprehensive Exam Question The question is not difficult if one knows the semantics of FOL, but apparently not everyone knows this. The most common answer to this question is 'yes' - people seem to think that, if Delta logically entails every ground instance of phi, it must entail the universally quantified version. Of course, that answer is wrong. There can be some unnamed element of the universe of discourse for which the sentence is false. However, the popularity of the incorrect answer suggests that perhaps our semantics does not capture our intuitions about logic. Maybe it should. The good news is that, with Herbrand semantics, the answer to this question is 'yes' as most people think it should be. Moreover, Herbrand semantics solves not just this problem but a variety of other problems as well.
  • 17. A logic is compact if and only if every unsatisfiable set of sentences has a finite subset that is unsatisfiable. Theorem: Logic with Tarskian semantics is compact. Theorem: Logic with Herbrand semantics is not compact. {p(0), p(s(0)), p(s(s(0))), … , ∃x.¬p(x)} Compactness Another difference concerns compactness. A logic is compact if and only if every unsatisfiable set of sentences has a finite subset that is unsatisfiable. Relational Logic with Tarskian semantics turns out to be compact. The upshot is that it is possible to demonstrate unsatisfiability in finite space; alternatively, all proofs are finite. By contrast, Herbrand Logic is not compact - there are infinite sets of sentences that are unsatisfiable while every finite subset is satisfiable. Consider the set of sentences shown here. It is clearly unsatisfiable under Herbrand semantics; but, if we remove any one sentence, it becomes satisfiable. The upshot of this is that there are infinite sets of sentences where we cannot demonstrate unsatisfiability with a finite argument within the language itself. Fortunately, this does not cause any practical difficulties, since in all cases of practical interest we are working with finite sets of premises.
  • 18. A proof procedure is sound if and only if everything that is provable is true. Δ ⊢ ϕ → Δ ⊨ ϕ A proof procedure is complete if and only if everything that is true is provable. Δ ⊨ ϕ → Δ ⊢ ϕ Soundness and Completeness More disturbing is that there are differences in soundness and completeness. A proof procedure is sound if and only if everything that is provable is true. A proof procedure is complete if and only if everything that is rue is provable.
  • 19. Theorem: There is a proof procedure for logic with Tarskian semantics that is both sound and complete. Therefore, provability and logical entailment for Tarskian semantics are semi-decidable. Theorem: There is no complete proof procedure for Herbrand Semantics. Moreover, provability and logical entailment for Herbrand semantics is not semi-decidable. Completeness FOL Logic with Tarskiamn semanics is know to have complete proof procedure. Not so with Herbrand semantics. Unfortunately, there is no complete proof procedure for Logic with Herbrand semantics. Moreover, provability and logical entailment for Herbrand semantics are not semi-decidable.
  • 20. Theorem: Any sound proof procedure for Tarskian semantics is sound for Herbrand semantics. The logic is not weaker. In fact, it is stronger. There are more things that are true. We cannot prove them all, but we can prove everything we could prove before. By building in induction, we can prove more things. Anything they can do we can do better. Results with Herbrand Semantics However, this is not as bad as it seems. It turns out that everything that is true under Tarskian semantics is also true under Herbrand semantics, so we can use the same rules of inference. The upshot here is that we lost nothing by switching to Herbrand semantics. In fact, we can add some additional rules of inference. It is not that Herbrand logic is weaker. In fact, it is stronger. There are more things that are true. We cannot prove them all, but we can prove everything we could prove before. Some may be disturbed by the fact that Herbrand entailment is not semi-decidable. But a similar argument could be leveled against Tarskian semantics. Semi-decidability is not that great either, as a prof procedure might still run forever if the proposed conclusion does not follow from the premises.
  • 21. Not in Kansas Anymore So much for standard logical properties. It turns out that, when we look at the use of logic on some practical problems things get more interesting.
  • 22. The power of Herbrand semantics is due to the implicit domain closure - there are no objects in the universe except for ground terms. This allows complete definitions for things that cannot be completely defined with Tarskian Semantics. Interesting Uses The power of Herbrand semantics is, in large part, due to the implicit property of domain closure - there are no objects in the universe except for ground terms. This allows us to give complete definitions to things that cannot be completely defined with Tarskian Semantics. We have already seen Peano arithmetic. It turns out that, under Herbrand semantics, we can also define some other useful concepts that are not definable with Tarskian semantics, and we can do so without resort to more complex logical mechanisms, such as negation as failure.
  • 23. Standard “definition”: ∀x.∀z.(q(x,z) ⇔ p(x,z) ∨ ∃y.(q(x,y) ∧ q(y,z))) Base relation p Desired closure q Unfortunately, the desired closure is not the only possibility. Transitive Closure cal cam coe cory bob bud art cal cam coe cory bob bud art Let's look at transitive closure first. Let's say that we have a binary relation p and we want to axiomatize the transitive closure q. The typical approach in Relational Logic would be to write the definition shown here. It is easy to see that q contains the transitive closure of p. The problem is that, in general, it can contain additional elements as well, corresponding to various non-standard models. For example, the universe of discourse might contain an object that does not have any p relationships at all. However, if we link all objects to it via q, this satisfies our definition. The upshot is that we have a model of our sentence that is a proper superset of the transitive closure of p. Not good.
  • 24. Standard “definition”: ∀x.∀z.(q(x,z) ⇔ p(x,z) ∨ ∃y.(q(x,y) ∧ q(y,z))) Base relation p Non-standard closure q There is no finite set of sentences that defines transitive closure of infinite relations under Tarskian semantics. Non-Standard Model cal cam coe cory bob bud art cal cam coe cory bob bud art The problem is that, in general, it can contain additional elements as well, corresponding to various non-standard models. For example, the universe of discourse might contain an object that does not have any p relationships at all. However, if we link all objects to it via q, this satisfies our definition. The upshot is that we have a model of our sentence that is a proper superset of the transitive closure of p. Not good. Problem exists for Herbrand semantics as well. What is needed is some for of minimization. This can be accomplished by writing sentences that achieve this effect with Herbrand semantics but not with Tarskian semantics.
  • 25. Definition of helper relation qq: ∀x.∀z.(qq(x,z,0) ⇔ p(x,z)) ∀x.∀z.(qq(x,z,s(n)) ⇔ qq(x,z,n) ∨ ∃y.(qq(x,y,n) ∧ qq(y,z,n))) Think of the third argument as representing the number of applications of the transitivity rule to p. p(a,b) qq(a,b,0) qq(a,b,s(0)) qq(a,b,s(s(0))) p(b,c) qq(b,c,0) qq(b,c,s(0)) qq(b,c,s(s(0))) p(c,d) qq(c,d,0) qq(c,d,s(0)) qq(c,d,s(s(0))) qq(a,c,s(0)) qq(a,c,s(s(0))) qq(b,d,s(0)) qq(b,d,s(s(0))) qq(a,d,s(s(0))) Transitive Closure in Herbrand By contrast, we *can* define the transitive closure of a relation in a Logic with Herbrand semantics. It is not as simple or intuitive as this simple definition, but it is theoretically possible. The trick is to exploit the enumerability of the Herbrand universe. Suppose we have the object constant 0, an arbitrary unary relation constant s; and suppose our job is to define q as the transitive closure of p. We start by defining a helper relation qq as shown below. The basic idea here is that qq(X,Z,N) is the transitive closure in which no intermediate variable is bigger than N.
  • 26. Definition of helper relation qq: ∀x.∀z.(qq(x,z,0) ⇔ p(x,z)) ∀x.∀z.(qq(x,z,s(n)) ⇔ qq(x,z,n) ∨ ∃y.(qq(x,y,n) ∧ qq(y,z,n))) Definition of q in terms of qq: ∀x.∀z.(q(x,z) ⇔ ∃n.qq(x,z,n)) Theorem: If a model satisfies these axioms under Herbrand semantics, then q is the transitive closure of p. Transitive Closure in Herbrand Once we have qq, we can easily define q in terms of qq. q is true of two elements if and only if there is a level at which qq becomes true of those elements. It is easy to see that q is exactly the transitive closure of p. The only disadvantage of this axiomatization is that we need the helper relation qq. But that causes no significant problems.
  • 27. Curiouser and Curiouser But wait. There's more! We can also get this effect by using a logic programming language that includes some form of negation as failure semantics. As we know, it is possible to encode some relation in logic programs that cannot be encoded in Relational Logic with Tarskian semantics. Rule systems get this power from the use of negation as failure to minimize defined relations.
  • 28. Logic programs are collections of rules. t(0) :- t(Y) :- t(X) & r(X,Y) A rule is safe if and only if every variable in the head occurs in a positive subgoal. A set of rules is stratified if and only if no relation is defined (directly or indirectly) in terms of its own negation. Safe, stratified logic programs have unique minimal models. Logic Programs The cool thing is that, even without any form of negation as failure, it is possible to encode those relations in FOL with Herbrand semantics. Moreover, various minimization policies can result from different axiomatizations. We can extend the transitive closure technique to logic programs, showing that the effect of model minimization can be obtained without extensions to the logic.
  • 29. Original Program: t(0) :- t(Y) :- t(X) & r(X,Y) Normalized Program: t(Y) :- Y=0 t(Y) :- t(X) & r(X,Y) Transformed Program: ∀y.(tt(y,0) ⇔ y = 0) ∀y.∀n.(tt(y,s(n)) ⇔ tt(y,n) ∨ ∃x.(tt(x,n) ∧ r(x,y))) Projection: ∀y.(t(y) ⇔ ∃n.tt(y,n)) Transformation Consider the logic program we just saw. The first step of our conversion is to normalize the program so that the head of every rule consists of variables. This is easy to do using equality (defined as we did earlier in Peano Arithmetic). Next we transform the normalized program as follows. The two sentences here are the result of transforming the original axioms to define the helper relation ss. For each rule defining an n-ary relation in the normalized program, we define the corresponding n+1-ary helper relation as shown here. ss is true of y and 0 iff y=0. ss is true of y and s(n) iff (1) is true on step n *or* (2) if there is an x such that the definition holds of elements on step n. Finally, we define s in terms of ss, as we did in the transitive closure example.
  • 30. Theorem: Let P be an arbitrary safe, stratified program over R. Let M be the unique minimal model of P under stratified semantics. Then, this transformation has a unique model M’ under Herbrand semantics such that M’ = M over R. Logic Programs Now the interesting thing is that it turns out that we can do this transformation in general (for arbitrary logic programs so long as they are safe and stratified). And the result is quite good. Let P be an arbitrary safe, stratified program over R. Let M be the unique minimal model of P under stratified semantics. Then, this transformation has a unique model M’ under Herbrand semantics such that M’ = M over R. Voila - minimization without negation as failure.
  • 31. Upshot: :- can be thought of as syntactic sugar no theoretical need for negation as failure semantics Disadvantage: :- can be used to encode definitions more naturally computation with :- more efficient Why not have the best of both worlds? Hybrid logic: Complete definitions expressed as rules Incomplete information expressed in relational logic Advantages and Disadvantages One consequence of this result is that we can treat :- as syntactic sugar for definitions requiring minimization. There is no need for a different logic. Which does note mean that :- is unimportant. In fact, the oddity of those definitions makes clear the value of :- in expressing definitions intuitively. I think there is also another, more subtle benefit of this theorem. One possible practical consequence of this work concerns the relationship between rule systems and ordinary logic. Rules and ordinary logic are often are often seen as alternatives. Herbrand semantics has the potential to bring these two branches of Logic closer together in a fruitful way. This upshot would be a possible re-prioritization of research in these two areas. To me, the power and beauty of rule systems is their suitability for writing complete definitions. We start with some completely specified base relations and define other relations in terms of these base relations, working our way up the definitional hierarchy. At every point in time we have a complete model of the world. Unfortunately, complete theories are not always possible; and in such situations we need to provide for expressing incomplete information. In an attempt to deal with incomplete information, researchers have proposed various extensions to rule systems, e.g. negations, disjunctions, and existentials in the heads of rules, unstratified rules systems, and so forth. Unfortunately, extensions like these mar the beauty of rule systems and ruin their computational properties. The alternative is to switch to Relational Logic in such situations. Unfortunately, for many, that is not an option. As I have argued, FOL with Tarskian semantics is more complex and weaker than is desirable. There is no negation as failure.
  • 32. Axioms: q(x,y) :- p(x,y) q(x,z) :- q(x,y) ∧ q(y,z) even(0) :- even(s(s(x))) :- even(x) ∀x.∀y.(p(x,y) ∧ even(x) ⇒ even(y)) Questions: ∀x.∀y.(q(x,y) ∧ even(x) ⇒ even(y))? ¬p(0,s(s(0)))? Example My argument is that Herbrand semantics for ordinary logic gives us an ideal middle ground between rules and traditional Relational Logic, allowing us to combine rules with ordinary Logic without losing the benefits that each brings to the table. We can use rules for definitions and ordinary logical operators for constraints. Here we have an example. q is defined to be the transitive closure of p. We know some disjunctive information about p and we know that q is not reflexive. Taken together we should be able to answer questions like the ones shown here. There cannot be an x such that p(x,x). And we know that at most one of p(a,b) and p(b,a) can be true (though we do not know which). The two can co-exist. Now I do not now whether this is practically possible or not. However, I think it is an idea worthy of study. I cannot imagine that the result would be worse than the alternatives currently in place.
  • 33. Education These results are encouraging. That said, there is a lot we still do not know, e.g. the relationship to answer set programming, the nature of second order and metalevel logic and Herbrand semantics, and so forth. The one thing that is clear is that Herbrand semantics is simpler than Tarskian semantics. Whether or not we use it in research and applications remains to be seen. However, I am sure that it has clear value in education.
  • 34. Tarskian Semantics a=1, b=2 f={1→2, 2→3, …} q={〈1,2〉,〈2,3〉,〈2,4〉, …} Herbrand Semantics {p(a), q(a,b), q(b,a)} Models Second, Tarskian semantics requires an understanding of relations as sets of tuples, which is a novel concept for many students. In Herbrand semantics, everything is defined in terms of sentences, which are ore concrete and which students already understand.
  • 35. Tarskian version: An interpretation i and a variable assignment s satisfy a universally quantified sentence if and only if i and s satisfy the scope of the sentence for every version of the variable assignment. A version s[ν→x] of a variable assignment s is a variable assignment that assigns ν the value x and agrees with s on all other variables. Herbrand version: A model satisfies a universally quantified sentence if and only if it satisfies all instances. Quantified Sentences Finally, in Tarskian semantics, there is also greater complexity in the definition of satisfaction. Here is the definition in Tarskian semantics. An interpretation i satisfies … A version is … If you got all of that, if you think it is intuitive, then you are better at all of this than I am and my students. Now compare the definition in Herbrand semantics. A dataset satisfies a universally quantified sentences if an only if it satisfies every instance. That’s it. Shorter and easier to understand. Tarskian semantics confuses students. As a result, they feel insecure and are all too often turned off on Logic.
  • 36. CS157 - Computational Logic course at Stanford Introduction to Symbolic Logic from computational perspective Taught for 20 years with Tarskian semantics Tarskian Semantics the stumbling block Taught for 3 years now with Herbrand semantics Students do not complain about semantics Do better on same questions about semantics Logic Education For many years, while teaching logic the old-fashioned way, I kept thinking that there had to be a better way. I kept thinking that Herbrand semantics might be the answer. To test this, a few years ago, we switched our course on Logic from Tarskian semantics to Herbrand semantics. The results have been gratifying. Students get semantics right away. They do better on quizzes. And there are fewer complaints about feeling lost. From talking with students, I get the sense that many students come away from the course feeling empowered and intent on using Logic. More so than before anyway.
  • 37. Introduction to Logic MOOC 2011 2012 2013 2014 45,789 61,820 78,420 92,603 The Logic course is now available a MOOC (and an associated book). It was one of the first MOOCs taught at Stanford. We teach it each year in the Fall. Typical enrollment is now almost 100,000 students per session. To date, almost 500,000 students have enrolled in all. I grant that, as is typical with MOOCs, only a fraction of these students finish. Even so, more students have seen this material than I had taught in my entire life before MOOCs. More students have seen this than have graduated from Stanford's math program in its entire history. So, while mathematicians are still routinely teaching Tarskian semantics in their courses, at least students have an alternative and many are taking advantage of it.
  • 38. High School Year long course on Critical Thinking Logic as 6 week component Targeting 9th grade Curriculum Propositional Logic Relational Logic with Herbrand Semantics Logic Programs - Logical Spreadsheets, General Game Playing Greek Trivium Secondary School We are looking at using this approach to teaching logic in secondary schools. In Greek times, Logic was one of the three basic disciplines that students learned. Today, it is taught in only a very small percentage of secondary schools. Instead, we are taught geometry. I learned how to bisect an angle in high school, but no one taught me logic. Since high school I have never really needed to bisect any angles, but I have had to use logic in my professional life and in my private life, e.g. to understand political arguments, court cases, and so forth. But we do not teach logic. I think that if we could make logic more useful and easier to teach, this could change.
  • 40. During a keynote address at RuleML a few years ago, I talked about Logical Spreadsheets. On that occasion, I mentioned the goal of popularizing logic and suggested that what we need is a way to make logic more accessible and we need tools that make it clear that logic is useful, not just as an intellectual tool but as a practical technology as well. This time, I have talked about a way to make Logic more accessible - to teach people enough logic so that they can use logical spreadsheets and other logic- based technologies. If Logic easy to learn, my hope is that we can make it more popular. Not just to promote our interests as researchers but also, if we are right, to benefit society with the fruits of our research.
  • 41. Manifesto being nailed to the door of the Stanford philosophy department.