Lock problem -need a mathematical proof

Click For Summary

Discussion Overview

The discussion revolves around a mathematical proof related to a 2x2 matrix lock mechanism, where each cell contains a lever that can be toggled between vertical and horizontal states. The lock opens only when all levers are horizontal, and toggling a lever affects the state of all levers in the same row and column. Participants explore how to prove that the lock can be opened from any initial configuration, with implications for a larger 4x4 matrix version of the problem.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes the mechanics of toggling levers and how it affects the state of the keys in the matrix.
  • Another participant suggests that the problem has similarities to the Tower of Hanoi, indicating a recursive nature to the solution.
  • A participant expresses a desire to prove that the lock can always be opened, regardless of the starting state, and seeks the appropriate mathematical language for this proof.
  • One participant claims there is only one solution to the problem and discusses the mapping of states to the solution, suggesting that other operations merely recurse through different states.
  • Another participant acknowledges the point about a single solution but seeks further resources to understand how to express this mathematically.

Areas of Agreement / Disagreement

Participants express differing views on the nature of the solution, with some suggesting a single solution exists while others explore the recursive aspects of the problem. The discussion remains unresolved regarding the formal proof and mathematical representation of the solution.

Contextual Notes

Participants mention the need for a mathematical framework to express their findings, indicating potential limitations in their current understanding of the necessary mathematical language and concepts.

musicgold
Messages
303
Reaction score
19
Hi,

There is a 2x2 matrix lock with one key in each cell. A key is nothing but a straight lever which can either be either in vertical or horizontal state. Please see the attached picture. The lock opens only when all the levers are horizontal. However, when you change the state of the lever in a cell, say cell A, the levers of all the cells in the same row and column as cell A switch their states. The question is if we can start with the levers in any state and open the clock by turning the levers.

I am able to solve this mechanically, irrespective of the state of levers at the beginning. However I want to be able to prove it using some math, but not sure how I can go about it. Can anybody please help me?

This puzzle is a subset of a bigger puzzle involving a 4x4 matrix. I think if I learn to prove how the 2x2 lock can always be solved, I can extend it to the 4x4 lock.

Thanks,

MG.
 

Attachments

Physics news on Phys.org
Suppose you want to change the state of the key in the (1,1) position while leaving all the other keys unchanged. Just toggle (1,1) and all the other keys in the same row and column-- i.e. (1,2) and (2,1). The key at (1,1) has changed state 3 times and hence is now in a new state, while all the other keys have changed state twice and hence are unchanged.

Repeat this operation (toggle the key and all the other keys in the same row and column) for each key you want to change state.
 
Look up hanoi tower. that is what you are looking for, same principle. You need to figure out the worst case, as awkward I think has done, and the proof is a recursion problem. Recursion problems scale nicely.
 
airborne18 said:
Look up hanoi tower. that is what you are looking for, same principle.

Thanks airborne. I looked at some hanoi tower solutions and found that they mostly focus on proving the number of steps required to solve a tower. For example page 4 of http://www.cs.cmu.edu/~adamchik/21-127/lectures/induction_1_print.pdf" .

On the other hand what I am trying to do is to prove that irrespective of the starting state, one can always open this lock. I don't know the math language required to state that fact.

Also please see the attached document showing all possible starting states and steps to solve the lock. The yellow cell represents the key that was turned to get to the next state. 0 = horizontal key, 1= vertical key.
 

Attachments

Last edited by a moderator:
Okay.. look at my doc. You only have 1 solution to the problem. That is line 2.

You have set S and each elment of S is a state of the matrix. There is only one state that maps to the solution. So there is some function that maps S onto S until it it results in the solution.

If you look at my document you will see that line 2 is the solution. The rest of the operations on each line simply recurse through the set of states.

I quicky modified your doc, but you get the point. Now it can take from 1 - n iterations to get to the solution, but that is a different side of this.


But I believe this angle will give you a complete solution and a proof. I may stand corrected.
 

Attachments

airborne18,

Thanks. I get your point about there being only one solution and that the other operations just recurse through different states to get to the solution state.

However, I am still not clear as to how to prove this in terms of a set of equations. Could you point me to a resource where I can read up more on this topic?

Thank you.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K