You catch a glimpse of mother-of-pearl on the beach at dusk and see silver. The shell is there. The cognition has a real referent. The cognition has the referent wrongly - it has taken one thing for another. This is viparyaya, the partner concept to vikalpa in Patanjali’s five-mode map of mental activity.
The structure is specific. A real object is present and is being misread. The misreading is corrigible: walk closer, the shell shows itself as a shell, the cognition resolves. This corrigibility is a marker. Viparyaya yields to better perception of the same object. Vikalpa, by contrast, has no object to walk closer to - the cognition is generated by linguistic form and has nowhere for correction to land except in the recognition that the form is empty.
Patanjali defines viparyaya at sutra 1.8 as false knowledge not established in the form of its own object (atad-rupa-pratishttham). The wording is careful. The cognition is not arbitrary - it is established on something, but on a form that is not the form of the object actually present. Silver-form has been laid on shell-substrate. The shell is there; the silver-form does not belong to it.
The traditional five sub-types of viparyaya are listed at sutra 2.3 under the kleshsas: avidya, asmita, raga, dvesha, abhinivesha. Each is a specific shape of mistaking - taking the impermanent as permanent, taking the seer to be the instrument, taking the attractive as good, and so on. Viparyaya is the master category; the kleshas are its operational instances.
Where English Falls Short
The English word “error” lumps viparyaya and vikalpa together. Both are called errors. Both come out as “the mind got it wrong.” The result is that the response to an error becomes generic - try harder, double-check, get more data - when the appropriate response differs by which kind of error it was. A misperception of a real object is corrected by better perception. A representation generated by language with no referent cannot be corrected by perception at all; it can only be marked as referentless.
The split also matters for honesty about one’s own cognition. “I was wrong about X” treats correction as homogeneous. The Yoga frame asks: was X a real thing I tracked wrongly, or was X never there in the first place? The answer determines whether what is owed is a corrected belief or an admission that the belief had no object.
Where it Shows Up
LLM misattribution. A model attributes a real paper to the wrong author, or assigns a real quote to the wrong source. The referent exists; the model has it wrongly. The fix is retrieval improvement - give the system better access to the real referent so the cognition can resolve to the actual form. Distinct from the vikalpa failure of fabricating a non-existent paper, which calls for grounding interventions instead.
User research interpretation. A user reports their behavior and gets it wrong about themselves. There is a real behavior pattern; the report has the form of the pattern wrongly. Asking “what does the user actually do?” is the viparyaya correction. Different from the case where the user constructs a self-image with no behavioral referent at all, which is closer to vikalpa.
Debugging. A developer believes the bug is in function X when it is in function Y. There is a real bug; the cognition has placed it wrongly. The standard debugging discipline - print statements, bisection, reproducer cases - is the viparyaya corrective: forcing the cognition to confront the actual referent until the wrong form is replaced by the right one.
Diagnostic error in medicine. The classical case. A real disease is present; the cognition has identified it as another disease. The structural form of the failure and its corrective procedure are viparyaya.
Memory degradation. A real past event is recalled with the wrong details - the wrong year, the wrong person, the wrong order. The cognition has a referent (the actual event); the form does not match. Reconstruction against external records is the viparyaya correction.
Diagnostic Question
“Is there a real referent for this cognition that has been tracked wrongly, or is there no referent at all - because the corrective move differs.”
IKS Roots
The Sanskrit term is viparyaya (विपर्यय), literally “reversal” or “going against,” used technically in Yoga for false cognition that nevertheless rests on a real object. Patanjali’s definition at sutra 1.8 reads viparyayo mithya-jnanam atad-rupa-pratishttham - viparyaya is false knowledge not established in the form of its own object. The classical commentarial example is the silver-in-shell case (shukti-rajata), where mother-of-pearl is taken for silver. The Nyaya tradition treats the same kind of cognition under the heading of bhrama (false cognition) or anyatha-khyati (otherwise-apprehension) and elaborates a substantial literature on the metaphysics of error that overlaps with the Vedanta treatment under adhyasa. Yoga keeps the treatment psychological-operational.
See also Y1 (the five-mode vritti frame in which viparyaya sits), Y2 (vikalpa - the partner case of cognition without an object), Y4 (avidya - viparyaya in its master form, as the active mis-taking that conditions the other kleshas), and V1 (adhyasa - the Vedantic analysis of the same structural cognitive event).
Further Reading
Edwin Bryant, The Yoga Sutras of Patanjali, for accessible translation of sutra 1.8 and the commentarial tradition on viparyaya. Vyasa’s Yoga-bhashya for the foundational treatment. Bimal Krishna Matilal, Perception, for the wider Indian theory of error across Nyaya and Vedanta.
