Crates.io | joker_calculus |
lib.rs | joker_calculus |
version | 0.12.0 |
source | src |
created_at | 2021-11-19 07:08:42.778323 |
updated_at | 2024-09-15 14:44:03.010756 |
description | An implementation of Joker Calculus in Rust |
homepage | https://github.com/advancedresearch/joker_calculus |
repository | https://github.com/advancedresearch/joker_calculus.git |
max_upload_size | |
id | 484340 |
size | 76,315 |
An implementation of Joker Calculus in Rust
Based on paper Joker Calculus, by Daniel Fischer, William Alexander Morris and Sven Nilsen (2021).
Plato, an influential figure in Western philosophy. Source
Joker Calculus is a formal language that can describe higher dualities.
It generalizes 0
and 1
to 0 1
, 1 0
, ?0
, ?1
, 0 ?0
etc.
This library supports emojis for improving readability and memorization.
OJC | Emoji | CJC | Examples (OJC) | [*] |
---|---|---|---|---|
0 | ๐โ/๐ | 0 | 0 0, (0, 0), !1, !!0, !(1 1) | โ |
1 | ๐โ/๐ | 1 | 1 1, (1, 1), !0, !!1, !(0 0) | โ |
1 0 | ๐งโ/๐ | 1 0 | (1 1) 0, 1 (1 0) | ๐คจ |
0 1 | ๐งโ/๐คฏ | 0 1 | (0 0) 1, 0 (0 1) | ๐คจ |
?0 | ๐คกโ/๐ฅธ | ?0 | (0, 1), !?1, ?0 ?0, !(?1 0) | ๐คจ |
?1 | ๐คกโ/๐คฅ | ?1 | (1, 0), !?0, ?1 ?1, !(?0 1) | ๐คจ |
0 ?0 | ๐กโ/๐ญ | 0 ?0 | !(1 0) | ๐คจ |
1 ?1 | ๐กโ/๐ค | 1 ?1 | !(0 1) | ๐คจ |
1 ?0 | ๐คโ/๐ฅณ | 1 | (1 1) ?0 | ๐คจ |
0 ?1 | ๐คโ/๐คฉ | 0 | (0 0) ?1 | ๐คจ |
?0 0 | ๐โ/๐ฅน | ?0 0 | !?1 0 | ๐คจ |
?1 1 | ๐โ/๐ | ?1 1 | !?0 1 | ๐คจ |
?1 0 | ๐ขโ/๐ฑ | ?1 0 | !?0 0 | ๐คจ |
?0 1 | ๐ขโ/๐ฐ | ?0 1 | !?1 1 | ๐คจ |
?1 ?0 | ๐ โ/๐ฌ | ?1 ?0 | !(?0 0) | ๐คจ |
?0 ?1 | ๐ โ/๐ซค | ?0 ?1 | !(?1 1) | ๐คจ |
(0 ?0) 0 | ๐โ/๐ค | (0 ?0) 0 | 0 (?0 0) | ๐คจ |
(1 ?1) 1 | ๐โ/๐ค | (1 ?1) 1 | 1 (?1 1) | ๐คจ |
(1 ?0) 0 | ๐โ/๐ด | 1 0 | 1 (?0 0) | ๐คจ |
(0 ?1) 1 | ๐โ/๐ช | 0 1 | 0 (?1 1) | ๐คจ |
??0 | ๐โ/๐คซ | 0 | (?0, ?1), ?(0, 1) | ๐คจ |
??1 | ๐โ/๐ซข | 1 | (?1, ?0), ?(1, 0) | ๐คจ |
???0 | ๐คชโ/๐ป | ?0 | (??0, ??1) | ๐คจ |
???1 | ๐คชโ/๐ฝ | ?1 | (??1, ??0) | ๐คจ |
0 ??0 | ๐โ/๐ | 0 | !(1 ?0) | ๐คจ |
1 ??1 | ๐โ/๐ | 1 | !(0 ?1) | ๐คจ |
1 ??0 | ๐คโ/๐ | 1 0 | !(0 ?0) | ๐คจ |
0 ??1 | ๐คโ/๐ | 0 1 | !(1 ?1) | ๐คจ |
0 ???0 | ๐คฌโ/๐ | 0 ?0 | !(1 ??0) | ๐คจ |
1 ???1 | ๐คฌโ/๐ฆถ | 1 ?1 | !(0 ??1) | ๐คจ |
1 ???0 | ๐ฅฐโ/๐ค | 1 | !(0 ??1) | ๐คจ |
0 ???1 | ๐ฅฐโ/๐ค | 0 | !(1 ??1) | ๐คจ |
?0 ??0 | ๐คฃโ/๐ | ?0 0 | !(?1 ?0) | ๐คจ |
?1 ??1 | ๐คฃโ/๐ | ?1 1 | !(?0 ?1) | ๐คจ |
?1 ???0 | ๐โ/๐ | ?1 ?0 | !(?0 ??0) | ๐คจ |
?0 ???1 | ๐โ/๐ | ?0 ?1 | !(?1 ??1) | ๐คจ |
[*] โ = stable, ๐คจ = emoji might change, โ = rules might change
use joker_calculus::*;
fn main() {
let a = platonism();
let b = not(a.clone());
assert_eq!(b.eval_closed(), seshatism());
}
use joker_calculus::*;
fn main() {
let a = jc!("๐");
let b = not(a.clone());
assert_eq!(b.eval_closed(), jc!("๐"));
let a = jc!("๐ป");
let b = not(a.clone());
assert_eq!(b.eval_open(), jc!("๐ฝ"));
assert_eq!(b.eval_closed(), jc!("๐คฅ"));
let a = jc!("๐ฝ");
let b = not(a.clone());
assert_eq!(b.eval_open(), jc!("๐ป"));
assert_eq!(b.eval_closed(), jc!("๐ฅธ"));
let a = jc!("๐คฅ");
let b = not(a.clone());
assert_eq!(b.eval_closed(), jc!("๐ฅธ"));
let a = jc!("๐ฅณ");
let b = not(a.clone());
assert_eq!(b.eval_open(), jc!("๐"));
assert_eq!(b.eval_closed(), jc!("๐"));
let a = jc!("๐คฉ");
let b = not(a.clone());
assert_eq!(b.eval_open(), jc!("๐"));
assert_eq!(b.eval_closed(), jc!("๐"));
let a = jc!("๐" "๐คกโ");
let b = jc!("๐" "๐คฅ");
assert_eq!(a, b);
let a = jc!(("๐", "๐"));
assert_eq!(a.eval_closed(), jc!("๐ฅธ"));
let a = jc!(("๐", "๐"));
assert_eq!(a.eval_closed(), jc!("๐คฅ"));
}
Joker Calculus is used to describe language bias in philosophical positions.
You can think of Joker Calculus as extending bits with two modes of evaluation (Open and Closed):
0 = Platonism
1 = Seshatism
!0 = 1 (in both Open and Closed variant)
!1 = 0 (in both Open and Closed variant)
There is a "Joker" operator ?
:
?0 = (0, 1) = Something that appears to be 1 but actually is 0
?1 = (1, 0) = Something that appears to be 0 but actually is 1
(0, 0) = 0
(1, 1) = 1
There is also a perspective operator:
0 1 = Something that is like 1 but seen from the perspective of 0
1 0 = Something that is like 0 but seen from the perspective of 1
These operators are used to build more complex expressions, such as:
0 ?1 = 0 (in Closed variant) = Something who stands for 1 but "embraces" 0
1 ?0 = 1 (in Closed variant) = Something who stands for 0 but "embraces" 1
This also allows expressing positions that are co-dependingly "stuck in inauthenticity":
!(1 0) = 0 ?0 = Something who stands for 0 but "can not perceive itself from" 1
!(0 1) = 1 ?1 = Something who stands for 1 but "can not perceive itself from" 0
Martin Heidegger thought a lot about "authenticity and "inauthenticity" in Being. This idea has been used in Joker Calculus from a Wittgensteinean perspective of the relationship between language and logic.
In Joker Calculus, one says a language bias is "inauthentic" if it contains a Joker after being evaluated in the Closed variant. This means, the language can not get rid of some internal boundary between two languages of different biases.
For example, when I see your position 0
from my position 1
, I can express this as 1 0
.
This is considered an authentic position, even though I am biased.
However, when I pretend to have some position 0
while actually having a position 1
,
this is considered an inauthentic position, since it can be expressed as (1, 0) = ?1
.
This language bias is inauthentic because it contains a Joker.
A third example is when I "embrace" a position 0
while holding a position 1
, which is expressed as 0 ?1 = 0
in the Closed variant.
1
0
, hence (1, 0) = ?1
0
as embracing 0
, hence 0 ?1 = 0
in the Closed variantJoker Calculus can sometimes get rid of Jokers when evaluating in the Closed variant. These positions are considered authentic.
The id
operator preserves the identity of the argument.
For example, !id(0)
does not evaluate to 1
.
However, Joker Calculus can still reason about it.
In the Closed variant, !!id(0)
becomes id(0)
.
In philosophy, this corresponds to opaque language bias. You can also think of it as treating involutions along an unknown language dimension.
Joker Calculus is a strongly normalizing formal model of higher duality between Platonism and Seshatism.
In philosophy of metaphysics, Platonism is the view that there exists such things as abstract objects. Platonism had a profound effect on Western thought.
In the philosophy of mathematical language design, the core axiom of Path Semantics implies the existence of a dual version of Platonism called "Seshatism".
With other words, to the degree one can take the view of Platonism in philosophy, there is a corresponding but opposite position of Seshatism. Seshatism is just as deep and complex as Platonism, because there is a precise mathematical relation between the two ways of constructing mathematical languages.
Seshatism must not be confused with Nominalism, which is important in the debate about philosophy of metaphysics. Nominalism plays a less important role in the philosophy of mathematical language design. You can learn more about this in the essay What is Wrong With Platonism?.
Seshatism is currently being studied under the AdvancedResearch organisation.
"The Joker" as a mathematical universe was inspired by the philosophy of Alan Watts, who held a lecture about the topic.
A higher duality, in the sense of the Joker Calculus, means that languages can have different surface and depth levels. These configurations of surface and depth levels also have their duals.
Joker Calculus comes in two variants, one called "open" and one called "closed".
use joker_calculus::*;
fn main() {
let a = seshatic(platonism());
let b = not(a.clone());
let b_open = b.eval_open();
let b_closed = b.eval_closed();
assert_eq!(b_open, platonic(joker(platonism())));
assert_eq!(b_closed, platonic(joker(platonism())));
let a_open = not(b_open).eval_open();
let a_closed = not(b_closed).eval_closed();
assert_eq!(a_open, seshatic(joker(joker(platonism()))));
assert_eq!(a_closed, seshatic(platonism()));
}