The "flatland" model is a simplified model of a lock. The purpose of this lock is to keep two plates of metal from sliding over each other unless the proper key is present. The lock is constructed by placing the two plates over each other and drillingholes which pass through both plates. Two pins are placed in each hole such that the gap between the pins does not line up with the gap between the plates. The bottom pin is called the key pin because it touches the key. The top pin is called the driver pin. Often the driver and key pins are just called the driver and the pin. A protrusion on the underside of the bottom plate keeps the pins from falling out, and a spring above the top plate pushes down on the driver pin.

If the key is absent, the plates cannot slide over each other because the driver pins pass through both plates. The correct key lifts the pin pairs to align the gap between the pins with the gap between the plates. That is, the key lifts the key pin until its top reaches the lock's sheer line. In this configuration, the plates can slide past each other.

There is always a sliding allowance. That is, any parts which slide past each other must be separated by a gap. The gap between the top and bottom plates allows a range of keys to open the lock. The lock will still open even when one of the pins is not raised as high as the other