diff options
-rw-r--r-- | cache.md | 2 | ||||
-rw-r--r-- | cache.pickle | bin | 7457 -> 7671 bytes | |||
-rw-r--r-- | solve.py | 12 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cache.md b/cache.md index f2d8569..03d4516 100644 --- a/cache.md +++ b/cache.md @@ -60,4 +60,6 @@ (('(λa b. a (b a))', '(λa b c. a (c a b))'), ('(λx y. x)', '(λx y. y)')): ['(λa b c. a b b b)', '(λa b. a a b)', '(λc d. c)', '(λb. (λe f. f))', '(λa b. a)', '(λa b c. a b a c)'] (('(λa b. b a)', '(λa b c. b c)'), ('(λx y. x)', '(λx y. y)')): ['(λa b. b a b)', '(λa b. b a a)', '(λp. p (λe f. f) (λc d. c))', '(λa b. a a b)', '(λa b. b)', '(λa b. a)'] (('(λa b. a a (a a a))', '(λa b. a a λc. b c a)'), ('(λx y. x)', '(λx y. y)')): ['(λa b. b)', '(λa. (λc d. c))', '(λa b. a)', '(λc d. c)'] +(('(λa b c. a (a c) a)', '(λa b. a (a b a) a)'), ('(λx y. x)', '(λx y. y)')): ['(λa b. a)', '(λa b. b)', '(λa b. a)', '(λa b. b)'] +(('(λa b. a a b)', '(λa b. a b a)'), ('(λx y. x)', '(λx y. y)')): ['(λa b. a)', '(λa b. b)'] ``` \ No newline at end of file diff --git a/cache.pickle b/cache.pickle index 29f3d2d..075907b 100644 --- a/cache.pickle +++ b/cache.pickle Binary files differdiff --git a/solve.py b/solve.py index 06daab1..6b18f81 100644 --- a/solve.py +++ b/solve.py @@ -664,14 +664,12 @@ while True: with open('cache.pickle', 'wb') as handle: pickle.dump(cache, handle, protocol=pickle.HIGHEST_PROTOCOL) + cache_human_readable = open("cache.md", "w") + cache_human_readable.write(f"# cache\n```\n") for k in cache: - - cache_human_readable = open("cache.md", "w") - cache_human_readable.write(f"# cache\n```\n") - for k in cache: - cache_human_readable.write(f"{k}: {cache[k]}\n") - print(k) - cache_human_readable.write(f"```") + cache_human_readable.write(f"{k}: {cache[k]}\n") + print(k) + cache_human_readable.write(f"```") break |