You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
This is about the last example in 02_iff_if_and.lean. Lines 511-512 in the solutions file. The goal fact is immediately dispensed with by a simple rw. I would think a newcomer would expect the output of that rw ← dvd_gcd_iff to be gcd a b ∣ gcd a b. Instead, the rw dispenses with this trivial goal on the fly and closes the fact goal. It may be useful to explain why this happens in a few words to avoid undue confusion. dvd_refl is tagged with simp so the latter would close that gcd a b ∣ gcd a b, but why does the rw close it by itself?
The text was updated successfully, but these errors were encountered:
It's interesting because this behavior of rw is one of the things that @kbuzzard changed in the NNG, hence offering a crippled rw for pedagogical purposes. And you seem to also think this is important. But I didn't see any issue with this when I used (almost) those files on real students.
Maybe my wording was not clear enough, sorry for that. What I'm trying to say is that a newbie won't know that rw also closes refl goals. Not sure I can bet on this, but it was not mentioned in the tutorials up to that point, though it is standard behavior. So my suggestion would be to add a few words about that example 0022. Something like "Notice that, when working on the goal fact the rw tactic will invoke refl and hence close it. A separate use of refl is not needed. This is standard rw behavior."
Your students will benefit of your being there to clarify any questions. Users of the online tutorials might not have such advantage and may be puzzled by this. It will also be a nice clarification for those coming from the NNG.
This is about the last example in
02_iff_if_and.lean
. Lines 511-512 in the solutions file. The goalfact
is immediately dispensed with by a simplerw
. I would think a newcomer would expect the output of thatrw ← dvd_gcd_iff
to begcd a b ∣ gcd a b
. Instead, therw
dispenses with this trivial goal on the fly and closes thefact
goal. It may be useful to explain why this happens in a few words to avoid undue confusion.dvd_refl
is tagged withsimp
so the latter would close thatgcd a b ∣ gcd a b
, but why does therw
close it by itself?The text was updated successfully, but these errors were encountered: