EonsNearby said:
What is given:
A and C have the same cardinality, so there must be a bijection for A -> C, which I will call f. B and D have the same cardinality, so there must be a bijection for B -> D, which I will call g. Sets A and B have no elements in common because they are disjoint (the intersection of A and B is the empty set). Sets C and D have no elements in common because they are also disjoint.
My attempt to prove that A U B has the same cardinality of C U D:
A U B and C U D have the same cardinality if there is a bijection that maps A U B -> C U D. Let's us define a function h that maps A U B -> C U D. The function looks like h(x) = f(x) if the element x is from A OR g(x) if the element x is from B. In order for h to be a bijection, it needs to be one-to-one and onto. For a function to be one-to-one, then if an element from x and another element y from the domain (A U B) are not equal, then that must imply that h(x) is not equal to h(y). In order for a function to be onto, then for every element y in the range (C U D) there must be an element x in the domain (A U B) such that h(x) = y.
i) Proof that h is a function: The result of h is the result of bijection f or bijection g. Since f and g proven to be one-to-one and onto, f and g will result in a matching of an element from A U B to an element from C U B.
You've got all the essential facts but your presentation's confusing. Right here you made a statement but you didn't prove it. The proof's buried in your first paragraph way above but it's not connected to the proof of this statement.
The point is that we define
h:A \bigcup B \rightarrow C \bigcup D by
h(x) = f(x) if x \in A and
h(x) = g(x) if x \in B.
We know x must either be in A or B because x is in their union; and we know x can't be in BOTH because A and B are disjoint. So our definition of h is not ambiguous; h is a well-defined function.
You can just say it that way and delete all the extra verbiage.
EonsNearby said:
ii) Proof that h is one-to-one: Because of the definition of union, x has to be an element from A or B. Because A and B are disjoint, x cannot be an element from A and B. Since the result of h is the result of bijection f or bijection g, and since the input to x has to be an element from A or B but not both, two different elements from A U B will not be mapped to the same element in C U D by the definition of a bijection.
Let's see if we can say this symbolically and not in so many words.
To prove h is 1-1 we have to show that if x \neq y then h(x) \neq h(y).
So, suppose we have x and y in A union B with x \neq y.
If x and y are both in A, then h(x) and h(y) are different because h(x) = f(x), and h(y) = f(y), and now f(x) is not equal to f(y) because f is 1-1.
Similarly if x and y are both in B, then h(x) is different than h(y) because g is 1-1.
But if x is in A and y is in B, then h(x) can not be the same as h(y) because then both h(x) and h(y) would have to be in C intersect D. Why is that? Well, h(x) = f(x) is in C; and h(y) = g(y) is in D. So if h(x) = h(y) then they must be in C intersect D.
But that can't be, because C intersect D is empty!
You see that last part? We used the given that C intersect D is empty. You always know you're on the right track when you use your givens. And if you get to the end of your proof and you haven't used one of the givens, there's probably something wrong with your proof.
EonsNearby said:
iii) Proof that h is onto: f and g are already established bijections for A -> C and B -> D respectively. The result of h is the result of f or g, depending on what set x came from. Since it has already been proven that x has to come from A or B but not both, then h will be equal to a valid computation of f or g (basically, h(x) = f(x) OR g(x)). Since C and D are being unioned together, and since they are disjoint, and since h is equal to the result of the established bijections for C and D respectively, every element in C U D will have an element from A U B mapped to it. So h is onto
Since h is a function that is one-to-one and onto, it is a bijection. Since there is a bijection for A U B -> C UD, then A U B has the same cardinality of B U D.
What the heck is a "valid computation?" You are still thinking of functions as formulas. They are not. Try to rephrase this in symbols and not words. It's difficult to follow your logical argument here.
I think you probably have enough at this point so that a charitable grader will give you most of the points on this. Going forward you need to learn to work in symbols and write clear proofs. That will come with practice.
Try to redo the onto part. Assume y is an element of C union D. Show me symbolically that there must be some x with h(x) = y.