Yes.denis_berthier wrote:Theorem 1: Let S be a theory in FOL (e.g. the theory consisting of the 4 basic Sudoku axioms plus the givens of a puzzle P). Let T be a theorem of S, i.e. any formula that can be deduced from the axioms of T (typo: you meant S) according to the principles of FOL (e.g. the assertion of a candidate as a value for some cell: rc=n). Then any formula F derivable from S+T is derivable from S.
The proof is obvious: take any proof of F using T and replace any mention of T in it by the proof of T in S. This gives a proof of F that doesn't explicitly use T.
Not necessarily.Corollary (formal version): any candidate asserted at any step of a resolution of a puzzle (based on the principles of FOL) can be used in further steps exactly as if it was a given.
You can choose how you encode Sudoku as a FOL, in particular which predicates you'll use. It is entirely reasonable to represent the givens by IsGiven(n,r,c) predicates, and to assert the initial candidates by means of a formula like ∀n ∀r ∀c (IsGiven(n,r,c)→IsCandidate(n,r,c)). A uniqueness rule will have expressions like IsCandidate(1,2,3)∧¬IsGiven(1,2,3) within it. To use candidate 1r2c3 (for example) "as if it were a given", the uniqueness rule would become IsGiven(1,2,3)∧¬IsGiven(1,2,3), aborting the solving path with a contradiction. But in a puzzle with a non-zero number of solutions, aborting with a contradiction should be impossible.
The problem in the corollary stems from a lack of precision about the word, "given". When it refers to the IsGiven predicates in a FOL as described in the previous paragraph, the corollary is false. When it refers to the IsCandidate predicates supplied as premises in a FOL that lacks IsGiven predicates, the corollary is true. The specific encoding of the sudoku puzzle as a FOL really matters.