Deuteronomy 19:19 "You shall do to him as he had thought to have done to his brother"

If witnesses are found to be testifying falsely, they must be punished.

We are commanded to impose upon these false witnesses the same verdict that would have been given to the person on trial, had their testimony been true.