SShortSingh.
Back to feed

Zean open-sourced: translate Zig functions into Lean models and prove their behavior

0
·2 views

The okcontract team has released Zean, an open-source toolkit under Apache 2.0 that translates supported Zig functions into executable Lean models and verifies their behavior. It grew out of formal verification work on oksolc, their Solidity compiler written in Zig. Zean captures functions from Zig's analyzed intermediate representation (AIR) and emits Lean definitions, while contracts, loop invariants, and proofs are written in separate handwritten Lean modules. A verification library derives proof obligations covering memory access, initialization, permissions, arithmetic, control flow, and calls, and unsupported operations are rejected while unresolved obligations remain open. The release supports restricted AIR fragments and includes memory-safety examples, copy loops, and a captured specialization of std.mem.replaceScalar. The proofs do not cover the capture pipeline, Zig frontend, or native backend, so they do not establish the correctness of the final binary or the whole compiler.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Percona Revisits Whether Galera Node Weights Should Be Adjusted in MySQL Clusters

Percona has published a blog post reassessing the practice of assigning custom weights to nodes in Galera-based clusters. The article argues that the ability to set node weights does not automatically make it a wise choice for every deployment. It examines the potential trade-offs that administrators should weigh before changing default cluster behavior. The post is aimed at database operators who rely on Galera for high availability. The discussion was shared on Hacker News, where it has received limited attention so far.

0
ProgrammingDEV Community ·

Zoom Windows clients flagged for high-severity certificate validation flaw, CVE-2026-108184

Zoom disclosed CVE-2026-108184 on October 13, 2026, as bulletin ZSB-26021, describing improper certificate validation in certain Windows clients. The issue carries a CVSS 3.1 score of 7.4 and can be triggered over the network without privileges or user interaction, though attack complexity is high. Zoom says the flaw may allow unauthenticated information disclosure, and the bulletin rates confidentiality and integrity impact as high without detailing the exact attack path. The affected products include Zoom Workplace for Windows, Zoom Workplace VDI Client, and Zoom Rooms for Windows across listed version ranges. The article cautions that a ZoomEye count of 347,617 Zoom fingerprints does not indicate how many clients are vulnerable, and recommends authenticated endpoint inventory to decide which systems need patching.

0
ProgrammingDEV Community ·

A Method for Reading Code You Didn't Write: Run, Enter, Follow, Break

Reading unfamiliar code is often approached by opening files at random, which wastes days and rarely builds real understanding. The article argues that reading is a learnable skill that matters more than writing, since most engineering work involves understanding existing code. It proposes a four-step method: run the program first, locate its entry point, trace a single execution path, and deliberately break something to see what fails. A fifth habit, consulting the project's history, is also recommended. The approach is illustrated with serverctl, a Go terminal UI for administering Linux servers over SSH, whose 107 Go files make it a useful example.

0
ProgrammingDEV Community ·

Repetitive Tasks, Not Low Productivity, May Be the Real Drag on Teams

The article argues that many teams struggle less with overall productivity than with repetitive, rule-based work. Tasks such as moving data between tools, sending routine follow-ups, compiling reports, and triaging requests consume significant hours without needing human judgment. The author, an automation developer, points to n8n, an open-source, low-code workflow platform, as one way to address this. Highlighted advantages include integrations with hundreds of apps, self-hosting for data control, and built-in support for AI models and agents. The piece suggests that the real benefit of automation is freeing staff for strategy, creativity, and client relationships.