Question for FIDE Arbiters and similar knowledgeable folk...
FIDE Law Article 5.1.1 The game is won by the player who has checkmated his/her opponent’s king. This immediately ends the game, provided that the move producing the checkmate position was in accordance with Article 3 and Articles 4.2 – 4.7.
Article 3 covers the moves of the pieces, while Article 4 covers touch-move.
Exactly the same final sentence is used with 5.2.1 Stalemate and 5.2.2 Dead Position.
Motivation: I am trying to understand the background for this final sentence, for purposes of fairy chess problems & illegal positions. I think we should be able to evaluate the game state, even if there is no possible history. For example, some problems involve set play, where the player to move is flipped - there is no requirement that a set play position be legal.
Here's an instance:
8/8/8/8/8/8/PPrp4/KRk5 w - - 0 1
(If you think this position is more complicated than it needs to be, for absolute watertightness, remember that we need to ensure that there is no possible last move that White may have made, even from an illegal position where White (to move) was already apparently checking Black! (So-called "lèse-majesté" situation.))
We would say that this is checkmate, but ah no according to FIDE Laws it isn't because there's no legal prior move. So we are stuck in a hole: there are no legal moves, but the game isn't over.
In practical terms, I will recommend that the Chess Problem Codex https://www.wfcc.ch/1999-2012/codex/ should exclude this sentence, wherever it occurs, from application to problems.
But I still want to understand the rule from an otb (over the board) perspective.
(1) What does "immediately" mean? Don't have to hit the clock? Don't have to write the move? Counter for 50-move immediately suspended? (So one can't draw & win the game at the same time.)
(2) Why does only the last move have to be legal?
(3) What happens if there was an earlier uncorrected legality? Does it matter if the position is legal or illegal prior to the final move?
Side remark: for some reason Article 4.1 ("Each move must be played with one hand only.") is explicitly excluded from the scope. FIDE clearly intend that a player may theatrically make their final move with both hands, as if straining to lift and place a huge weight! This is covered here: Mate with both hands: Result?