Better HN
topnewbestaskshowjobs
Log inSign up

tachim

385 karma · joined Apr 14, 2007 (19y ago) · 162 submissions

http://www.cs.stanford.edu/~tachim/
Submissions

1.

Aristotle Formally Verifies Celeste Speedrun Optimality(harmonic.fun ↗)

44 points · by tachim · 22h ago · discuss

comment 4d ago · link · parent

Can you email me? I can add you to early access.

tudor@harmonic.fun

comment 1w ago · link · parent

They're specifications of input/output behavior, mostly independent of the specifics of the embedding. E.g. you can make different design decisions -- verify at the assembly level, verify at a higher level than MIR (which we use), make different assumptions on concurrency, etc. But the core specs of your functions don't change.

comment 1w ago · link · parent

Here is the very specific list of undefined behavior we verify: https://aristotle.harmonic.fun/docs/software/rust#undefined-...

comment 1w ago · link · parent

We look into new languages all the time. What would you want to verify in Swift? We're focusing on mission-critical software and hardware applications so it hasn't been a priority yet but I'm curious

comment 1w ago · link · parent

You would use Aristotle for Verilog: https://aristotle.harmonic.fun/docs/hardware/verilog

For example, you could prompt it to prove logical equivalence of your ASIC and FPGA verilog. Or feed it your spec docs and your verilog and ask it to prove conformance. Aristotle doesn't write tests, it writes properties in Lean and then verifies your code against them.

Feel free to reach out if you have more questions: tudor@harmonic.fun

comment 1w ago · link · parent

Working on it...

comment 1w ago · link · parent

Formal verification of Rust is the final frontier for these kinds of tools

comment 1w ago · link · parent

Lean is great. But these days with Aristotle you can check memory safety for other languages like C so it's not totally obvious it's worth rewriting everything in Rust.

comment 1w ago · link · parent

Better to verify imo.

comment 1w ago · link · parent

Tudor here, I work at Harmonic. Aristotle auto-formalizes your natural language specifications into theorems about the embedding of your program based on the formal semantics of the Rust mid-level IR. You can see the full docs here: https://aristotle.harmonic.fun/docs/software/rust

For Verilog which is another language we support, for hardware, we compile the SVA assertions deterministically into Lean theorem statements about the compiled Lean embedding of the Verilog.

comment 10mo ago · link · parent

There have been many contributions to mathlib from Aristotle already, it’s a major use case for our users

comment 10mo ago · link · parent

Yes it’s available! https://aristotle.harmonic.fun/

comment 10mo ago · link · parent

Sure! Should this be a "Show HN" or some other type of post?

comment 10mo ago · link · parent

You can try out Aristotle yourself today https://aristotle.harmonic.fun/. No more waitlist!

comment 11mo ago · link · parent

I'm Tudor, CEO of Harmonic. We're huge believers in formal verification, and started Harmonic in 2023 to make this technology mainstream. We built a system that achieved gold medal performance at 2025 IMO (https://harmonic.fun/news), and recently opened a public API that got 10/12 problems on this year's Putnam exam (https://aristotle.harmonic.fun/).

If you also think this is the future of programming and are interested in building it, please consider joining us: https://jobs.ashbyhq.com/Harmonic. We have incredibly interesting challenges across the stack, from infra to AI to Lean.

comment 1y ago · link · parent

Proton’s product changes over the last couple years are the exact opposite of that. I think they’re the only credible game in town for an email/drive service in the cloud that doesn’t have AI data mining risks.

comment 1y ago · link · parent

As a current (avid) user of Proton VPN and Drive, I have never seen issues with interactions between proton drive and their vpn.

comment 1y ago · link · parent

Conflicts of interest are taken extremely seriously at the NSF; much more so than at private funding organizations. You can't come within a mile of reviewing grant applications from researchers at your institution, or researchers you have been affiliated with in the past.

comment 1y ago · link · parent

> You are implying a few things here; that it is the responsibility of others to fund your success and that there were not, or will not be, alternative means of such funding.

Yes, the government funds research, the benefit of which accrues to all of society. There is no credible alternative to government funding for public research; the scales are not the same. Private funding of basic research (internal R&D budgets) accrues benefits to the funders directly.

Knock-on effects to cutting the government funding include a decimation of future research leadership by the US by making it unattractive to study and do basic research here. Other countries are taking advantage of this (like any private sector company would if one of its competitors makes such a drastic mistake).

> Lastly you are implying that your graduate research was something that advanced some combination of science, humanity, the country...or maybe that the current work you do is of such value that the government should have paid your way to your current status.

You're overly indexing on the benefits any specific researcher gets from research funding. Research is currently done by humans; if we want more research done, then the people doing that research will necessarily get some of the benefits.

Also, since you're commenting on a software-focused web forum -- you should be aware that the compensation for government-funded researchers is a fraction of what these folks could make in the private sector. Framing it as some greedy theft of resources from the public is foolish and disingenuous to readers who don't know about how science funding works in the US.

comment 3y ago · link · parent

You can do that, just click and hold on the checkboxes.

comment 3y ago · link · parent

What's the reason to run pytorch directly on WebGPU vs using ONNX on WebGPU (e.g. with https://github.com/webonnx/wonnx)?

comment 3y ago · link · parent

Tough to use this without a way to export data.

comment 3y ago · link · parent

exact same experience here.

comment 3y ago · link · parent

It does go off the rails sometimes, but this is kind of correct. Prompt:

  Write an efficient, not brute force, python program that solves the following problem: suppose we have two unknown quantities x and y. If three time x plus two times y is twenty, and 2 times x plus three time y is ten, what are x and y?
Output:

  To solve this problem efficiently, we can use linear algebra. We can represent the equations as a system of linear equations, and then use matrix operations to solve for the unknown quantities x and y.
  
  First, we can represent the equations as follows:
  
  3x + 2y = 20
  2x + 3y = 10
  
  Next, we can put the equations in matrix form:
  
  | 3 2 | | x | | 20 |
  | 2 3 | * | y | = | 10 |
  
  To solve for x and y, we can use the inverse of the matrix on the left side to eliminate the coefficients. The inverse of a matrix is denoted as A^-1, and is calculated as follows:
  
  A^-1 = (1/det(A)) * adj(A)
  
  Where det(A) is the determinant of the matrix A, and adj(A) is the adjugate matrix of A. The determinant of a 2x2 matrix is calculated as follows:
  
  det(A) = a * d - b * c
  
  Where a, b, c, and d are the elements of the matrix A:
  
  | a b |
  | c d |
  
  The adjugate matrix of a 2x2 matrix is calculated as follows:
  
  adj(A) = | d -b |
  | -c a |
  
  We can then calculate the inverse of the matrix on the left side of the equations, and use it to solve for x and y:
  
  | 3 2 |^-1 1 | 3 -2 |
  | 2 3 | ----- * | -2 3 | = (1/5) * | 3 -2 | = | 3/5 -2/5 |
  |-2 3 | |-2/5 3/5 |
  
  | 3/5 -2/5 | | x | | 20 |
  |-2/5 3/5 | * | y | = | 10 |
  
  We can then solve for x and y by multiplying the inverse matrix with the vector on the right side of the equations:
  
  | 3/5 -2/5 | | 20 |
  |-2/5 3/5 | * | 10 | = | 6 |
  | 7 |
  
  Therefore, the values of x and y are 6 and 7, respectively.
  
  Here is the complete Python program to solve this problem using linear algebra:
  
  Calculate the determinant of a 2x2 matrix
  def determinant(a, b, c, d):
  return a * d - b * c
  
  Calculate the adjugate matrix of a 2x2 matrix
  def adjugate(a, b, c, d):
  return [[d, -b], [-c, a]]
  
  Calculate the inverse of a 2x2 matrix
  def inverse(a, b, c, d):
  det = determinant(a, b, c, d)
  adj = adjugate(a, b, c, d)
  return [[adj[0][0] / det, adj[0][1] / det], [adj[1][0] / det, adj[1][1] / det]]
  
  Solve the system of linear equations
  def solve(a, b, c, d, e, f):
  inv = inverse(a, b, c, d)
  return [inv[0][0] * e

comment 3y ago · link · parent

Easy fix. Prompt:

  Write an efficient, not brute force, program that solves the following problem: suppose we have two unknown quantities x and y. If three time x plus two times y is twenty, and 2 times x plus three time y is ten, what are x and y?
Output:

  One way to solve this problem efficiently is to use the method of elimination. We can set up a system of equations as follows:

  3x + 2y = 20
  2x + 3y = 10

  We can then multiply the first equation by 2 and the second equation by 3, to get:

  6x + 4y = 40
  6x + 9y = 30

  We can then subtract the second equation from the first equation, to get:

  -5y = 10
  y = -2

  We can then substitute this value of y into one of the original equations (for example, the first one), to get:

  3x + 2(-2) = 20
  3x - 4 = 20
  3x = 24
  x = 8

  Therefore, the values of x and y are x = 8 and y = -2.

comment 4y ago · link · parent

FTX is going into liquidation in Bahamas: https://www.scb.gov.bs/wp-content/uploads/2022/11/Securities...

Mr. Brian Simms, K.C. (Lennox Paton Counsel and Attorney-at Law) was appointed as provisional liquidator. Additionally, the powers of the directors of FDM have been suspended and no assets of FDM, client assets or trust assets held by FDM, can be transferred, assigned or otherwise dealt with, without the written approval of the provisional liquidator.

comment 4y ago · link · parent

Can’t recommend https://www.cs.cmu.edu/~410/ enough.

comment 5y ago · link · parent

You mean predictions that can be tested right now? Unclear why the proposed time horizon is the right one. This standard would have rejected most of quantum mechanics, some of GR, and many other useful theories and explanations when they were first proposed.
123456