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
2
u/Haven_Stranger Jul 30 '20
Ok, not a bad perspective. The ln() function is certainly a shortcut, and we've always got the long option of saying "log base e". At first glance, I expected valency to just be baked in at three -- add1 through add3 don't require anything else. If we're always using three arguments, then we don't need to mark that number anywhere. The add4 operation and beyond certainly exist, but I doubt it will see much use in a high school course.
But, yeah, I am chasing the turtles all the way up and down. That's not necessary for this algebra, but it's useful for looking at the plain-language portion of the language. At this point, ternary + * ^ is sufficient. It's a great backbone.
Your understanding about the valence of ( add0 ) is just fine. A valence 2 version only exists because the reverse-this-operation question has a theoretical existence. It only matters when we get to examining how a shortcut like ( neg ) works. I'm not concerned with creating the most useful shortcuts now, or figuring out which ones are useful enough. I'm concerned with how they will be formed in general -- I'm looking at the inevitable pattern here (or at least the unavoidable constraints) so I can figure out what I want from a general grammar everywhere. Granted, that's outside this backbone. It is, I think, using the backbone to support the legs. I want what works inside the math and outside the math to be intuitively similar.
For things like e and pi (I prefer tau, if that matters), those become tiny pronounceable words, too, just like numbers. And it hardly matters to the algebra whether they're numbers directly or they're zero-valence operations. We just need them to not collide with digit-expressed numbers and other existing operations. For tau, an audible/visual resemblance to ( ? circumference radius add3 ) seems ideal for "that which is circumference divided by radius". For pi, it's "what circ diam add3".
Hmm, this does imply that we want numbers to sound like numbers, constants to sound like constants, variables to sound like variables (and maybe coefficients to sound similar to but distinct from variables), and operators to sound like operators.
For things like ( abs ), the algebra doesn't need much. We can define that operation in terms of the basics. The backbone remains functional regardless of whether the way that we pronounce the shortcut indicates anything about how the function is derived. It could be completely arbitrary, it could be that that arbitrary function name indicates valence 1 without any explicit marking, and perhaps all of that is even the optimal case.
But, if we can get the short-form grammar of the algebra to match the long-form plain-conlang grammar (or, more of the vice-versa), that's a win. Not the whole war, but quite a significant battle.
tl;dr
I agree on all the important points. You don't need to join me on my wild turtle chase. You've nearly got enough to derive an Intro to Algebra textbook -- possibly only missing a set of digits and a way write the verb "addn".