A foreign movie, it seems to be about mathematics, the details are in the supplement

Extreme Space La habitación de Fermat (2007)

An invitation to a mysterious party from four mathematicians who do not know each other. In this mysterious room, there are gathered people who are talented and extremely intelligent mathematicians, logicians and inventors. Gathered together to solve the so-called unparalleled mystery. As a result, they found that they had entered a trap. The four walls of the secret room would continue to shrink toward the center due to the action of the surrounding hydraulic machines. The atmosphere in the room suddenly became tense. Some people were impatient, some were angry, and some were calm on the surface but worried inside. As time goes by, the four well-dressed people who seemed to have no connection began to slowly emerge with intricate connections. These famous scientists, logicians, and inventors confessed one after another: Pascal, who had just received a patent, hit and run, the famous Galois exposed his lies, and Oliva, who had rekindled her old love, confessed her life experience... This was a race against time against death. There is no right to withdraw from the quizzes. After the four astute mathematicians used their wisdom to solve puzzles one after another, they did not fall into a vicious circle of problem-solving. They used strict logic, precise reasoning, and careful thinking. Observation prevented them from missing any detail or step. They kept asking themselves: What is all this for? Is it just an intellectual game that the host of the party has painstakingly arranged? Or is it a trap carefully laid by someone seeking revenge? Or is it a murder cabin deliberately arranged by the "mastermind"? Galois's impulsiveness and wit, Pascal's melancholy and prudence, Oliva's beauty and frankness, the Grecian's insidiousness and sophistication, plus Fermat's disappearance and appearance, kept the audience's emotions in a high state of tension. , just when everyone begins to agree with one of the inferences and understands the suspense of this "shrinking house", another speculation appears in front of you. It is reasonable and makes you have a new impulse to reason, just like the big Like most mystery movies, the person who is least likely to be the murderer becomes the murderer. Even the "host" Fermat is an unknowing victim. However, all the mysteries have to be solved by the audience themselves.