Witness (mathematics)


In mathematical logic, a witness is a specific value t to be substituted for variable x of an existential statement of the form ∃x φ such that φ is true.

Examples

For example, a theory T of arithmetic is said to be inconsistent if there exists a proof in T of the formula "0 = 1". The formula I, which says that T is inconsistent, is thus an existential formula. A witness for the inconsistency of T is a particular proof of "0 = 1" in T.
Boolos, Burgess, and Jeffrey define the notion of a witness with the example, in which S is an n-place relation on natural numbers, R is an -place recursive relation, and ↔ indicates logical equivalence :
In this particular example, the authors defined s to be recursively semidecidable, or simply semirecursive.

Henkin witnesses

In predicate calculus, a Henkin witness for a sentence in a theory T is a term c such that T proves φ. The use of such witnesses is a key technique in the proof of Gödel's completeness theorem presented by Leon Henkin in 1949.

Relation to game semantics

The notion of witness leads to the more general idea of game semantics. In the case of sentence the winning strategy for the verifier is to pick a witness for. For more complex formulas involving universal quantifiers, the existence of a winning strategy for the verifier depends on the existence of appropriate Skolem functions. For example, if S denotes then an equisatisfiable statement for S is. The Skolem function f actually codifies a winning strategy for the verifier of S by returning a witness for the existential sub-formula for every choice of x the falsifier might make.