Oriel — AI & technology worth noticing, every day.

Formally verifying Erlang/Elixir programs with embedded Lean proofs

Web page · https://dashbit.co/blog/formally-verifying-erlang-elixir-programs-with-lean

First seen by Oriel on .

AI summary

The article introduces Lynx, a project that translates Erlang/Elixir code and laws into Lean so the Lean kernel can check proofs about program behavior.

  • Developers state assumptions with `requires:` and expected properties with `expects:`, then write Lean proofs; laws can also run as ExUnit tests and support fuzzing.
  • Lynx models Erlang runtime data types and sequential and concurrent processes, including message passing and process spawning, but does not yet implement all built-in functions.
  • Concurrent proofs cover every modeled interleaving and require a step bound; sleep sets reduce exploration, while `reaches:` checks whether one outcome is possible.
  • The model excludes ports, native records, network sockets, and I/O, and its treatment of timers and receive timeouts can admit runs impossible in Erlang/OTP.
  • Laws must be carefully specified, and handwritten proofs may need updates when translated code or Lean, Erlang, or Elixir versions change.

#elixir #erlang #lean #formal verification

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 19, latest observation ; +17 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 2, latest observation ; +2 over observed period since

Aliases

SourceExternal IDURL
Lobstersxeu5xphttps://dashbit.co/blog/formally-verifying-erlang-elixir-programs-with-lean Read discussion