Skip to content

Instantly share code, notes, and snippets.

@KKostya
Last active October 23, 2018 13:41
Show Gist options
  • Save KKostya/1baedd7021b6dd8f8f96d49381db6e1e to your computer and use it in GitHub Desktop.
Save KKostya/1baedd7021b6dd8f8f96d49381db6e1e to your computer and use it in GitHub Desktop.
verify ( (strategy) => Real.({
valid_strategy(strategy) ==>
( expected_reward (
make_scenario_pmf(pDoorsBiased,strategy)
) <= 2000000.0 / 3.0 )
}))
module CX : sig val strategy : door -> choice -> Q.t end
Counterexample (after 0 steps, 0.012s):
let strategy x_0 x_1 =
match (x_0, x_1) with
| (DoorA, Stay) -> (Real.mk_of_string "399997/600000")
| (DoorC, Swap) -> (Real.mk_of_string "200003/600000")
| _ -> 0.
Refuted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment