Skip to content

Commit

Permalink
add a new version of the spec
Browse files Browse the repository at this point in the history
also seems like the tsl-api is out of date with the command liner version - still should be correct i think, but the command line version sometimes gives smaller solutions
  • Loading branch information
santolucito committed Sep 24, 2023
1 parent 2f84fd1 commit d19a66c
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 d19a66c

Please sign in to comment.