HNHacker News
TopNewBestAskShowJobs

cevi

172 karma · joined March 13, 2017

submissionscomments
cevi··on How to optimally trap points in high-dimensional spaces inside ellipsoids
In practice, even storing the matrices that show up in the problem formulation can be prohibitive, let alone running a solver. Often you need to take advantage of sparsity in a nontrivial way (see e.g. COSMO [1]), or take advantage of cases where the solution can be approximated by a low rank matrix, and recently there has been a trend in using first-order methods like ADMM rather than full interior-point algorithms. The review article [2] from 2019 gives a feel for how much work has gone into making large-scale semidefinite programming possible, but has this sentence in their conclusion section:

"Semidefinite programming is still far from being a mature technology like linear or quadratic programming."

[1] https://link.springer.com/article/10.1007/s10957-021-01896-x [2] https://www.annualreviews.org/doi/pdf/10.1146/annurev-contro...

cevi··on Ask HN: Free online courses for gifted maths students
This isn't exactly from a reputable institution, but I have a personal website with book recommendations: https://notzeb.com/rec.html

(not having much money is no obstacle to reading books on math, so long as you are aware of Library Genesis)

cevi··on Math's 'Game of Life' Reveals Long-Sought Repeating Patterns
I once used the hashlife algorithm to analyze the win/loss pattern of a game which I couldn't find any other way to analyze directly [1]. Of course, this is an application of cellular automata to a different sort of hobbyist mathematics, rather than a truly practical use...

[1] https://mathoverflow.net/questions/85314/can-anyone-analyze-...

cevi··on Ask HN: What has quantum computing achieved so far?
Watrous's notes are the best resource I know for learning quantum computing: https://cs.uwaterloo.ca/~watrous/QC-notes/QC-notes.pdf
cevi··on Ask HN: What is the current state of "logical" AI?
This may only be tangentially related, but you might be interested in the recent research on Qualitative Constraint Satisfaction Problems - a good introduction to the topic is Manuel Bodirsky's habilitation thesis [1].

The purpose of the subject is, roughly speaking, to exhaustively characterize all types of reliable reasoning which can be carried out efficiently - some people say they are searching for "a logic for P". The techniques used are a mix of ideas from model theory, universal algebra, Ramsey theory, and computer science. Given the ridiculously ambitious scope of the project, I think the rate of progress (especially in the past few years) is astounding.

[1] https://arxiv.org/pdf/1201.0856.pdf

cevi··on No distributed quantum advantage for approximate graph coloring
At first, the results claimed here seem to clash with the fact that we know, for instance, that it is NP-hard to 5-color a graph which is promised to be 3-colorable [1]. Of course, the devil is in the details - on page 11, where they describe the "LOCAL" computation model they work in, they explain:

"In each round the processors may perform unbounded computations on their respective local state variables and subsequently exchange of messages of arbitrary size along the links given by the underlying input graph."

Given this setup, it should be possible to solve any problem in O(n) rounds, and indeed they point this out in the introduction:

"If the chromatic number of G is χ, in this setting it is trivial to find a χ-coloring in T = O(n) rounds, as in O(n) rounds all nodes can learn the full topology of their own connected component and they can locally find an optimal coloring by brute force without any further communication."

While this paper is very interesting from a theoretical perspective, it is saying more about the LOCAL model of distributed computing than it is about quantum computing. Nobody should come away from this with the conclusion that we have somehow proved that quantum algorithms are useless for real-world problems.

[1] https://arxiv.org/abs/1811.00970

cevi··on Google claims to have proved its supremacy with new quantum computer
This may be a bit on the theoretical side, but it's the best reference for quickly getting up to speed on how quantum computing and entanglement works that I know of: https://cs.uwaterloo.ca/~watrous/QC-notes/QC-notes.pdf

As for how actual physical qubits are maintained, that topic is tough to find a good explainer for, since every group has a different approach. Some groups use trapped ions, some use two-dimensional quasiparticles, some use spin states of photons... and no one has a clue which approach will be most practical in the end. It's analogous to not knowing whether clockwork or vacuum tubes will be the better way to implement a Turing machine.

cevi··on Ask HN: Is writing a math proof like programming without ever running your code?
Yes. You need spend a lot more time thinking about each line of a math proof than you do about each line of code you write, and you need to develop skills and techniques for catching and correcting errors.

Your ability to catch errors tends to be closely linked to the amount of time you've spent working in a particular area - because you build up a mental suite of test cases to check every claim against. One mistake I see occasionally is jumping into a brand new area of math and moving just as quickly as you would in the old area where you had more expertise, making huge blunders every step of the way. When you enter a new area, you have to go really excruciatingly slowly as you build up the intuition and suite of examples.

Almost every math paper contains an error or two - they are usually easy for an expert to fix (the equivalent of leaving out a semicolon at the end of a line in C++, takes only a moment to fix if you have familiarity with the language - but incredibly frustrating to a user who doesn't know how to make the easy fix).

cevi··on Transformers Learn Shortcuts to Automata
This paper is a very good advertisement for Krohn-Rhodes theory, which shows how automata decompose into simpler automata. I think it's a somewhat obscure topic within math (among people who aren't semigroup theorists), so I was happy to be exposed to it.

It's a bit shocking that they got Transformers to actually learn the theoretical low depth algorithms for simulating automata, but looking closer at their results we can see that the parts that I would intuitively think are hard to learn (i.e. learning parity) are fairly brittle.

cevi··on Use Gröbner bases to solve polynomial equations
For systems of polynomial inequalities, the appropriate tool is Cylindrical Algebraic Decomposition (this tool generalizes to systems of exponential inequalities as well).
cevi··on Show HN: i2forge – A Platform for Verified Reasoning
Thanks - I hadn't looked into Metamath Zero before, but it sounds like that would be the right thing to compare Abstraction Logic to! Skimming https://arxiv.org/abs/1910.10703 makes it seem like Metamath Zero still operates at the level of schema, but has some other changes compared to Metamath that are too subtle for me to digest in an afternoon.
cevi··on Show HN: i2forge – A Platform for Verified Reasoning
How does your system compare to Metamath[0], aside from the obvious difference of not having set theory baked in? I notice both your Abstraction Logic and Metamath's system can state the induction axiom scheme as a single statement, which seems to me like a huge usability advantage over FOL.

[0] https://us.metamath.org/mpeuni/mmset.html

cevi··on Probability 101, the intuition behind martingales and solving problems with them
Completely agree, speaking as a mathematician who put in the time to understand the details of sigma-algebras. It's an implementation detail. We don't need to talk about inductors and MOSFETs to describe how bubble-sort works, and we don't need to talk about sigma-algebras to talk about conditional probabilities or expectations.

A wacky alternative implementation of probability theory can be found in Nelson's book "Radically Elementary Probability Theory" - I highly recommend it as a way to see how little the underlying framework matters.

cevi··on Ask HN: Math books you recommend just for the way they are written?
A few immediately come to mind:

1. Winning Ways for Your Mathematical Plays

2. A Singular Mathematical Promenade, available for free online: https://perso.ens-lyon.fr/ghys/promenade/

There are many other math books I really like - over the years I've collected a long list of reading recommendations: https://notzeb.com/rec.html (most of them won't fit as answers to this question)

cevi··on Do the Physics Nobel Prize Winners Understand Their Own Work?
I think this comes down to a disagreement about the definition of the words "local" and "non-local".

There is a version of "locality" that is based on classical mechanics and classical probability - this version corresponds to hidden variable theories, and is fairly definitively ruled out. Given that this definition has a false model of reality baked into its core, I have a hard time taking it seriously.

However, there is a more flexible, and in my opinion more correct, definition of "locality" that applies to generalized probability theories. This definition basically says that if I am on Earth and you are in Andromeda, then there is nothing I can do to affect the results of your experiments in any way that you can detect before you first meet up with my future light cone. Sure, we can meet up in the far future and compare notes to see that there were some unexpected statistical correlations between our experimental results - but we can only ever notice that after we meet up later.

According to the second definition of locality, quantum mechanics is a local theory, while to the extent that we try to take the pilot wave seriously the Bohmian picture is nonlocal. (And faster than light communication is nonlocal according to either definition.)

Practically, local theories have an important distinction from nonlocal theories - you can simulate what is going to happen in a small region of space a day from now while only knowing what was true today in a larger but finite region today. For instance, Newtonian gravity fails to have this property, which makes it hard to properly simulate an infinite universe following Newtonian gravity without making strong assumptions about how homogeneously matter is distributed throughout the universe at huge scales. On the other hand, the Game of Life is a local theory, which is the basis of the famous Hashlife algorithm.

cevi··on Simon Tatham's Portable Puzzle Collection
If anyone wants to crank the difficulty up to 11, I suggest the puzzle types "Towers" and "Unequal" at max size/difficulty. These puzzles can get hard much faster than they have any right to - I play them whenever I feel worried that perhaps P = NP.
cevi··on Ask HN: Greatest breakthrough in your field?
The solution to the Dichotomy Conjecture for Constraint Satisfaction Problems [1] (also [2], but this proof is much more difficult). This gives a clear dividing line between the types of problems that are easy to solve exactly and the types of problems that are difficult to solve exactly, for a fairly large class of problems. I wouldn't even dare to dream that something like this could be done until I saw it happen!

[1] https://arxiv.org/pdf/1704.01914.pdf [2] https://arxiv.org/pdf/1703.03021.pdf

cevi··on Ten years after the Higgs, physicists face the nightmare of finding nothing else
My understanding is that we currently don't have enough data to be sure that the B meson anomaly is real, and not just a statistical fluctuation - it is only a few standard deviations away from what is expected. (A few more years of data should resolve the question of whether it is real, one way or the other.)
cevi··on Ask HN: Introductory reading on philosophy of mathematics/formal logic?
There's the classic "Believing the Axioms" by Penelope Maddy [0] [1], the excellent study guide "Teach Yourself Logic" [2], plenty of great articles on the Stanford Encyclopedia of Philosophy (e.g. [3] or [4]), Dana Scott's "Lambda Calculus: Some Models, Some Philosophy" [5], and too many other interesting rabbit holes to count (i.e. resolution, unification, cut elimination, nonstandard models of arithmetic...)

[0] https://www.cs.umd.edu/~gasarch/BLOGPAPERS/belaxioms1.pdf [1] https://www.cs.umd.edu/~gasarch/BLOGPAPERS/belaxioms2.pdf [2] https://www.logicmatters.net/tyl/ [3] https://plato.stanford.edu/entries/settheory-alternative/ [4] https://plato.stanford.edu/entries/platonism-mathematics/ [5] https://lawrencecpaulson.github.io/papers/Scott-Models.pdf

cevi··on Elegant six-page proof reveals the emergence of random structure
Being a https://en.wikipedia.org/wiki/Perfect_graph is not monotonic under adding edges, and it's certainly an interesting property for a graph to have! (But yes, most interesting properties are monotonic under adding edges)
cevi··on How to Teach Yourself Math (2018)
https://blngcc.files.wordpress.com/2008/11/viktor-prasolov-p...
cevi··on Ask HN: Share your personal site
https://notzeb.com/

This used to be my personal academic website, but I'm no longer in academia so I recently had to figure out a new hosting solution. (Not much to see if you don't enjoy math or puzzle-solving.)

cevi··on What do new Sudoku techniques teach us about real-world problem solving?
Agreed on all counts.
cevi··on What do new Sudoku techniques teach us about real-world problem solving?
I don't know any reference for this - it's something I worked out after hearing about Phistomefel's Theorem from a friend. The idea goes like this:

The standard Linear Programming relaxation of the constraint "the nine variables x_1, ..., x_9 are a permutation of 1, ..., 9" is defined in the following way. First we make real variables p_ij which we think of as representing the "probability" that x_i is equal to j. Each p_ij has to be between 0 and 1, of course, and they have to satisfy the following system of linear equations:

- for each i, the sum over j of p_ij is equal to 1 (since every x_i has to have some value), and

- for each j, the sum over i of p_ij is equal to 1 (since every value from 1, ..., 9 has to show up in the list of x_is somewhere).

The fact that this system of equations, together with the inequalities 0 <= p_ij <= 1, corresponds exactly to the "convex hull" of the constraint that the x_i are a permutation of 1, ..., 9 is a fairly famous early result from the theory of the Linear Programming relaxation of the bipartite matching problem.

To describe the full Linear Programming relaxation of Sudoku, instead of just having 9 variables x_i you have 81 variables x_ab, which leads to 729 real "probability" variables p_abj between 0 and 1, and for each row, column, and square of the Sudoku these probabilities have to satisfy the equations listed above (applied to the relevant variables). That gives you a system of 324 (slightly redundant) linear equations in 729 unknown real variables p_abj, each of which is constrained to be between 0 and 1 - a piece of cake for a computer.

For a human, you don't want to write down that entire system of equations - you want to use just a few of them to quickly figure out some piece of the puzzle. The technique of set equivalence theory does just this: instead of focusing on all of the probabilities p_abj, you just use the fact that the sum of the probabilities p_ab1 along every row/column is 1, and add/subtract the equations you get from some rows and columns to notice that the sum of the p_ab1s for the (ab)s corresponding to the corners is equal to the sum of the p_ab1s for the (ab)s corresponding to the ring around the center. Then you do the same for the 2s, and so on.

cevi··on What do new Sudoku techniques teach us about real-world problem solving?
Phistomefel’s Theorem (and the more general "set equivalence theory" described in the article) pops out directly from a standard technique known as the "Linear Programming relaxation" for Sudoku.

Essentially, the Linear Programming relaxation of a puzzle is a standard way of approximating the solution space with a system of linear equations and inequalities, replacing discrete yes/no answers to questions like "is the digit inside this box a 7?" with real numbers between 0 and 1 (which can be interpreted as probabilities, if you like). This system of linear inequalities and equations can then be solved efficiently with techniques from convex optimization.

Even the example from the Cracking the Cryptic video, with the conclusion that those three boxes at the bottom have to be 1, 2, and 3 in some order, would be deduced immediately from the Linear Programming relaxation of Sudoku. You don't need ontological remodeling when you know how to apply convex optimization :)

cevi··on It’s time to admit quantum theory has reached a dead end
The interpretations don't tell you anything that the calculations didn't tell you already (if an interpretation of quantum mechanics ever predicts something different from what quantum mechanics predicts, then it can be ruled out empirically by performing the appropriate experiment). Interpretations which don't give you a faster way to get to the results of those calculations just waste your time and get in the way of understanding. Theoretical computer science indicates that there is no significantly faster way to get the results of many of those calculations - no matter how elegant the interpretation feels, at best you have to do the same amount of work to get the same answers about what will actually happen in reality, and at worst you end up computing a million irrelevant details about things the interpretation invented which have no real-world consequence.

Someone who is genuinely interested in understanding the way the world works ends up asking questions about what goes into the calculations - what's the Lagrangian, how many degrees of freedom (i.e. quantum fields) are there, what symmetries or constraints are satisfied by the laws of physics, how can we set up the math to avoid pathological situations where the results of our computations are infinite, and so on. Philosophically motivated interpretations of quantum mechanics shed exactly zero light on these questions.

Well.. there is a caveat. If quantum mechanics was somehow incorrect - that is, if unitary evolution of a state vector in a Hilbert space didn't actually describe reality at all - then all of the above would be wrong. But in that case, every single interpretation of quantum mechanics would be wrong as well. Quantum computers would just flat out not work.

cevi··on The Kelly criterion: How to size bets (2019)
If you bet with the -1/x utility function, then the optimal strategy is to always bet about 10.1% of your money. I find this to give a good tradeoff between the variance and the rate of exponential growth.
cevi··on Why Quantum Mechanics?
The rules of propositional logic (or first-order logic) would seem to fit: i.e. that fact that "A and B" has the same truth-value as "B and A", or the use of modus ponens as a deduction rule. These rules are usually left out of axiomatic descriptions of mathematical fields.
cevi··on A surprisingly hard CS problem: sums of square roots (2018)
An example of a tricky case: which is bigger, sqrt(1000000) + sqrt(1000018) + sqrt(1000036) + sqrt(1000059) + sqrt(1000083), or sqrt(1000003) + sqrt(1000011) + sqrt(1000048) + sqrt(1000050) + sqrt(1000084)? (They agree to more than 20 decimal digits of precision!)
cevi··on Bitcoin price crash: Crypto plunges by 9% as billions wiped off market
These are both good points!
← PreviousPage 2 of 4Next →