r/EncapsulatedLanguage • u/AceGravity12 Committee Member • Jul 28 '20
Basic arthimatic through basic algebra
NOTE: <add>, <multiply>, <power>, and <?> are placeholders that will be replaced when an official phonotactic system is chosen.
Math System:
Taught by example version:
What is “1 1 ? <add>”? It's “2”. (1 + 1 = 2)
What is "2 1 ? <add>”? It's “3”. (2 + 1 = 3)
What is "1 2 ? <add>”? It's “3”. (1 + 2 = 3)
What is "2 ? 1 <add>”? It's “-1”. (2 + X = 1, X = -1)
What is "3 ? 1 <add>”? It's “-2”. (3 + X = 1, X = -2)
What is "3 ? 2 <add>”? It's “-1”. (3 + X = 2, X = -1)
What is "? 1 1 <add>”? It's “0”. (X + 1 = 1, X = 0)
What is "? 2 1 <add>”? It's “-1”. (X + 2 = 1, X = -1)
What is "? 1 2 <add>”? It's “1”. (X + 1 = 2, X = 1)
Is "1 1 1 <add>” true? No. (1 + 1 ≠ 1)
Is "1 2 3 <add>” true? Yes. (1 + 2 = 3)
What is “ 1 1 ? <multiply>”? It's “1”. (1 × 1 = 1)
What is "2 1 ? <multiply>”? It's “2”. (2 × 1 = 2)
What is "1 2 ? <multiply>”? It's “2”. (1 × 2 = 2)
What is "2 ? 1 <multiply>”? It's “1/2”. (2 × X = 1, X = 1/2)
What is "3 ? 1 <multiply>”? It's “1/3”. (3 × X = 1, X = 1/3)
What is "3 ? 2 <multiply>”? It's “2/3”. (3 × X = 2, X = 2/3)
What is "? 1 1 <multiply>”? It's “1”. (X × 1 = 1, X = 1)
What is "? 2 1 <multiply>”? It's “1/2”. (X × 2 = 1, X = 1/2)
What is "? 1 2 <multiply>”? It's “1”. (X × 1 = 2, X = 2)
Is "1 1 1 <multiply>” true? Yes. (1 × 1 = 1)
Is "1 2 3 <multiply>” true? No. (1 × 2 ≠ 3)
What is "1 1 ? <power>”? It's “1”. (1 ^ 1 = 1)
What is "2 1 ? <power>”? It's “2”. (2 ^ 1 = 2)
What is "1 2 ? <power>”? It's “1”. (1 ^ 2 = 1)
What is "2 ? 4 <power>”? It's “2”. (2 ^ X = 4, X = 2)
What is "3 ? 1 <power>”? It's “0”. (3 ^ X = 1, X = 0)
What is "3 ? 2 <power>”? It's “log3(2)”. (3 ^ X = 2, X = log3(2) ≈ 0.631)
What is "? 1 1 <power>”? It's “1”. (X ^ 1 = 1, X = 1)
What is "? 2 1 <power>”? It's “1 and -1”. (X ^ 2 = 1, X = 1, -1)
What is "? 1 2 <power>”? It's “2”. (X ^ 1 = 2, X = 2)
Is "1 11 1 <power>” true? Yes. (1 ^ 11 = 1)
Is "2 2 5 <power>” true? No. (2 ^ 2 ≠ 5)
Now for some hard ones:
What is “1 2 ? 3 <add> ? <add>”? It's “2”. (2 + X = 3, X = 1, => 1 + X =2)
Is “1 1 ? <power> 1 ? <multiply> 1 2 <add>” true? Yes. (1 ^ 1 = X, X = 1 => 1 × X = Y, Y=1 => 1 + Y = 2 )
Nitty-gritty version:
This system uses reverse polish notation and a number question word to construct arithmetic from 4 words. Because of this, parentheses are never needed. Three of the words are ternary relations:
“<add>” states that its first two arguments added together equals the third. “<Multiply>” states that its first two arguments multiplied together equals the third. “<power>” states that its first argument to the power of its second argument equals the third. The final word “<?>” asks you to take the trianary relation and figure out what number “<?>” has to be to make it true (all “<?>”s in a single relationship are the same so “<?> <?> 2 <add>” is 1, “<?>” is technically purely formatting not a variable, that system will come later). Whenever one of these three words has “<?>” in it the entire relation can be treated as a single number for grammatical purposes, if it has no “<?>”s in it then it can be treated as either True or False. Because of this, relations are able to nest inside of each other allowing for more complicated numbers to be represented. IMPORTANT NOTE: This is the backbone of a full mathematical system, while it can express everything needed to teach basic algebra, that does not mean more features cannot be added in the future to make things more convenient. Big thanks to Omcxjo, who kept me on track preventing feature creep, helped clean up the system, and pointed out many errors.
Edit: formatting
View all comments
Show parent comment
1
u/AceGravity12 Committee Member Jul 30 '20
I think that a lot of what you're describing isn't a basis but shortcuts, things like ln() vs log() vs logN() those are all the same thing structurally just with different assumed (or unassumed) arguments, the goal of the this backbone is to be able to be used to define those things additionally I wondered if you would going to go this deep but I imagined once add12() got reached it then took an extra argument, one of the power, similar to how some languages I'n the past technically had a highest number that they just used for "this much or more". (More accurately instead of having an extra argument the following number gets bound to it is add12()0, add12()1, add12()2, etc while the numbers in the relationship still preceed it, meaning that the number that gets bound to add12() can't be (?) Because that isn't actually a number
I think what you're discribing leads to a turtles all the way down situation, this was designed to be the basis from which other things are described as such it is intended to be short. Similar to machine code, yes technically there is a lower level process going on here but that is baked into the system, the best this can do is tell you what the commands do, buy from these basic structures higher lever concepts can be built.
The valency you describe seems to already be in the system somewhat, with each operation there are numbers that restrict it's operations ie "0 ? X +" can show negating a number.
Also it's my understanding that add0() does technically take two inputs for one output normally, however the second input is meaningless. In the same way as if I asked you what base the number 1 was in it wouldn't matter, it could be 10 it could be 36489, but because it's the 0th power of that base it doesn't matter
(Yes things like pi/e need their own thing since they can't be finitely represented with algebra, also you are definitely right about the phonology in my mind nothing about this language is ever fixed, so I'm Chucking some filler information in there until someone has a better idea)