summaryrefslogtreecommitdiffstats
path: root/content/zettel/3c3c2.md
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2023-05-11 19:38:03 +0100
committerYann Herklotz <git@yannherklotz.com>2023-05-11 19:38:03 +0100
commit47c1289ff658a5aec71635d79ffe30bb29a07876 (patch)
tree56cf6b959e37fed88c492d34defd3d7ec40e7148 /content/zettel/3c3c2.md
parentfbe0fc62120348f582dc4db2b614078943d0764b (diff)
downloadzk-web-47c1289ff658a5aec71635d79ffe30bb29a07876.tar.gz
zk-web-47c1289ff658a5aec71635d79ffe30bb29a07876.zip
Add content
Diffstat (limited to 'content/zettel/3c3c2.md')
-rw-r--r--content/zettel/3c3c2.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/content/zettel/3c3c2.md b/content/zettel/3c3c2.md
new file mode 100644
index 0000000..bfb08ba
--- /dev/null
+++ b/content/zettel/3c3c2.md
@@ -0,0 +1,15 @@
++++
+title = "Weakly embedded memoization"
+author = "Yann Herklotz"
+tags = []
+categories = []
+backlinks = ["3c3c1"]
+forwardlinks = ["3c3c3"]
+zettelid = "3c3c2"
++++
+
+Memoization can also be weakly embedded in Coq by using co-inductive
+datatypes. This works extremely well for functions that take Peano
+numbers as input, as a lazy data structure can be defined using
+co-inductive types, which represents unevaluated thunks. Once these are
+evaluated, they can just be read back normally.