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

have a hypothesis that has multiple premises #264

Open
Qinggao1729 opened this issue Oct 5, 2024 · 1 comment
Open

have a hypothesis that has multiple premises #264

Qinggao1729 opened this issue Oct 5, 2024 · 1 comment

Comments

@Qinggao1729
Copy link

image

mul_ne_zero is defined as (a b : ℕ) (ha : a ≠ 0) (hb : b ≠ 0) : a * b ≠ 0.
So, in line 13, hne should be ha ∧ hb → a * succ d ≠ 0
But instead, it displays ha → hb → a * succ d ≠ 0

I encounter this problem whenever I use have to introduce a hypothesis with multiple premises.

@joneugster
Copy link
Collaborator

joneugster commented Oct 6, 2024

That seems corrwct as-is and how Lean works.

i.e. a "theorem" with assumptions is just another syntax to write a sequence of implications. (or foralls if they are dependent).

"And" on the other hand is a different inductive type which isnt definitionally equivalent to what's displayed

Is there anything the Natural Number Game could improve in its text which would have helped you understand better?

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