Sum and Product game
Statement
Two perfect logicians Steve and Pete, who have never met, before are imprisoned by an eccentric villain. "I have two positive integer numbers x and y" he says to them. "I will tell Steve the sum x+y, and Pete the product xy. If at any point either of you know the two numbers x and y, you may shout them out, and I will release you both. You may take turns saying statements giving the other information, but you may only communicate about your state of knowledge. If any part of your statement contains any information about the numbers themselves, you'll both be shot. If any of you tries to communicate any other information not directly implied by the statements, you'll both be shot."
Can the logicians always figure out the numbers?
As an example, if the two numbers are 1 and 6, a potential conversation could go:
P: I don't know the numbers
S: I don't know the numbers
P: I don't know the numbers
S: I don't know the numbers
P: I know the numbers! They are 1 and 6! (S would have known if the numbers were 2 and 3)
Or another example, if the numbers are 2 and 4:
P: I don't know the numbers
S: I didn't know whether you knew until you said that (could have been 1 and 5, and P …
Posed by Thomas · puzzle, modal-logic
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-358934.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-358934.lean
import Mathlib /-! # Sum and Product game Source: https://mathoverflow.net/questions/358934 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_358934 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_358934