From 4ca2292ce455acb844d19b279e500db4ebdc4c41 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 19 Feb 2023 14:10:33 +0100 Subject: oops, double nested --- cache.md | 2 ++ cache.pickle | Bin 7457 -> 7671 bytes 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 Binary files a/cache.pickle and b/cache.pickle differ diff --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 -- cgit 1.4.1