Zulip Chat Archive
Stream: lean4
Topic: unknown identifier 'Implies'
Param Reddy (Mar 10 2024 at 04:33):
Was following https://lean-lang.org/theorem_proving_in_lean4/propositions_and_proofs.html
#check Implies
gives error saying unknown identifier 'Implies'. Did this get removed and now we have to use -> ?
Param Reddy (Mar 10 2024 at 04:38):
Similarly getting error with: #check Proof
.
Matt Diamond (Mar 10 2024 at 04:39):
Matt Diamond (Mar 10 2024 at 04:40):
it's in Mathlib, you just have to import it (or import a file that imports it)
Matt Diamond (Mar 10 2024 at 04:41):
not sure about Proof
though
Matt Diamond (Mar 10 2024 at 04:43):
oh wait, Proof
isn't real, it's just a hypothetical
Kyle Miller (Mar 10 2024 at 04:43):
This chapter is a quick "what if we set things up this way".
Click the eyeball icons in the upper-right corners of the code blocks to see the hidden definitions.
Kyle Miller (Mar 10 2024 at 04:44):
The point of the discussion is that we don't need Implies p q
since p → q
is the same concept.
Param Reddy (Mar 10 2024 at 04:44):
Matt Diamond said:
Just did google search for "lean4 Implies" before posting here and got no links to this doc. Thanks for the pointer.
Kyle Miller (Mar 10 2024 at 04:45):
Moreover, once we make this identification, the rules for implication show that we can pass back and forth between
Implies p q
andp → q
. In other words, implication between propositionsp
andq
corresponds to having a function that takes any element of p to an element ofq
. As a result, the introduction of the connective Implies is entirely redundant: we can use the usual function space constructorp → q
from dependent type theory as our notion of implication.
Kyle Miller (Mar 10 2024 at 04:47):
(You're not the first person to ask about this section. It should probably put this conclusion earlier so you're not confused about what Implies
is and think it's something you've missed.)
Param Reddy (Mar 10 2024 at 04:48):
I also should probably read the whole chapter before posting. But yeah if it was not hidden behind the eye, would have been less confused. Thanks for quick answer.
Last updated: May 02 2025 at 03:31 UTC