Checkmate is when you surround your opponent's king, and he can't move or capture your piece.
Not quite.
You forgot to mention that at least one of your pieces or pawns is attacking the king directly and there is no way for the king to escape the attack or somehow remove the attackers.
Surrounding it isn't enough.
Checkmate is when you surround your opponent's king, and he can't move or capture your piece.