Last active
October 21, 2018 19:18
-
-
Save KKostya/bddc771c017eba6d304c66b0df45298e to your computer and use it in GitHub Desktop.
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
let valid_strategy : (door => choice => real) => bool = | |
(strategy) => Real.({ | |
(strategy(DoorA,Stay) >= 0.0) && (strategy(DoorA,Swap) >= 0.0) && | |
(strategy(DoorB,Stay) >= 0.0) && (strategy(DoorB,Swap) >= 0.0) && | |
(strategy(DoorC,Stay) >= 0.0) && (strategy(DoorC,Swap) >= 0.0) && | |
( strategy(DoorA,Stay) + strategy(DoorA,Swap) + | |
strategy(DoorB,Stay) + strategy(DoorB,Swap) + | |
strategy(DoorC,Stay) + strategy(DoorC,Swap) == 1.0) | |
}); | |
valid_strategy(random_then_stay_strategy) |
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
val valid_strategy : (door -> choice -> real) -> bool = <fun> | |
- : bool = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment