Formal verification uses mathematical or highly structured techniques to check that an artefact (such as a module in code, or a full interface) corresponds to its specification.
To perform formal verification, one needs a formal description of both (i) the artefact and (ii) the specification. Within HCI the former, a portion of complete computer system, is easier (although by no means trivial), but for the latter, a formal specification, is virtually impossible. The requirements of a user-oriented system inevitably are nuanced even in terms of functionality let alone user experience; transforming this into a formal specification is complex and inevitably incomplete – the formality gap. Indeed the greatest danger in any formal process is believing that the formal specification covers everything.
Some approaches use cognitive models alongside formal models of the system. This approach dates back to cognitive complexity theory in the 1980s, but with more recent methods particularly in safety critical domains.
Although in principle code is a completely formal entity, the complexity of even moderate sized systems can make formal verfication exceedingly hard. This is made worse in AI systems due to their inherent complexity and scale.
Used in glossary entries: AI-based systems, functionality, user experience
Links:
springerprofessional.de: The Handbook of Formal Methods in Human-Computer Interaction. Weyers, et al. (2017).
