Skip to content

Give an example of a valid hypothesis right of colon#719

Merged
fpvandoorn merged 2 commits intoleanprover-community:lean4from
YaelDillies:right_of_colon
Oct 27, 2025
Merged

Give an example of a valid hypothesis right of colon#719
fpvandoorn merged 2 commits intoleanprover-community:lean4from
YaelDillies:right_of_colon

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +321 to +323
lemma zero_le : ∀ n : ℕ, 0 ≤ n
| 0 => le_rfl
| n + 1 => add_nonneg (zero_le n) zero_le_one
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lemma zero_le : ∀ n : ℕ, 0 ≤ n
| 0 => le_rfl
| n + 1 => add_nonneg (zero_le n) zero_le_one
lemma zero_le : ∀ n : ℕ, True
| 0 => trivial
| n + 1 => trivial

if you prefer a simpler example!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I think that's too simple, because then the pattern-matching plays no role and that's confusing.

Co-authored-by: damiano <adomani@gmail.com>
@b-mehta
Copy link
Copy Markdown
Contributor

b-mehta commented Oct 24, 2025

@fpvandoorn
Copy link
Copy Markdown
Member

LGTM

@fpvandoorn fpvandoorn merged commit cf07011 into leanprover-community:lean4 Oct 27, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants