Term Rewriting: Equational Logic (Aart Middeldorp)
This is all about TERMS I think
49 flashcards Β· Mathematics Β· by lakesare
Name 2 objects that exist in equational logic.
functions (0-arity function is a constant) variables
How to read this?
s is a subterm of t
How to read this?
Variables occurring in term t.
What's a ground term?
A term with no variables. A term t is called ground if Var(t) = β . The set of all ground terms is denoted by π―(πΉ).
What do these denote: T(πΉ, π±) VS T(πΉ)
T(πΉ, π±) - all terms generated by functions πΉ and variables π± T(πΉ) - all ground terms generated by functions πΉ.
What's the root symbol of a term?
Leftest function name.
What does |t| denote?
|all variable and function symbols in a term| The number of variable symbols AND function symbols.
What does |t|a denote?
|"a" symbols in a term| The number of "a" symbols in the term.
What does β₯tβ₯ denote?
|function symbols in a term| The number of function symbols in the term.
What's πΉ and V in this term?
πΉ: a binary function symbol +, a unary function symbol s, and a constant 0. V: x and y are variables in V. Tree representation of a term
What's root(t)?
What's |t| (the size of this term)?
What's |t|+?
What's β₯tβ₯?
What's the height(term)?
Max height of the tree, and we only count 1+-ary functions.
How to read this?
All positions (Pos) of variables (V) in a term (t).
How to read this?
All positions (Pos) of functions (F) in a term (t).
Difference between: t(p) VS t|p
What's t|11?
What's t(11)?
t(11) = +
What's t[x + 3]2?
Substitute t|2 with [x+3]
How is Ο pronounced?
Sigma uppercase Ξ£
What is the substitution a mapping: from & to?
from: variable to: term
What does Dom(Ο) likely denote?
Domain of the substitution Ο.
What does tΟ likely denote?
Term t with the substitution Ο.
What's an instance of a term?
This term with some substitution.
Visually imagine: some term is an instance of some term.
βββββββββ is an instance of βββ
Visually imagine: some term matches some term.
βββ matches βββββββββ
[Positions in terms: <, >, β₯] How do 2 and 211 relate?
less = less deep
[Positions in terms: <, >, β₯] How do 1 and 212 relate?
Sum up how we decide the matching problem?
Strip off the function symbol.
What does this mean in symbols?
=> If s is a subterm of t, and Ο is an arbitrary substitution, then sΟ is a subterm is tΟ.
Visually imagine a linear term.
linear term == variables don't occur multiple times. t is linear because the variable x appears only once in t.
What's "the matching problem"?
Find a substitution Ο.
[Equational Reasoning] Visually imagine an equation.
[Equational Reasoning] Visually imagine an equational system (ES).
ES πΈ consisting of the two equations.
What's does Ξ± and π denote here:
[variable assignment]function assignment(term)
What does =π mean?
[any variable assignment!]function assignment(term) == [any variable assignment!]function assignment(term)
What could this mean?
Interpretation of term in π΅-algebra.
What does ES stand for?
Equational system
What 2 things do we need to specify an equational system? ES π consisting of the two equations
signature π set of equations π
In equational logic, what is: semantic component syntactic component?
In equational logic, what is: semantic component - algebra syntactic component - equational reasoning
What's the relationship between these: s βπΈ t s =πΈ t
Equational logic is sound and complete: s βπΈ t β s =πΈ t. Below we show that equational reasoning is sound. This means that every equation s β t deducible from an ES E by equational reasoning is valid in all models of E. Completeness of equational reasoning.
Visually imagine what these mean: s βπΈ t s =πΈ t πΈ is the "Equational System πΈ"
s βπΈ t - syntactic β’, equational reasoning. Let πΈ be an ES. We write s βπΈ t if the equation s β t is derivable from the following inference rules.s =πΈ t - semantic β¨, algebra. An algebra A is a model of an ES πΈ if every equation in πΈ is valid in A. We write s =πΈ t if s β t is valid in all models of πΈ.
What's: equational system VS equational theory?
equational system equational theory - all possible equations in ES
What's the validity problem? Equational system
Whether s β t belongs to the equational theory generated by ES. Rephrased in syntactical terms, the validity problem for E is the question whether the relation βE is computable.
What's the name of this ES?
Combinatory Logic. Combinatory logic is a notation to eliminate the need for quantified variables in mathematical logic. It was introduced by Moses SchΓΆnfinkel and Haskell Curry, and has more recently been used in computer science as a theoretical model of computation and also as a basis for the design of functional programming languages. It is based on combinators which were introduced by SchΓΆnfinkel in 1920 with the idea of providing an analogous way to build up functionsβand to remove any meβ¦
How would you show that: equation belongs to the equational theory of πΈ VS equation doesn't belong to the equational theory of πΈ? Consider the ES πΈ consisting of the three equations
equation belongs - build a proof tree equation doesn't belong - find a counterexample algebra
Aπ± denotes { all possible assignments }, what's: A π±?
A - { carrier of the algebra } π± - { variables } It's Aπ± because if:A = { true, false }π± = { x, y, z }Aπ± = { 23 possible assignments }