N
newmathphys/kern
Zero-trust L0-L5 verification gateway in Zig 0.17: native Z3 proof-DAG checker, Belnap B4 logic, 42 Lean 4…
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
- ★ 数取值
- 13 ★ · newmathphys/kern · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-11-03 · 最近见到 2026-11-14 · 共见到 12 次 · 被 1 个来源列出
- 评分构成
- 综合分 103 · 13 ★ · 1 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
newmathphys/kern;我们收录于 2026-11-03;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# KERN — a zero-trust verification gateway for AI-generated code
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
> Факты (EN/RU, синхронизируются make sync): core 460 · next 53 · catalog 491 · CHECK 185 · cases 225 · anchors 183 · registry 241 · META 41 · Lean 147 · QuixBugs 6/40 SMT + 40/40 diff.
> Live guide to all 10 capabilities — EN / RU (generated by make demo-all): docs/ALLCAPABILITIESLIVEGUIDE.md · docs/ALLCAPABILITIESLIVEGUIDE.ru.md
> Current status snapshot (generated, gated by make status-check): docs/STATUS.md · docs/STATUS.ru.md
> KERN applied to KERN (self-verification, verbatim output): docs/SELFVERIFICATION.md · docs/SELFVERIFICATION.ru.md
> The KERN Charter — every law names its checker, and the checker is run: docs/CHARTER.md · docs/CHARTER.ru.md
> Proofs on other people's code — not on our own fixtures:
> 1. EvalPlus MBPP+ — three blind spots of the benchmark itself. Of 264 solutions that passed both MBPP and the 80× MBPP+, --xray flagged three division-by-zero crashes; a live python3 call confirmed all three (Mbpp/265, Mbpp/292, Mbpp/422) and refuted none. 0 false accusations.
> 2. TheAlgorithms/C (22.5k ★) — a real SIGFPE. math/catalan.c calls factorial(n+1), which returns 0 for n = 0, so the divisor is zero: echo 0 | ./catalan dies with SIGFPE (rc 136) on the unmodified file; from n = 11 it silently prints garbage. Upstream: #1595. Same repository, second report: math/lcm.c printed -35899 where the true lcm(50000, 50000) = 50000 fits in int — #1596.
> 3. TheAlgorithms/Rust (26k ★) — a u64 underflow. src/math/binomialcoefficient.rs computes n - i with no k
> Every capability, its one command, its external oracle and its honest boundary: docs/CAPABILITYMATRIX.md · RU
> Ten proofs, every command verified against this commit: docs/TENPROOFS.md · RU — four of the ten examples did not match the repository when first drafted; they are corrected here, and the drifting timing numbers are stated as thresholds, not constants.
> Resuming work / open items: docs/NEXTSESSION.md · RU
KERN is an L0–L5 verification gateway that sits between an AI coding agent and your
repository. It replaces the boolean result of "tests passed" with a four-valued
verdict backed by an SMT solver and formal proofs, and it keeps the gate closed
unless the claim is machine-checkable.
Written in Zig 0.17, verified in Lean 4, powered by Z3. Exposes a
C-ABI (libkern.so, 8 functions) and an HTTP guardrail proxy.
## What the agent says — and what KERN proves
make ai-demo drives one realistic agent session end to end. Fixtures live in
examples/aivskern/; every line below is verbatim tool output.
| The agent's report | What KERN finds in the same code |
| 2 passed in 0.01s | [CHEAT DETECTED: swallowed assert (except: pass)] line 28 → R=-2.0 |
| "withdrawals cannot increase the balance" | [FAIL] transferwithfee: КОНТРАКТ НАРУШЕН · [КОНТРПРИМЕР] result = -1, amount = 1, balance = 0 · [RUNTIME CONFIRMED] |
| "the commission is fair" | [FAIL] feethreshold: noarbitrage REFUTED · [КОНТРПРИМЕР] a1 = 100, a2 = 1 |
| "same behaviour, just cleaner" | [DIVERGED] charge · [КОНТРПРИМЕР] resold = -1, balance = -1, amount = 0, resnew = 0 |
| "a safe helper tool" | [MCP] PROMPT INJECTION in "sum": «ignore previous» · INVISIBLE UNICODE U+200B |
> Live guide to all 10 capabilities — EN / RU (generated by make demo-all): docs/ALLCAPABILITIESLIVEGUIDE.md · docs/ALLCAPABILITIESLIVEGUIDE.ru.md
> Current status snapshot (generated, gated by make status-check): docs/STATUS.md · docs/STATUS.ru.md
> KERN applied to KERN (self-verification, verbatim output): docs/SELFVERIFICATION.md · docs/SELFVERIFICATION.ru.md
> The KERN Charter — every law names its checker, and the checker is run: docs/CHARTER.md · docs/CHARTER.ru.md
> Proofs on other people's code — not on our own fixtures:
> 1. EvalPlus MBPP+ — three blind spots of the benchmark itself. Of 264 solutions that passed both MBPP and the 80× MBPP+, --xray flagged three division-by-zero crashes; a live python3 call confirmed all three (Mbpp/265, Mbpp/292, Mbpp/422) and refuted none. 0 false accusations.
> 2. TheAlgorithms/C (22.5k ★) — a real SIGFPE. math/catalan.c calls factorial(n+1), which returns 0 for n = 0, so the divisor is zero: echo 0 | ./catalan dies with SIGFPE (rc 136) on the unmodified file; from n = 11 it silently prints garbage. Upstream: #1595. Same repository, second report: math/lcm.c printed -35899 where the true lcm(50000, 50000) = 50000 fits in int — #1596.
> 3. TheAlgorithms/Rust (26k ★) — a u64 underflow. src/math/binomialcoefficient.rs computes n - i with no k
> Every capability, its one command, its external oracle and its honest boundary: docs/CAPABILITYMATRIX.md · RU
> Ten proofs, every command verified against this commit: docs/TENPROOFS.md · RU — four of the ten examples did not match the repository when first drafted; they are corrected here, and the drifting timing numbers are stated as thresholds, not constants.
> Resuming work / open items: docs/NEXTSESSION.md · RU
KERN is an L0–L5 verification gateway that sits between an AI coding agent and your
repository. It replaces the boolean result of "tests passed" with a four-valued
verdict backed by an SMT solver and formal proofs, and it keeps the gate closed
unless the claim is machine-checkable.
Written in Zig 0.17, verified in Lean 4, powered by Z3. Exposes a
C-ABI (libkern.so, 8 functions) and an HTTP guardrail proxy.
## What the agent says — and what KERN proves
make ai-demo drives one realistic agent session end to end. Fixtures live in
examples/aivskern/; every line below is verbatim tool output.
| The agent's report | What KERN finds in the same code |
| 2 passed in 0.01s | [CHEAT DETECTED: swallowed assert (except: pass)] line 28 → R=-2.0 |
| "withdrawals cannot increase the balance" | [FAIL] transferwithfee: КОНТРАКТ НАРУШЕН · [КОНТРПРИМЕР] result = -1, amount = 1, balance = 0 · [RUNTIME CONFIRMED] |
| "the commission is fair" | [FAIL] feethreshold: noarbitrage REFUTED · [КОНТРПРИМЕР] a1 = 100, a2 = 1 |
| "same behaviour, just cleaner" | [DIVERGED] charge · [КОНТРПРИМЕР] resold = -1, balance = -1, amount = 0, resnew = 0 |
| "a safe helper tool" | [MCP] PROMPT INJECTION in "sum": «ignore previous» · INVISIBLE UNICODE U+200B |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/newmathphys-kern/)
- 来源
- github · https://github.com/newmathphys/kern
- 按领域浏览
- 开源项目
- Traction
- 13 ★
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。