In logic, the scope of a quantifier or connective is the shortest formula in which it occurs, determining the range in the formula to which the quantifier or connective is applied. The notions of a free variable and bound variable are defined in terms of whether that formula is within the scope of a quantifier, and the notions of a and are defined in terms of whether a connective includes another within its scope.
The scope of a logical connective occurring within a formula is the smallest well-formed formula that contains the connective in question. The connective with the largest scope in a formula is called its dominant connective, main connective, main operator, major connective, or principal connective; a connective within the scope of another connective is said to be subordinate to it.
For instance, in the formula , the dominant connective is âÂÂ, and all other connectives are subordinate to it; the â is subordinate to the â¨, but not to the â§; the first ì is also subordinate to the â¨, but not to the âÂÂ; the second ì is subordinate to the â§, but not to the ⨠or the âÂÂ; and the third ì is subordinate to the second ì, as well as to the â§, but not to the ⨠or the âÂÂ. If an order of precedence is adopted for the connectives, viz., with ì applying first, then â§ and â¨, then âÂÂ, and finally âÂÂ, this formula may be written in the less parenthesized form , which some may find easier to read.
The scope of a quantifier is the part of a logical expression over which the quantifier exerts control. It is the shortest full sentence written right after the quantifier, often in parentheses; some authors describe this as including the variable written right after the universal or existential quantifier. In the formula , for example, (or ) is the scope of the quantifier (or ).
This gives rise to the following definitions: