about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2023-02-19 14:10:33 +0100
committerEmile <git@emile.space>2023-02-19 14:10:33 +0100
commit4ca2292ce455acb844d19b279e500db4ebdc4c41 (patch)
tree11067fa27203df8c787cf584fcf25acba3a22c5f
parent85e2e426101fe508fe735833b3014e2aa9d5eedb (diff)
oops, double nested
-rw-r--r--cache.md2
-rw-r--r--cache.picklebin7457 -> 7671 bytes
-rw-r--r--solve.py12
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