We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
User:Miui/Drafts/Q Ternary
- This is still a work in progress. It may be changed in the future.
This is an exploration of logic theory and harmonic divergence. It turned out to be more of a joke language than originally intended. It is based partially on Cunningham's Law[1][2].
Introduction
Beginning with Al Ghazali[3], through Ramon Llull[4], to Trithemius[5] the theory of logic did not make great progress until Gödel's[6] enumeration of "This statement is false." [7] Since that time progress has exploded quickly but the language has developed primarily in the fields of computation and mathematics while logical description of said progress has lagged behind. In general we can make AI proof things but the proofs are yet too abstract for most people to understand.
This language is an attempt to exploit natural harmonic divergence via the continuity of cognition and intuition using quantum error correction[8] in order to make informal arguments (and potentially execute programs). Some examples follow:
The Axiom & Maxim
The Axiom of Use: If there exists a user, then the following maxim may be used:
Maxim: This language follows "the eagle or the sparrow" (i.e the trail is wide and narrow.)[9]
Program Structure
Programs are structured as a type of argument loosely based on the natural deduction calculi from the Logic Theory Machine[10]:
Q&Ternary[[n,k,d]] u| a| t| e| r| n| a| r| y|
The vertical redux on the left side is the Quaternary and the reduction argument is place to the right of it under the Ternary which corresponds to an error-correcting code [[n,k,d]].
Program types
There are two types of programs in Q Ternary: fluxus formae and forma fluens[11]. Fluxus formae are reduxed in the quaternary and can be specified to strings (e.g. "Hello, world!") while forma fluens are the quantum ternary equivalent of booleans.
Examples
"Hello, world!"
Q&Ternary[[n,k,d]] u|Φ a| t| e| r| n| a|_______________________________ r|the Legendre conjecture is false y| unknown | true _|_____________________________ |"Hello, world!"
Note that taking a position on an open mathematical question is required for fluxus formae. In this case the string "Hello, world!" is the output to negation of Legendre's[12] conjecture[13].
No op[14][15]
Q&Ternary[[n,k,d]] u|ΦTuring believes machines think. a|&Turing lies with men. t|γTherefore machines do not think. e|__________________________________ r|Machines do not think. n| . a| . r|______________________ y| Do not.
Similar to the "Hello, world!" example, by appending "Nope." to the quaternary this is effectively a Nope. program.
Prime Checker[16][17]
Q&Ternary[[n,k,d]] u|Φ57 is prime. a|&According to Grothendieck. t|γTherefore 57 is prime. e|__________________________________ r|~~~57 is divisible by 3 and 19. n| . a| . r|_______________________________ y| Prime
Fibonacci[18]
Q&Ternary[[n,k,d]] u|Φ===! a|~=-=-=- t|&==61 e|γx²–xy–y²=61 r|____________ n|ø²+ø–1=0. a| . r| . y| 0~1~1~2~3~5...
Ackermann function
unfinished
Q&Ternary[[n,k,d]] u|Φm,n a|&m=0 t|γn+1 e|____ r| &n=0 n| γm-1,1 a|_______ r| Φ&γ y| &
Diophantine equation
Q&Ternary[[n,k,d]] u| a| t| e| r| n| a| r| y|
Quadratic sync problem
This is attacked via bruteforce Blum Blum Shub[19] p=11, q=23, s=3 for k=1 n=58 d=2
Q&Ternary[[n,k,d]] u|ΦPrime(succ(57)) a|&0(mod 1) t|&2(mod 5) e|&3(mod 6) r|&7(mod 10) n|&19(mod 38) a|γG(mod 0,1,2,3) r|&f(4) y|Θ _|________________________________________________ T|"The quadratic sync problem is not Turing-complete."
Bitwise Cyclic Tag interpreter
Q&Ternary[[n,k,d]] u|Φ011 1 a|&10 011 t|&101 11 e|&011 1101 r|&10 101011 n|&101 0101110 a|&011 101110 r|γ. γ. y|γ. γ. _|_______________________ |The Collatz conjecture is true.
Cat program
Q&Ternary[[n,k,d]] u|Φ"This is a cat program" a| . t| . e|_____________________________ r|Q Ternary is Turing-complete. n| . a| . r| y| _|________________ | "This is a cat program"
Truth machine
Q&Ternary[[n,k,d]] u|Φ? a|&"0" t|γ"1" e|___________________ r|&γ1 n|. a|. r|Φ y| _|____________________ |0 1 "1" |! φ ∞!
Quine
Q&Ternary[[n,k,d]] u|Φω=36 a|&42=ω++++++ t|&7x3x2≠42 e|γΩ+1=23/42 r| . n| . a|_________ r| 42 = 42 y|
This is cheating (and likely incorrect) but the premise is to describe the concept of a quine in Q Ternary then let the error-correcting code write the logical prefix.
Gödel enumeration[20]
Q&Ternary[[n,k,d]] u|Φ₁=11 a|&Φ²=121 t|γ&Ω=n! e|______ r|k!(n-k)! n| . . a| . . r|________ y|42 odd _|__________ Θ| Halt
Lean interpreter[21]
Q&Ternary[[n,k,d]] u|Θ a| t| e| r|________________ n|some positive squarefree n prime to6theta gives nonzero rational points a|in squareclass mu on E_n and E_(n theta). r| y| _|_________________ |"For positive squarefree mu, |theta with disjoint support avoiding2,3, |mu=17 mod24, |theta=1 mod24 and mutual local squareness at their supporting primes, |Theta=1 is allowed." _|___________________ Θ|1
MU Puzzle[22]
unfinished
Q&Ternary[[n,k,d]] u|M&U a| t| e|________________ r|There exist a solution to the MU puzzle. n| . a| . r|________________________________________ y| &I _|________________________________ |"~~~~MIUI"
Oragami interpreter
Q&Ternary[[n,k,d]] u|Φω"The smallest positive integer not definable in under sixty letters." a|&Ω=ω t|γ(f)=Φp=φΩ e| . r| . n|__________ a|960939379918958884971672962127852754715004339660129306651505519271702802395266424689642842174350718121267153782770623355993237280874144307891325963941337723487857735749823926629715517173716995165232890538221612403238855866184013235585136048828693337902491454229288667081096184496091705183454067827731551705405381627380967602565625016981482083418783163849115590225610003652351370343874461848378737238198224849863465033159410054974700593138339226497249461751545728366702369745461014655997933798537483143786841806593422227898388722980000748404719 r| . y| . _|__________________ |Tupper's self referential formula
Decision problem[23][24]
Q&Ternary[[n,k,d]] u|ΦAre you coming to bed? a|&Someone is wrong on the internet. t|γI cant. e|&This is important. r|___________________ n|Yes No a|. . r|. . y|Φ ~Φ _|Decidable. ~ .| . Undecidable .| φ ∞?
XKCD Random Number
Q&Ternary[[n,k,d]] u|Φ int getRandomNumber() a|& chosen by fair dice roll. t|& guaranteed to be random. e|_________________________ r|γ return 4; n| . a| . r|___________ y| 4
Computational class
Theorem: It is Turing complete but uncomputable.
- Construction: The error-correcting quantum codes [8] can implement TernLSB. This is somewhat humorous to consider as such a construction itself would be a form of steganography.
Further Reading
- The Dialogical Roots of Deduction — Catarina Dutilh Novaes, Vrije Universiteit, Amsterdam (https://doi.org/10.1017/9781108800792)
References
- ↑ XKCD. 386. Duty Calls. https://xkcd.com/386/
- ↑ Ward Cunningham. Weekend Competition: Schott’s Law. 1980. https://www.laws-of-software.com/laws/cunningham/
- ↑ Wikipedia. Al Ghazali. https://en.wikipedia.org/wiki/Al-Ghazali
- ↑ Wikipedia. Ramon Llull. https://en.wikipedia.org/wiki/Ramon_Llull
- ↑ Wikipedia. Johannes Trithemius. https://en.wikipedia.org/wiki/Johannes_Trithemius
- ↑ Wikipedia. Kurt Gödel. https://en.wikipedia.org/wiki/Kurt_G%C3%B6del
- ↑ Wikipedia. Liar Paradox. https://en.wikipedia.org/wiki/Liar_paradox
- ↑ A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane. Institute for Defense Analyses, Princeton. 1997. "Quantum Error Correction Via Codes Over GF(4)". https://arxiv.org/pdf/quant-ph/9608006
- ↑ Know Your Meme. "'Jeremiah Johnson Nod of Approval". https://knowyourmeme.com/memes/jeremiah-johnson-nod-of-approval
- ↑ Wilfred Sieg, Richard Scheines. Fourth International Conference on Computers and Philosophy, Carnegie-Mellon University. "Searching for Proofs in Sentential Logic". https://www.cmu.edu/dietrich/philosophy/docs/tech-reports/21_Sieg.pdf
- ↑ Jon Mcginnis. British Journal for the History of Science. "A Medieval Arabic Analysis Of Motion At An Instant: the Avicennan sources to the forma fluens/fluxus formae debate". 2006. https://philpapers.org/rec/MCGAMA-3
- ↑ Wikipedia. https://en.wikipedia.org/wiki/Adrien-Marie_Legendre Adrien-Marie Legendre
- ↑ Wikipedia. https://en.wikipedia.org/wiki/Legendre's_conjecture Legendre's conjecture
- ↑ Wikipedia. Sir Alan Mathison Turing. https://en.wikipedia.org/wiki/Alan_Turing
- ↑ Shaun Usher. Letters of note. "Yours in Distress", Turing's letter to Norman Routledge. 1952. https://news.lettersofnote.com/p/yours-in-distress
- ↑ Wikipedia. Alexander Grothendieck. https://en.wikipedia.org/wiki/Alexander_Grothendieck
- ↑ Allyn Jackson. American Mathematical Society. "Comme Appelé du Néant— As If Summoned from the Void: The Life of Grothendieck". 2004. https://www.ams.org/notices/200410/fea-grothendieck-part2.pdf
- ↑ Michael Penn. Youtube. "the Fibonacci numbers were hiding in this equation". 2026. https://www.youtube.com/watch?v=zXQs7hBaGVo
- ↑ Wikipedia. Blum Blum Shub. https://en.wikipedia.org/wiki/Blum_Blum_Shub
- ↑ School of Computer Science – University of Auckland (wayback). ALGORITHMIC INFORMATION THEORY. https://web.archive.org/web/20160308174926/https://www.cs.auckland.ac.nz/~chaitin/cup.pdf
- ↑ Esolangs – List of ideas. Interactive theorem provers. https://esolangs.org/wiki/List_of_ideas#Interactive_theorem_provers
- ↑ Wikipedia. MU puzzle. https://en.wikipedia.org/wiki/MU_puzzle
- ↑ Wikipedia. Entscheidungsproblem. https://en.wikipedia.org/wiki/Entscheidungsproblem
- ↑ Wikipedia. Decision problem. https://en.wikipedia.org/wiki/Decision_problem