This might get me crucified by mathblr but the truth is when I was first introduced to sets i thought of them as python lists.
Honestly, not a bad frame of reference for understanding it at all. Like I knew Python long before I learned any kind of proof mathematics and the nesting and tuples are concepts that fit.
Also, people use metaphors and models to learn things all the time, I don't see how this is different.
Well one of them is a collection of objects, or at least an abstracted representation of a collection of objects, and the other is a collection of objects, or at least an abstracted representation of a collection of objects.
So, assuming that all Python lists can be represented by a set and vice versa, and any operation that you can do with sets you can do with Python lists, they appear pretty analogous to me.
Seems a legit point of view to me, and I suspect that this is an angle shared by an increasing number of people who get into coding and computer science casually before hitting the respective level of mathematics in their formal education.
but... Python has sets??? That's a pretty significant thing. Like I get where you're coming from here but Python very much does have sets
My relative lack of coding knowledge has been brutally exposed here so I did actually have a quick look online about the difference between lists and sets in Python.
It is interesting that they both, in different ways, do not actually always behave like sets would in mathematics.
Python lists are ordered, whilst a mathematical set does not care about the order (but this is behaviour that Python sets get right). So, for example, my understanding now is that Python would determine the list [1, 2, 3, 4] to be different from the list [1, 2, 4, 3], which is obviously not good form for mathematical sets.
Meanwhile, Python sets contain and actually only permit unique elements, with duplicates automatically removed. But Python lists are fine with duplicates and indeed, the mathematical set representing, say, exam scores of {50, 75, 75, 62} should definitely retain the multiplicity that a Python set would otherwise remove.
I am led to conclude that in order to fully replicate the behaviour of “real-world” mathematical sets in Python, one would need to employ some subset of the union of the behaviours of Python sets and Python lists. Which is all a little embarrassing really.
mathematical sets don't have multiplicity, that's why we need multisets.
Fair - and I was wrong to outright say that they do.
Colloquially, I maintain that the set {50, 75, 62} is abstractly the same as the ‘set’ {50, 75, 75, 62}, and that doing so does not cause us to make mistakes when we are applying set-theoretic operations because we know to remove the duplicates implicitly.
It is in that pragmatic (lazy? wrong?) sense above that I feel comfortable calling the latter a set and not a multiset, and claiming that sets ‘allow multiplicity’ - when push comes to shove we know to chuck out the extras.
I presume that in Python if I construct the list [75, 75, {50,62}] I would now have the best of both worlds, where I care about having two discernible yet otherwise visually identical instances of ‘75’ whilst also not caring what order the other two appear in. That discernment coming at the cost of forcing an order on the duplicates.
But to eliminate all ambiguity in the set-theoretic scenario I would be obliged to introduce an identifier that makes the each ‘75’ physically appear different, such as calling them 75a and 75b.
Linear Algebra proofs are ragebait, fym prove that a set of m mutually orthogonal, non-0 vectors can’t exist in R^n with m > n…like yeah no shit it won’t exist just think about it for two seconds 😭
Ok, thank fuck it's not just me who thinks this.
Basically the pigeonhole principle for dimensions innit
This might get me crucified by mathblr but the truth is when I was first introduced to sets i thought of them as python lists.
Honestly, not a bad frame of reference for understanding it at all. Like I knew Python long before I learned any kind of proof mathematics and the nesting and tuples are concepts that fit.
Also, people use metaphors and models to learn things all the time, I don't see how this is different.
Well one of them is a collection of objects, or at least an abstracted representation of a collection of objects, and the other is a collection of objects, or at least an abstracted representation of a collection of objects.
So, assuming that all Python lists can be represented by a set and vice versa, and any operation that you can do with sets you can do with Python lists, they appear pretty analogous to me.
Seems a legit point of view to me, and I suspect that this is an angle shared by an increasing number of people who get into coding and computer science casually before hitting the respective level of mathematics in their formal education.
but... Python has sets??? That's a pretty significant thing. Like I get where you're coming from here but Python very much does have sets
My relative lack of coding knowledge has been brutally exposed here so I did actually have a quick look online about the difference between lists and sets in Python.
It is interesting that they both, in different ways, do not actually always behave like sets would in mathematics.
Python lists are ordered, whilst a mathematical set does not care about the order (but this is behaviour that Python sets get right). So, for example, my understanding now is that Python would determine the list [1, 2, 3, 4] to be different from the list [1, 2, 4, 3], which is obviously not good form for mathematical sets.
Meanwhile, Python sets contain and actually only permit unique elements, with duplicates automatically removed. But Python lists are fine with duplicates and indeed, the mathematical set representing, say, exam scores of {50, 75, 75, 62} should definitely retain the multiplicity that a Python set would otherwise remove.
I am led to conclude that in order to fully replicate the behaviour of “real-world” mathematical sets in Python, one would need to employ some subset of the union of the behaviours of Python sets and Python lists. Which is all a little embarrassing really.
This might get me crucified by mathblr but the truth is when I was first introduced to sets i thought of them as python lists.
Honestly, not a bad frame of reference for understanding it at all. Like I knew Python long before I learned any kind of proof mathematics and the nesting and tuples are concepts that fit.
Also, people use metaphors and models to learn things all the time, I don't see how this is different.
Well one of them is a collection of objects, or at least an abstracted representation of a collection of objects, and the other is a collection of objects, or at least an abstracted representation of a collection of objects.
So, assuming that all Python lists can be represented by a set and vice versa, and any operation that you can do with sets you can do with Python lists, they appear pretty analogous to me.
Seems a legit point of view to me, and I suspect that this is an angle shared by an increasing number of people who get into coding and computer science casually before hitting the respective level of mathematics in their formal education.
The number 2 has been buffed. It is now between 3 and 4.
The number 291871982419231661829318274172491239126 has been nerfed. It is now between 7 and 8.
2+2 = 5 8 for sufficiently large values of 2.
falsify - to make something false
salsify - to make something salse
calcify - to make something calce
Is it just me, or is mathblr slow during the summer?
My theory is people's brains are overheating...substantiated by my own.
Maths will resume once the rain has returned.
I could have sworn that I lived in the UK, but it has not rained here for over a month and I cannot sleep without sweating buckets.
All logic and reasoning capabilities have been slowly cooked off from the brain, to the point where I am considering appeasing the gods by purchasing a text on percolation theory.
i don’t realize how much i love being around people who like math until im not ):
Eye contact?
Bold of you to assume that I would prefer to look into your warm, dreamy eyes than this cold, gum-strewn ground.
Corduroy is just so bloody cosy and ribbed and soft.
But double corduroy feels like even more of a sartorial sin than double denim.
huh my classical education is so poor I didn't realise that Syracuse is actually in Sicily, how embarrassing! Carthage being in Tunisia makes sense, and Antioch in Turkey near Syria, Tyre in Lebanon, Caesarea in Judea, no idea where I thought Syracuse was supposed to be, it was just free floating around the Mediterranean somewhere.
my classical education is so poor I thought Carthage was that stuff in your knees and nose.
Humans should be able to roll up into a little secure metallic orb.
Just like a woodlouse.
But like, a moodhouse.

