请输入您要查询的字词:

 

单词 free variable
释义
free variable

Computer
  • In an expression, a variable whose value must be known in order for the whole expression to be evaluated. The idea depends on distinguishing different ways in which variables can occur in expressions; it arises in connection with all variable-binding operators, such as the logical quantifiers and function symbols. It can also be seen as a formalization of the idea of global and local variables in programs.

    For example, in the following lambda expression,

    λf.g(f(λx.x),x,y),
    the variable x occurs three times. The first occurrence, since it immediately follows a λ‎, introduces a new ‘binding’ of x, and is therefore called a binding occurrence. The second occurrence of x falls inside the ‘scope’ of this binding and is therefore called a bound occurrence. The third x is not within the scope of any such binding and is therefore called a free occurrence. Equally, the variable f has a binding occurrence and a bound occurrence, while g and y just have one free occurrence each. Since only x, y, and g have free occurrences, they are referred to as the free variables of the expression. The value of the whole expression then depends on what values are given to these free occurrences.

    Note that freeness depends on the expression under consideration; thus, although f does not occur free in the whole expression above, it does so in the subexpression

    g(f(λx.x),x,y).


Philosophy
  • A variable not bound by a quantifier.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/7/1 2:38:56