I hope someone can help me out here :)
We have to sets : STUDENTS » All the students of the school CLASSES » All the classes of the school And the relation : STUDENTSCLASSES » Relates the students to the classes they attend to
We need to write the set that includes only the students who attend to the "Maths class".
Would it be something like this? : $\{student STUDENTSCLASSES class | class = Maths\}$
Or rather : $\{(student,class) \in STUDENTS X CLASSES | class = Maths\}$
Or what is not ?
I think my answers are wrong since the answer we are looking for is a set of elements, where the elements are just students..
Thanks !
Indeed, we have the set $S$: the set of all students, and $C$: the set of all classes. We want to denote the relation $A \subset S\times C$ as the set of ordered pairs $(s, m) \equiv s\;\text{ STUDENTCLASSES }\;m$, meaning student $s\in S$ is in a maths class $m\in C$. $$A = \{(s, m)\mid s\in S, m\in C, s\text{ STUDENTCLASSES } m\}$$
Now, if you want to denote just the set of students taking math classes, then indeed, you want $$\{s\mid (s \text{ STUDENTCLASSES } m) \land (s\in S) \land (m \in C)\} \\ \\= \{s\mid (s, m)\in A\}$$