Complex arithmetic package for the Fōrmulæ programming language.
Fōrmulæ is also a software framework for visualization, edition and manipulation of complex expressions, from many fields. The code for an specific field —i.e. arithmetics— is encapsulated in a single unit called a Fōrmulæ package.
This repository contains the source code for the logic package. It is intended to the computation of logical operations.
The GitHub organization formulae-org encompasses the source code for the rest of packages, as well as the web application.
- Visualization of the truth values true and false
- Visualization of logic operations. Users can choose between:
Operation | Traditional notation | Mnemonic notation |
---|---|---|
Negation | ||
Conjunction | ||
Disjunction | ||
Conditional | ||
Equivalence | ||
Exclusive disjunction |
- Visualization of predicate expressions
- Nullary or 0-arity predicates, visualized as its own name, e.g.
$P$ -
First order logic predicates, with a given number of terms, visualized as
$P(t_1, t_2, ..., t_n)$
- Nullary or 0-arity predicates, visualized as its own name, e.g.
- Visualization of universal quantifier, shown as
$\forall$ - Visualization of existential quantifier, shown as
$\exists$ - Reduction of the logic operations negation, conjunction, disjunction, conditional, equivalence and exclusive disjunction
- Conversion from/to numeric values (true ⇔ 1, false ⇔ 0)
The following Fōrmulæ scripts use expressions from the logic package: