sir: one step relation for two addressing modes - #22
Closed
Eduardogbg wants to merge 21 commits into
Closed
Conversation
added 21 commits
August 7, 2026 02:29
Eduardogbg
force-pushed
the
sir/generic-machine
branch
from
August 7, 2026 05:35
6bc23af to
94efe3f
Compare
Collaborator
Author
|
superseded by #26 |
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.
SmallStep,StepsandEvalFnbecome definitions that instantiate a frame-polymorphic transition system inSpec/Machine.lean, and a stack-addressed CFG is the second instance.What changed
OperandFrame(Environment,Source,Destination,fetch,store) and aDecodersupplying decode, control, resume and entry. SIR instantiates them atLocalswithArray VarIdon both operand sides;Generic/Cfg.leaninstantiates them at a stack with slots, a pop depth, and a consume/produce destination.Generic/Examples.leanruns one program of each end to end.GenericSteps.confluence_or_queryDivergenceare proved once over the frame inGeneric/Dialogue.leanand instantiated per decoder inGeneric/Corollaries.lean;Proofs/Dialogue.leanandProofs/StepDet.leanare deleted. Both decoders dischargeDecoder.ExclusiveandDecoder.Terminalwith no premises.Operationstays a fixed inductive of SIR's eleven operations, so the abstraction covers addressing modes of one instruction set. A machine that needs further operations editsSpec/Machine.lean.old ↔ newtheorem was stated.Theorems.leanis byte-identical, and theTwoFunction,HaltedCallandMemorywitnesses re-prove against the generic step with their statements unchanged.