A theory of humor based on identifying mismatches in expectations and then resolving them in unexpected ways.