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

improve example 2.4.4 with focussing dots #24

Open
rzeta0 opened this issue Sep 4, 2024 · 0 comments
Open

improve example 2.4.4 with focussing dots #24

rzeta0 opened this issue Sep 4, 2024 · 0 comments

Comments

@rzeta0
Copy link

rzeta0 commented Sep 4, 2024

I believe the starter code for example 2.4.4 would benefit from 2 more focussing dots:

example {a b : ℝ} (h1 : a ^ 2 + b ^ 2 = 0) : a = 0 ∧ b = 0 := by
  have h2 : a ^ 2 = 0
  · apply le_antisymm
    · calc
      a ^ 2 ≤ a ^ 2 + b ^ 2 := by extra
      _ = 0 := by rw [h1]
    · extra
  sorry

To be clear, the additional dot are before calc and extra. This makes the code more readable, and the infoview is more relevant to beginners (like me!).

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

1 participant