Equivalence of defining neighborhood as an open set or as a closed set in a special case












-1














Let continuous $f:Xtomathbb R$. $X$ is an interval of $mathbb R$.



Are the following two statements equivalent?



1) For almost every $xin X$ $exists$ open interval (neighborhood) $Ini x$ s.t. $f$ is either locally convex or locally concave on $I$. (i.e. only countable number of $xin X$ does not have such neighborhood).



$f$ is locally convex on $I$ if $forall x,yin I$, we have $f(lambda x+(1-lambda)y)leq f(lambda x)+f((1-lambda)y)$



(In another word, epi$f(I)$ is a convex set.)



2) $forall xin X$ $exists$ (non-singleton) closed interval $Ini x$ s.t. $f$ is either locally convex or locally concave over $I$.



If they are equivalent, then, in general, why people tend to use open set rather than closed set to define a neighborhood?










share|cite|improve this question
























  • What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
    – 0x539
    Dec 26 '18 at 23:19










  • @0x539 Thank you very much for the note. You are right. The question is clarified.
    – High GPA
    Dec 26 '18 at 23:41










  • What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
    – user587192
    Dec 26 '18 at 23:45












  • @user587192 How about this? For simplicity let's just consider the compact case at first.
    – High GPA
    Dec 26 '18 at 23:47






  • 1




    @mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
    – High GPA
    Dec 27 '18 at 1:14
















-1














Let continuous $f:Xtomathbb R$. $X$ is an interval of $mathbb R$.



Are the following two statements equivalent?



1) For almost every $xin X$ $exists$ open interval (neighborhood) $Ini x$ s.t. $f$ is either locally convex or locally concave on $I$. (i.e. only countable number of $xin X$ does not have such neighborhood).



$f$ is locally convex on $I$ if $forall x,yin I$, we have $f(lambda x+(1-lambda)y)leq f(lambda x)+f((1-lambda)y)$



(In another word, epi$f(I)$ is a convex set.)



2) $forall xin X$ $exists$ (non-singleton) closed interval $Ini x$ s.t. $f$ is either locally convex or locally concave over $I$.



If they are equivalent, then, in general, why people tend to use open set rather than closed set to define a neighborhood?










share|cite|improve this question
























  • What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
    – 0x539
    Dec 26 '18 at 23:19










  • @0x539 Thank you very much for the note. You are right. The question is clarified.
    – High GPA
    Dec 26 '18 at 23:41










  • What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
    – user587192
    Dec 26 '18 at 23:45












  • @user587192 How about this? For simplicity let's just consider the compact case at first.
    – High GPA
    Dec 26 '18 at 23:47






  • 1




    @mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
    – High GPA
    Dec 27 '18 at 1:14














-1












-1








-1







Let continuous $f:Xtomathbb R$. $X$ is an interval of $mathbb R$.



Are the following two statements equivalent?



1) For almost every $xin X$ $exists$ open interval (neighborhood) $Ini x$ s.t. $f$ is either locally convex or locally concave on $I$. (i.e. only countable number of $xin X$ does not have such neighborhood).



$f$ is locally convex on $I$ if $forall x,yin I$, we have $f(lambda x+(1-lambda)y)leq f(lambda x)+f((1-lambda)y)$



(In another word, epi$f(I)$ is a convex set.)



2) $forall xin X$ $exists$ (non-singleton) closed interval $Ini x$ s.t. $f$ is either locally convex or locally concave over $I$.



If they are equivalent, then, in general, why people tend to use open set rather than closed set to define a neighborhood?










share|cite|improve this question















Let continuous $f:Xtomathbb R$. $X$ is an interval of $mathbb R$.



Are the following two statements equivalent?



1) For almost every $xin X$ $exists$ open interval (neighborhood) $Ini x$ s.t. $f$ is either locally convex or locally concave on $I$. (i.e. only countable number of $xin X$ does not have such neighborhood).



$f$ is locally convex on $I$ if $forall x,yin I$, we have $f(lambda x+(1-lambda)y)leq f(lambda x)+f((1-lambda)y)$



(In another word, epi$f(I)$ is a convex set.)



2) $forall xin X$ $exists$ (non-singleton) closed interval $Ini x$ s.t. $f$ is either locally convex or locally concave over $I$.



If they are equivalent, then, in general, why people tend to use open set rather than closed set to define a neighborhood?







real-analysis general-topology analysis continuity convex-analysis






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 27 '18 at 1:14







High GPA

















asked Dec 26 '18 at 23:00









High GPAHigh GPA

881419




881419












  • What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
    – 0x539
    Dec 26 '18 at 23:19










  • @0x539 Thank you very much for the note. You are right. The question is clarified.
    – High GPA
    Dec 26 '18 at 23:41










  • What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
    – user587192
    Dec 26 '18 at 23:45












  • @user587192 How about this? For simplicity let's just consider the compact case at first.
    – High GPA
    Dec 26 '18 at 23:47






  • 1




    @mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
    – High GPA
    Dec 27 '18 at 1:14


















  • What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
    – 0x539
    Dec 26 '18 at 23:19










  • @0x539 Thank you very much for the note. You are right. The question is clarified.
    – High GPA
    Dec 26 '18 at 23:41










  • What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
    – user587192
    Dec 26 '18 at 23:45












  • @user587192 How about this? For simplicity let's just consider the compact case at first.
    – High GPA
    Dec 26 '18 at 23:47






  • 1




    @mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
    – High GPA
    Dec 27 '18 at 1:14
















What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
– 0x539
Dec 26 '18 at 23:19




What do you mean by "locally convex"? Just that $f$ is convex on the corresponding interval?
– 0x539
Dec 26 '18 at 23:19












@0x539 Thank you very much for the note. You are right. The question is clarified.
– High GPA
Dec 26 '18 at 23:41




@0x539 Thank you very much for the note. You are right. The question is clarified.
– High GPA
Dec 26 '18 at 23:41












What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
– user587192
Dec 26 '18 at 23:45






What do you mean by "$X$ is an interval of $mathbb{R}$"? Can $X$ be any one of $[a,b]$, $[a,b)$, $(a,b)$ or $(a,b]$?
– user587192
Dec 26 '18 at 23:45














@user587192 How about this? For simplicity let's just consider the compact case at first.
– High GPA
Dec 26 '18 at 23:47




@user587192 How about this? For simplicity let's just consider the compact case at first.
– High GPA
Dec 26 '18 at 23:47




1




1




@mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
– High GPA
Dec 27 '18 at 1:14




@mathworker21 The specific case will help me understand the situation. I agree with you overall. I will edit the question to be more specific.
– High GPA
Dec 27 '18 at 1:14










1 Answer
1






active

oldest

votes


















1














$2Rightarrow 1$. Without loss of generality we can assume that $X$ is an open subset of $Bbb R$. Let $X_{conv}$ (resp. $X_{conc}$) bet a set of all $xin X$ such that there exists an open interval $Ini x$ s.t. $f$ is locally convex (resp. locally concave) over $I$. Assume to the contrary that (1) does not hold, that is a set $X’=Xsetminus(X_{conv}cup X_{conc})$ is uncountable. For a natural $n$ we call a point $xin X’$ an $frac 1n$-corner provided
$(x-frac 1n,x)cap X’=varnothing$ or $(x,x+frac 1n)cap X’=varnothing$. It is easy to check that among any three distinct $frac 1n$-corners we can find two with the distance between them bigger than $frac 1n$. This implies that the set of $frac 1n$-corners is countable, so there exists a point $xin X’$ which is not an $frac 1n$-corner for any natural $n$. By (2), there exists a (non-singleton) closed interval $I’ni x$ s.t. $f$ is either locally convex or locally concave over $I’$. Then $f$ is either locally convex or locally concave over an open interval $I=operatorname{int} I’$. But $X’cap Inevarnothing$, a contradiction.



$1notRightarrow 2$. Define a function $f:Bbb RtoBbb R$ as follows. Put $ f(x)=0$, if $x=0$ or $x=frac 1{2n}$, with $ninBbb Zsetminus{0}$ or $|x|ge 1$. For $kinBbb Ncup{0}$ put $ fleft(pmfrac 1{4k+1}right)= frac 1{4k+1}$ and $ fleft(pmfrac 1{4k+3}right)=-frac 1{4k+3}$. Extend $ f(x)$ piesewise-linearly to the remaining $xinBbb R$. Since $f$ is linear at $Bbb R$ but a countable closed set, it satifies (1). On the other hand, on any open interval $Ini 0$, $f$ has countably infinite many zeros, so $f$ is neither convex, nor concave on $I$.






why people tend to use open set rather than closed set to define a neighborhood?




I don’t see a relation of this with the previous. For me a choice to work with open or closed neighborhoods usually is a matter of convenience. Maybe, to work with open neighborhoods
is often more convenient than with closed these.



By the way, a closed interval containing $x$ is not its neighborhood, because a neighborhood of $x$ must contain $x$ in its interior.






share|cite|improve this answer





















    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%2f3053407%2fequivalence-of-defining-neighborhood-as-an-open-set-or-as-a-closed-set-in-a-spec%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    $2Rightarrow 1$. Without loss of generality we can assume that $X$ is an open subset of $Bbb R$. Let $X_{conv}$ (resp. $X_{conc}$) bet a set of all $xin X$ such that there exists an open interval $Ini x$ s.t. $f$ is locally convex (resp. locally concave) over $I$. Assume to the contrary that (1) does not hold, that is a set $X’=Xsetminus(X_{conv}cup X_{conc})$ is uncountable. For a natural $n$ we call a point $xin X’$ an $frac 1n$-corner provided
    $(x-frac 1n,x)cap X’=varnothing$ or $(x,x+frac 1n)cap X’=varnothing$. It is easy to check that among any three distinct $frac 1n$-corners we can find two with the distance between them bigger than $frac 1n$. This implies that the set of $frac 1n$-corners is countable, so there exists a point $xin X’$ which is not an $frac 1n$-corner for any natural $n$. By (2), there exists a (non-singleton) closed interval $I’ni x$ s.t. $f$ is either locally convex or locally concave over $I’$. Then $f$ is either locally convex or locally concave over an open interval $I=operatorname{int} I’$. But $X’cap Inevarnothing$, a contradiction.



    $1notRightarrow 2$. Define a function $f:Bbb RtoBbb R$ as follows. Put $ f(x)=0$, if $x=0$ or $x=frac 1{2n}$, with $ninBbb Zsetminus{0}$ or $|x|ge 1$. For $kinBbb Ncup{0}$ put $ fleft(pmfrac 1{4k+1}right)= frac 1{4k+1}$ and $ fleft(pmfrac 1{4k+3}right)=-frac 1{4k+3}$. Extend $ f(x)$ piesewise-linearly to the remaining $xinBbb R$. Since $f$ is linear at $Bbb R$ but a countable closed set, it satifies (1). On the other hand, on any open interval $Ini 0$, $f$ has countably infinite many zeros, so $f$ is neither convex, nor concave on $I$.






    why people tend to use open set rather than closed set to define a neighborhood?




    I don’t see a relation of this with the previous. For me a choice to work with open or closed neighborhoods usually is a matter of convenience. Maybe, to work with open neighborhoods
    is often more convenient than with closed these.



    By the way, a closed interval containing $x$ is not its neighborhood, because a neighborhood of $x$ must contain $x$ in its interior.






    share|cite|improve this answer


























      1














      $2Rightarrow 1$. Without loss of generality we can assume that $X$ is an open subset of $Bbb R$. Let $X_{conv}$ (resp. $X_{conc}$) bet a set of all $xin X$ such that there exists an open interval $Ini x$ s.t. $f$ is locally convex (resp. locally concave) over $I$. Assume to the contrary that (1) does not hold, that is a set $X’=Xsetminus(X_{conv}cup X_{conc})$ is uncountable. For a natural $n$ we call a point $xin X’$ an $frac 1n$-corner provided
      $(x-frac 1n,x)cap X’=varnothing$ or $(x,x+frac 1n)cap X’=varnothing$. It is easy to check that among any three distinct $frac 1n$-corners we can find two with the distance between them bigger than $frac 1n$. This implies that the set of $frac 1n$-corners is countable, so there exists a point $xin X’$ which is not an $frac 1n$-corner for any natural $n$. By (2), there exists a (non-singleton) closed interval $I’ni x$ s.t. $f$ is either locally convex or locally concave over $I’$. Then $f$ is either locally convex or locally concave over an open interval $I=operatorname{int} I’$. But $X’cap Inevarnothing$, a contradiction.



      $1notRightarrow 2$. Define a function $f:Bbb RtoBbb R$ as follows. Put $ f(x)=0$, if $x=0$ or $x=frac 1{2n}$, with $ninBbb Zsetminus{0}$ or $|x|ge 1$. For $kinBbb Ncup{0}$ put $ fleft(pmfrac 1{4k+1}right)= frac 1{4k+1}$ and $ fleft(pmfrac 1{4k+3}right)=-frac 1{4k+3}$. Extend $ f(x)$ piesewise-linearly to the remaining $xinBbb R$. Since $f$ is linear at $Bbb R$ but a countable closed set, it satifies (1). On the other hand, on any open interval $Ini 0$, $f$ has countably infinite many zeros, so $f$ is neither convex, nor concave on $I$.






      why people tend to use open set rather than closed set to define a neighborhood?




      I don’t see a relation of this with the previous. For me a choice to work with open or closed neighborhoods usually is a matter of convenience. Maybe, to work with open neighborhoods
      is often more convenient than with closed these.



      By the way, a closed interval containing $x$ is not its neighborhood, because a neighborhood of $x$ must contain $x$ in its interior.






      share|cite|improve this answer
























        1












        1








        1






        $2Rightarrow 1$. Without loss of generality we can assume that $X$ is an open subset of $Bbb R$. Let $X_{conv}$ (resp. $X_{conc}$) bet a set of all $xin X$ such that there exists an open interval $Ini x$ s.t. $f$ is locally convex (resp. locally concave) over $I$. Assume to the contrary that (1) does not hold, that is a set $X’=Xsetminus(X_{conv}cup X_{conc})$ is uncountable. For a natural $n$ we call a point $xin X’$ an $frac 1n$-corner provided
        $(x-frac 1n,x)cap X’=varnothing$ or $(x,x+frac 1n)cap X’=varnothing$. It is easy to check that among any three distinct $frac 1n$-corners we can find two with the distance between them bigger than $frac 1n$. This implies that the set of $frac 1n$-corners is countable, so there exists a point $xin X’$ which is not an $frac 1n$-corner for any natural $n$. By (2), there exists a (non-singleton) closed interval $I’ni x$ s.t. $f$ is either locally convex or locally concave over $I’$. Then $f$ is either locally convex or locally concave over an open interval $I=operatorname{int} I’$. But $X’cap Inevarnothing$, a contradiction.



        $1notRightarrow 2$. Define a function $f:Bbb RtoBbb R$ as follows. Put $ f(x)=0$, if $x=0$ or $x=frac 1{2n}$, with $ninBbb Zsetminus{0}$ or $|x|ge 1$. For $kinBbb Ncup{0}$ put $ fleft(pmfrac 1{4k+1}right)= frac 1{4k+1}$ and $ fleft(pmfrac 1{4k+3}right)=-frac 1{4k+3}$. Extend $ f(x)$ piesewise-linearly to the remaining $xinBbb R$. Since $f$ is linear at $Bbb R$ but a countable closed set, it satifies (1). On the other hand, on any open interval $Ini 0$, $f$ has countably infinite many zeros, so $f$ is neither convex, nor concave on $I$.






        why people tend to use open set rather than closed set to define a neighborhood?




        I don’t see a relation of this with the previous. For me a choice to work with open or closed neighborhoods usually is a matter of convenience. Maybe, to work with open neighborhoods
        is often more convenient than with closed these.



        By the way, a closed interval containing $x$ is not its neighborhood, because a neighborhood of $x$ must contain $x$ in its interior.






        share|cite|improve this answer












        $2Rightarrow 1$. Without loss of generality we can assume that $X$ is an open subset of $Bbb R$. Let $X_{conv}$ (resp. $X_{conc}$) bet a set of all $xin X$ such that there exists an open interval $Ini x$ s.t. $f$ is locally convex (resp. locally concave) over $I$. Assume to the contrary that (1) does not hold, that is a set $X’=Xsetminus(X_{conv}cup X_{conc})$ is uncountable. For a natural $n$ we call a point $xin X’$ an $frac 1n$-corner provided
        $(x-frac 1n,x)cap X’=varnothing$ or $(x,x+frac 1n)cap X’=varnothing$. It is easy to check that among any three distinct $frac 1n$-corners we can find two with the distance between them bigger than $frac 1n$. This implies that the set of $frac 1n$-corners is countable, so there exists a point $xin X’$ which is not an $frac 1n$-corner for any natural $n$. By (2), there exists a (non-singleton) closed interval $I’ni x$ s.t. $f$ is either locally convex or locally concave over $I’$. Then $f$ is either locally convex or locally concave over an open interval $I=operatorname{int} I’$. But $X’cap Inevarnothing$, a contradiction.



        $1notRightarrow 2$. Define a function $f:Bbb RtoBbb R$ as follows. Put $ f(x)=0$, if $x=0$ or $x=frac 1{2n}$, with $ninBbb Zsetminus{0}$ or $|x|ge 1$. For $kinBbb Ncup{0}$ put $ fleft(pmfrac 1{4k+1}right)= frac 1{4k+1}$ and $ fleft(pmfrac 1{4k+3}right)=-frac 1{4k+3}$. Extend $ f(x)$ piesewise-linearly to the remaining $xinBbb R$. Since $f$ is linear at $Bbb R$ but a countable closed set, it satifies (1). On the other hand, on any open interval $Ini 0$, $f$ has countably infinite many zeros, so $f$ is neither convex, nor concave on $I$.






        why people tend to use open set rather than closed set to define a neighborhood?




        I don’t see a relation of this with the previous. For me a choice to work with open or closed neighborhoods usually is a matter of convenience. Maybe, to work with open neighborhoods
        is often more convenient than with closed these.



        By the way, a closed interval containing $x$ is not its neighborhood, because a neighborhood of $x$ must contain $x$ in its interior.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 4 at 3:53









        Alex RavskyAlex Ravsky

        39.4k32181




        39.4k32181






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3053407%2fequivalence-of-defining-neighborhood-as-an-open-set-or-as-a-closed-set-in-a-spec%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

            An IMO inspired problem

            Management

            Investment