Hacker News new | ask | show | jobs
by remywang 12 days ago
Is there documentation on a set of “user-facing” Lean definitions to help me understand the formal spec returned?
1 comments

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.
But doesn't a specification need semantics to be meaningful in the first place? For example, without knowing the semantics, how can I be sure that `S.intVal 42` actually represents the integer 42 in Lean, rather than 0?