Repository navigation
Conversation
Co-Authored-By: Abdur Raheem Imami <araheemimami@gmail.com>
Co-Authored-By: Abdur Raheem Imami <araheemimami@gmail.com>
Co-Authored-By: Abdur Raheem Imami <araheemimami@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Abdur Raheem Imami <araheemimami@gmail.com>
Co-Authored-By: Abdur Raheem Imami <araheemimami@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
herta/formal/: a Lean 4 package with no dependencies (305 lines) that models hertasdk's retry, deadline and effect semantics, with source citations. It proves:T1_assumption_necessaryshows the run is unsafe without that assumption.Policy.Classifypath never retries after the attempt's own deadline, so it removes the T2 failure mode by construction.check.shbuilds the package in about 2 s. It fails onsorryor on any axiom other than propext, Classical.choice and Quot.sound.herta trust [-closed] [-json] [-strict] file.he: a per-op list of trust assumptions, modelled on Lean's#print axioms. Assumptions propagate through call edges, and each one links to the theorem behind it. Kinds: opaque-handler, transient-honest, legacy-tag-path, nested-retry-amplification, same-serialize-key, unresolved-callee. Docs are inherta/docs/TRUST.md.herta/eval/trust/: a script and summary that run the ledger over the 20 closed-world inputs, the 20 migrated programs and 121 composition corpus files.herta/docs/LEAN.md: the study. It covers the pilot mechanism, a Lean 1→4 timeline, Lean's primitives, ranked reasons Lean succeeded, a Lean→Herta mapping, a short note on the Bend analogy, limits, and next experiments that could disprove each proposal.Why?
The pilot found no measurable Herta benefit. Its failures came from one contested deadline rule, and the checker could not see raw Go handler bodies. This PR turns that rule into proved statements. It also borrows Lean's way of making trust boundaries explicit and checkable (a small kernel plus an axiom audit) for opaque Go code.
Limits:
Tests:
go test ./herta/...passes, including the new trust goldens, within the runner caps (200 cases, 5 s/case, 60 s total).herta/formal/check.shpasses.Scope check
go test -race -count=1 .passes with 100% coverage;cd lab && go test -race -count=1 ./...passes (root untouched; not rerun)Implemented in session Study Lean 1 through 4 for Herta
Review with Devin · Open in Devin Desktop