Paper-Proof/paperproof
关于
Lean 定理证明界面,使用体验如同在纸上用笔推演证明。
科学与工程实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Paperproof
A new proof interface for Lean 4.
Paperproof will inspect how the hypotheses and goals were changing throughout the Lean 4 proof, and display this history - making it equivalent to how we think of a mathematical proof on paper.
In the following tables, you can see what tactics such as apply, rw, or cases look like in Paperproof; and how Paperproof renders real proofs from well-known repos.
Common tactics
| Lean | Paperproof |
|---|---|
apply |
|
|
|
have | |
|
|
intro | |
|
|
rw | |
|
|
by_contra | |
|
|
use | |
|
|
induction | |
|
|
cases | |
|
|
|
|
|
|
|
|
Full-fledged proofs
Mathematics in Lean (Jeremy Avigad, Patrick Massot) |
|
|
|
|
Hitchhiker's Guide to Logical Verification |
|
|
Installation
Install the "Paperproof" vscode extension (link).
You're done!
Now, click on the paperproof icon (after you installed the Paperproof extension, it should appear in all
.leanfiles), this will open a Paperproof panel within vscode.You can click on any theorem now (well, only on tactic-based proofs, those starting with
by) - you should see your proof tree rendered.
Updating
Paperproof lives entirely in the vscode extension, so updating it means updating the extension - which vscode does automatically. You can check for new updates with cmd+shift+p => "Extensions: Show Extension Updates".
Tutorial
If you worked with formal proofs before, you might find Paperproof most similar to proof trees/Gentzen trees. The resemblance is not spurious, we can easily mimic Semantic Tableaux and Natural Deduction trees with Paperproof. All of these interfaces show "the history of a proof" - the way hypotheses and nodes were changing throughout the proof.
Unlike Gentzen, we can make use of css and javascript - so there are many visual syntax sugars on top of what would be a formal proof tree:
- hypotheses aren't repeated when used multiple times,
- goals and hypotheses are visually differentiated,
- variable scopes are shown as darkening backgrounds,
- available hypotheses are indicated via node transparencies,
- and so on.
Below, you will see a table with the main features of Paperproof.
Paperproof walkthrough
| Lean | Paperproof |
|---|---|
|
Hypotheses are displayed as green nodes, goals are displayed as red nodes, tactics are displayed as transparent nodes with dashed borders. |
|
|
|
|
|
A proof should be read "towards the middle". So, hypotheses should be read from top to bottom; and goals should be read bottom up. |
|
|
|
|
|
To zoom in on a particular dark box, you can click on it. Hint: these boxes represent variable scopes. Don't overthink this however, we'll always highlight the available hypotheses as you're writing the proof, consider these boxes a visual hint that will eventually become second nature. |
|
|
|
About Paperproof
Theoretical:
- Paperproof ♥️ Semantic Tableaux: link
- Paperproof ♥️ Natural Deduction: link
- Paperproof ⚔️ Lean's #explode: link
- Lean ⚔️ Coq ⚔️ Metamath ⚔️ Isabel proof trees: link
Practical:
- Can Paperproof render proof terms: link
- Paperproof's Architecture: link
- Anatomy of the InfoTree: link, link
Videos:
- a super quick 1-minute demo of Paperproof: youtube link
- our Lean Together presentation: youtube link
- a full Paperproof tutorial: youtube link
- a full Paperproof tutorial - More Features (LaTeX, Snapshots, and Single-Tactic Mode): youtube link
Development
You're welcome to contribute to Paperproof, see the instructions in CONTRIBUTING.md.
探索相关项目
加载中…