Model answer
Invariant: before every iteration, if the target exists it lies inside the current interval. Comparing mid removes only a half that cannot contain the target, and moving past mid strictly shrinks the interval; termination with an empty interval proves absence.
Use the key terms, then explain the reasoning.