Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robotswana 9: hints not displayed because of unfold #36

Open
TentativeConvert opened this issue May 15, 2024 · 2 comments
Open

Robotswana 9: hints not displayed because of unfold #36

TentativeConvert opened this issue May 15, 2024 · 2 comments

Comments

@TentativeConvert
Copy link
Collaborator

The unfold in the line


is necessary to close the goal with simp. However, if the user does not unfold, the following hints will not be displayed!

@TentativeConvert
Copy link
Collaborator Author

Without the following hint, the students got themselves into a very intransparent situation, in which two sides of an equation looked identical on the screen but where not indentical to lean (rfl failed).

apply nat_mul_inj' (n := n.succ)
rw [←smul_eq_mul, ← LinearMap.map_smul]
trans f (∑ x : Fin n.succ, E i i)
simp
rw [← smul_eq_mul]
rw [← LinearMap.map_smul]
rw [←smul_eq_mul]
rfl

image

@joneugster
Copy link
Member

I see, the intransparency is that the left the left is for Mat[succ n, succ n][ℝ] as -module, while the right one is a scalar multiplication as Mat[succ n, succ n][ℝ]-module

joneugster added a commit that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants