HackerTrans
トップ新着トレンドコメント過去質問紹介求人

lheck

no profile record

投稿

Conway's Game of Life in pure pickle for fun and profit

linus.space
1 ポイント·投稿者 lheck·3 か月前·0 コメント

My band of elephants is more accurate than your neural network

linus.space
2 ポイント·投稿者 lheck·昨年·0 コメント

コメント

lheck
·昨年·議論
almost-one-liner (though it will give you the full model):

    import z3; z3.solve([z3.Sum([ord(a) == z3.Int(f"k{i}") for i, a in enumerate(r[0])]) == r[1] for r in [("bbababbabb", 7), ("baaababaaa", 5), ("baaabbbaba", 3), ("bbaaabbaaa", z3.Int("x"))]])
lheck
·昨年·議論
Colleagues of mine are using it to verify concurrent programs: https://iris-project.org/tutorial-material.html