What is the formula for creating a set of paired elements?

  • Context: Undergrad 
  • Thread starter Thread starter necro_ignis
  • Start date Start date
  • Tags Tags
    Elements Set
Click For Summary

Discussion Overview

The discussion revolves around expressing a requirement in a software system using set theory and logic, specifically focusing on defining a set of paired elements derived from two distinct sets. Participants explore how to represent these pairs without resorting to a Cartesian product, aiming for a clear set definition that captures the relationship between the elements.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant seeks to define a set containing pairs of elements from two sets, providing examples like MysterySet = {(a,1),(b,2),(c,3),(d,4)} and Material = {(chair,wood),(table,metal),(cup,clay)}.
  • Another participant expresses confusion about the initial request, indicating a lack of clarity in the problem statement.
  • A later reply clarifies the goal of defining a set of paired values, using the example of married couples and suggesting a one-to-one mapping between the male and female sets.
  • One participant proposes that a set of key-valued pairs could be represented as the set of all bijections, denoting this with X↔Y, and suggests a specific example with sets S = {(a,1),(b,2),(c,3)}.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best way to define the set of paired elements, and there remains uncertainty regarding the clarity of the initial problem statement.

Contextual Notes

There are indications of missing assumptions and a need for clearer definitions regarding the relationships between the sets and the nature of the pairs being formed.

necro_ignis
Messages
4
Reaction score
0
Hi all,

I'm trying to express a given requirement in a software system. I'm used to UML and UseCase specification, but I thought I would attempt to learn Zed Specification (which is based off logic, set theory., etc... so those topics too!)

Given two sets of data
e.g. in Zed notation

[X] ::= a|b|c|d
[Y]::= 1|2|3|4

or in Set Theory

X = {a,b,c,d}
Y = {1,2,3,4}

In set notation I am having difficulty trying to write down the formula for specifying a set containing a list of pairs made from X and Y. Note: Not a Cartesian Product.
So I'm looking for a Set definition for something like this:

MysterySet = {(a,1),(b,2),(c,3),(d,4)}
or a further example,
Material = {(chair,wood),(table,metal),(cup,clay)}

This is basically an analogy for a key-value pair.

Thanks very much.
 
Physics news on Phys.org
I can't decipher just what it is you are trying to do...
 
Hurkyl said:
I can't decipher just what it is you are trying to do...

Hi :smile:

I'm just trying to write a set definition for a set containing a list of paired values. Where each paired value is a single member of that set.

For example the set of all married couples Married = {(bob,jane),(fred,susan),(mike,sarah)} will have been built from the two sets: female={jane,susan,sarah} and male={bob,fred,mike}

So in a set definition how do I say something like:

each element in the set "Married" is a paired value from an enumerated one-to-one mapping between an element in the set male to the set female.

Hope that help! :biggrin: I could do this is a second programmatically but I have become extremely interested in modeling using set theory and logic, although it's something I've only just strated learning.

Thanks
 
After having done further research, it looks like a set of key-valued pairs might be (might be, being this is what I have thought up myself) represented as the set of all bijections as denoted X[tex]\leftrightarrow[/tex]Y.

So would I be right in saying (this is so sketchy and grasping at straws)
If I have a dom X = {1,2,3} and ran Y = {a,b,c} then a set S = {f:X[tex]\leftrightarrow[/tex]Y} would infact look like S={(a,1),(b,2),(c,3)}

P.S. Still getting used to the Latex function on this forum :rolleyes:

Thanks
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 62 ·
3
Replies
62
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K