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.
Q Ternary
This is an exploration of logic theory and harmonic divergence. It turned out to be more of a joke language than originally intended. The language is based partially on Cunningham's Law[1][2] while the program form is considered a Diophantine equation and is based on a proof of the statement Z is diophantine in Q[3].
Introduction
Beginning with Al Ghazali[4], through Ramon Llull[5], to Trithemius[6] the theory of logic did not make great progress until Gödel's[7] enumeration of "This statement is false." [8] 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[9] 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.)[10]
Program Structure
Programs are structured as a type of argument loosely based on the natural deduction calculi from the Logic Theory Machine[11]:
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[12]. 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 answer to Legendre's conjecture is "false." y| _|_____________________________ |"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[13] conjecture[14].
No op[15][16]
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[17][18]
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[19]
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| &
Kolakoski sequence[20][21]
Q&Ternary[[n,k,d]] u|φω=111 a|&θ=23/42 t|Φω=222 e|γΩ=17/762 r|&Θ=1/2 n| . a| . r|___________________________________________________ y|The density of 1's in the Kolakoski Sequence is 1/2. _|___________________________________________________ |"1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1,1,2,1,2,2,1,1,2,1,1,2,1,2,2,1,2,2,1,1,2,1,2,2,1,2,1,1,2,1,1,2,2,1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1,1,2,1,2,2"
This program is notable due to being recursively fluxus formae. Namely, the output string is a numerical sequence based on the open question.
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[22] 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[23]
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[24]
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[25]
Q&Ternary[[n,k,d]] u|M&U a| t| e|________________ r|There exists no solution to the MU puzzle. n| . a| . r|________________________________________ y| &I _|________________________________ |"~~~~MIUI"
User: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
The Oragami interpeter can be used to demonstrate how programs can be chained together by enumerating terms. This program provides a composition function for the definition of understanding something.
Q&Ternary[[n,k,d]] u|Φ User:Miui never understood something before. a|& Understanding something is like understanding anything. t|& The number 42 is the meaning of life. e|γ Anything is understood to be something when 42 = 101010 r|. . n|. . a|________________________________________________________ r|Φ I am Tupper's self-referential formula & 42 = 10101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 y|γK = 3188382555236585548082966226839975392876863773388822725885064270631250850446783460477545382026613819177608971239602457487385151388288483075025445837906733921965115567460382628935154292765868407864617838858135002326737637517623654830904205123071522016787096251866220280122447379039788560304947470578409013753360363236975737506979205833745943344767168878434343580265871490135997009610023990643939608938674134661043112102863824948304707633465524289767009362373947296353732908349851411187661984006550569793611987640005469730559860212130372495867921 _|__________________________________________________________________________________________________________ |42 is a floating point.
Decision problem[26][27]
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 as such.
- Construction: The error-correcting quantum codes [9] can implement TernLSB. This is somewhat humorous to consider as such a construction itself would be a form of steganography. This would require an additional base64 alphabet.
- Rationale: A machine of basis [[n,k,d]] is both recursively-enumerable and undecidable where it is an operand to a Diophantine equation.
Theorem: It is ℒ-equivalent.
- Construction: It can implement Cyclic tag via f(f([[n,k,d]]))
- Rationale: It is symbolically sufficient to represent a Turing tarpit.
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/
- ↑ ℤℚ Diophantine Project contributors. ℤ is Diophantine in ℚ. 2026. https://github.com/elliotglazer/diophantine-z-q/
- ↑ 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
- ↑ Online Encyclopedia of Integer Sequences "Kolakoski sequence: a(n) is length of n-th run; a(1) = 1". https://oeis.org/A000002
- ↑ Elizabeth J. Kupin, Eric S. Rowland. arxiv.org. "Bounds on the frequency of 1 in the Kolakoski word". 2008. https://arxiv.org/abs/0809.2776
- ↑ 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