Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenrothkopf committed Sep 25, 2023
2 parents 08ef6cd + d19a66c commit 27dbbfe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
File renamed without changes.
File renamed without changes
28 changes: 28 additions & 0 deletions spec_engineering/specV2.tsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
initially assume{
! inCave passage;
! inMarket passage;
! inTown passage;
}

always assume {
//we wont hallucinate a cave, but we might accidentally end up in town or at a market
[passage <- toCave passage] <-> X inCave passage;
[passage <- toMarket passage] -> X inMarket passage;
[passage <- toTown passage] -> X inTown passage;
}

guarantee {
//you cant go to the cave until you have been to town and the market once
(! (inCave passage)) W (inMarket passage);
(! (inCave passage)) W (inTown passage);

}

always guarantee {
//eventually, always visit all the places, and keep summary up to date
[summary <- updateSummary passage];
F inCave passage;
F inMarket passage;
F inTown passage;
}

0 comments on commit 27dbbfe

Please sign in to comment.