# Re: [tlaplus] TLA+ Specification for Einsteins Riddle

• Date: Thu, 11 Mar 2021 07:47:39 -0800
• Ironport-hdrordr: A9a23:2yLXPKx9+lga1nWdRPaQKrPxUukkLtp033Aq2lEZdDV8Sebdv9yynfgdyB//gCsQXnZlotybJKycWxrnme8M3aA4Bp3neAX9omOnIMVZ7YXkyyD9ACGWzIMtrJtIW5NVTOf9BV0St6yKhjWQOdAm3dWB7eSMjeDR039iQWhRGuhdxi1+DRuWFVAzeRJPAoA3GIHZys1MoTehfnp/VLXyOlAuWe/fq9rX0K/3eBJuPW9Q1CCirxONrIT7HR+RwwsEX1p0rosK3GDZn2XCl9Cemt6hzBu07R6h0713n5/bxsJHFIiwjKEuW0LRoyOpfpkkc6aJvTArrIiUmQ8XufzNuQplHsh38hrqDyeIiD7swRSl8BtG0Q6h9Xa8gWH/5fX+Xi9SMbsHuat9cgHFr3Ymps12yqhR32mU3qAnVS/ouATYy5z2WwpxlkyyyEBS5dI7q3ReVIsYZvtVrZYDlXklU6soOC7h8ogoHK1PIajnlYRrWGqAY3rUs2VpytDEZAVyIj68TkIPutOY3lFt9RgTvi9ov71j7wg93akwQZVF+OjIdp5Qu9h1P7UrRJlwC+sbTcy8Bnale2O9DEuoLU3jBOU7PRv22t/KyY844+ynY/UzracaoojLU19TqAcJCjzTIPCJtac7gyzlcSGXUTjr98BT/JQRgMyYeJPbdQOGDHQjidGprflaONDSRvrbAvJrKs6mA23pF4NEmyDde70XE3kRV8UJps02Mmjhnuv7bqPtsOLffLL8P7zwCHIFVwrEcz8+dQm2CsNH4EWmHkX9nQGUYXXwYUbylKgAc5Tyzqw2465IDLRllkwtklKz7sqKLD1eosUNDQBDCYKitLi6q2mw9WONx3l1OxZbE0Ze6KjhVXQPngMRL0boa984ypuiUFEX+mCGKB95R8aTKgJZqlhtkJjHYKC49GQYB9iqMn2XghIo1RD6KKs0q+m5/97sfp59NoorRKA0NQijLW05pS9a7FxYcQcBSwvkHDX0hcye/dYpLdCaTMNkiAOnZfJ1hBvkxAmhjPBqfGISW3qFUMKcgwoiAxpSwnNr9bMH6YDw3AqHGC8BgP8lKhl3YmyRB75KZT71GLlppg==
• References: <87czwg7zx5.fsf@x230a3.onfire.org> <f20cf55e-304f-9283-45e5-5a5bfe5323e9@gmail.com> <87pn0c7mbc.fsf@x230a3.onfire.org> <CAM3xQxH0xATFyk6Rg+kdxr9J6=1e3Sf_NVXyv4hjdpzqLjxTOA@mail.gmail.com> <08AA8B55-2928-4A00-9E4C-B6ECBC602D04@gmail.com>

On 10.03.21 23:31, Michael Leuschel wrote:

Hi Isaac,


I had a quick look at the example on https://github.com/Isaac-DeFrain/TLAplusFun/tree/main/EinsteinRiddle <https://github.com/Isaac-DeFrain/TLAplusFun/tree/main/EinsteinRiddle>  and tried to add the Solution predicate to Init and the Invariant (to see if ProB could initialise the spec and solve it at the same time).
It did not find a solution.
I think this
GreenLeftOfWhite == \E i \in 1..4 : colors[i] = "green" /\ colors[i] = “white"
has to  be:
GreenLeftOfWhite == \E i \in 1..4 : colors[i] = "green" /\ colors[i+1] = “white"


After that, I was able to load and solve the Puzzle pretty quickly (< 5 ms to find solution). I haven’t check the solution though. (I realized that ProB does not like [][FALSE]_ in your spec; I will try and fix this.)

Greetings,
Michael



FWIW: https://github.com/tlaplus/Examples/pull/31

M.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/049e2380-ce00-3864-1135-e8bf1a1cd40b%40lemmster.de.