Completely arbitrary on a two way (wait, they're called three way?) switches.
A 2-way switch has two terminals and gives a closed (on) or open circuit.
A 3-way switch has three terminals and gives you one terminal tied to either, but not both of the other two.
A 4-way switch has four termimals and gives you two terminals which are each tied to the other two terminals and you can pick; these also give you a big headache when one switch of many fails and one circuit path is open, but many paths still work.
2 way: SPST
3 way: SPDT
4 way: DPDT
I once lived in a house with a 5(!) gang box with three of the switches wired to the upstairs hall light incorrectly and another switch upstairs. It was as big a mess as you'd imagine.
These are available in "smart"/connected form or regular electronics-only form. Example here:
https://www.amazon.com/Lutron-Incandescent-Single-Pole-Multi...
I agree with you and much prefer them to the traditional switches.
This is about where, in the UK and I'm sure most developed jurisdictions, stairs for example must have a both on and off control at both ends - regardless of the state of the other switch.
If they were simply in parallel as you describe, you could find yourself in the situation of going upstairs to turn it 'off up there', (because it'd need to be 'off everywhere' to be off) then realising it was already 'off downstairs' and falling back down.
If they were simply in series, you could find yourself unable to turn the light on without first going downstairs at speed in the dark, because it's 'off there' no matter what you do upstairs.
https://www.electrical101.com/4way-switch-wiring-using-nm-ca...
> a path is always found on one flip of the switch
I thought you were taking the comment you replied to to be seeking a simple parallel arrangement of SPST switches, so that turning any one on would turn the light on.
So I was explaining that No, point is you want 'off' on any switch (regardless of the state of the others) too. Seems you understood that though. :)
- parallel is or
- series is and
We can see that a 2 way switch is xor (or xnor depending on the setup).
So now, for 3 way it feels like you have to beyond 2 state (on-off) switches... i don't have a proof of impossibility that 2 state switches cannot do 3 way switching, but in practice they indeed involve more states (multi-throw etc.)
To do this you have a live rail and a switched live rail, and two SPST each end: one switch SL hot or not; the other to break its connection to the light. Open the latter for 'off', close both for 'on', close break & open SL for 'don't care'. (Then in the 'don't care' state, SL is hot iff switched on the other end, and if so is also closed through to the light.)
Not legal, not (that I can imagine) desirable!
Proving it is actually simple if you continue your Boolean line of thought: you can't build XOR without an inverter; an SPST switch is only a sort of 'half inverter', a mux between '0' and its input. Since it can never give you '1' from '0' input, you need a schematic for your XOR where each constituent truth table in isolation has '0' out for its '0;0' in line. Which can't be done, because clearly then you could never get '0;0=>1' overall.
Digital logic works on lower voltage than mains voltage, and you'd need to maintain far more wires to hook up the connection (since the actual gates themselves need both power supply and ground drain wires which are separate for the inputs). Possibly also a relay to actually drive the higher voltage/amperage for the light bulb.