Open
Conversation
- DogFsm/Model.lean: pure FSM types, transition function, and proved lemmas (allowed_always_succeeds, disallowed_always_fails, deterministic) - DogFsm/Properties.lean: 9 Plausible PBT properties covering allowed/ disallowed actions, determinism, successor validity, cycle length, etc. - DogFsm/Tui.lean: interactive ANSI TUI loop driven by the model spec; allowedEvents is derived from transition so they can never disagree - Main.lean + lakefile.lean: lake build / exe entry points https://claude.ai/code/session_01QEjq9cD1BmnwUrp6Fuq94W
- dog_fsm_model.e: stateless transition model using Design by Contract; require/ensure clauses enforce allowed/disallowed actions at runtime, making the contracts the model spec (no separate PBT framework needed) - dog_fsm_tui.e: ANSI TUI loop driven entirely by the model; allowed/ blocked events always queried from model, never hard-coded in the TUI - compile.sh: builds with `se c`; -debug flag enables full contract checking at runtime (the mode to use when validating against Erlang impl) https://claude.ai/code/session_01QEjq9cD1BmnwUrp6Fuq94W
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.
lemmas (allowed_always_succeeds, disallowed_always_fails, deterministic)
disallowed actions, determinism, successor validity, cycle length, etc.
allowedEvents is derived from transition so they can never disagree
https://claude.ai/code/session_01QEjq9cD1BmnwUrp6Fuq94W