Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Unification (computer science)
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Narrowing=== [[File:Triangle diagram of narrowing step svg.svg|thumb|Triangle diagram of narrowing step ''s'' β ''t'' at position ''p'' in term ''s'', with unifying substitution Ο (bottom row), using a rewrite rule {{math|1=''l'' β ''r''}} (top row)]] If ''R'' is a [[convergent term rewriting system]] for ''E'', an approach alternative to the previous section consists in successive application of "'''narrowing''' steps"; this will eventually enumerate all solutions of a given equation. A narrowing step (cf. picture) consists in * choosing a nonvariable subterm of the current term, * [[syntactically unifying]] it with the left hand side of a rule from ''R'', and * replacing the instantiated rule's right hand side into the instantiated term. Formally, if {{math|''l'' β ''r''}} is a [[renamed copy]] of a rewrite rule from ''R'', having no variables in common with a term ''s'', and the [[subterm]] {{math|''s''{{!}}<sub>''p''</sub>}} is not a variable and is unifiable with {{mvar|l}} via the [[#Syntactic unification of first-order terms|mgu]] {{mvar|Ο}}, then {{mvar|s}} can be ''narrowed'' to the term {{math|1=''t'' = ''sΟ''[''rΟ'']<sub>''p''</sub>}}, i.e. to the term {{mvar|sΟ}}, with the subterm at ''p'' [[Term (logic)#Operations with terms|replaced]] by {{mvar|rΟ}}. The situation that ''s'' can be narrowed to ''t'' is commonly denoted as ''s'' β ''t''. Intuitively, a sequence of narrowing steps ''t''<sub>1</sub> β ''t''<sub>2</sub> β ... β ''t''<sub>''n''</sub> can be thought of as a sequence of rewrite steps ''t''<sub>1</sub> β ''t''<sub>2</sub> β ... β ''t''<sub>''n''</sub>, but with the initial term ''t''<sub>1</sub> being further and further instantiated, as necessary to make each of the used rules applicable. The [[#One-sided paramodulation|above]] example paramodulation computation corresponds to the following narrowing sequence ("β" indicating instantiation here): {| |- | ''app''( || ''x'' || ,''app''(''y'', || ''x'' || )) |- | || β || || β || || || || || || || || || || || || || || ''x'' β¦ ''v''<sub>2</sub>.''v''<sub>3</sub> |- | ''app''( || ''v''<sub>2</sub>.''v''<sub>3</sub> || ,''app''(''y'', || ''v''<sub>2</sub>.''v''<sub>3</sub> || )) || β || ''v''<sub>2</sub>.''app''(''v''<sub>3</sub>,''app''( || ''y'' || ,''v''<sub>2</sub>.''v''<sub>3</sub>)) |- | || || || || || || || β || || || || || || || || || || ''y'' β¦ ''nil'' |- | || || || || || || ''v''<sub>2</sub>.''app''(''v''<sub>3</sub>,''app''( || ''nil'' || ,''v''<sub>2</sub>.''v''<sub>3</sub>)) || β || ''v''<sub>2</sub>.''app''( || ''v''<sub>3</sub> || ,''v''<sub>2</sub>. || ''v''<sub>3</sub> || ) |- | || || || || || || || || || || || β || || β || || || || ''v''<sub>3</sub> β¦ ''nil'' |- | || || || || || || || || || || ''v''<sub>2</sub>.''app''( || ''nil'' || ,''v''<sub>2</sub>. || ''nil'' || ) || β || ''v''<sub>2</sub>.''v''<sub>2</sub>.''nil'' |} The last term, ''v''<sub>2</sub>.''v''<sub>2</sub>.''nil'' can be syntactically unified with the original right hand side term ''a''.''a''.''nil''. The ''narrowing lemma''<ref>{{cite book| author=Fay| chapter=First-Order Unification in an Equational Theory| title=Proc. 4th Workshop on Automated Deduction| year=1979| pages=161β167}}</ref> ensures that whenever an instance of a term ''s'' can be rewritten to a term ''t'' by a convergent term rewriting system, then ''s'' and ''t'' can be narrowed and rewritten to a term {{math|1=''s{{prime}}''}} and {{math|1=''t{{prime}}''}}, respectively, such that {{math|1=''t{{prime}}''}} is an instance of {{math|1=''s{{prime}}''}}. Formally: whenever {{math|1=''sΟ'' {{underset|∗|β}} ''t''}} holds for some substitution Ο, then there exist terms {{math|''s{{prime}}'', ''t{{prime}}''}} such that {{math|''s'' {{underset|∗|β}} ''s{{prime}}''}} and {{math|''t'' {{underset|∗|β}} ''t{{prime}}''}} and {{math|1=''s{{prime}}'' ''Ο'' = ''t{{prime}}''}} for some substitution Ο.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Unification (computer science)
(section)
Add topic