- #1
AdrianZ
- 319
- 0
the title says everything. why they don't define set? is it possible to do so? if not, why?
HallsofIvy said:Yes, you certainly can define "set". But then, of of course, at least some of the words that you used in defining "set" would be undefined. It's a question of how far "back" or how "primitive" you want to be.
Jarle said:There is no particular reason to define a set; set theory only uses the axioms of sets to model mathematics. In this sense you can say that sets are defined, although it is not a definition in the traditional sense.
What reason do you think that is? And why do you think it doesn't apply to set theory?AdrianZ said:yea, but the question is, why it is so? I mean we know that concepts like point,line,plane,space are undefined primitives in geometry. and we know why. but in the case of sets the reason is not clear for me.
AdrianZ said:yea, but the question is, why it is so? I mean we know that concepts like point,line,plane,space are undefined primitives in geometry. and we know why. but in the case of sets the reason is not clear for me.
The concept of "set" in mathematics and computer science refers to a collection of distinct objects with no particular order. As such, it is not considered a primitive data type in most programming languages. Instead, it is commonly implemented as a data structure or object in order to provide the necessary functionality for working with sets.
An "undefined primitive" means that the concept of set is not built into the core functionality of a programming language. It is not included as a basic data type, but rather must be defined and implemented separately in order to be used in a program.
Explicitly defining set allows for greater flexibility and customization in how sets are used and manipulated within a program. By defining set as a data structure or object, we can add specific methods and behaviors that are tailored to our specific needs and use cases.
Yes, set can be implemented in various ways depending on the specific programming language or context. Some common implementations include using arrays, objects, or specialized set data structures.
While set is not considered a primitive data type in most programming languages, there are some languages that do include set as a built-in data type. For example, the Python language has a built-in set data type that supports operations such as union, intersection, and difference.