Documentation

Truth Values

Fundamentally there are three truth values in Three Valued Logic i.e. true, false and undefined

Operations

Operations in Three valued logic remain identical to operations from Propositional Logic i.e. not, and, or, implication, biconditional etc.

Interpretation

The interpretation of the outcome ultimately rests upon the user how the user is using the operations and the values in a given problem's context and also it depends on which flavour of TVL the user intends to use as the fundamental presupposition with regards to tautologies change from Kleene's Strong (undefied is underdetermined it cannot be used as consequence of a tautology) to Priest's LOP (undefied is overdetermined it can be used as consequence of a tautology)

Usage

If in Node.js Enviroment you have to install and require the package and if using in the Browser Enviroment then you have to add the CDN Link and you can directly refer to the tvl library object because it will be initialized in the Global Window object. Below code is a Node.js example

const tvl = require("tvl");

console.log(tvl.not(true));
console.log(tvl.not(undefined));
console.log(tvl.and(false,undefined));
console.log(tvl.imp(undefined,undefined));