Understanding the Universal Quantifier and Variables

  • Thread starter cra18
  • Start date
  • Tags
    Universal
In summary: If you want to focus on the computer analogy, then you're right that a variable in computer code only represents a particular number for the duration of the for loop. But that's really just an analogy. The analogy doesn't actually reflect what happens in reality. In summary, a variable is a placeholder for any of a set of numbers.
  • #1
cra18
11
0
(I hope this question is in the proper place.)

I am confused about what effect the universal quantifier has on a variable. My understanding of variables is very simplistic: I view a variable as simply a placeholder for any of a set of possible values, where that set is the universe of discourse for the variable. If I consider the function definition
[tex]
\begin{equation}
\forall x\in\mathbb{Z} (f(x)=x^2),
\end{equation}
[/tex]
I make sense of this statement by invoking the "for loop" analogy from computer science: for the first element in [itex] \mathbb{Z} [/itex], [itex] x [/itex] is equated with it, and the defining function equation is then evaluated, which makes sense to do because [itex] x [/itex] has been prescribed particular meaning --- [itex] x [/itex] has temporarily been made into a determined constant for the duration of the iteration. After the evaluation, [itex] x [/itex] is equated with the next number in [itex] \mathbb{Z} [/itex], and the process continues until [itex] f [/itex] has been defined for all values in [itex] \mathbb{Z} [/itex].

Given the above definition of a variable, the [itex] x [/itex] in the above process doesn't seem to function as a variable at all. There is never a case where [itex] x [/itex] is a placeholder for any more or any less than one particular number. There is never a case where [itex] x [/itex] acts as anything other than a constant. (I suppose I am viewing the [itex] x [/itex] as being a new variable upon each iteration, since it isn't as though the past history of the values [itex] x [/itex] has taken is relevant.)

Is my understanding of the universal quantifier incorrect? Is there a better way to understand the universal quantifier? My confusion stems from the fact that I encounter such strong emphasis on a variable as being a placeholder for any of a SET of possible numbers, but am having a hard time coming up with an example of such a thing that actually has any meaning (i.e., a truth value).
 
Physics news on Phys.org
  • #2
Your understanding is essentially correct. Since a universal quantifier can apply to more than a countable number of objects, it isn't completely accurate to think of a loop in a computer program, which necessarily loops over a countable set.

The saying that a variable"is a placeholder" isn't a precise mathematical statement. If you heard someone that that a variable is a "placeholder for a set of values" , that was not a formal definition. Of course, It is possible for a single variable (like "x") to represent a set, but whoever said that a variable was a placeholder for a set of numbers probably meant to express the same idea as your concept.

In mathematical literature, the universal quantifier is often "understood" instead of be written explicitly. For example if someone declares "x + y = y + x", the intended meaning usually is "for each number x, for each number y ...".

There is also the mysterious form of logical proof called "universal generalization". For example, a proof might begin "let epsilon > 0 be given.". The variable epsilon is then treated as a specific number. If something is shown to be true for epsilon then the conclusion is "We have show that for each epsilon > 0 that ..." because the epsilon, although treated as a specific number had no special properties except that it was a number > 0.

Interpreting variables in computer code is possible because there are formal ways to define the "scope" of variables. In mathematical literature, sometimes "x" means something in one sentence and something different in the next sentence, or next page, or next chapter. If mathematics was written with a strict syntax then quantification like "for each x " and "there exists an x" would be used with syntax that showed the scope of the statement about x. In symbolic logic, this is done. But most mathematics is written more informally.
 
  • #3
The saying that a variable"is a placeholder" isn't a precise mathematical statement. If you heard someone that that a variable is a "placeholder for a set of values" , that was not a formal definition. Of course, It is possible for a single variable (like "x") to represent a set, but whoever said that a variable was a placeholder for a set of numbers probably meant to express the same idea as your concept.

I never said that a variable is a placeholder for a set. I said that a variable is a placeholder for any of a set of numbers --- for any element of some set of numbers. This is a definition I decided upon because of its simplicity, and because the alternative concept of a "general number" makes no sense to me, but frankly I have no idea how to define what a variable is. This problem is aggravated by the fact that, when I look at equations like
[tex]
\begin{equation}
\forall x\in\mathbb{R}\left(g(x)=\sum_{i=1}^x \varphi(i)\right)
\end{equation}
[/tex]
or
[tex]
\begin{equation}
\forall x\in\mathbb{R}\left( f'(x) = \lim_{h\to 0} \frac{f(x+h) - f(x)}{h}\right)
\end{equation}
[/tex]
or
[tex]
\begin{equation}
\forall x\in\mathbb{R}\left(F(x) = \int f(x)\,dx\right)
\end{equation}
[/tex]
none of the variables seem to vary at all in any meaningful way, if each element of [itex] \mathbb{R} [/itex] is equated with [itex] x [/itex] in turn and the expression evaluated. And yes, I am aware that the universal quantifiers are rarely if ever written out like this, but they are most certainly implicitly there.
 
  • #4
cra18 said:
I never said that a variable is a placeholder for a set. I said that a variable is a placeholder for any of a set of numbers
Hmm...

--- for any element of some set of numbers.

Ok. There is a difference between "for any set" and "for any element of some set".


This is a definition I decided upon because of its simplicity
I thought you preferred the idea of comparing "for each" to a loop statement. I think that's a better idea than using the terminology "placeholder".


, and because the alternative concept of a "general number" makes no sense to me, but frankly I have no idea how to define what a variable is.


Trying to answer the question "what is a variable?" can get into the same bull session type discussions as threads on "what is a differential? "! A rigorous definition of a variable is only possible if you establish exact rules for syntax and specify what a "well formed formula" is. It would be rather like defining what a (legal) variable is in a computer language and it wouldn't necessarily help with everyday math.

I don't know what you mean by a "general number" and I don't see that as the only alternative definition for a variable. I suggest you take the pragmatic approach. If you are comparing two alternative definitions for a variable, ask "What practical difference would it make if I used one definition instead of the other?". Try to give an example where the truth or falsity of a statement would change depending on which definition you used. If you can't find such an example then the two definitions you are using don't make any practical difference. They might amount to the same thing or neither might be precise enough to have any practical interpretation.


This problem is aggravated by the fact that, when I look at equations like
[tex]
\begin{equation}
\forall x\in\mathbb{R}\left(g(x)=\sum_{i=1}^x \varphi(i)\right)
\end{equation}
[/tex]

(Technically you should call those "statements". An equation states an equality that is not necessarily true for each possible value of its variables. The values of the variables that make the equation a true statement are its solutions. )
 
  • #5
One way to look at it is that ##\forall x \; P(x)## means
##P(x_1) \land P(x_2) \land P(x_3) \land ...##, while ##\exists x \; P(x)## means
##P(x_1) \lor P(x_2) \lor P(x_3) \lor ...##. One can't say x is a constant, x ranges over all its values. The correct term is that x is a bound variable.

This is my preferred explanation.
 

What is the Universal Quantifier?

The Universal Quantifier, symbolized by ∀, is a logical quantifier that indicates that a statement applies to all elements in a given set. It is used in predicate logic to express universal statements, such as "all", "every", or "for every".

How is the Universal Quantifier used in math and science?

In math and science, the Universal Quantifier is used to make general statements about a set of objects or elements. For example, in mathematics, the statement "for all x, x > 0" means that every element x in a given set is greater than 0. In science, it is used to make generalizations about a particular theory or phenomenon.

What are the two main types of variables in the Universal Quantifier?

The two main types of variables in the Universal Quantifier are bound variables and free variables. Bound variables are used within the scope of the quantifier and are assigned a specific value, while free variables are not assigned a value and can be used to make open statements.

What is the difference between the Universal Quantifier and the Existential Quantifier?

The Universal Quantifier (∀) and the Existential Quantifier (∃) are both logical quantifiers, but they have different meanings. The Universal Quantifier indicates that a statement applies to all elements in a given set, while the Existential Quantifier indicates that a statement applies to at least one element in a given set.

How does the Universal Quantifier relate to logical statements and proofs?

In logical statements and proofs, the Universal Quantifier is used to make general statements that can be proven true or false. It is also used in mathematical proofs to show that a statement applies to all elements in a given set, providing a strong basis for the proof's validity.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
30
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
424
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
874
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
10
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
Back
Top