Hacker News new | ask | show | jobs
by tachim 19 days ago
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.

2 comments

For those wondering what “embedding” is:

> Aristotle compiles the provided Rust code deterministically into our proprietary Lean formal model of Rust execution (onward: the embedding).

I was also wondering how readable the auto-formalized spec is, but “proprietary” suggests the formal spec is hidden?

As a user I’d much prefer looking at the formalization myself instead of trusting the auto-formalization from natural language.

The proofs are hidden, but a formal Lean spec will in most cases be returned along a natural language description of the proven property.
Is there documentation on a set of “user-facing” Lean definitions to help me understand the formal spec returned?
Here's an example result, on a specific function of the Symphonia FLAC decoder: https://aristotle.harmonic.fun/projects/55dc5e6e-4e12-47ab-b...

More documentation on Rust specifically can be found here: https://aristotle.harmonic.fun/docs/software/rust

I'm a bit confused. How can the Lean specifications compile if the Rust semantics are not public?
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.
Hey, asking in a quasi-formal inquiry:

We're working on developing an ASIC from our working FPGA verilog. How would your formal methods fit into our process? Do we need to specify the requirements we want? Then Aristotle provides tests which match the requirements?

I have background in temporal logic for formal requirements, but I have not looked at how this connects with modern tools.

Thanks!

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