⬢github TypeScript · 138 ★ +29 since we first saw it · pushed 1 h ago · NOASSERTION
cristianoc/TScert
TScert: a sound core for TypeScript. An independent checker, whose soundness is proved in Lean, accepts a TypeScript function only with a proof.
TScert is an independent checker for TypeScript functions that accepts code only with a proof of type safety. Because TypeScript's checker is deliberately unsound (any, assertions, unchecked index reads), TScert instead verifies programs against a formal calculus, with a checker whose soundness is itself proved in Lean. It catches bugs like reading past an array after mutation that tsc accepts.
Why now: It was recently discussed on Hacker News as a novel approach to patching TypeScript's unsoundness with machine-checked soundness proofs, and the repo shows active recent development.
Who it is for: TypeScript developers who want formal, machine-checked type-safety guarantees for critical functions.
formal-verificationlean4proof-carrying-codetype-safetytype-systemstypescript
Stars over our 60 snapshots: 109 to 138, since 1 d ago.
Where people talked about it
- Yhn TScert: A Sound Core for TypeScript 52 min ago
API: https://socialmediatrends-api.osmike.com/v1/repos/cristianoc/TScert