Variables and LanguageObject language and meta-languageAre there some kind of “multialgebras” with terms...

What was required to accept "troll"?

Does "Dominei" mean something?

Word describing multiple paths to the same abstract outcome

Lightning Web Component - do I need to track changes for every single input field in a form

How to deal with or prevent idle in the test team?

My boss asked me to take a one-day class, then signs it up as a day off

Why is delta-v is the most useful quantity for planning space travel?

What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?

Is there a problem with hiding "forgot password" until it's needed?

Who must act to prevent Brexit on March 29th?

Is there enough fresh water in the world to eradicate the drinking water crisis?

Simple image editor tool to draw a simple box/rectangle in an existing image

Can I create an upright 7-foot × 5-foot wall with the Minor Illusion spell?

What if somebody invests in my application?

Lifted its hind leg on or lifted its hind leg towards?

Why are all the doors on Ferenginar (the Ferengi home world) far shorter than the average Ferengi?

Did US corporations pay demonstrators in the German demonstrations against article 13?

For airliners, what prevents wing strikes on landing in bad weather?

Calculating the number of days between 2 dates in Excel

How to color a zone in Tikz

Can the harmonic series explain the origin of the major scale?

Can a malicious addon access internet history and such in chrome/firefox?

Are taller landing gear bad for aircraft, particulary large airliners?

Do all polymers contain either carbon or silicon?



Variables and Language


Object language and meta-languageAre there some kind of “multialgebras” with terms or equations, where an operation can result with different values in different places?Logical implicationAn implication for the real numbers given decidability on formal systems .What is a counterexample in a formalized setting of mathematicsTransfinite Cardinals and Expressive PowerFoundations of math and primitive terms leading to Russells paradoxFirst-order logic where constants play the role of variablesConnection between interpretation, variable assignment and truth valuation.Free variables, parameters, dummy names — what policy to choose?













0












$begingroup$


I've been thinking lately about the kind of language we use when doing math involving variables. Consider a typical variable defining statement:



"Let x = 2."



If we try to parse this statement literally, 'x' is the name of some object we are letting equal 2. However, if 'x' is already the name of something (even if we don't know the exact object it is the name of), we get nonsense. For example, if 'x' is the name of the country Canada, then the let statement becomes



"Let Canada = 2,"



which is nonsense. We could also try to interpret 'x' as the pronoun 'it,' which leads to



"Let it = 2,"



but this is also problematic because pronouns in the English language (to the best of my knowledge) are never bound explicitly (for example, in the sentence "I cannot remember this equation because it has too many terms," the pronoun 'it' gets bound by context to 'this equation').



There are numerous other places in mathematics where trying to interpret a variable literally as a noun or pronoun leads to problems. For instance, the sentence



"If $x$ increases, then $x^{-1}$ decreases,"



suggests that 'x' is the name of some object that is truly capable of change. However, objects like this do not exist in mathematics, e.g. the number 1 is always 1, has always been 1, and never ceases to be 1.



Further examples arise when trying to parse statements involving the quantifiers $forall$ and $exists$.



My question: (1) How exactly should we understand variables? Can we formalize any further our intuition that they are symbols that may stand for any object?
(2) Given (1), how do we properly incorporate variables into our everyday language so that all of our mathematical statements have clear, unambiguous meanings?










share|cite|improve this question









$endgroup$












  • $begingroup$
    A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:37










  • $begingroup$
    In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:40
















0












$begingroup$


I've been thinking lately about the kind of language we use when doing math involving variables. Consider a typical variable defining statement:



"Let x = 2."



If we try to parse this statement literally, 'x' is the name of some object we are letting equal 2. However, if 'x' is already the name of something (even if we don't know the exact object it is the name of), we get nonsense. For example, if 'x' is the name of the country Canada, then the let statement becomes



"Let Canada = 2,"



which is nonsense. We could also try to interpret 'x' as the pronoun 'it,' which leads to



"Let it = 2,"



but this is also problematic because pronouns in the English language (to the best of my knowledge) are never bound explicitly (for example, in the sentence "I cannot remember this equation because it has too many terms," the pronoun 'it' gets bound by context to 'this equation').



There are numerous other places in mathematics where trying to interpret a variable literally as a noun or pronoun leads to problems. For instance, the sentence



"If $x$ increases, then $x^{-1}$ decreases,"



suggests that 'x' is the name of some object that is truly capable of change. However, objects like this do not exist in mathematics, e.g. the number 1 is always 1, has always been 1, and never ceases to be 1.



Further examples arise when trying to parse statements involving the quantifiers $forall$ and $exists$.



My question: (1) How exactly should we understand variables? Can we formalize any further our intuition that they are symbols that may stand for any object?
(2) Given (1), how do we properly incorporate variables into our everyday language so that all of our mathematical statements have clear, unambiguous meanings?










share|cite|improve this question









$endgroup$












  • $begingroup$
    A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:37










  • $begingroup$
    In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:40














0












0








0





$begingroup$


I've been thinking lately about the kind of language we use when doing math involving variables. Consider a typical variable defining statement:



"Let x = 2."



If we try to parse this statement literally, 'x' is the name of some object we are letting equal 2. However, if 'x' is already the name of something (even if we don't know the exact object it is the name of), we get nonsense. For example, if 'x' is the name of the country Canada, then the let statement becomes



"Let Canada = 2,"



which is nonsense. We could also try to interpret 'x' as the pronoun 'it,' which leads to



"Let it = 2,"



but this is also problematic because pronouns in the English language (to the best of my knowledge) are never bound explicitly (for example, in the sentence "I cannot remember this equation because it has too many terms," the pronoun 'it' gets bound by context to 'this equation').



There are numerous other places in mathematics where trying to interpret a variable literally as a noun or pronoun leads to problems. For instance, the sentence



"If $x$ increases, then $x^{-1}$ decreases,"



suggests that 'x' is the name of some object that is truly capable of change. However, objects like this do not exist in mathematics, e.g. the number 1 is always 1, has always been 1, and never ceases to be 1.



Further examples arise when trying to parse statements involving the quantifiers $forall$ and $exists$.



My question: (1) How exactly should we understand variables? Can we formalize any further our intuition that they are symbols that may stand for any object?
(2) Given (1), how do we properly incorporate variables into our everyday language so that all of our mathematical statements have clear, unambiguous meanings?










share|cite|improve this question









$endgroup$




I've been thinking lately about the kind of language we use when doing math involving variables. Consider a typical variable defining statement:



"Let x = 2."



If we try to parse this statement literally, 'x' is the name of some object we are letting equal 2. However, if 'x' is already the name of something (even if we don't know the exact object it is the name of), we get nonsense. For example, if 'x' is the name of the country Canada, then the let statement becomes



"Let Canada = 2,"



which is nonsense. We could also try to interpret 'x' as the pronoun 'it,' which leads to



"Let it = 2,"



but this is also problematic because pronouns in the English language (to the best of my knowledge) are never bound explicitly (for example, in the sentence "I cannot remember this equation because it has too many terms," the pronoun 'it' gets bound by context to 'this equation').



There are numerous other places in mathematics where trying to interpret a variable literally as a noun or pronoun leads to problems. For instance, the sentence



"If $x$ increases, then $x^{-1}$ decreases,"



suggests that 'x' is the name of some object that is truly capable of change. However, objects like this do not exist in mathematics, e.g. the number 1 is always 1, has always been 1, and never ceases to be 1.



Further examples arise when trying to parse statements involving the quantifiers $forall$ and $exists$.



My question: (1) How exactly should we understand variables? Can we formalize any further our intuition that they are symbols that may stand for any object?
(2) Given (1), how do we properly incorporate variables into our everyday language so that all of our mathematical statements have clear, unambiguous meanings?







algebra-precalculus logic formal-languages philosophy






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Mar 14 at 21:05









Fourier's MonsterFourier's Monster

41




41












  • $begingroup$
    A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:37










  • $begingroup$
    In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:40


















  • $begingroup$
    A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:37










  • $begingroup$
    In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
    $endgroup$
    – Mauro ALLEGRANZA
    Mar 15 at 7:40
















$begingroup$
A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
$endgroup$
– Mauro ALLEGRANZA
Mar 15 at 7:37




$begingroup$
A variable $x$ occurring in a formula like $x=2$ acts as a pronoun in natural Language. When we assert "it is red", we assume that there is some context such that the listener can understand what "it" refers to: for example, pointing with my finger to the red pen on my desk.
$endgroup$
– Mauro ALLEGRANZA
Mar 15 at 7:37












$begingroup$
In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
$endgroup$
– Mauro ALLEGRANZA
Mar 15 at 7:40




$begingroup$
In the same way, the formula $x=2$ must be understood in the context. In math, it is often customary to omit the leading universal quantifiers (for example in stating axioms). If so, the formula is $forall x (x=2)$. In the context of predicate logic, there are some "mechanism" (like e.g. variable assignment functions) to assign "temporary meaning" to free variables of formulas (i.e. a formal mechanism to provide a "context").
$endgroup$
– Mauro ALLEGRANZA
Mar 15 at 7:40










2 Answers
2






active

oldest

votes


















2












$begingroup$

(1) natural language doesn't really have variables. The nearest you can get to "let x = 2" is to say something like "let's think of the number 2 and, for convenience, let's refer to it as x". So after you've said that "x" acts as a noun denoting 2.



(2) In statements like "if $x$ increases then $x^{-1}$" decreases, we are using a standard mathematical convention whereby a formula like $x$ or $x^{-1}$ is interpreted as a function of the variable $x$ ($x mapsto x$ or $x mapsto x^{-1}$). It then makes sense to talk about the function as increasing or decreasing.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
    $endgroup$
    – Fourier's Monster
    Mar 15 at 0:00










  • $begingroup$
    In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
    $endgroup$
    – Rob Arthan
    Mar 16 at 22:24





















0












$begingroup$

Variables are a way for us to abstract over things. If we can make a statement for all humans, instead of repeating the statement for each human, we can abstract over them with a variable and say "Let $x$ be a human, then [...]" in a succinct and clear way.



From the context in which one uses a variable it is clear what that variable ranges over. That range constitutes the domain of a variable. For example, in the previous statement it was clear (explicitly stated) that $x$ ranges over all humans ("Let $x$ be a human"). Sometimes, though, the domain is not explicitly stated. In those cases you can assume the most general domain that you can guess. In your example ("Let $x = 2$"), one guesses that $x$ is a number and can not be a cookie.



Regarding your 2nd question, in math we use nominal representation of variables: we represent variables with names, like "$x$", "$y$" or "$it$". In the nominal representation, there is no other way to avoid the problem you describe than to keep track of all the names of the variables that we have introduced in the context. Things can get complicated when variables have local scopes, which means that you can introduce a variable $x$ and later discharge it, allowing you to re-use the name $x$ for another variable later on.



Using names to represent variables, makes it easy for us to refer to variables: we just use their names. In the context of formal languages, another way to represent variables is by numbers (de Bruijn indices, nameless representation). If we would use such a representation in natural language (totally not recommended), referring to a variable would translate to something like "the first/second/... variable I introduced". This representation ensures that no common name between two different variables can occur, but it takes a lot of counting to refer to them and is not recommended for humans.






share|cite|improve this answer











$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3148508%2fvariables-and-language%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2












    $begingroup$

    (1) natural language doesn't really have variables. The nearest you can get to "let x = 2" is to say something like "let's think of the number 2 and, for convenience, let's refer to it as x". So after you've said that "x" acts as a noun denoting 2.



    (2) In statements like "if $x$ increases then $x^{-1}$" decreases, we are using a standard mathematical convention whereby a formula like $x$ or $x^{-1}$ is interpreted as a function of the variable $x$ ($x mapsto x$ or $x mapsto x^{-1}$). It then makes sense to talk about the function as increasing or decreasing.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
      $endgroup$
      – Fourier's Monster
      Mar 15 at 0:00










    • $begingroup$
      In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
      $endgroup$
      – Rob Arthan
      Mar 16 at 22:24


















    2












    $begingroup$

    (1) natural language doesn't really have variables. The nearest you can get to "let x = 2" is to say something like "let's think of the number 2 and, for convenience, let's refer to it as x". So after you've said that "x" acts as a noun denoting 2.



    (2) In statements like "if $x$ increases then $x^{-1}$" decreases, we are using a standard mathematical convention whereby a formula like $x$ or $x^{-1}$ is interpreted as a function of the variable $x$ ($x mapsto x$ or $x mapsto x^{-1}$). It then makes sense to talk about the function as increasing or decreasing.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
      $endgroup$
      – Fourier's Monster
      Mar 15 at 0:00










    • $begingroup$
      In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
      $endgroup$
      – Rob Arthan
      Mar 16 at 22:24
















    2












    2








    2





    $begingroup$

    (1) natural language doesn't really have variables. The nearest you can get to "let x = 2" is to say something like "let's think of the number 2 and, for convenience, let's refer to it as x". So after you've said that "x" acts as a noun denoting 2.



    (2) In statements like "if $x$ increases then $x^{-1}$" decreases, we are using a standard mathematical convention whereby a formula like $x$ or $x^{-1}$ is interpreted as a function of the variable $x$ ($x mapsto x$ or $x mapsto x^{-1}$). It then makes sense to talk about the function as increasing or decreasing.






    share|cite|improve this answer









    $endgroup$



    (1) natural language doesn't really have variables. The nearest you can get to "let x = 2" is to say something like "let's think of the number 2 and, for convenience, let's refer to it as x". So after you've said that "x" acts as a noun denoting 2.



    (2) In statements like "if $x$ increases then $x^{-1}$" decreases, we are using a standard mathematical convention whereby a formula like $x$ or $x^{-1}$ is interpreted as a function of the variable $x$ ($x mapsto x$ or $x mapsto x^{-1}$). It then makes sense to talk about the function as increasing or decreasing.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Mar 14 at 21:41









    Rob ArthanRob Arthan

    29.5k42967




    29.5k42967












    • $begingroup$
      I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
      $endgroup$
      – Fourier's Monster
      Mar 15 at 0:00










    • $begingroup$
      In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
      $endgroup$
      – Rob Arthan
      Mar 16 at 22:24




















    • $begingroup$
      I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
      $endgroup$
      – Fourier's Monster
      Mar 15 at 0:00










    • $begingroup$
      In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
      $endgroup$
      – Rob Arthan
      Mar 16 at 22:24


















    $begingroup$
    I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
    $endgroup$
    – Fourier's Monster
    Mar 15 at 0:00




    $begingroup$
    I think the issue is that in natural language we rarely need to distinguish between how we denote an object and the object itself. In the present context, this means distinguishing between a variable (which is a symbol, such as 'x') and its value (the actual object the variable denotes). In "Let x = 2", it makes no sense to regard 'x' as being a name with a referent. However, if I write "Let the value of x = 2", then there is no ambiguity. In any sentence involving x, you could replace "x" by a phrase tantamount to "the value of x" and have a perfectly clear statement in natural language.
    $endgroup$
    – Fourier's Monster
    Mar 15 at 0:00












    $begingroup$
    In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
    $endgroup$
    – Rob Arthan
    Mar 16 at 22:24






    $begingroup$
    In natural and logical languages we always distinguish between denotations and the objects they denote: an elephant is not a word or a constant symbol. Natural languages don't really have anything like variables: the closest we get in English is pronouns, which act like variables but with a fixed repertoire of variable names "I", "you", "he", "she" etc. and with the denotation of the variable fixed by the context. If you write "let x = 2" or "let the value of x = 2". then you have moved outside natural language, and I think the best way of paraphrasing the meaning is as in my answer.
    $endgroup$
    – Rob Arthan
    Mar 16 at 22:24













    0












    $begingroup$

    Variables are a way for us to abstract over things. If we can make a statement for all humans, instead of repeating the statement for each human, we can abstract over them with a variable and say "Let $x$ be a human, then [...]" in a succinct and clear way.



    From the context in which one uses a variable it is clear what that variable ranges over. That range constitutes the domain of a variable. For example, in the previous statement it was clear (explicitly stated) that $x$ ranges over all humans ("Let $x$ be a human"). Sometimes, though, the domain is not explicitly stated. In those cases you can assume the most general domain that you can guess. In your example ("Let $x = 2$"), one guesses that $x$ is a number and can not be a cookie.



    Regarding your 2nd question, in math we use nominal representation of variables: we represent variables with names, like "$x$", "$y$" or "$it$". In the nominal representation, there is no other way to avoid the problem you describe than to keep track of all the names of the variables that we have introduced in the context. Things can get complicated when variables have local scopes, which means that you can introduce a variable $x$ and later discharge it, allowing you to re-use the name $x$ for another variable later on.



    Using names to represent variables, makes it easy for us to refer to variables: we just use their names. In the context of formal languages, another way to represent variables is by numbers (de Bruijn indices, nameless representation). If we would use such a representation in natural language (totally not recommended), referring to a variable would translate to something like "the first/second/... variable I introduced". This representation ensures that no common name between two different variables can occur, but it takes a lot of counting to refer to them and is not recommended for humans.






    share|cite|improve this answer











    $endgroup$


















      0












      $begingroup$

      Variables are a way for us to abstract over things. If we can make a statement for all humans, instead of repeating the statement for each human, we can abstract over them with a variable and say "Let $x$ be a human, then [...]" in a succinct and clear way.



      From the context in which one uses a variable it is clear what that variable ranges over. That range constitutes the domain of a variable. For example, in the previous statement it was clear (explicitly stated) that $x$ ranges over all humans ("Let $x$ be a human"). Sometimes, though, the domain is not explicitly stated. In those cases you can assume the most general domain that you can guess. In your example ("Let $x = 2$"), one guesses that $x$ is a number and can not be a cookie.



      Regarding your 2nd question, in math we use nominal representation of variables: we represent variables with names, like "$x$", "$y$" or "$it$". In the nominal representation, there is no other way to avoid the problem you describe than to keep track of all the names of the variables that we have introduced in the context. Things can get complicated when variables have local scopes, which means that you can introduce a variable $x$ and later discharge it, allowing you to re-use the name $x$ for another variable later on.



      Using names to represent variables, makes it easy for us to refer to variables: we just use their names. In the context of formal languages, another way to represent variables is by numbers (de Bruijn indices, nameless representation). If we would use such a representation in natural language (totally not recommended), referring to a variable would translate to something like "the first/second/... variable I introduced". This representation ensures that no common name between two different variables can occur, but it takes a lot of counting to refer to them and is not recommended for humans.






      share|cite|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        Variables are a way for us to abstract over things. If we can make a statement for all humans, instead of repeating the statement for each human, we can abstract over them with a variable and say "Let $x$ be a human, then [...]" in a succinct and clear way.



        From the context in which one uses a variable it is clear what that variable ranges over. That range constitutes the domain of a variable. For example, in the previous statement it was clear (explicitly stated) that $x$ ranges over all humans ("Let $x$ be a human"). Sometimes, though, the domain is not explicitly stated. In those cases you can assume the most general domain that you can guess. In your example ("Let $x = 2$"), one guesses that $x$ is a number and can not be a cookie.



        Regarding your 2nd question, in math we use nominal representation of variables: we represent variables with names, like "$x$", "$y$" or "$it$". In the nominal representation, there is no other way to avoid the problem you describe than to keep track of all the names of the variables that we have introduced in the context. Things can get complicated when variables have local scopes, which means that you can introduce a variable $x$ and later discharge it, allowing you to re-use the name $x$ for another variable later on.



        Using names to represent variables, makes it easy for us to refer to variables: we just use their names. In the context of formal languages, another way to represent variables is by numbers (de Bruijn indices, nameless representation). If we would use such a representation in natural language (totally not recommended), referring to a variable would translate to something like "the first/second/... variable I introduced". This representation ensures that no common name between two different variables can occur, but it takes a lot of counting to refer to them and is not recommended for humans.






        share|cite|improve this answer











        $endgroup$



        Variables are a way for us to abstract over things. If we can make a statement for all humans, instead of repeating the statement for each human, we can abstract over them with a variable and say "Let $x$ be a human, then [...]" in a succinct and clear way.



        From the context in which one uses a variable it is clear what that variable ranges over. That range constitutes the domain of a variable. For example, in the previous statement it was clear (explicitly stated) that $x$ ranges over all humans ("Let $x$ be a human"). Sometimes, though, the domain is not explicitly stated. In those cases you can assume the most general domain that you can guess. In your example ("Let $x = 2$"), one guesses that $x$ is a number and can not be a cookie.



        Regarding your 2nd question, in math we use nominal representation of variables: we represent variables with names, like "$x$", "$y$" or "$it$". In the nominal representation, there is no other way to avoid the problem you describe than to keep track of all the names of the variables that we have introduced in the context. Things can get complicated when variables have local scopes, which means that you can introduce a variable $x$ and later discharge it, allowing you to re-use the name $x$ for another variable later on.



        Using names to represent variables, makes it easy for us to refer to variables: we just use their names. In the context of formal languages, another way to represent variables is by numbers (de Bruijn indices, nameless representation). If we would use such a representation in natural language (totally not recommended), referring to a variable would translate to something like "the first/second/... variable I introduced". This representation ensures that no common name between two different variables can occur, but it takes a lot of counting to refer to them and is not recommended for humans.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Mar 14 at 23:18

























        answered Mar 14 at 22:47









        frabalafrabala

        2,3541122




        2,3541122






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3148508%2fvariables-and-language%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

            Fil:Tokke komm.svg

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?