Fermat's Room (also known as La Habitacion de Fermat) is a 2007 Spanish suspense film.
Four mathematicians receive a mysterious letter in the mail, and are given an offer: if they can identify the pattern of the numbers in the letter, they will be invited to work on the greatest mathematical enigma of all time. The letters are signed only, "Fermat." The four accept, and are given aliases - Hilbert, Galois, Pascal, and Oliva. Upon arrival, they realize they are trapped, and the only way to prevent the walls from closing in is to solve a never-ending sequence of brain teasers. Along the way, the characters' secrets come out as they speculate on their host's true motives.
This film provides examples of:
- 3 + 5 = 4: A variant with two hourglasses: one of four minutes and one of seven minutes, the goal is to time nine minutes.
- The Alcoholic: Pascal is almost constantly drinking, to try and forget that he ran over Fermat's daughter.
- Attention Whore: Galois is only a mathematician because of the fame he can get when he discovers something new, like the proof of Goldbach's conjecture.
- Character Tic: Hilbert has a habit of adding grammatical accents when other people write on the chalkboard.
- Batman Gambit: The success of the scheme relied on every character and detail to work as planned.
- Cheaters Never Prosper: Had Galois never lied about his proof of Goldbach's Conjecture, nothing would have happened.
- Closed Circle: By the time the characters realize the walls are moving, the door has been rendered unopenable.
- Fair-Play Whodunnit: Every hint the characters get, the viewers get too (though we don't know anybody's secret to start with).
- Hope Spot: As the people in the room try to contact Fermat, it's revealed that his safety belt has been boobytrapped. But the viewers know he's still alive, because he never actually used his seatbelt. Then he's stopped by the police, who make him wear it...
- Made of Indestructium: The furniture is mercilessly crushed by the hydraulic pumps, but the walls don't even bend a little.
- Meaningful Name: Everybody's alias is a mathematician's name. Mathematicians who died at the same age as the characters are now. Except Hilbert, who lived past eighty.
- Mistaken for Special Guest: Part of The Reveal. Fermat was assumed to be the host of the game, while in fact he was merely another pawn in the scheme.
- Poor Communication Kills: Had anyone actually asked Fermat whether he was the host, had anyone listened to Pascal when he noticed the walls moving, or had Fermat picked up his phone when the others tried to call him, at least two lives could have been saved.
- Properly Paranoid: Galois checked who the mysterious host was before going to the gathering. Too bad he forgot the name.
- Smart People Play Chess: We first get to see Hilbert when he's playing chess with his psychiatrist.