-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'randriu:master' into belief-exploration
- Loading branch information
Showing
141 changed files
with
8,520 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,3 @@ WORKDIR /opt/paynt | |
|
||
# (optional) install paynt | ||
RUN pip install -e . | ||
|
||
# TODO tests |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
models/archive/jair24-synthesis/dec-pomdp/box-pushing-1fsc/sketch.props
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
R{"moves"}max=? [F "goal"] | ||
//Pmin=? [F "goal"] | ||
//R{"actc"}max=? [F "goal"] | ||
|
||
//R{"steps"}min=? [F "goal"] | ||
|
||
|
||
//Pmax=? [F "goal"] |
3,238 changes: 3,238 additions & 0 deletions
3,238
models/archive/jair24-synthesis/dec-pomdp/box-pushing-1fsc/sketch.templ
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
models/archive/jair24-synthesis/dec-pomdp/box-pushing-2fsc/sketch.props
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
R{"moves"}max=? [F "goal"] | ||
//Pmin=? [F "goal"] | ||
//R{"actc"}max=? [F "goal"] | ||
|
||
//R{"steps"}min=? [F "goal"] | ||
|
||
|
||
//Pmax=? [F "goal"] |
3,238 changes: 3,238 additions & 0 deletions
3,238
models/archive/jair24-synthesis/dec-pomdp/box-pushing-2fsc/sketch.templ
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
models/archive/jair24-synthesis/dec-pomdp/dec-tiger-2fsc/sketch.props
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
R{"rew"}max=? [F "goal"] | ||
|
||
//R{"steps"}min=? [F "goal"] | ||
|
||
|
||
//Pmax=? [F "goal"] |
131 changes: 131 additions & 0 deletions
131
models/archive/jair24-synthesis/dec-pomdp/dec-tiger-2fsc/sketch.templ
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
|
||
dtmc | ||
|
||
|
||
const double discount=0.9; | ||
|
||
// agent 1 holes | ||
hole int M1_0_0 in {0,1}; | ||
hole int M1_0_1 in {0,1}; | ||
hole int M1_1_0 in {0,1}; | ||
hole int M1_1_1 in {0,1}; | ||
hole int P1_0_0 in {0,1,2}; | ||
hole int P1_0_1 in {0,1,2}; | ||
hole int P1_1_0 in {0,1,2}; | ||
hole int P1_1_1 in {0,1,2}; | ||
|
||
// agent 2 holes | ||
hole int M2_0_1 in {0,1}; | ||
hole int M2_0_0 in {0,1}; | ||
hole int M2_1_1 in {0,1}; | ||
hole int M2_1_0 in {0,1}; | ||
hole int P2_0_1 in {0,1,2}; | ||
hole int P2_0_0 in {0,1,2}; | ||
hole int P2_1_1 in {0,1,2}; | ||
hole int P2_1_0 in {0,1,2}; | ||
|
||
|
||
module strategy1 | ||
mem : [0..1] init 0; | ||
act : [0..2] init 0; | ||
|
||
[choose] mem=0 & o1=0 -> (act'=P1_0_0); | ||
[choose] mem=0 & o1=1 -> (act'=P1_0_1); | ||
[choose] mem=1 & o1=0 -> (act'=P1_1_0); | ||
[choose] mem=1 & o1=1 -> (act'=P1_1_1); | ||
|
||
[act] mem=0 & o1=0 -> (mem'=M1_0_0); | ||
[act] mem=0 & o1=1 -> (mem'=M1_0_1); | ||
[act] mem=1 & o1=0 -> (mem'=M1_1_0); | ||
[act] mem=1 & o1=1 -> (mem'=M1_1_1); | ||
endmodule | ||
|
||
module strategy2 | ||
mem2 : [0..1] init 0; | ||
act2 : [0..2] init 0; | ||
|
||
[choose] mem2=0 & o2=0 -> (act2'=P2_0_1); | ||
[choose] mem2=0 & o2=1 -> (act2'=P2_0_0); | ||
[choose] mem2=1 & o2=0 -> (act2'=P2_1_1); | ||
[choose] mem2=1 & o2=1 -> (act2'=P2_1_0); | ||
|
||
[act] mem2=0 & o2=0 -> (mem2'=M2_0_0); | ||
[act] mem2=0 & o2=1 -> (mem2'=M2_0_1); | ||
[act] mem2=1 & o2=0 -> (mem2'=M2_1_0); | ||
[act] mem2=1 & o2=1 -> (mem2'=M2_1_1); | ||
endmodule | ||
|
||
|
||
module tiger | ||
|
||
pos : [0..1] init 0; | ||
o1 : [0..1] init 0; | ||
o2 : [0..1] init 0; | ||
|
||
[in] true -> 0.5: (pos'=0) + 0.5: (pos'=1); | ||
|
||
[act] pos=0 & act=0 & act2=0 -> 0.7225: (o1'=0)&(o2'=0) + 0.1275: (o1'=0)&(o2'=1) + 0.1275: (o1'=1)&(o2'=0) + 0.0225: (o1'=1)&(o2'=1); | ||
[act] pos=1 & act=0 & act2=0 -> 0.7225: (o1'=1)&(o2'=1) + 0.1275: (o1'=0)&(o2'=1) + 0.1275: (o1'=1)&(o2'=0) + 0.0225: (o1'=0)&(o2'=0); | ||
|
||
//[act] act!=0 | act2!=0 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
|
||
[act] pos=0 & act=0 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=0 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=1 & act2=0 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=2 & act2=0 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=1 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=1 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=2 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=0 & act=2 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
|
||
[act] pos=1 & act=0 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=0 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=1 & act2=0 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=2 & act2=0 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=1 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=1 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=2 & act2=1 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
[act] pos=1 & act=2 & act2=2 -> 0.125: (pos'=0)&(o1'=0)&(o2'=0) + 0.125: (pos'=0)&(o1'=0)&(o2'=1) + 0.125: (pos'=0)&(o1'=1)&(o2'=0) + 0.125: (pos'=0)&(o1'=1)&(o2'=1) + 0.125: (pos'=1)&(o1'=0)&(o2'=0) + 0.125: (pos'=1)&(o1'=0)&(o2'=1) + 0.125: (pos'=1)&(o1'=1)&(o2'=0) + 0.125: (pos'=1)&(o1'=1)&(o2'=1); | ||
|
||
endmodule | ||
|
||
|
||
module df | ||
sink : bool init false; | ||
[act] !sink -> discount: true + 1-discount: (sink'=true); | ||
endmodule | ||
module clk | ||
c : [0..2] init 0; | ||
[in] c=0 -> 1: (c'=2); | ||
[choose] c=1 -> 1: (c'=2); | ||
[act] c=2 -> 1: (c'=1); | ||
endmodule | ||
|
||
// reward | ||
rewards "rew" | ||
!sink & c=2 & pos=0 & act=0 & act2=0 : -2; | ||
!sink & c=2 & pos=1 & act=0 & act2=0 : -2; | ||
|
||
!sink & c=2 & pos=0 & act=0 & act2=1 : -101; | ||
!sink & c=2 & pos=0 & act=0 & act2=2 : 9; | ||
!sink & c=2 & pos=0 & act=1 & act2=0 : -101; | ||
!sink & c=2 & pos=0 & act=2 & act2=0 : 9; | ||
!sink & c=2 & pos=0 & act=1 & act2=1 : -50; | ||
!sink & c=2 & pos=0 & act=1 & act2=2 : -100; | ||
!sink & c=2 & pos=0 & act=2 & act2=1 : -100; | ||
!sink & c=2 & pos=0 & act=2 & act2=2 : 20; | ||
|
||
!sink & c=2 & pos=1 & act=0 & act2=1 : 9; | ||
!sink & c=2 & pos=1 & act=0 & act2=2 : -101; | ||
!sink & c=2 & pos=1 & act=1 & act2=0 : 9; | ||
!sink & c=2 & pos=1 & act=2 & act2=0 : -101; | ||
!sink & c=2 & pos=1 & act=1 & act2=1 : 20; | ||
!sink & c=2 & pos=1 & act=1 & act2=2 : -100; | ||
!sink & c=2 & pos=1 & act=2 & act2=1 : -100; | ||
!sink & c=2 & pos=1 & act=2 & act2=2 : -50; | ||
endrewards | ||
|
||
// target | ||
label "goal" = sink=true; | ||
|
6 changes: 6 additions & 0 deletions
6
models/archive/jair24-synthesis/dec-pomdp/dec-tiger-3fsc/sketch.props
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
R{"rew"}max=? [F "goal"] | ||
|
||
//R{"steps"}min=? [F "goal"] | ||
|
||
|
||
//Pmax=? [F "goal"] |
Oops, something went wrong.