Repository navigation
Fix valid.lean - #102
Fix valid.lean#102
Conversation
Changed ℕ+ into ℕ, finset.range into finset.Icc, used real.logb and fixed some mistakes
|
r? @DyeKuu |
| exact subtype.mk.inj h₀, | ||
| rw h₂ at h₁, | ||
| rw h₂, | ||
| have h₃ : 3 * b + b = 20, { |
DyeKuu
left a comment
There was a problem hiding this comment.
statements involving explicit fintype can be written as what you've done for mathd_algebra_405: declare a finset s, then state the equivalent of the definition of s.
| (u v : ℕ) | ||
| (h₀ : 0 < u ∧ 0 < v) | ||
| (h₁ : 27 * u % 40 = 17) | ||
| (h₂ : 27 * v % 40 = 17) | ||
| (h₃ : u < 40) | ||
| (h₄ : v < 80) | ||
| (h₅ : 40 < v) : |
There was a problem hiding this comment.
maybe you can reformulate this one like the one above mathd_numbertheory_13?
There was a problem hiding this comment.
Oh yes you're right, I didn't see this one
| (h₀ : fintype {x : ℝ | 0 < x ∧ x^((2:ℝ)^real.sqrt 2) = (real.sqrt 2)^((2:ℝ)^x)}) : | ||
| ↑2 ≤ ∑ k in {x : ℝ | 0 < x ∧ x^((2:ℝ)^real.sqrt 2) = (real.sqrt 2)^((2:ℝ)^x)}.to_finset, k ∧ ∑ k in {x : ℝ | 0 < x ∧ x^((2:ℝ)^real.sqrt 2) = (real.sqrt 2)^((2:ℝ)^x)}.to_finset, k < 6 := | ||
| (h₀ : fintype {x : ℝ | 0 < x ∧ x^((2 : ℝ)^real.sqrt 2) = (real.sqrt 2)^((2 : ℝ)^x)}) : | ||
| ↑2 ≤ ∑ k in {x : ℝ | 0 < x ∧ x^((2 : ℝ)^real.sqrt 2) = (real.sqrt 2)^((2 : ℝ)^x)}.to_finset, k ∧ | ||
| ∑ k in {x : ℝ | 0 < x ∧ x^((2 : ℝ)^real.sqrt 2) = (real.sqrt 2)^((2 : ℝ)^x)}.to_finset, k < 6 := |
There was a problem hiding this comment.
you can rewrite this one the same way as mathd_algebra_405.
There was a problem hiding this comment.
It is not clear if writing it the same way as mathd_algebra_405 is better, it seems to be the same thing for Lean but maybe it is simpler for us to read the statement when written as mathd_algebra_405
| (h₀ : fintype {n : ℕ | 5 ∣ n ∧ nat.lcm (nat.factorial 5) n = 5 * nat.gcd (nat.factorial 10) n}) : | ||
| finset.card {n : ℕ | 5 ∣ n ∧ nat.lcm (nat.factorial 5) n = 5 * nat.gcd (nat.factorial 10) n}.to_finset = 1 := |
There was a problem hiding this comment.
you can rewrite this one the same way as mathd_algebra_405. Also, maybe we could use ! for nat.factorial here?
| (h₀ : fintype {n : ℕ | n ∣ (nat.sqrt 196)}) : | ||
| ∑ k in {n : ℕ | n ∣ (nat.sqrt 196)}.to_finset, k = 24 := |
There was a problem hiding this comment.
you can rewrite this one the same way as mathd_algebra_405.
| (h₀ : fintype {n : ℕ | n ∣ 36}) : | ||
| ∑ k in {n : ℕ | n ∣ 36}.to_finset, k = 91 := |
There was a problem hiding this comment.
you can rewrite this one the same way as mathd_algebra_405.
Replaced nat.factorial n by n! and fixed two statements
|
LGTM! |
Replaced fintype and .to_finset by finset. I left 3 statements with fintype: amc12a_2002_p1, amc12_2000_p15 and mathd_algebra_149 because the set is already defined as a preimage
I replaced fintype by finset, nat.factorial n by n!, I used nat.digits 10 n instead of multiplications by 10 (that sometimes lead to wrong statements)
|
PTAL @DyeKuu ? |
Changed ℕ+ into ℕ, finset.range into finset.Icc, used real.logb and fixed some mistakes