Please show an example of the triple repitation checkmate


Isn't it a draw already after 4...Kg8 ?
Since before a move was made there was already a position
Lets say black's move before the initial position ( sort of a premove ) is
0...Rf8 ( only possible last move for black )
So After
0...Rf8
2...Kg8
4...Kg8
A position already appeared thrice so couldn't you already claim the draw after 4...Kg8?

Isn't it a draw already after 4...Kg8 ?
Since before a move was made there was already a position
Lets say black's move before the initial position ( sort of a premove ) is
0...Rf8 ( only possible last move for black )
So After
0...Rf8
2...Kg8
4...Kg8
A position already appeared thrice so couldn't you already claim the draw after 4...Kg8?
Yes indeed; I missed that.
So, can the draw be claimed even after moves have been made that break the repetition (e.g. the capture of pieces)? So, if white massively messed up and lost all but his king and black still has this rook (and maybe even his pawn to promote), he could claim the draw even though black can force checkmate? I'm unsure of this.