by ColinWright · 12y ago · 0 comments
An equivalence relation is reflexive, symmetric, and
transitive. If E is an equivalence relation, and we
know E(x,y) but we know !E(y,z), what do we know
about E(x,z), and why?
It seems a great filter for people who can think and reason formally, as opposed to using intuition based on their understanding of the words.Edited in response to lmm's perfectly reasonable question. In context I would see if they just assumed they knew what I meant, or asked for clarification. If they assumed they knew what I meant, it would be interesting to see what interpretation they used. This is like FizzBuzz - it shouldn't stop with the first draft of the code - it's an opening for discussion.
=======
| x y |
=======
When I see !E(y,z) I put a picture in my head where z is outside of the equivalence class of y (and x): ======= =====
| x y | | z |
======= =====
Hence we can conclude that !E(x,z). So while this is a nice question, I don't think it achieves your goal of testing formal as opposed to intuitive reasoning.You pass.
E(x,y) & E(y,z) => E(x,z)
but since we know !E(y,z), we can infer !E(x,z).(I'm not a logician, either, so I hope you'll excuse what may be imprecise phrasing on my part.)
A = "It's Raining"
B = "Water is falling from the sky"
The first is clearly true. If it's raining, then water is definitely falling from the sky. The second is clearly false. Just because water is falling from the sky, that does not necessarily mean that it's raining.You can probably invent your own, somewhat more humorous examples.
So you can't conclude that because you don't have A or B you don't have C.
It's like saying "Going down the A20 and the M20 (roads in the UK) gets you to Rochester (I've no idea if it does). I've not been down the A20 or the M20, thus I'm not in Rochester." The second sentence there isn't really valid, maybe you took a different route.
Thus !E(x,z), because E(y,x) and E(x,z) would imply E(y,z), which is false.