// Numbas version: exam_results_page_options {"name": "Patrick's copy of Basic Set Theory: subsets and set equality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "advice": "

You can check to see if $A \\subset B$ by progressively checking if each element of $A$ is also in $B$. There are six questions so you will have to do this six times.

\n
\n

The second part of this question builds on the first. You just need to look at your answers and find the sets which contain each other. It is a bit like the 'less than or equal to' relation in the sense that if you have two numbers $x$ and $y$ where $x \\leq y$ and $y\\leq x$, then it must be true that $x=y$.

", "variable_groups": [], "functions": {}, "variables": {"CsubsetA": {"group": "Ungrouped variables", "name": "CsubsetA", "templateType": "anything", "description": "", "definition": "if(set(C)=intersection(set(A),set(C)),1,0)"}, "AB": {"group": "Ungrouped variables", "name": "AB", "templateType": "anything", "description": "", "definition": "if(set(A) = set(B),1,0)"}, "B": {"group": "Ungrouped variables", "name": "B", "templateType": "anything", "description": "", "definition": "repeat(random(1..4),5)"}, "CA": {"group": "Ungrouped variables", "name": "CA", "templateType": "anything", "description": "", "definition": "if(set(C) = set(A),1,0)"}, "BsubsetC": {"group": "Ungrouped variables", "name": "BsubsetC", "templateType": "anything", "description": "", "definition": "if(set(B)=intersection(set(C),set(B)),1,0)"}, "AsubsetB": {"group": "Ungrouped variables", "name": "AsubsetB", "templateType": "anything", "description": "", "definition": "if(set(A)=intersection(set(A),set(B)),1,0)"}, "CsubsetB": {"group": "Ungrouped variables", "name": "CsubsetB", "templateType": "anything", "description": "", "definition": "if(set(C)=intersection(set(C),set(B)),1,0)"}, "BC": {"group": "Ungrouped variables", "name": "BC", "templateType": "anything", "description": "", "definition": "if(set(B) = set(C),1,0)"}, "BsubsetA": {"group": "Ungrouped variables", "name": "BsubsetA", "templateType": "anything", "description": "", "definition": "if(set(B)=intersection(set(A),set(B)),1,0)"}, "AsubsetC": {"group": "Ungrouped variables", "name": "AsubsetC", "templateType": "anything", "description": "", "definition": "if(set(A)=intersection(set(A),set(C)),1,0)"}, "C": {"group": "Ungrouped variables", "name": "C", "templateType": "anything", "description": "", "definition": "repeat(random(1..4),6)"}, "A": {"group": "Ungrouped variables", "name": "A", "templateType": "anything", "description": "", "definition": "repeat(random(1..4),4)"}}, "ungrouped_variables": ["A", "B", "C", "AB", "BC", "CA", "AsubsetB", "BsubsetA", "CsubsetB", "BsubsetC", "CsubsetA", "AsubsetC"], "parts": [{"displayType": "checkbox", "prompt": "

If every element of the set $A$ is also an element of the set $B$ then we say that $A$ is a subset of $B$: $A \\subseteq B$. Which sets are subsets of one another?

", "matrix": ["AsubsetB", "BsubsetA", "CsubsetB", "BsubsetC", "CsubsetA", "AsubsetC"], "variableReplacements": [], "minMarks": 0, "displayColumns": 0, "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "shuffleChoices": false, "marks": 0, "showFeedbackIcon": true, "maxMarks": 0, "maxAnswers": 0, "type": "m_n_2", "choices": ["

$A \\subseteq B$

", "

$B \\subseteq A$

", "

$C \\subseteq B$

", "

$B \\subseteq C$

", "

$C \\subseteq A$

", "

$A \\subseteq C$

"], "warningType": "none", "scripts": {}, "distractors": ["", "", "", "", "", ""], "showCorrectAnswer": true}, {"displayType": "checkbox", "prompt": "

Sets are equal if they are subsets of each other. Which sets are equal?

", "matrix": ["AB", "BC", "CA"], "variableReplacements": [], "minMarks": 0, "displayColumns": 0, "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "shuffleChoices": false, "marks": 0, "showFeedbackIcon": true, "maxMarks": 0, "maxAnswers": 0, "type": "m_n_2", "choices": ["

$A=B$

", "

$B=C$

", "

$C=A$

"], "warningType": "none", "scripts": {}, "distractors": ["", "", ""], "showCorrectAnswer": true}], "name": "Patrick's copy of Basic Set Theory: subsets and set equality", "extensions": [], "statement": "

Consider the three individual elements $1, 1$ and $2$. If we consider these elements as a single unordered collection of distinct objects then we call it the set $\\left\\{1,1,2\\right\\}$. Because sets are unordered this is the same as $\\left\\{2,1,1\\right\\}$ and because we only collect distinct objects this is also the same as $\\left\\{1,2\\right\\}$.

\n

For example, let $A=\\left\\{\\var{A[0]},\\var{A[1]},\\var{A[2]},\\var{A[3]}\\right\\}, B=\\left\\{\\var{B[0]},\\var{B[1]},\\var{B[2]},\\var{B[3]},\\var{B[4]}\\right\\}$ and $C=\\left\\{\\var{C[0]},\\var{C[1]},\\var{C[2]},\\var{C[3]},\\var{C[4]},\\var{C[5]}\\right\\}$.