Zulip Chat Archive

Stream: lean4

Topic: Syntax errors in Lean4 using Markus Himmel's paper


Daniel Donnelly (Oct 21 2023 at 18:39):

image.png

Using the document here:
https://pp.ipd.kit.edu/uploads/publikationen/himmel20bachelorarbeit.pdf

How can I begin to create categories / diagram chase proofs in Lean4? Thanks. This document seems outdated

Eric Wieser (Oct 21 2023 at 18:49):

The code in that document is Lean3

Eric Wieser (Oct 21 2023 at 18:51):

The error you're getting is because Type* syntax is provided by some part of Mathlib, for which you need an import (import Mathlib.Tactic will do)

Daniel Donnelly (Oct 21 2023 at 18:54):

@Eric Wieser How can I learn diagram chasing in Lean4 if there is no corresponding document?

Daniel Donnelly (Oct 21 2023 at 18:55):

Eric Wieser said:

The error you're getting is because Type* syntax is provided by some part of Mathlib, for which you need an import (import Mathlib.Tactic will do)

image.png

Daniel Donnelly (Oct 21 2023 at 18:58):

@Eric Wieser NVM, found this: https://leanprover-community.github.io/install/project.html

Eric Wieser (Oct 21 2023 at 19:01):

Perhaps import should give a special error message with that link if the path starts with Mathlib

Eric Wieser (Oct 21 2023 at 19:02):

(and maybe Std too for good measure)


Last updated: Dec 20 2023 at 11:08 UTC