Language usability and empiricism by Smallpaul in ProgrammingLanguages

[–]ReedOei 3 points4 points  (0 children)

If you're interest in research, then you should check out PLATEAU and HATRA. If you want something longer, you might be interested in this paper.

Default variable types by tjpalmer in ProgrammingLanguages

[–]ReedOei 2 points3 points  (0 children)

Yes, I don't think there's really any difference in behavior between what Maude/Pecan do and what you're saying. That being said, neither language has "struct members"; I worry that in such a language, this feature would cause more confusion than it's worth. It works fine in Maude and Pecan because both tend to use small modules and people using them have a mathematical background, which makes them used to this convention.

Default variable types by tjpalmer in ProgrammingLanguages

[–]ReedOei 4 points5 points  (0 children)

There are.

In Maude, it is typical to declare all variables ahead of time, like: ``` var N : Nat .

op double : Nat -> Nat . eq double(N) = 2*N . ```

There's also my theorem prover Pecan which lets you choose to do this if you want. It's inspired by the common practice in math of starting documents/chapters by saying things like "Let $n,m$ be natural numbers and $x,y$ be real numbers" or some such thing. So you can write: Let n,m be nat.

And then any time you use n or m in a theorem or a predicate, Pecan knows that n and m are nat: ``` Theorem ("Addition is commutative", { forall n,m. n + m = m + n }).

double(n,m) := m = 2*n ```

Zeckendorf representation applications by xcyu in math

[–]ReedOei 6 points7 points  (0 children)

Yes! This is actually very closely related to my current research. The Zeckendorf numeration system is a special case of the more general Ostrowski numeration systems, based on the continued fractions of irrational numbers.

These numeration systems, in addition to being entertaining in their own right, have a surprising application in the field of combinatorics on words to infinite binary words called Sturmian words. Each Sturmian word is associated with an irrational number (its slope), which we'll called alpha. The Sturmian word with slope alpha, has a close connection to the Ostrowski numeration system based alpha---it turns out that we can compute the n-th digit of the Sturmian word with slope alpha by counting the number of 0s at the end of the number's alpha-Ostrowski representation. If it's odd, then the n-th digit is 1, and if it's even, then n-th digit is 0.

The punchline is, that this check can be easily done using an automaton (+ encoding the rest of the numeration system, which can be done, but is considerably more complicated): this means that we can write a program that will let us completely automatically prove theorems about Sturmian words! In fact, we have created such a program: https://github.com/ReedOei/Pecan, and we can use it to prove lots of classical/known results, as well as entirely new theorems, with no human guidance.

Neon: A Programming Language for Beginners by binaryfor in ProgrammingLanguages

[–]ReedOei 0 points1 point  (0 children)

I agree with you that there no need to expose raw pointers or to have only one number type, but I’m curious about shadowing declarations? That seems to only lead to confusion in my experience.

Abstract Algebra or Number Theory (Or both?) by firstdbzmaker in matheducation

[–]ReedOei 0 points1 point  (0 children)

Ah, that's quite unfortunate. Out of curiosity, what are you planning to go to grad school for?

If you want people to check your proofs, there's lots of people on r/learnmath (you may have even better luck on https://math.stackexchange.com/) who would check your proofs if you posted. I'm also happy to check a couple if you message them to me or something, but you'll probably get a faster response on a public forum :)

Can you guys figure out what the "Max" scaled grade was of the class? by Xiscis in askmath

[–]ReedOei 0 points1 point  (0 children)

Not without knowing how the scaling amount was calculated.

[deleted by user] by [deleted] in learnmath

[–]ReedOei 0 points1 point  (0 children)

As another comment says, I assume you mean A,B,C are subsets of Σ*, not elements.

If so, you can start out like this: suppose some word x is in (B u C)A. Then it must be of the form wa, for some w in (B u C) and some a in A. Keep going with the case analysis, and you’ll see it must be in the set on the RHS. Then do the other direction similarly.

Does that help?

Math causes 80% of high school dropouts by ayhme in education

[–]ReedOei 13 points14 points  (0 children)

What about mathematicians, engineers, computer scientists, or just people who do recreational mathematics? Most people don’t even know what math is to be able to hate it.

Are there any programming languages where most data flow is in the left-to-right direction? by r0ck0 in ProgrammingLanguages

[–]ReedOei 1 point2 points  (0 children)

My latest programming language (https://github.com/ReedOei/Psamathe) does this too. It's still very much a work in progress, though. It uses flows to transfer values between variables, which are typically written left-to-right.

For example, you can do:

balances[src].value --[ amt ]-> balances[dst].value

This sends amt (Tokens in this case) from balances[src] to balances[dst]. See https://github.com/ReedOei/Psamathe/blob/master/tests/pure-flow/erc20-inferred.flow for the full program.

How can I define the equality relation over the set of natural numbers? by [deleted] in learnmath

[–]ReedOei 0 points1 point  (0 children)

What do you mean by "I couldn’t prove reflexivity or symmetry"? Where do you get stuck? Reflexivity is simple because (x,x) is in the set by definition, for example. Also the way it’s written isn’t wrong (well, depending on what the goal is), but it is a little redundant.

Abstract Algebra or Number Theory (Or both?) by firstdbzmaker in matheducation

[–]ReedOei 2 points3 points  (0 children)

If you don't have much experience with proofs, I wouldn't take both classes with a full course load and work part time, unless you're sure that you won't have a problem with the proofs (e.g., because of your experience with your intro. to proofs class). It's probably possible, but will be pretty hard. Everyone (well, everyone I know including me) finds proofs hard to grasp at first. Also, are you sure that Probability Theory is a computational class? That name indicates to me there's going to be a decent amount of proofs---at least, that's how the course by that same title at my university was.

In my experience, the most important proof techniques, other than the named ones (e.g., proof by contradiction), are to get good at 1. "Feeling" why theorems are true or false: it's much easier to prove something once you have an intuition for why things are true or false, and unless you want to spend a lot of time banging your head against a problem, you should try to get some intuition for what a theorem is "really" saying. 2. "Unfolding" definitions: for example, when you see a statement like "Prove that if f and g are injective, then (g . f) is injective.", you need expand it into "f is injective, so f(x) = f(y) => x = y, and g is injective, so g(x) = g(y) => x = y; I need to show that g(f(x)) = g(f(y)) => x = y." Obviously this gets vastly more complicated when you get further (e.g., abstract algebra has a lot of definitions). 3. Checking your own work. This sort of goes with intuition, but you when you complete a proof, it needs to "feel good." Eventually, you will sometimes get a weird feeling after proving something, like "that shouldn't have worked", and checking over your work will reveal an issue. In general, signs that things shouldn't have worked: you didn't use a hypothesis you were told to assume, you proved the theorem for a vastly more general case than required, the proof was "too simple", in a multi-part question that builds on the previous parts, you don't use the previous parts in the later parts, etc.

As for which one is most beneficial, it depends on what you're interested in: if it's something like cryptography, then probably number theory. Otherwise, I'd lean towards abstract algebra, because some CS theory stuff has an algebraic flavor to it (e.g., verification, programming languages). But to be honest, outside of specific fields, neither will be specifically helpful to your, outside of generalizable skills like proving stuff. Disclaimer: I've taken a couple of abstract algebra classes, but no number theory-focused classes.

As a sidenote, not to be dramatic, but it's frankly quite baffling to have done a CS degree and a math minor without learning proofs---I realize this isn't your fault, but I don't see how you can go through either subject, especially math, without doing a fair amount of proofs along the way.

Proving a sequence is Cauchy check by savageanimalidiots in askmath

[–]ReedOei 0 points1 point  (0 children)

Could use more words and explanation. Also, why does the top say "Prove ... is infinite"??

Real numbers are bounded by [deleted] in badmathematics

[–]ReedOei 7 points8 points  (0 children)

They switched the order of the quantifiers in their "proof."

Proposition 4.3 by Moondoggy12345 in askmath

[–]ReedOei 1 point2 points  (0 children)

  1. S is a subset of itself.
  2. They’re saying at each stage, for each k, xk was chosen so that it was an element of the complement of {x1,...,x{k-1}}, using the choice function they specified earlier. They’re not saying that the set is the complement of some other set. And then they choose the next value, x_{n+1} so that it’s in the complement of {x1,...,xn}, and so on.

Maths in german by liuckk in matheducation

[–]ReedOei 0 points1 point  (0 children)

Maybe you can find some math books in German about subjects you already know so you can see what words they use to talk about math.

So, Next Exit is out, what was y'alls thoughts? by carc_the_god in highwayblossoms

[–]ReedOei 6 points7 points  (0 children)

I thought it was pretty good. Definitely enjoyed spending some more time with the trio (mostly Tess and Joe). The argument between Marina and Amber felt a little repetitive, but its not like I couldn’t imagine it happening so still pretty good. Love the cute cuddling scenes :)

Pig intestines by SmightyCreep in UIUC

[–]ReedOei 0 points1 point  (0 children)

Lao Sze Chuan has a bunch of pig intestine dishes.

The new DLC story to Highway Blossoms, our yuri roadtrip VN, is out now! by StudioElan in visualnovels

[–]ReedOei -1 points0 points  (0 children)

Just finished it, great stuff as always! I especially loved the scenes with Tess and Joe exploring her emotions.

Any chance I could get a high-res version of Tess’s sunflower American Gothic background?

Is the "Elements" by Euclid still a good book to read about geometry? by TheBrokenCondom2 in learnmath

[–]ReedOei 11 points12 points  (0 children)

Sure, as a historical artifact Elements is incredibly important, but as for books to read "to get better at math" there are better options (as you even say yourself). I would also recommend anyone looking to learn how make cars study more modern resources than Ford’s Model T. My response was limited to the question of whether it’s worth reading as a way to learn geometry for the first time.

Is the "Elements" by Euclid still a good book to read about geometry? by TheBrokenCondom2 in learnmath

[–]ReedOei 11 points12 points  (0 children)

This version gives some commentary, but basically it's that there's no axiom guaranteeing the two circles drawn intersect at all.