Zulip Chat Archive

Stream: lean4

Topic: Possible mistake in Theorem Proving online docs?


Tom (Jul 22 2022 at 03:14):

Hi, I'm reading the second chapter of "Theorem Proving in Lean 4". In the section

https://leanprover.github.io/theorem_proving_in_lean4/propositions_and_proofs.html#propositions-as-types

The example doesn't seem to work; specifically, Implies is not defined. I can navigate to the other types (And, Or etc) but I can't find Implies (or another similar spelling).

Am I missing something or is this a doc/code problem? Is there a better place to report/discuss documentation issues (GH?)

Thanks!

Kyle Miller (Jul 22 2022 at 03:29):

I'm not sure what the intention is, but if you click the eye icon it reveals the definition def Implies (p q : Prop) : Prop := p → q

Kevin Buzzard (Jul 22 2022 at 03:40):

"Copy to clipboard" also seems to copy the def, even though it's invisible.

Mario Carneiro (Jul 22 2022 at 03:40):

Note the text:

For example, we could introduce a new type, Prop, to represent propositions, and introduce constructors to build new propositions from others.

This is talking about a way lean could be set up, which is not the actual setup

Mario Carneiro (Jul 22 2022 at 03:41):

the eye shows additional hidden setup needed to make the displayed text typecheck


Last updated: Dec 20 2023 at 11:08 UTC