tvl
Version:
A 316B implementation of Three Valued Logic in Javascript
28 lines (18 loc) • 1.72 kB
Markdown
## <img style="margin-left:auto;margin-right:auto;display-block:inline;" src="https://raw.githubusercontent.com/archanpatkar/tvl/master/tvl.png"/>
[](https://badge.fury.io/js/tvl) [](https://opensource.org/licenses/MIT) [](https://github.com/archanpatkar/tvl/actions?workflow=Test-Build-Publish) [](https://codeclimate.com/github/archanpatkar/tvl/maintainability)
This library provides the user with all the standard Propsitional Logic like operations of Non - Classical Trivalent or Three Valued Logic. This is an implementation of Kleene's (strong) "logic of indeterminacy" and Priest's "logic of paradox". Three valued logic is a multivalued logic i.e. it has more than two truth values in contrast to Propositional Logic which has only true and false, it introduces a third type of assertion undefined or indeterminate which allows the logic system to capture a fuzzy world view. The fundamental operations remain the same but the semantic understanding and logical implications change when compared to Propositional operations. The distribution of the library has a very small footprint, only 316 Bytes (Min + Gzip).
## Installation
<h3>NPM</h3>
```
npm install tvl
```
<h3>Browser</h3>
```
<script src="https://unpkg.com/tvl"><script/>
```
<h3>Browser Optimized (GZipped)</h3>
```
<script src="https://unpkg.com/tvl/dist/tvl.min.js.gz"><script/>
```
## Usage
[Documentation](https://tvl.archan.io)