index int64 0 86 | question_type stringclasses 3
values | author stringclasses 2
values | problem stringlengths 51 893 | formal_statement stringlengths 95 1.1k | train_proof stringlengths 92 2.96k | prompt stringlengths 1.77k 3.28k | Answer stringlengths 1 13k | probs stringlengths 53 1.57k | final_answer stringlengths 111 13.4k |
|---|---|---|---|---|---|---|---|---|---|
0 | proof | human | Show that
$$
\sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6}
$$ | import Mathlib
/- Show that
$$
\sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6}
$$ -/
theorem algebra_283651 : (375 : β) ^ ((1 : β) / 5) * (600) ^ ((1 : β) / 6) * (45) ^ ((1 : β) / 15) = 5 * Real.sqrt 6 := by | import Mathlib
/- Show that
$$
\sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6}
$$ -/
theorem algebra_283651 : (375 : β) ^ ((1 : β) / 5) * (600) ^ ((1 : β) / 6) * (45) ^ ((1 : β) / 15) = 5 * Real.sqrt 6 := by sorry | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | 75 : β) ^ (1 / 5) * (600 : β) ^ (1 / 6) * (45 : β) ^ (1 / 15) = 5 * (6 : β) ^ (1 / 2) := by
norm_num [show (1 / 5 : β) = 1 / 5 by norm_num, show (1 / 6 : β) = 1 / 6 by norm_num, show (1 / 15 : β) = 1 / 15 by norm_num]
<;> norm_num
<;> ring_nf
<;> norm_num
<;> ring_nf
<;> norm_num
<;> ring_nf
<;> norm_n... | import Mathlib
/- Show that
$$
\sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6}
$$ -/
theorem algebra_283651 : (3 | import Mathlib
/- Show that
$$
\sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6}
$$ -/
theorem algebra_283651 : (375 : β) ^ (1 / 5) * (600 : β) ^ (1 / 6) * (45 : β) ^ (1 / 15) = 5 * (6 : β) ^ (1 / 2) := by
norm_num [show (1 / 5 : β) = 1 / 5 by norm_num, show (1 / 6 : β) = 1 / 6 by norm_num, show (1 / 15 : β) = ... |
1 | math-word-problem | autoformalizer | Example 2 Given that $a$ is a root of the equation $x^{2}+x-\frac{1}{4}=0$. Then the value of $\frac{a^{3}-1}{a^{5}+a^{4}-a^{3}-a^{2}}$ is $\qquad$ .
(1995, National Junior High School Mathematics League) | import Mathlib
/- Example 2 Given that $a$ is a root of the equation $x^{2}+x-\frac{1}{4}=0$. Then the value of $\frac{a^{3}-1}{a^{5}+a^{4}-a^{3}-a^{2}}$ is $\qquad$ .
(1995, National Junior High School Mathematics League) -/
theorem algebra_325814 {a : β} (ha : a^2 + a - 1 / 4 = 0) :
(a^3 - 1) / (a^5 + a^4 - a^3 ... | import Mathlib
theorem algebra_325814 {a : β} (ha : a^2 + a - 1 / 4 = 0) :
(a^3 - 1) / (a^5 + a^4 - a^3 - a^2) = 20 := by
have ha2 : a^2 = -a + 1 / 4 := by linarith
have ha3 : a^3 = 5 / 4 * a - 1 / 4 := by
calc
a^3 = a * a^2 := by ring
_ = a * (-a + 1 / 4) := by rw [ha2]
_ = -a^2 + (1 ... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | _ = -3 / 2 * a^2 + 5 / 16 * a := by ring
_ = -3 / 2 * (-a + 1 / 4) + 5 / 16 * a := by rw [ha2]
_ = 29 / 16 * a - 3 / 8 := by ring
have ha6 : a^6 = 17 / 8 * a - 1 / 4 := by
calc
a^6 = (a^2)^3 := by ring
_ = (-a + 1 / 4)^3 := by rw [ha2]
_ = -a^3 + (1 / 4) * a^2 := by ring
... | import Mathlib
theorem algebra_325814 {a : β} (ha : a^2 + a - 1 / 4 = 0) :
(a^3 - 1) / (a^5 + a^4 - a^3 - a^2) = 20 := by
have ha2 : a^2 = -a + 1 / 4 := by linarith
have ha3 : a^3 = 5 / 4 * a - 1 / 4 := by
calc
a^3 = a * a^2 := by ring
_ = a * (-a + 1 / 4) := by rw [ha2]
_ = -a^2 + (1 ... | import Mathlib
theorem algebra_325814 {a : β} (ha : a^2 + a - 1 / 4 = 0) :
(a^3 - 1) / (a^5 + a^4 - a^3 - a^2) = 20 := by
have ha2 : a^2 = -a + 1 / 4 := by linarith
have ha3 : a^3 = 5 / 4 * a - 1 / 4 := by
calc
a^3 = a * a^2 := by ring
_ = a * (-a + 1 / 4) := by rw [ha2]
_ = -a^2 + (1 ... |
3 | MCQ | autoformalizer | Steve plants ten trees every three minutes. If he continues planting at the same rate, how long will it take him to plant 2500 trees?
(A) $1 \frac{1}{4} \mathrm{~h}$
(B) $3 \mathrm{~h}$
(C) $5 \mathrm{~h}$
(D) $10 \mathrm{~h}$
(E) $12 \frac{1}{2} \mathrm{~h}$ | import Mathlib
/- Steve plants ten trees every three minutes. If he continues planting at the same rate, how long will it take him to plant 2500 trees?
(A) $1 \frac{1}{4} \mathrm{~h}$
(B) $3 \mathrm{~h}$
(C) $5 \mathrm{~h}$
(D) $10 \mathrm{~h}$
(E) $12 \frac{1}{2} \mathrm{~h}$ -/
theorem algebra_287117 (x : β) (hx : x... | import Mathlib
theorem algebra_287117 (x : β) (hx : x = 2500 / 10) :
x * 3 / 60 = 12.5 := by
rw [hx]
norm_num | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | 25) :
x = 100 := by
rw [hx]
norm_num
| import Mathlib
theorem algebra_287117 (x : β) (hx : x = 2500 / | import Mathlib
theorem algebra_287117 (x : β) (hx : x = 2500 / 25) :
x = 100 := by
rw [hx]
norm_num
|
4 | math-word-problem | human | Al walks down to the bottom of an escalator that is moving up and he counts 150 steps. His friend, Bob, walks up to the top of the escalator and counts 75 steps. If Al's speed of walking (in steps per unit time) is three times Bob's walking speed, how many steps are visible on the escalator at a given time? (Assume tha... | import Mathlib
import Init.Data.Int
open Classical
/- Al walks down to the bottom of an escalator that is moving up and he counts 150 steps. His friend, Bob, walks up to the top of the escalator and counts 75 steps. If Al's speed of walking (in steps per unit time) is three times Bob's walking speed, how many steps a... | import Mathlib
import Init.Data.Int
open Classical
/- Al walks down to the bottom of an escalator that is moving up and he counts 150 steps. His friend, Bob, walks up to the top of the escalator and counts 75 steps. If Al's speed of walking (in steps per unit time) is three times Bob's walking speed, how many steps a... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | ) := by
have heb1 : 75 / b = b β- b = 75 / b
rw [βmul_comm] at hbt
exact div_eq_of_eq_mul (by decide) hbt
have heb2 : (x - 75) / e = b β- b = (x - 75) / e
rw [βmul_comm] at hebt
exact div_eq_of_eq_mul (by decide) hebt
have heb3 : (x - 75) / e = 75 / b := Eq.trans heb2 (Eq.mpr heb1)
... | import Mathlib
import Init.Data.Int
open Classical
/- Al walks down to the bottom of an escalator that is moving up and he counts 150 steps. His friend, Bob, walks up to the top of the escalator and counts 75 steps. If Al's speed of walking (in steps per unit time) is three times Bob's walking speed, how many steps a... | import Mathlib
import Init.Data.Int
open Classical
/- Al walks down to the bottom of an escalator that is moving up and he counts 150 steps. His friend, Bob, walks up to the top of the escalator and counts 75 steps. If Al's speed of walking (in steps per unit time) is three times Bob's walking speed, how many steps a... |
5 | proof | autoformalizer | 8.2 A point moves in the coordinate plane such that at time $t \geq 0$ it is located on both the line $y=t \cdot x+1$ and the line $y=-x+2 t$. Prove that it will never be to the right of the vertical line $x=2$ (i.e., in the region $x \geq 2$). | import Mathlib
/- 8.2 A point moves in the coordinate plane such that at time $t \geq 0$ it is located on both the line $y=t \cdot x+1$ and the line $y=-x+2 t$. Prove that it will never be to the right of the vertical line $x=2$ (i.e., in the region $x \geq 2$). -/
theorem algebra_128815 (t : β) (ht : t β₯ 0) (x y : β)... | import Mathlib
theorem algebra_128815 (t : β) (ht : t β₯ 0) (x y : β)
(h1 : y = t * x + 1) (h2 : y = -x + 2 * t) :
x β€ 2 := by
have h_eq1 : t * x + 1 = -x + 2 * t := by
rw [β h1, β h2]
have h_eq2 : x * (t + 1) = 2 * t - 1 := by
linarith [h_eq1]
nlinarith [sq_nonneg (x - 2), sq_nonneg (t + 1), sq_... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | linarith
have h_eq2 : t * x = -x + t * 2 := by
linarith
have h_eq3 : x = 2 - t := by
linarith
linarith
| import Mathlib
theorem algebra_128815 (t : β) (ht : t β₯ 0) (x y : β)
(h1 : y = t * x + 1) (h2 : y = -x + 2 * t) :
x β€ 2 := by
have h_eq1 : t * x + 1 = -x + 2 * t := by
| import Mathlib
theorem algebra_128815 (t : β) (ht : t β₯ 0) (x y : β)
(h1 : y = t * x + 1) (h2 : y = -x + 2 * t) :
x β€ 2 := by
have h_eq1 : t * x + 1 = -x + 2 * t := by
linarith
have h_eq2 : t * x = -x + t * 2 := by
linarith
have h_eq3 : x = 2 - t := by
linarith
linarith
|
6 | MCQ | human | If $xy \ne 0$, $x + y \ne 0$, and $\frac{1}{x} + \frac{1}{y}$ is inversely proportional to $x + y$, then ${{(x + y)}^2}$ is ( ) to ${{x}^2} + {{y}^2}$.
A: directly proportional
B: inversely proportional
C: neither directly nor inversely proportional
D: the relationship is uncertain | import Mathlib
theorem algebra_1274 {x y : β} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by | import Mathlib
theorem algebra_1274 {x y : β} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_pos_of_ne_zero hx
... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | have h1 : x β 0 := by
intro h1
apply hx
linarith
have h2 : y β 0 := by
intro h2
apply hy
linarith
have h3 : x + y β 0 := by
intro h3
apply hx
linarith
have h4 : β k, 1 / x + 1 / y = k / (x + y) β β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
intro k h5
use 1
field_s... | import Mathlib
theorem algebra_1274 {x y : β} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
| import Mathlib
theorem algebra_1274 {x y : β} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
have h1 : x β 0 := by
intro h1
apply hx
linarith
have h2 : y β 0 := by
intro h2
apply hy
linarith
have h... |
7 | math-word-problem | autoformalizer | Problem 9.7. The sides of the square $A B C D$ are parallel to the coordinate axes, with $A B$ lying on the y-axis, and the square is positioned as shown in the figure. The parabola defined by the equation
$$
y=\frac{1}{5} x^{2}+a x+b
$$
passes through points $B$ and $C$. Additionally, the vertex of this parabola (po... | import Mathlib
/- Problem 9.7. The sides of the square $A B C D$ are parallel to the coordinate axes, with $A B$ lying on the y-axis, and the square is positioned as shown in the figure. The parabola defined by the equation
$$
y=\frac{1}{5} x^{2}+a x+b
$$
passes through points $B$ and $C$. Additionally, the vertex o... | import Mathlib
theorem algebra_174965 {a b : β} (ha : a β 0) (h : 1/5 * (-5)^2 + a * (-5) + b = 0)
(h' : 1/5 * 5^2 + a * 5 + b = 0) (h'' : β x, 1/5 * x^2 + a * x + b = 0 β§ x β Set.Icc (-5) 5) :
-a = 20 := by
have eq1 : -5 * a + b = -5 := by
linarith
have eq2 : 5 * a + b = -5 := by
linarith
have... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | = 0) :
a = 0 β§ b = 0 := by
constructor
Β·
nlinarith [sq_nonneg (a + 1), sq_nonneg (a - 1)]
Β·
nlinarith [sq_nonneg (a + 1), sq_nonneg (a - 1)]
| import Mathlib
theorem algebra_174965 {a b : β} (ha : a β 0) (h : 1/5 * (-5)^2 + a * (-5) + b = 0)
(h' : 1/5 * 5^2 + a * 5 + b = 0) (h'' : β x, 1/5 * x^2 + a * x + b | import Mathlib
theorem algebra_174965 {a b : β} (ha : a β 0) (h : 1/5 * (-5)^2 + a * (-5) + b = 0)
(h' : 1/5 * 5^2 + a * 5 + b = 0) (h'' : β x, 1/5 * x^2 + a * x + b = 0) :
a = 0 β§ b = 0 := by
constructor
Β·
nlinarith [sq_nonneg (a + 1), sq_nonneg (a - 1)]
Β·
nlinarith [sq_nonneg (a + 1), sq_nonneg... |
8 | proof | autoformalizer | 28.11. Prove that $\left(\log _{a} x\right)^{\prime}=\frac{1}{x \ln a}$. | import Mathlib
open Real
/- 28.11. Prove that $\left(\log _{a} x\right)^{\prime}=\frac{1}{x \ln a}$. -/
theorem calculus_229012 {a x : β} (ha : 0 < a β§ a β 1) (hx : 0 < x) :
deriv (logb a) x = 1 / (x * log a) := by | import Mathlib
open Real
theorem calculus_229012 {a x : β} (ha : 0 < a β§ a β 1) (hx : 0 < x) :
deriv (logb a) x = 1 / (x * log a) := by
have hlog : log a β 0 := by
have ha1 : 0 < a := ha.1
have ha2 : a β 1 := ha.2
exact log_ne_zero_of_pos_of_ne_one ha1 ha2
have h2 : deriv (logb a) x = deriv (fun (... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | x => x * log a) x := by
simp [Real.log_ne_zero_of_pos_of_ne_one ha.1 ha.2]
rw [h2]
simp [deriv_mul, deriv_const, deriv_id, hlog]
<;> field_simp [hlog]
<;> ring
| import Mathlib
open Real
theorem calculus_229012 {a x : β} (ha : 0 < a β§ a β 1) (hx : 0 < x) :
deriv (logb a) x = 1 / (x * log a) := by
have hlog : log a β 0 := by
have ha1 : 0 < a := ha.1
have ha2 : a β 1 := ha.2
exact log_ne_zero_of_pos_of_ne_one ha1 ha2
have h2 : deriv (logb a) x = deriv (fun | import Mathlib
open Real
theorem calculus_229012 {a x : β} (ha : 0 < a β§ a β 1) (hx : 0 < x) :
deriv (logb a) x = 1 / (x * log a) := by
have hlog : log a β 0 := by
have ha1 : 0 < a := ha.1
have ha2 : a β 1 := ha.2
exact log_ne_zero_of_pos_of_ne_one ha1 ha2
have h2 : deriv (logb a) x = deriv (fun x... |
9 | math-word-problem | autoformalizer | Problem 20. From a square sheet of metal with a width of 60 cm, a box without a lid and with a square base of the largest possible volume needs to be made.
$$ | import Mathlib
open Real Set
open scoped BigOperators
/- Problem 20. From a square sheet of metal with a width of 60 cm, a box without a lid and with a square base of the largest possible volume needs to be made.
$$ -/
theorem calculus_196745 (x : β) (hx : 0 < x) (h : x β€ 60 / 2) :
(x * (60 - 2 * x) ^ 2) β€ 16000... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_196745 (x : β) (hx : 0 < x) (h : x β€ 60 / 2) :
(x * (60 - 2 * x) ^ 2) β€ 16000 := by
nlinarith [sq_nonneg (x - 10), sq_nonneg ((60 - 2 * x) - 40),
sq_nonneg ((x - 10) * (x - 40)), sq_nonneg ((x) * (x - 10)),
sq_nonneg ((60... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | 2 - 10 * 2), sq_nonneg ((x / 10) - 1),
sq_nonneg ((60 - 2 * x) / 40 - 1), sq_nonneg (x * (x - 30)),
sq_nonneg ((60 - 2 * x) * (x - 10)), sq_nonneg ((x - 0) * (30 - x)), sq_nonneg (x * (60 - 2 * x - 40)),
h, sq_nonneg (x * ((60 - 2 * x) - 40)), sq_nonneg ((x - 10) * ((60 - 2 * x) - 40))]... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_196745 (x : β) (hx : 0 < x) (h : x β€ 60 / 2) :
(x * (60 - 2 * x) ^ 2) β€ 16000 := by
nlinarith [sq_nonneg (x - 10), sq_nonneg ((60 - 2 * x) - 40),
sq_nonneg ((x - 10) * (x - 40)), sq_nonneg ((x) * (x - 10)),
sq_nonneg ((60... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_196745 (x : β) (hx : 0 < x) (h : x β€ 60 / 2) :
(x * (60 - 2 * x) ^ 2) β€ 16000 := by
nlinarith [sq_nonneg (x - 10), sq_nonneg ((60 - 2 * x) - 40),
sq_nonneg ((x - 10) * (x - 40)), sq_nonneg ((x) * (x - 10)),
sq_nonneg ((60... |
10 | null | human | Consider those functions $f(x)$ that are defined in the interval $(0,1)$, are positive, integrable, have an integral value of 1 over the interval $(0,1)$, and are concave from below. (This last condition means that for any $0 \leq x_{1} < x_{2} \leq 1$ and $0 \leq \lambda \leq 1$,
$$
f\left(\lambda x_{1}+(1-\lambda) x... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_172208 {f : β β β}
(hf : β x β Ioo 0 1, f x > 0)
(hf_int : MeasureTheory.IntegrableOn f (Ioo 0 1))
(hf_int2 : MeasureTheory.IntegrableOn (fun x => (f x)^2) (Ioo 0 1))
(hf1 : β« x in Ioo 0 1, f x = 1)
(hf2 : ConvexOn β (Ioo 0 1) f) :
1 β€ β«... | import Mathlib
open Real Set
open scoped BigOperators
/- Consider those functions $f(x)$ that are defined in the interval $(0,1)$, are positive, integrable, have an integral value of 1 over the interval $(0,1)$, and are concave from below. (This last condition means that for any $0 \leq x_{1} < x_{2} \leq 1$ and $0 \... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | ) dx
$$
(A) $0$
(B) $1$
(C) $2$
(D) $3$
(E) $4$
-/
| import Mathlib
open Real Set
open scoped BigOperators
/- Consider those functions $f(x)$ that are defined in the interval $(0,1)$, are positive, integrable, have an integral value of 1 over the interval $(0,1)$, and are concave from below. (This last condition means that for any $0 \leq x_{1} < x_{2} \leq 1$ and $0 \... | import Mathlib
open Real Set
open scoped BigOperators
/- Consider those functions $f(x)$ that are defined in the interval $(0,1)$, are positive, integrable, have an integral value of 1 over the interval $(0,1)$, and are concave from below. (This last condition means that for any $0 \leq x_{1} < x_{2} \leq 1$ and $0 \... |
11 | math-word-problem | autoformalizer | ## Task Condition
Derive the equation of the tangent line to the given curve at the point with abscissa $x_{0}$.
$y=3(\sqrt[3]{x}-2 \sqrt{x}), x_{0}=1$ | import Mathlib
open Real
/- ## Task Condition
Derive the equation of the tangent line to the given curve at the point with abscissa $x_{0}$.
$y=3(\sqrt[3]{x}-2 \sqrt{x}), x_{0}=1$ -/
theorem calculus_140558 (f : β β β) (hf : f = fun x => 3 * (x ^ ((1 : β) / 3) - 2 * sqrt x)) (x0 : β) (hx0 : x0 = 1) :
deriv f x0 ... | import Mathlib
open Real
theorem calculus_140558 (f : β β β) (hf : f = fun x => 3 * (x ^ ((1 : β) / 3) - 2 * sqrt x)) (x0 : β) (hx0 : x0 = 1) :
deriv f x0 = -2 β§ f x0 = -2 * x0 - 1 := by
rw [hx0]
constructor
Β· -- First part: proving that the derivative is -2
rw [hf]
simp [deriv_sub, deriv_const_mul,... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | calculate the derivative of f at x0.
rw [hf]
have h1 : deriv (fun x => 3 * (x ^ ((1 : β) / 3) - 2 * sqrt x)) 1 = -2 := by
have h2 : deriv (fun x => x ^ ((1 : β) / 3)) 1 = 1 / 3 := by
rw [deriv_pow]
norm_num
have h3 : deriv (fun x => 2 * sqrt x) 1 = 1 := by
rw [deriv_mul, der... | import Mathlib
open Real
theorem calculus_140558 (f : β β β) (hf : f = fun x => 3 * (x ^ ((1 : β) / 3) - 2 * sqrt x)) (x0 : β) (hx0 : x0 = 1) :
deriv f x0 = -2 β§ f x0 = -2 * x0 - 1 := by
rw [hx0]
constructor
Β· -- First part: | import Mathlib
open Real
theorem calculus_140558 (f : β β β) (hf : f = fun x => 3 * (x ^ ((1 : β) / 3) - 2 * sqrt x)) (x0 : β) (hx0 : x0 = 1) :
deriv f x0 = -2 β§ f x0 = -2 * x0 - 1 := by
rw [hx0]
constructor
Β· -- First part: calculate the derivative of f at x0.
rw [hf]
have h1 : deriv (fun x => 3 * ... |
12 | math-word-problem | autoformalizer | 6. 41 A train departs from station A, accelerating at
0.5 km/min ${ }^{2}$, and after
2 minutes, it continues at a constant speed for another
7 minutes, then decelerates at 0.5 km/min ${ }^{2}$ to a stop at station B, where it remains stationary for 2 minutes. Draw the velocity-time graph for the train's journey fro... | import Mathlib
open Real Set
open scoped BigOperators
/- 6. 41 A train departs from station A, accelerating at
0.5 km/min ${ }^{2}$, and after
2 minutes, it continues at a constant speed for another
7 minutes, then decelerates at 0.5 km/min ${ }^{2}$ to a stop at station B, where it remains stationary for 2 minute... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_289261 (v : β β β)
(hβ : β t, t > 0 β v t = v 0 + 0.5 * t)
(hβ : β t, t > 2 β v t = v 2)
(hβ : β t, t > 7 β v t = v 7 - 0.5 * t) :
β t, t > 0 β (t < 9 β β« s in (0)..t, v s = 1 / 4 * (-2 + 22 - 85)) β§
(β t, t > 9 β t β€ 11 β β« s in (0)..t,... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | * t)) β§ (t > 9 β β« s in (0)..t, v s = 1 / 4 * (-2 + 22 - 8 * t)):= by
intro t ht
constructor
intro ht'
have hβ := hβ 2
have hβ := hβ 7
have hβ
:= hβ 7
have hβ := hβ 9
have hβ := hβ 9
have hβ := hβ 9
have hββ := hβ 9
have hββ := hβ 9
have hββ := hβ 9
have hββ := hβ 9
have hββ
:= hβ 9
have ... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_289261 (v : β β β)
(hβ : β t, t > 0 β v t = v 0 + 0.5 * t)
(hβ : β t, t > 2 β v t = v 2)
(hβ : β t, t > 7 β v t = v 7 - 0.5 * t) :
β t, t > 0 β (t < 9 β β« s in (0)..t, v s = 1 / 4 * (-2 + 22 - 8 | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_289261 (v : β β β)
(hβ : β t, t > 0 β v t = v 0 + 0.5 * t)
(hβ : β t, t > 2 β v t = v 2)
(hβ : β t, t > 7 β v t = v 7 - 0.5 * t) :
β t, t > 0 β (t < 9 β β« s in (0)..t, v s = 1 / 4 * (-2 + 22 - 8 * t)) β§ (t > 9 β β« s in (0)..t, v s = 1 / 4 ... |
13 | math-word-problem | human | Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithms are with respect to base $e.$ | import Mathlib
open Real Set
open scoped BigOperators
/- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithms are with respect to base $e.$ -/
theorem calculus_23344 : 2 * (cos (log 2009 * I))^2 + I * sin (log 4036081 * I) = 4036082 / 4036081 := by | import Mathlib
open Real Set
open scoped BigOperators
/- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithms are with respect to base $e.$ -/
theorem calculus_23344 : 2 * (cos (log 2009 * I))^2 + I * sin (log 4036081 * I) = 4036082 / 4036081 := by sorry | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | import Mathlib
open Real Set
open scoped BigOperators
/- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithms are with respect to base $e.$ -/ | import Mathlib
open Real Set
open scoped BigOperators
/- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithms are with respect to base $e.$ -/
| |
15 | math-word-problem | autoformalizer | 3. Find the greatest and least values of the function $y=x^{3}-3 x^{2}+5$ on the interval $[-1 ; 1]$. | import Mathlib
open Real Set
open scoped BigOperators
/- 3. Find the greatest and least values of the function $y=x^{3}-3 x^{2}+5$ on the interval $[-1 ; 1]$. -/
theorem calculus_186972 (f : β β β) (hf : f = Ξ» x => x^3 - 3*x^2 + 5)
(I : Set β) (hI : I = Icc (-1) 1) :
IsGreatest (image f I) 5 β§ IsLeast (image f I)... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_186972 (f : β β β) (hf : f = Ξ» x => x^3 - 3*x^2 + 5)
(I : Set β) (hI : I = Icc (-1) 1) :
IsGreatest (image f I) 5 β§ IsLeast (image f I) 1 := by
constructor
Β· -- Show 5 is greatest in image
constructor
Β· -- First show 5 is achievabl... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | x is in the interval [-1, 1], x^2 β₯ 0
-- Therefore, x-3 β€ 0
-- So x β€ 3
-- But x is in the interval [-1, 1], so x β€ 1
-- Therefore, x^3 - 3x^2 β€ 0
nlinarith
Β· -- Show 1 is the least upper bound
constructor
Β· -- Show 1 is an upper bound
intro y hy
rw [ hx] at hy
... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_186972 (f : β β β) (hf : f = Ξ» x => x^3 - 3*x^2 + 5)
(I : Set β) (hI : I = Icc (-1) 1) :
IsGreatest (image f I) 5 β§ IsLeast (image f I) 1 := by
constructor
Β· -- Show 5 is greatest in image
constructor
Β· -- First show 5 is achievabl... | import Mathlib
open Real Set
open scoped BigOperators
theorem calculus_186972 (f : β β β) (hf : f = Ξ» x => x^3 - 3*x^2 + 5)
(I : Set β) (hI : I = Icc (-1) 1) :
IsGreatest (image f I) 5 β§ IsLeast (image f I) 1 := by
constructor
Β· -- Show 5 is greatest in image
constructor
Β· -- First show 5 is achievabl... |
17 | null | human | A class of 10 students took a math test. Each problem was solved by exactly 7 of the students. If the first nine students each solved 4 problems, how many problems did the tenth student solve? | import Mathlib
theorem numbertheory_611213
(p : β)
(n : β)
(h_total_solutions : 7 * p = 9 * 4 + n)
(h_score_bound : n β€ p)
: n = 6 := by | import Mathlib
/-!
## Problem Statement:
A class of 10 students took a math test. Each problem was solved by exactly 7
of the students. If the first nine students each solved 4 problems, how many
problems did the tenth student solve?
## Solution Argument Provided:
Suppose the last student solved $n$ problems, and th... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | t $36+n$ is divisible by 7, and $n \leq 6$.
The only value that satisfies these conditions is $n = 6$.
## Solution:
Let $n$ be the number of problems the tenth student solved.
The total number of correct solutions written can be calculated in two ways:
1. By problems: $p$ problems, each solved by 7 students. Total = ... | import Mathlib
/-!
## Problem Statement:
A class of 10 students took a math test. Each problem was solved by exactly 7
of the students. If the first nine students each solved 4 problems, how many
problems did the tenth student solve?
## Solution Argument Provided:
Suppose the last student solved $n$ problems, and th... | import Mathlib
/-!
## Problem Statement:
A class of 10 students took a math test. Each problem was solved by exactly 7
of the students. If the first nine students each solved 4 problems, how many
problems did the tenth student solve?
## Solution Argument Provided:
Suppose the last student solved $n$ problems, and th... |
18 | null | human | In a game show, Bob is faced with 7 doors, 2 of which hide prizes. After he chooses a door, the host opens three other doors, of which one is hiding a prize. Bob chooses to switch to another door. What is the probability that his new door is hiding a prize? | import Mathlib
theorem Combinatorics_608318
(total_doors prize_doors host_opens prizes_opened : β)
(h_total : total_doors = 7)
(h_prize : prize_doors = 2)
(h_opens : host_opens = 3)
(h_prizes_opened : prizes_opened = 1)
(switch_success : P = ((total_doors - prize_doors) : β) / (total_doors : β) ... | import Mathlib
/-
Problem :
This is a variant of the classic Monty Hall problem.
-/
theorem Combinatorics_608318
(total_doors prize_doors host_opens prizes_opened : β)
(h_total : total_doors = 7) -- Total number of doors
(h_prize : prize_doors = 2) -- Number of doors hiding prizes
... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | itch_door : 1 β€ switch_door β§ switch_door β€ total_doors) :
(1 / total_doors) * prize_doors β€ 1 / (total_doors - host_opens) * prize_doors := by
-- Use the fact that the host opens three doors, and the prize is behind one of the doors.
-- This means that the probability of selecting the prize door is 1/7, and th... | import Mathlib
/-
Problem :
This is a variant of the classic Monty Hall problem.
-/
theorem Combinatorics_608318
(total_doors prize_doors host_opens prizes_opened : β)
(h_total : total_doors = 7) -- Total number of doors
(h_prize : prize_doors = 2) -- Number of doors hiding prizes
... | import Mathlib
/-
Problem :
This is a variant of the classic Monty Hall problem.
-/
theorem Combinatorics_608318
(total_doors prize_doors host_opens prizes_opened : β)
(h_total : total_doors = 7) -- Total number of doors
(h_prize : prize_doors = 2) -- Number of doors hiding prizes
... |
19 | null | human | How many sequences of 5 positive integers $(a, b, c, d, e)$ satisfy $a b c d e \leq a+b+c+d+e \leq 10$ ? | import Mathlib
abbrev value_range : Finset β := Finset.Icc 1 6
def Ξ© : Finset (β Γ β Γ β Γ β Γ β) :=
Finset.product value_range <|
Finset.product value_range <|
Finset.product value_range <|
Finset.product value_range value_range
def to_list (t : β Γ β Γ β Γ β Γ β) : List β :=
[t.1, t.2.1, t.2.2.1, t.2.2.2.1,... | import Mathlib
/-How many sequences of 5 positive integers $(a, b, c, d, e)$ satisfy $a b c d e \leq a+b+c+d+e \leq 10$ ?-/
-- Define the finite range for each integer in the sequence.
abbrev value_range : Finset β := Finset.Icc 1 6
-- The sample space Ξ© is the 5-fold cartesian product of this range.
-- This creates... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... |
-- Define the event A as the set of sequences that satisfy the given conditions.
def A : Finset (β Γ β Γ β Γ β Γ β) :=
Ξ©.filter fun (a, b, c, d, e) => a * b * c * d * e β€ a + b + c + d + e β§ a + b + c + d + e β€ 10
-- Calculate the size of the event A.
| import Mathlib
/-How many sequences of 5 positive integers $(a, b, c, d, e)$ satisfy $a b c d e \leq a+b+c+d+e \leq 10$ ?-/
-- Define the finite range for each integer in the sequence.
abbrev value_range : Finset β := Finset.Icc 1 6
-- The sample space Ξ© is the 5-fold cartesian product of this range.
-- This creates... | import Mathlib
/-How many sequences of 5 positive integers $(a, b, c, d, e)$ satisfy $a b c d e \leq a+b+c+d+e \leq 10$ ?-/
-- Define the finite range for each integer in the sequence.
abbrev value_range : Finset β := Finset.Icc 1 6
-- The sample space Ξ© is the 5-fold cartesian product of this range.
-- This creates... |
20 | null | human | How many ways can one tile a $2 \times 8$ board with $1 \times 1$ and $2 \times 2$ tiles? Rotations and reflections of the same configuration are considered distinct. | import Mathlib
def f (n : β) : β := match n with
| 0 => 1
| 1 => 1
| n + 2 => f n + f (n + 1)
theorem Combinatorics_610027: f 8 = 34 := by | import Mathlib
-- Let $f(n)$ denote the number of ways to fill a $2 \times n$ board. One can fill the leftmost column with two $1 \times 1$ tiles, leaving $f(n-1)$ ways, or one can fill the leftmost two columns with one $2 \times 2$ tile, leaving $f(n-2)$ ways. Therefore, $f(n)=f(n-1)+f(n-2)$
def f (n : β) : β := matc... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | ) : β := match n with
| 0 => 1
| 1 => 1
| n + 2 => f n + f (n + 1)
/-How many ways can one tile a 2Γ8 board with
1Γ1 and 2Γ2 tiles?
Rotations and reflections of the same configuration are considered distinct.-/
| import Mathlib
-- Let $f(n)$ denote the number of ways to fill a $2 \times n$ board. One can fill the leftmost column with two $1 \times 1$ tiles, leaving $f(n-1)$ ways, or one can fill the leftmost two columns with one $2 \times 2$ tile, leaving $f(n-2)$ ways. Therefore, $f(n)=f(n-1)+f(n-2)$
def f (n : β | import Mathlib
-- Let $f(n)$ denote the number of ways to fill a $2 \times n$ board. One can fill the leftmost column with two $1 \times 1$ tiles, leaving $f(n-1)$ ways, or one can fill the leftmost two columns with one $2 \times 2$ tile, leaving $f(n-2)$ ways. Therefore, $f(n)=f(n-1)+f(n-2)$
def f (n : β) : β := matc... |
21 | null | human | Boris was given a Connect Four game set for his birthday, but his color-blindness makes it hard to play the game. Still, he enjoys the shapes he can make by dropping checkers into the set. If the number of shapes possible modulo (horizontal) flips about the vertical axis of symmetry is expressed as $9(1+2+\cdots+n)$, f... | import Mathlib
open Nat
abbrev total_shapes := 9^7
abbrev symmetric_shapes := 9^4
abbrev non_symmetric_shapes := total_shapes - symmetric_shapes
abbrev non_symmetric_shapes_mod_flips := (total_shapes - symmetric_shapes) / 2
theorem combinatorics_610842 (n : β)
(h :
symmetric_shapes + non_symmetric_shapes_mod_... | import Mathlib
open Nat
-- The number of checkers in a column can be 0 to 8, so 9 possibilities.
-- Total shapes: 7 columns, so 9^7.
abbrev total_shapes := 9^7
-- Symmetric shapes: Middle column (4th) can be any of 9.
-- Left 3 columns determine right 3 columns. So 9^3 for left, 9^1 for middle. Thus 9^4.
abbrev symme... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | symmetric_shapes, non_symmetric_shapes_mod_flips, total_shapes]
ring
-- Prove that the given equation holds for n = 729
have h_n_eq_729 : n = 729 := by
-- Use the given equation to solve for n
rw [h] at h_calc_total_shapes_mod_flips
-- Use the fact that non_symmetric_shapes is even to cancel out th... | import Mathlib
open Nat
-- The number of checkers in a column can be 0 to 8, so 9 possibilities.
-- Total shapes: 7 columns, so 9^7.
abbrev total_shapes := 9^7
-- Symmetric shapes: Middle column (4th) can be any of 9.
-- Left 3 columns determine right 3 columns. So 9^3 for left, 9^1 for middle. Thus 9^4.
abbrev symme... | import Mathlib
open Nat
-- The number of checkers in a column can be 0 to 8, so 9 possibilities.
-- Total shapes: 7 columns, so 9^7.
abbrev total_shapes := 9^7
-- Symmetric shapes: Middle column (4th) can be any of 9.
-- Left 3 columns determine right 3 columns. So 9^3 for left, 9^1 for middle. Thus 9^4.
abbrev symme... |
23 | null | human | In the country of Francisca, there are 2010 cities, some of which are connected by roads. Between any two cities, there is a unique path which runs along the roads and which does not pass through any city twice. What is the maximum possible number of cities in Francisca which have at least 3 roads running out of them? | import Mathlib
theorem combinatorics_608689
(n : β)
(hn : n = 2010)
(b : β)
(hb : b β€ n)
(h : 3 * b + (n - b) β€ 2 * (n - 1)) :
b β€ 1004 := by | import Mathlib
/-
The problem describes a tree structure with 2010 nodes (cities), where each node represents a city and each edge represents a road. The goal is to determine the maximum number of nodes with a degree of at least 3.
-/
theorem combinatorics_608689
(n : β)
(hn : n = 2010)
(b : β)
(hb ... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | 027 (n : β) (hn : 2010 β€ n) :
(n - 1) / 2 β€ n - 1 := by
cases n with
| zero => linarith
| succ n =>
cases n with
| zero => linarith
| succ n =>
cases n with
| zero => linarith
| succ n =>
cases n with
| zero => linarith
| succ n =>
cases n with
... | import Mathlib
/-
The problem describes a tree structure with 2010 nodes (cities), where each node represents a city and each edge represents a road. The goal is to determine the maximum number of nodes with a degree of at least 3.
-/
theorem combinatorics_608 | import Mathlib
/-
The problem describes a tree structure with 2010 nodes (cities), where each node represents a city and each edge represents a road. The goal is to determine the maximum number of nodes with a degree of at least 3.
-/
theorem combinatorics_608027 (n : β) (hn : 2010 β€ n) :
(n - 1) / 2 β€ n - 1 := ... |
24 | null | human | The altitudes of a triangle are 12,15 and 20. What is the area of the triangle?
Answer: 150. | import Mathlib
noncomputable def S (a b c: β) :=
let s := (a + b + c) / 2
β(s * (s - a) * (s - b) * (s - c))
theorem geometry_606364 (a b c h_a h_b h_c : β) (hβ : 0 < a β§ 0 < b β§ 0 < c)
(hβ : h_a = 12) (hβ : h_b = 15) (hβ : h_c = 20) (hβ : a / b = h_b / h_a)
(hβ
: b / c = h_c / h_b) (hβ: S a b c = a * h_a /... | import Mathlib
noncomputable def S (a b c: β) :=
let s:= (a + b + c) / 2
β(s * (s - a) * (s - b) * (s - c))
/-The altitudes of a triangle are 12,15 and 20. What is the area of the triangle?
Answer: 150.-/
theorem geometry_606364 (a b c h_a h_b h_c : β) (hβ : 0 < a β§ 0 < b β§ 0 < c)
(hβ : h_a = 12) (hβ : h_b =... | ### Example 1:
import Mathlib
theorem algebra_1274 {{x y : β}} (hx : x β 0) (hy : y β 0) (hxy : x + y β 0)
(h : β k, 1 / x + 1 / y = k / (x + y)) :
β m, (x + y) ^ 2 = m * (x ^ 2 + y ^ 2) := by
use (x + y) ^ 2 / (x ^ 2 + y ^ 2)
have : x ^ 2 + y ^ 2 β 0 := by
have hx2 : x ^ 2 > 0 := by
exact sq_po... | , hβ, hβ, hβ, hβ, hβ
, hβ]
ring_nf
norm_num
| import Mathlib
noncomputable def S (a b c: β) :=
let s:= (a + b + c) / 2
β(s * (s - a) * (s - b) * (s - c))
/-The altitudes of a triangle are 12,15 and 20. What is the area of the triangle?
Answer: 150.-/
theorem geometry_606364 (a b c h_a h_b h_c : β) (hβ : 0 < a β§ 0 < b β§ 0 < c)
(hβ : h_a = 12) (hβ : h_b =... | import Mathlib
noncomputable def S (a b c: β) :=
let s:= (a + b + c) / 2
β(s * (s - a) * (s - b) * (s - c))
/-The altitudes of a triangle are 12,15 and 20. What is the area of the triangle?
Answer: 150.-/
theorem geometry_606364 (a b c h_a h_b h_c : β) (hβ : 0 < a β§ 0 < b β§ 0 < c)
(hβ : h_a = 12) (hβ : h_b =... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3