Repository navigation
Prove a guarantee that says is not in the tab, below and above the value (FA-91) - #231
Open
humuhumu33 wants to merge 1 commit into
Open
humuhumu33 wants to merge 1 commit into
humuhumu33 wants to merge 1 commit into
Conversation
The in-tab prover read a guarantee's conditions as one box, and a box cannot say is not, so a true guarantee was checked over the excluded value too and refused. The parking-fee fixture's INV-004 (always premium over eight hours unless the vehicle is a motorcycle) was refused on the live site. ruleHolds_split, proved in studio/proof on propext and Quot.sound, joins proofs of the guarantee below the value and above it into a proof of the guarantee as written. The prover proves each half as a box and the kernel checks the join; guarantees without is not are written as before. The library is re-exported with the lemma (the export reproduces main's library byte for byte first), and the pinned kernel judges it whole. The FA-91 test runs prism.prove in Node with the shipped kernel and the pinned guest: INV-004 is proved, a variant a motorcycle breaks is refused. Planted, main's prover and a join with the wrong value are each refused. The in-browser bench prototype (v2/in-tab-kernel/web) goes, so non-Prism code shrinks by 61 lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 16, 2026
This branch has not been deployed
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.
Why
The live site refuses a true guarantee when its conditions say
is not. The in-tab prover reads a guarantee's conditions as one box, and a box can't sayis not: it keeps every value of the field. So the guarantee is checked over the excluded value too.Seen on https://uor-foundation.github.io/foundry/ with the parking-fee fixture. INV-004, "always premium over eight hours unless the vehicle is a motorcycle", is true, and the studio's own checker accepts it. Approving answered "Not proved. Lean's kernel refused INV-004", because motorcycles park free.
What changes
ruleHolds_splitinstudio/proof/PrismLive/Regions.leanjoins proofs of a guarantee below the value and above it into a proof of the guarantee as written. A whole number other thanvis either less thanvor greater.RuleHoldsnamesruleJudge_sound's conclusion, andruleJudge_holdsrestates the theorem in that form. Lean 4.32.1 proves it onpropextandQuot.sound, andAxioms.leanprints it; the CI count moves from 3 to 4.is notis proved as two boxes, its halves are joined withruleHolds_split, and the kernel checks the join. Guarantees withoutis notare written exactly as before.prism.provein Node with the shipped kernel and library and the pinned guest. INV-004 is proved, and a variant a motorcycle breaks is refused and named. The test sits in the FA-86 suite and FA-91's Rust test beside FA-86's, as FA-90's is, soaudit-prismsees no new file.v2/in-tab-kernel/web) goes, so non-Prism code shrinks by 61 lines.Evidence
check-model,foundry_model --check,audit-prismandcargo fmt --checkpass.studio/proofbuilds, and all four printed theorems rest onpropextandQuot.sound.Not covered
Guarantees that compare two fields still can't be proved in the tab; the rule judge compares a field with a value. Not run here: the studio.yml steps that need the SDK image.
🤖 Generated with Claude Code