Question: how does the sword of gryffindor appear in the lake?
Answer: Snape deposited the real sword in a frozen lake in the Forest of Dean and used his corporeal Doe Patronus to guide Harry to the sword. When Harry tried to retrieve the sword, the Locket of Slytherin closed around his neck and attempted to strangle him, sensing that its destruction was near.