-
Notifications
You must be signed in to change notification settings - Fork 19
display automatic translations to informal math #168
base: master
Are you sure you want to change the base?
Changes from 2 commits
7cec640
7ff6709
5328ddd
d46cddf
3252777
411bfb0
03443f8
6624d54
6c05dba
42c2a9d
f9108f2
4b847fa
7470cdc
935ca19
bbc1dfb
93a69c5
b31b053
376fba4
46cc148
846af1b
f8c1b50
bab70a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| [package] | ||
| name = "." | ||
| version = "0.1" | ||
| lean_version = "leanprover-community/lean:3.35.1" | ||
| lean_version = "leanprover-community/lean:3.45.0" | ||
| path = "src" | ||
|
|
||
| [dependencies] | ||
| mathlib = {git = "https://github.com/leanprover-community/mathlib", rev = "77ba0c4160793de8a824461128c57ca394792143"} | ||
| mathlib = {git = "https://github.com/leanprover-community/mathlib", rev = "b2af6ee923fac9d60bd4e2fdce27b11287cc614f"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,29 @@ | |
|
|
||
| {{ decl.doc_string | convert_markdown }} | ||
|
|
||
| {% if decl.informal_statement %} | ||
|
|
||
| <details open> | ||
| <summary>Informal translation</summary> | ||
|
|
||
| <div class="informal_statement"> | ||
| <div class="statement"> | ||
| {{ decl.informal_statement }} | ||
|
robertylewis marked this conversation as resolved.
Outdated
|
||
| </div> | ||
|
Comment on lines
+41
to
+43
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm worried the mathjax rendering is going to have quite a large impact on page load times. Could we maybe:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the
But a toggle also sounds like a good idea. Do you know how to defer the rendering?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a (possibly outdated) question about deferring here: https://stackoverflow.com/a/27952213/102441
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This page in the documentation also seems relevant. Enabling Lazy Typesetting would also be a reasonable option. |
||
|
|
||
| <div class="translation_qs"> | ||
| This translation to informal mathematics is automatically generated and should NOT be trusted! | ||
| The translation is a <a href="">beta feature powered by OpenAI's Codex API</a>. | ||
| <br> | ||
| Does this translation look correct? <a href="">Yes</a> | <a href = "">No</a> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
| </details> | ||
|
|
||
| {% endif %} | ||
|
|
||
| {% if decl.equations | length %} | ||
| <details> | ||
| <summary>Equations</summary> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.