HN user

calhoun137

1,201 karma

I am a builder, not a breaker.

Posts34
Comments287
View on HN
mathinspector.com 5mo ago

Detecting Hallucinations in LLM with Cohomology

calhoun137
2pts0
github.com 6mo ago

Show HN: Base-1 - A laboratory for computational numerical experiments

calhoun137
2pts0
mathinspector.com 6mo ago

Visualizing the Collatz Conjecture as a Phase Transition

calhoun137
9pts7
mathinspector.com 1y ago

The Complete Classification of Boolean Expressions [pdf]

calhoun137
2pts1
github.com 5y ago

The Fundamental Theorem of Fourier Series

calhoun137
2pts0
www.youtube.com 5y ago

The Math Inspector Source Code [video]

calhoun137
1pts1
github.com 6y ago

MathInspector: Open-source release GNU GPL V3

calhoun137
3pts1
medium.com 6y ago

Algorithm could solve NP Complete problem in P time

calhoun137
3pts4
medium.com 6y ago

New Conjecture in the Theory of Computation and the P vs. NP Problem

calhoun137
1pts1
medium.com 6y ago

Algorithm solves NP-Complete Problems in P time

calhoun137
2pts13
medium.com 6y ago

White Hat Anonymous

calhoun137
1pts0
medium.com 6y ago

How to Terraform Mars

calhoun137
1pts0
medium.com 6y ago

The Re-Unification of Science

calhoun137
1pts0
medium.com 6y ago

My new conjecture in P vs. NP

calhoun137
2pts1
medium.com 6y ago

BioComputers: Physical Neural Nets

calhoun137
1pts0
medium.com 6y ago

Self Replicating Computer Programs

calhoun137
12pts3
mathinspector.com 6y ago

Math Inspector: Alpha Test Registration Is Open

calhoun137
1pts1
www.youtube.com 6y ago

Math Inspector: A visual programming environment for the scipy stack

calhoun137
3pts1
disobedientmedia.com 7y ago

Guccifer 2.0 Game Over – Year End Review

calhoun137
2pts0
www.youtube.com 7y ago

Super Mario World Credits Warp Explained

calhoun137
1pts0
medium.com 8y ago

A Programmers Way of Thinking About Sets and Categories

calhoun137
2pts0
raineverywhere.com 10y ago

The Freshman's Dream Design Pattern

calhoun137
1pts0
math.stackexchange.com 10y ago

Is it possible to formulate category theory without set theory?

calhoun137
1pts1
medium.com 10y ago

Math is a Language

calhoun137
1pts0
medium.com 11y ago

Alan Turing's Universal Computing Machine

calhoun137
6pts1
techcrunch.com 11y ago

Chasm.io (Formerly Wahooly) Merges with Social Marketing App Loot

calhoun137
3pts0
www.nature.com 11y ago

Exotic optics: Metamaterial world

calhoun137
18pts1
github.com 11y ago

AsyncBatch.js – a class for making simultaneous async requests

calhoun137
1pts0
medium.com 11y ago

What Is Time?

calhoun137
67pts27
www.paecon.net 13y ago

The Reform of Intellectual Property (2005)

calhoun137
1pts0

OP here. this has been a valuable learning experience for me. i was so excited to share what i was working on and i blew it. i will rewrite the blog post and readme later. let me at least briefly explain what i did as a reply to your comment

starting with 3=1+2 we have (1+x)P(x)=3P(x) when x=2. so we lift the problem from n to P(2)=n. this is a known technique of lifting the problem to a polynomial setting. after each itteration of the Collatz map i make sure all coeffients are either 0 or 1 by applying carry operations when a coefficient overflows. since the coefficients are unary strings, this makes it like a fluid dynamics problem (each character in a unary string is analogous to one unit of mass in a list of buckets where the buckets can overflow and spill unary characters over into their left neihgbor)

when x=2, multiplying x by P(x) is a left shift, whereas dividing by x, P(x)/x, is a right shift. (when P(2)=n is even the constant term in P(x) is zero)

the +1 term in 3n+1 effectively induces a non linear carry propoagation.

the new technique i used is based on a realization that the polynomial representation of the Collatz map behaves like an LFSR implementation of a finite field with a missing modulus. in LFSR a finite field is implemented where each element is an array of bits of fixed size corresponding to a polynomial and multiplication of elements is polynomial multiplication taken mod Q(x) where Q(x) is an irreducible polynomial. unlike the finite field LFSR the Collatz map in polynomial form as i have described allows the degree of the polynomial (size of the array of bits) to grow unbounded.

the surprise is when i subtract these two objects the sierpinski gasket appears and this fractal is not destroyed by itterations of the collatz map

this document[1] is a prior result showing a connection between fractals and collatz that i found after posting the OP

[1] https://upcommons.upc.edu/server/api/core/bitstreams/9bad675...

lesson learned! i will never post an ai slop blog post on here ever again. thanks for the feedback i needed to hear it.

OP here, you completely caught me. I used ai to generate that blog post and lightly edited it. lesson learned! moving forward i will type up from scratch any blog post i post on here. sorry about that.

there is more to this post than just ai slop. there is a real experimental result here.

if you or anyone would like to see the non ai slop version i posted over on math stack exchange without any ai at all

https://math.stackexchange.com/questions/5121753/why-does-th...

My experience leads to the same conclusion that the models are very good at math reasoning, but you have to really know what you are doing and be aware of the blatant lies that result from poorly phrased queries.

I recently prompted Gemini Deep Research to “solve the Riemann Hypothesis” using a specific strategy and it just lied and fabricated the result of a theorem in its output, which otherwise looked very professional.

Does replacing that lengthy text with "if you aren't sure of the answer say you don't know" have the same exact effect?

i believe it makes a substantial difference. the reason is that a short query contains a small number of tokens, whereas a large “wall of text” contains a very large number of tokens.

I strongly suspect that a large wall of text implicitly activates the models persona behavior along the lines of the single sentence “if you aren't sure of the answer say you don't know” but the lengthy argument version of that is a form of in-context learning that more effectively constrains the models output because you used more tokens.

my understandinf is that conservation of momentum does not mean momentum is conserved as time passes. it means if you have a (closed) system in a certain configuration (not in an external field) and compute the total momentum, the result is independent of the configuration of the system.

The key point is that energy, momentum, and angular momentum are additive constants of the motion, and this additivity is a very important property that ultimately derives from the geometry of the space-time in which the motion takes place.

Is there any way to deduce which invariance gives which conservation?

Yes. See Landau vol 1 chapter 2 [1].

I'm looking for the fundamental reason, as well as how to tell what will be paired with some invariance when looking at some other new invariance

I'm not sure there is such a "fundamental reason", since energy, momentum, and angular momentum are by definition the names we give to the conserved quantities associated with time, translation, and rotation.

You are asking "how to tell what will be paired with some invariance" but this is not at all obvious in the case of conservation of charge, which is related to the fact that the results of measurements do not change when all the wavefunctions are shifted by a global phase factor (which in general can depend on position).

I am not aware of any way to guess or understand which invariance is tied to which conserved quantity other than just calculating it out, at least not in a way that is intuitive to me.

[1] https://ia803206.us.archive.org/4/items/landau-and-lifshitz-...

Very nice article! I recently had a long chat with chatgpt on this topic, although from a slightly different perspective.

A neural network is a type of machine that solves non linear optimization problems, and the principle of least action is also a non linear optimization problem that nature solves by some kind of natural law.

This is the one thing that chatgpt mentioned which surpised me the most and which I had not previously considered.

Eigenvalues of the Hamiltonian in quantum mechanics correspond to energy states. In neural networks, the eigenvalues (principal components) of certain matrices, like the weight matrices in certain layers, can provide information about the dominant features or patterns. The notion of states or dominant features might be loosely analogous between the two domains.

I am skeptical that any conserved quantity besides energy would have a corresponding conserved quantity in ML, and the Reynolds operator will likely be relevant for understanding any correspondence like this.

iirc the Reynolds operator plays an important role in Noethers theorem, and it involves an averaging operation similar to what is described in the linked article.

I don't see any evidence here for "self awareness", among other things, ChatGPT is simultaneously answering a very very large number of queries, and the underlying hardware is just a bunch of servers in the cloud. Furthermore, what would it even mean for "ChatGPT to become self aware" and how could we measure if this had taken place or not? Without a solid definition and method of measurement, it's meaningless to talk about abstract concepts like "self awareness".

Nevertheless, a sensible definition for self awareness is some kind of neural network that becomes aware of its own activity and is in some way able to influence its own function.

After considering these issues for a long time, I came to the conclusions that

1. It's impossible for a program running on a normal computer to have self awareness (or consciousness), because those things are essentially on the hardware level and not the software level

2. In order to create a machine that is capable of self awareness (and consciousness) it is necessary to invent a new type of computer chip which is capable of modifying its own electrical structure during operation.

In other words, I believe that a computer program which models a neural network can never be self aware, but that a physical neural network (even if artificially made) can in principle achieve self awareness.

Since there is no way to 100% fingerprint a device, therefore there is no way to uniquely identify anyone with 100% confidence using pure fingerprinting techniques.

My view is that fingerprinting is a set of tools which can be used for "good or evil" if that makes sense. If you are gathering meta-data to determine the capabilities of the device, then this is part of the wider framework of data points which can, in principle, be used for fingerprinting a user. This data can be imported into a completely different system by a sophisticated adversary, so it needs to be treated as a security vector, imho

Thats true! But thats sort of like saying there was an accident on the highway because 2 cars crashed. There are lots of ways a configuration change could disrupt service, all I am getting at in my previous comment was having even more transparency when stuff like this happens instead of boilerplate statements about config changes, is something I would appreciate and this would give me more confidence in the dev team as well.

Since these vaccines got emergency use authorization, that means they did not follow the standard procedure for clinical trials.

Therefore, precautionary measures which respond dynamically to trends detected in newly available data, is the logical, ethical, and scientifically correct thing to do, imo.

Doesn't even a week's delay in vaccinating predictably increase the number of deaths in a country

One of the many unknowns about these vaccines is the length of time they give immunity, this can only be determined with confidence by looking at the data after a sufficient amount of time has passed. If the immunity only lasts for say 10-20 weeks, then getting it one week early, would mean the immunity goes away one week early as well. So in this case, I'm not sure there would be a major measurable impact. If the immunity lasts for say 50 weeks, that would be a different story.

Native Type Theory 5 years ago

I think the reason mathematicians use single letter variables is because mathematics is about the way that people think about patterns, understand patterns, and the relationship between them. Therefore the letter is used to help our brain understand the connection between abstract concepts (Categories).

As opposed to programming languages, where the goal is to do something practical, in pure mathematics, our goal is to create a language capable of helping our brains understand the infinite complexities of nature.

https://math.stackexchange.com/questions/24241/why-do-mathem...

Native Type Theory 5 years ago

take the average Joe so much beyond what even Gauss, Newtown, Grothendieck or Archimedes had at their disposal

I think this comment really sums up very well what is at the core of our discussion: the future of mathematics and science.

My strong belief is that thousands of years from now, Archimedes and Gauss will still be remembered, and everything we think is great now will be forgotten while they are not. That tells me that they were much farther ahead of their times than us, even though they didn't have modern computers.

Mathematicians and computer scientists both have it totally backwards imo. On the one hand, mathematicians think they have something to teach us about computer science, but they refuse to use technology properly. On the other hand, when we write code, it's all governed by mathematical laws and there are many questions (but maybe not you know, coding standards or the philosophy of writing good code) we could really use the guiding hand of mathematicians with, and they need to catch up with the times and we programmers need to accept they have something valuable to offer and to teach us.

Native Type Theory 5 years ago

Thank you!!! It's so funny that you mentioned "scriptable notebooks like Jupyter or Mathematica" since I have been spending all of my time on mathinspector recently.

I think our points of view are actually very strongly aligned. However I believe the next big idea is likely to come from outside of computer science.

Personally, I am betting on biology. So many of the most sophisticated techniques are based on biology, e.g. neural nets and genetic algorithms. I have done a lot of work on extending the theory of computation with a new axiom which gives Turing machines a self replicating axiom[1], [2]

In many parts of science, there is a cross pollination, where new ways of thinking about subject X come from a new discovery in subject Y. Typically, research will follow a group think pattern until it hits a brick wall, then you need that really big breakthrough idea. This line of reasoning leads to the conclusion, imo, that it's approximately equally likely to come from either pure computer science, or pure mathematics, or somewhere else.

[1] https://math.stackexchange.com/questions/3605352/what-is-the...

[2] https://medium.com/swlh/self-replicating-computer-programs-8...

Native Type Theory 5 years ago

I expect that mathematics will be rewritten to suit computing, rather than vice versa

I agree with this. I believe pure mathematics is suffering greatly because many mathematicians refuse to fully embrace the computational power of modern technology.

My belief is the age of pretty formulas is coming to an end, and that the future of mathematics will be it focuses more and more on computational aspects of the subject, and problem sets in pure math courses will be done using programs that are much more advanced than anything which exists today, and everyone will think nothing more of those programs than we do about calculators.

Apologies for the self plug, but this has been my vision with mathinspector[1]. I've been working very hard on that, and this is why I got so interested in your statement. Thank you for clarifying your thinking here. Makes sense to me, and you could be right

[1] https://github.com/MathInspector/MathInspector

Native Type Theory 5 years ago

I've kind of given up on expecting an epiphany from this stuff that's applicable coding in a way that significantly changes my practice

Same. It makes me kind of sad that pure math is not more helpful here! I think its possible that coding standards today are really high quality, and that any improvements are going to require a revolutionary paradigm shift in how we think about programming at an extreme level of generality. That's where pure math comes in, its a good place to shop around for new ideas, since we are kind of at a local maximum now in terms of best practices, imo.

This is how I use math while coding: Instead of tinkering with numbers, just calculate the thing and get all the numbers right the first time. When trying to solve a problem, it's super helpful to have spent years proving theorems in pure math, it helped me compile programs in my head. When I am suuuuuuper stuck and need to figure out if what I am trying to do has already been done in math somewhere. When constructing an overall plan for a project, using abstract concepts in mathematics to properly anticipate the limits of what various implementations will be in order to pick the best one.

Native Type Theory 5 years ago

+1 for the request for a rephrasing.

When Faraday was asked about what the practical use of his discovery of electromagnetic induction was, he famously replied, "what is the use of a newborn baby?"

Which is how I read the OP

Native Type Theory 5 years ago

None of Zuse, Babbage, Torres y Quevedo, Ludgate, Dickinson, Desch, Atanasoff–Berry, Mauchly / Eckert, nor many of the other pioneers of computing came via Hilbert and FOM problems

I don't think this is a fair comparison. The modern computer is really distinct from everything that came before. That's because it was built according to the theory of Turing Machines.

One of the most important historical papers for the development of modern computers was the Report on the ENIAC by Von Neumann[1].

Von Neumann took the idea's of others working in the field, and was able to apply his understanding of mathematical logic to formulate the principles which led to the first working modern computer, which Von Neumann built in the basement of IAS. At that time, there was a major debate at IAS between Einstein and Von Neumann, which centered around whether or not to only do pure math at IAS, with the idea that building a computer was part of experimental science. [2]

Regarding the arrow of influence: a Fields medalist spent a decade coming up with a new foundation of mathematics (or at least algebraic topology), only to realise that the computer science department already teaches Coq to undergraduates!

LOL! That is an interesting and funny story. However, I don't think this example demonstrates that in the future, mathematics will not be the source of improvements to code writing standards.

Question: if code writing standards improve, where else will these improvements come from other than pure mathematics? I consider this question to be a problem type similar to maximum compression algorithms, i.e. its a question whose solution can only be verified using the language of pure mathematics. Therefore it seems likely these improvements can also have their roots in pure mathematics as well. At least, I would not say it "seems unlikely"

[1] https://en.wikipedia.org/wiki/First_Draft_of_a_Report_on_the...

[2] https://www.amazon.com/Turings-Cathedral-Origins-Digital-Uni...

Native Type Theory 5 years ago

My interest in category theory is just as a hobby and an amateur; but I have gone pretty deep reading lots of books and so on. To be fair, category theory has not empowered my work (in programming) at all.

Native Type Theory 5 years ago

It seems unlikely that there will be any profound insights from category theory on how to write code

I strongly disagree with this. To me it does not seem "unlikely", quite the opposite. The reason I feel so strongly about this is that computer science is a subset of pure mathematics, its the part that deals with algorithms and computation. There are many questions in computer science which cannot be answered without an appeal to pure math (e.g., what is the best possible compression algorithm)

All of computer science began as a result of the work of Hilbert on the foundations of logic[1]. This is what led to Turing's paper on Turing Machines. Since that time, mathematicians have done a lot of exciting work on foundations.

Category theory has completely transformed the way we think about abstract mathematical objects; and type theory is very exciting in that it brings mathematics closer to a programming language which is compiled in the human brain and is done with pen and paper.

It's seems to me very likely that in the future, code writing standards will change and get better, and will not remain the same. Towards that end, it makes sense that improvements will come from a better understanding of foundations, since that is where it all started.

Curious for your thoughts?

[1] https://en.wikipedia.org/wiki/Hilbert%27s_second_problem#:~:....

Native Type Theory 5 years ago

I really like this idea! I first got into type theory as a result of an answer by Carl Mummert to a question I asked on Math StackExchange[1]. I even wrote a blog post about it a year later[2].

Ever since then, I have considered type theory to be my favorite version of the foundations of math. I have often played around in theoretical foundations theory to discover as many connections as possible between foundations of math and computer science. That being said, I think the perspectives offered by set theory and category theory are extremely valuable, and that these three approaches compliment each other, and sometimes one is better than another for a specific purpose.

This is the first time I had really seen the possibility to reformulate computer science to bring it closer to mathematics. How exciting!

[1] https://math.stackexchange.com/questions/1519330/is-it-possi...

[2] https://medium.com/@calhoun137/a-programmers-way-of-thinking...

Project author here. In this video I discuss a crazy hack I discovered for the python exec function, where you can trick it into thinking you passed a dictionary as the 2nd parameter and then it will automatically trigger a series of callbacks when anything is changed.

Wanted to share this trick with HN because I think it's really cool, and also am not sure if anyone has ever done this before.