this post was submitted on 07 Aug 2025
138 points (96.6% liked)

Ask Lemmy

33925 readers
1164 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] coherent_domain@infosec.pub 17 points 5 days ago* (last edited 3 days ago) (2 children)

Functions on real numbers are incredibly werid.

There are continuous but nowhere differentiable functions.

There are continuous and monotonically increasing function that goes from 0 to 1 (i.e. surjective function [0,1] →[0,1]), that "almost never" increases; specifically, if you pick a point at random, that point will be flat on said function with probablity exactly 1 (not almost 1, but exactly 1, no approximation here).

~~More impressively, you can have function that is continuous, but you cannot find a connected path on it (i.e. not path connected). In plain word, if anyone told you "a function is continuous when you can draw it without lifting your pen". They have lied to you.~~

EDIT: the last one (crossed out) is wrong. Intuitively "topologists' sine curve" contains two parts; you can neither find a distinct seperation for them (i.e. "connected"), nor can you draw a path that connects the two part (i.e. not "path connected"). However, topologist's sine curve is not the graph of a continuous function.

[–] myslsl@lemmy.world 5 points 4 days ago* (last edited 4 days ago) (1 children)

More impressively, you can have function that is continuous, but you cannot find a connected path on it (i.e. not path connected). In plain words, if anyone told you "a function is continuous when you can draw it without lifting your pen". They have lied to you.

You are misrepresenting an analogy as a lie. Besides that, in the context where the claim is typically made, the analogy is still pretty reasonable and your example is just plain wrong.

People are talking about continuous maps on subsets of R into R with this analogy basically always (i.e., during a typical calc 1 or precalc class). The only real issue are domain requirements in such a context. You need connectedness in the domain or else you're just always forced into lifting your pen.

There are a couple other requirements you could add as well. You might also want to avoid unbounded domains since you can't physically draw an infinitely long curve. Likewise you might want to avoid open endpoints or else things like 1/x on (0,1] become a similar kind of problem. But this is all trivial to avoid by saying "on a closed and bounded interval" and the analogy is still fairly reasonable without them so long as you keep the connectedness requirement.

For why your example is just wrong in such a context, say we're only dealing with continuous maps on a connected subset of R into R. Recall the connected sets in R are just intervals. Recall the graph of a function f with domain X is the set {(x,f(x)) : x is in X}. Do you see why the graph of such a function is always path connected? Hint: Pick any pair of points on this graph. Do you see what path connects those two points?

Once you want to talk about continuous maps between more general topological spaces, things become more complicated. But that is not within the context in which this analogy is made.

[–] coherent_domain@infosec.pub 3 points 4 days ago* (last edited 4 days ago) (1 children)

Sure, I have no problem with analogy. I called them lie simply to peak people's interest, but in research and teaching, lies can often be beneficial. One of my favorite quote (I believe from Mikołaj Bojańczyk) is "in order to tell a good story, sometime you have to tell some lies".

At the begining of undergrad, "not lifting pen" is clearly a good enough analogy to convey intuition, and it is close enough approximation that it shouldn't matter until much later in math. I can say "sin(1/x) is a continuous function on (0,1] but its graph is not path connected", which is more formal, but likely not mean anything to most of the reader. In that sense, I guess I have also lied :)

However, I like to push back on the assumption that, in the context of teaching continuous function, the underlying space needs to be bounded: one of the first continuous function student would encounter is the identity function on real, which has both a infinite domain and range.

[–] myslsl@lemmy.world 3 points 4 days ago* (last edited 4 days ago) (1 children)

I can say "sin(1/x) is a continuous function on (0,1] but its graph is not path connected", which is more formal, but likely not mean anything to most of the reader. In that sense, I guess I have also lied :)

It's also false. Take any pair of points on the graph of sin(1/x) using the domain (0,1] that you just gave. Then we can write these points in the form (a,sin(1/a)), (b,sin(1/b)) such that 0 < a < b without loss of generality. The map f(t)=(t,sin(1/t)) on [a,b] is a path connecting these two points. This shows the graph of sin(1/x) on (0,1] is path connected.

This same trick will work if you apply it to the graph of ANY continuous map from a connected subset of R into R. This is what my graph example was getting at.

The "topologists sine curve" example you see in pointset topology as an example of connected but not path connected space involves taking the graph you just gave and including points from its closure as well.

Think about the closure of your sin(1/x) graph here. As you travel towards the origin along the topologists sine curve graph you get arbitrarily close to each point along the y-axis between -1 and 1 infinitely often. Why? Take a horizontal line thru any such point and look at the intersections between your horizontal line and your y=sin(1/x) curve. You can make a limit point argument from this fact that the closure of sin(1/x)'s graph is the graph of sin(1/x) unioned with the portion of the y-axis from -1 to 1 (inclusive).

Path connectedness fails because there is no path from any one of the closure points you just added to the rest of the curve (for example between the origin and the far right endpoint of the curve).

A better explanation of the details here would be in the connectedness/compactness chapter in Munkres Topology textbook it is example 7 in ch 3 sec 24 pg 157 in my copy.

However, I like to push back on the assumption that, in the context of teaching continuous function, the underlying space needs to be bounded: one of the first continuous function student would encounter is the identity function on real, which has both a infinite domain and range.

This is fine. I stated boundedness as an additional assumption one might require for pragmatic reasons. It's not mandatory. But it's easy to imagine somebody trying to be clever and pointing out that if we allow the domain or range to be unbounded we still have problems. For example you literally cannot draw the identity function in full. The identity map extends infinitely along y=x in both directions. You don't have the paper, drawing utensils or lifespan required to actually draw this.

[–] coherent_domain@infosec.pub 3 points 4 days ago

Yes, you are right, topologists' sine curve includes the origin point, which is connected but not path connected. I guess I didn't do very well in my point-set topology. I will change that in my answer :)

[–] felsiq@piefed.zip 4 points 4 days ago (1 children)

Can you please elaborate on that second one, or drop a name so I can look into it? Sounds very counterintuitive and like something I wanna know

[–] coherent_domain@infosec.pub 6 points 4 days ago* (last edited 4 days ago)

The second one is the cantor function, also known as devil's staircase; the third one is topologist's sine curve.