Fresh variable

This is an old revision of this page, as edited by Jochen Burghardt (talk | contribs) at 18:28, 28 June 2023 (added Category:Computer algebra using HotCat). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In formal reasoning, in particular in mathematical logic, computer algebra, and automated theorem proving, a fresh variable is a variable that did not occur in the context considered so far.[citation needed]

Exampe

For example, in term rewriting, before applying a rule   to a given term  , each variable in   should be replaced by a fresh one to avoid clashes with variables occurring in  .[citation needed] Given the rule

 

and the term

 ,

attempting to find a matching substitution of   within   will fail, since   cannot match  . However, if the rule is replaced by a fresh copy[1]

 

before, matching will succeed with the answer substitution  .

References

  1. ^ that is, a copy with each variable consistently replace by a fresh variable