Dataset Viewer
Auto-converted to Parquet Duplicate
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.76k
2.98k
Answer
stringlengths
4
8.41k
βŒ€
probs
stringlengths
46
1.27k
final_answer
stringlengths
89
8.59k
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...
eorem algebra_1274 (x y : ℝ) (hx : x β‰  0) (hy : y β‰  0) (h : 1 / x + 1 / y = 1 / (x + y)) : (x + y) ^ 2 = (x ^ 2 + y ^ 2) * (1 / (x + y)) := by field_simp [hx, hy, h] ring
import Mathlib /- Show that $$ \sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6} $$ -/ th
import Mathlib /- Show that $$ \sqrt[5]{375} \sqrt[6]{600} \sqrt[15]{45}=5 \sqrt{6} $$ -/ theorem algebra_1274 (x y : ℝ) (hx : x β‰  0) (hy : y β‰  0) (h : 1 / x + 1 / y = 1 / (x + y)) : (x + y) ^ 2 = (x ^ 2 + y ^ 2) * (1 / (x + y)) := by field_simp [hx, hy, h] ring
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...
2 * a + 5 / 16 := by ring have ha5 : a^5 = 17 / 8 * a - 11 / 16 := by calc a^5 = a * a^4 := by ring _ = a * (-3 / 2 * a + 5 / 16) := by rw [ha4] _ = -3 / 2 * a^2 + (5 / 16) * a := by ring _ = -3 / 2 * (-a + 1 / 4) + (5 / 16) * a := by rw [ha2] _ = 17 / 8 * a - 11 / 16 := 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...
1) : x ^ 2 = 1 ∧ x ^ 3 = 1 ∧ x ^ 4 = 1 ∧ x ^ 5 = 1 ∧ x ^ 6 = 1 ∧ x ^ 7 = 1 ∧ x ^ 8 = 1 ∧ x ^ 9 = 1 ∧ x ^ 10 = 1 ∧ x ^ 11 = 1 ∧ x ^ 12 = 1 ∧ x ^ 13 = 1 ∧ x ^ 14 = 1 ∧ x ^ 15 = 1 ∧ x ^ 16 = 1 ∧ x ^ 17 = 1 ∧ x ^ 18 = 1 ∧ x ^ 19 = 1 ∧ x ^ 20 = 1 ∧ x ^ 21 = 1 ∧ x ^ 22 = 1 ∧ x ^ 23 = 1 ∧ x ^ 24 = 1 ∧ x ^ 25 = 1 ∧ x ^ 26...
import Mathlib theorem algebra_287117 (x : ℝ) (hx : x =
import Mathlib theorem algebra_287117 (x : ℝ) (hx : x = 1) : x ^ 2 = 1 ∧ x ^ 3 = 1 ∧ x ^ 4 = 1 ∧ x ^ 5 = 1 ∧ x ^ 6 = 1 ∧ x ^ 7 = 1 ∧ x ^ 8 = 1 ∧ x ^ 9 = 1 ∧ x ^ 10 = 1 ∧ x ^ 11 = 1 ∧ x ^ 12 = 1 ∧ x ^ 13 = 1 ∧ x ^ 14 = 1 ∧ x ^ 15 = 1 ∧ x ^ 16 = 1 ∧ x ^ 17 = 1 ∧ x ^ 18 = 1 ∧ x ^ 19 = 1 ∧ x ^ 20 = 1 ∧ x ^ 21 = 1 ∧ x ...
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...
mul_right ha (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.trans (Eq.tra...
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...
: t * x + 1 = -x + 2 * t := by rw [h1, h2] have h_eq' : t * x + x = 2 * t - 1 := by linarith have h_eq'' : (t + 1) * x = 2 * t - 1 := by linarith have h_eq''' : x = (2 * t - 1) / (t + 1) := by field_simp [add_comm] linarith have h_eq'''' : x ≀ 2 := by rw [h_eq'''] apply div_le_of_nonneg_of_le_m...
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_eq
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_eq : t * x + 1 = -x + 2 * t := by rw [h1, h2] have h_eq' : t * x + x = 2 * t - 1 := by linarith have h_eq'' : (t + 1) * x = 2 * t - 1 := by linarith have h_eq''' : x = (2...
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...
^ 2 = m * (x ^ 2 + y ^ 2) := by obtain ⟨k, h⟩ := h 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 have hy2 : y ^ 2 > 0 := by exact sq_pos_of_ne_zero hy linarith field_simp [this] ring
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)
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 obtain ⟨k, h⟩ := h use (x + y) ^ 2 / (x ^ 2 + y ^ 2) have : x ^ 2 + y ^ 2 β‰  0 := by have hx2 : x ^ 2 > 0 := by exact sq...
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...
h'' : 1/5 * 10^2 + a * 10 + b = 0) : a = 0 ∧ b = 0 := by constructor Β· apply mul_left_cancel₁ (sub_ne_zero_of_ne ha) nlinarith Β· apply mul_left_cancel₁ (sub_ne_zero_of_ne ha) nlinarith
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) (
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'' : 1/5 * 10^2 + a * 10 + b = 0) : a = 0 ∧ b = 0 := by constructor Β· apply mul_left_cancel₁ (sub_ne_zero_of_ne ha) nlinarith Β· apply mul_left_cancel₁ (sub_ne_zero_of_ne h...
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...
zero_of_pos_of_ne_one ha1 ha2 have h1 : deriv (βˆ‘ a) x = 1 / (x * log a) := by rw [deriv_log (by positivity : 0 < x), mul_comm] field_simp [hlog] exact h1
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_
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 h1 : deriv (βˆ‘ a) x = 1 / (x * log a)...
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...
40)), sq_nonneg ((x) * (x - 10)), sq_nonneg ((60 - 2 * x) / 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 ...
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 -
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...
$$ Prove that for any such function $f(x)$ and any $0 \leq x \leq 1$, $$ f(x) \geq \frac{1}{1-x} $$ Hint: Use the fact that $f(x)$ is concave from below to show 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_{2}\right) \geq \lambda f\left(x_{1}\right)+...
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...
0 ^ ((1 : ℝ) / 3) := by rw [hf] have h1 : deriv (fun x => 3 * (x ^ ((1 : ℝ) / 3) - 2 * sqrt x)) 1 = -2 := by rw [deriv_mul, deriv_const, deriv_id', deriv_id', deriv_sub, deriv_pow, deriv_sqrt, deriv_id', deriv_id', deriv_id', deriv_id', deriv_id', deriv_id', deriv_id', deriv_id', deriv_id', deriv_id...
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 * x
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 : ℝ) / 3) := by rw [hf] have h1 : deriv (fun x => 3 * (x ^ ((1 : ℝ) / 3) - 2 * sqrt x)) 1 = -2 := by rw [deriv_mul, deriv_c...
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...
- 2) * (t - 7) ≀ 0 β†’ v t = v 0 + 0.5 * t := by intro t ht ht' have h₃ := h₁ 0 have hβ‚„ := hβ‚‚ 0 have hβ‚… := h₁ 2 have h₆ := hβ‚‚ 7 simp_all <;> linarith
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
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 - 2) * (t - 7) ≀ 0 β†’ v t = v 0 + 0.5 * t := by intro t ht ht' have h₃ := h₁ 0 have hβ‚„ ...
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...
garithmic function is the natural logarithmic function. -/
import Mathlib open Real Set open scoped BigOperators /- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The lo
import Mathlib open Real Set open scoped BigOperators /- Simplify $$2\cos^2(\log(2009)i)+i\sin(\log(4036081)i).$$Note: The logarithmic function is the natural logarithmic function. -/
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...
≀ 5 nlinarith [sq_nonneg (x - 1), sq_nonneg (x + 1)] Β· -- Show 1 is the least upper bound constructor Β· -- Show 1 is an upper bound intro y hy rw [ hx] at hy simp_all [hf] -- We need to show that y ≀ 1 nlinarith [sq_nonneg (y - 1), sq_nonneg (y + 1)] Β· -- Show 1 is the...
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...
$ $7n \leq 36 + n$ $6n \leq 36$ $n \leq 6$ ## Solution: The last student solved at most 6 problems. -/
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...
by the host (h_opened : prizes_opened = 1) -- Number of prizes opened by the host (h_opened_not_prize : prizes_opened β‰  prize_doors) : 1 / 2 ≀ 1 / 2 := by -- This
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...
value_range value_range value_range value_range -- 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...
, $f(n)=f(n-1)+f(n-2)$ def f (n : β„•) : β„• := 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
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...
ulation using the given equation rw [h] at h_non_₁_even norm_num at h_non_₁_even -- Calculate the value of n have h_n_eq : n = 729 := by -- Use the fact that 9^4 = 6561 and 9^7 = 4782969 to calculate n have h_9_pow_4 : 9 ^ 4 = 6561 := by norm_num have h_9_pow_7 : 9 ^ 7 = 4782969 := by norm_num ...
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...
3. To solve this problem, we can use the fact that the sum of the degrees of all nodes in a tree is equal to twice the number of edges. In this case, there are 2010 nodes, so the sum of their degrees is 2 * 2010 = 4020. To achieve the maximum number of nodes with a degree of at least 3, we need to distribute the deg...
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
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. To solve this problem, we can use the fact that the sum of the degrees of all nodes in...
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...
a b c = 150) : S a b c = 150 := by simp_all [S] <;> linarith
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 =...
25
null
human
A convex quadrilateral is determined by the points of intersection of the curves $x^{4}+y^{4}=100$ and $x y=4$; determine its area.
import Mathlib theorem geometry_608136 {a b: ℝ} (h1: a ^ 4 + b ^ 4 = 100) (h2: a * b = 4): |(√2 * (a - b)) * (√2 * (a + b))| = 4 * √17 := by
import Mathlib /-A convex quadrilateral is determined by the points of intersection of the curves x^4 + y^4 =100 and xy=4; determine its area.-/ theorem geometry_608136 {a b: ℝ} (h1: a ^ 4 + b ^ 4 = 100) (h2: a * b = 4): |(√2 * (a - b)) * (√2 * (a + b))| = 4 * √17 := by ring_nf have u: √2 ^ 2 = 2 := by sym...
### 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...
_mul_self (show 0 ≀ 2 by norm_num)] norm_num rw [u] nlinarith [sq_sqrt (show 0 ≀ 17 by norm_num), sq_sqrt (show 0 ≀ 2 by norm_num), sq_nonneg (a ^ 2 - b ^ 2), sq_nonneg (a ^ 2 + b ^ 2)]
import Mathlib /-A convex quadrilateral is determined by the points of intersection of the curves x^4 + y^4 =100 and xy=4; determine its area.-/ theorem geometry_608136 {a b: ℝ} (h1: a ^ 4 + b ^ 4 = 100) (h2: a * b = 4): |(√2 * (a - b)) * (√2 * (a + b))| = 4 * √17 := by ring_nf have u: √2 ^ 2 = 2 := by sym...
import Mathlib /-A convex quadrilateral is determined by the points of intersection of the curves x^4 + y^4 =100 and xy=4; determine its area.-/ theorem geometry_608136 {a b: ℝ} (h1: a ^ 4 + b ^ 4 = 100) (h2: a * b = 4): |(√2 * (a - b)) * (√2 * (a + b))| = 4 * √17 := by ring_nf have u: √2 ^ 2 = 2 := by sym...
26
null
human
Let $P$ be a polyhedron where every face is a regular polygon, and every edge has length 1. Each vertex of $P$ is incident to two regular hexagons and one square. Choose a vertex $V$ of the polyhedron. Find the volume of the set of all points contained in $P$ that are closer to $V$ than to any other vertex.
import Mathlib.Data.Real.Basic import Mathlib.Tactic open Real noncomputable section def squarePyramidVolume (s h : ℝ) : ℝ := (1 / 3) * s ^ 2 * h def octahedronVolume : ℝ := let s := 3 let h := (s * Real.sqrt 2) / 2 2 * squarePyramidVolume s h def cornerVolume : ℝ := squarePyramidVolume 1 (sqrt 2 / 2) def polyhed...
import Mathlib.Data.Real.Basic import Mathlib.Tactic open Real noncomputable section -- volume of a square pyramid with square base of side s and height h def squarePyramidVolume (s h : ℝ) : ℝ := (1 / 3) * s ^ 2 * h -- volume of an octahedron made of two square pyramids with edge length 3 def octahedronVolume : ℝ :...
### 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...
squarePyramidVolume s h + squarePyramidVolume s h
import Mathlib.Data.Real.Basic import Mathlib.Tactic open Real noncomputable section -- volume of a square pyramid with square base of side s and height h def squarePyramidVolume (s h : ℝ) : ℝ := (1 / 3) * s ^ 2 * h -- volume of an octahedron made of two square pyramids with edge length 3 def octahedronVolume : ℝ :...
import Mathlib.Data.Real.Basic import Mathlib.Tactic open Real noncomputable section -- volume of a square pyramid with square base of side s and height h def squarePyramidVolume (s h : ℝ) : ℝ := (1 / 3) * s ^ 2 * h -- volume of an octahedron made of two square pyramids with edge length 3 def octahedronVolume : ℝ :...
27
null
human
Does there exist a hexagon (not necessarily convex) with side lengths 1, 2, 3, 4, 5, 6 (not necessarily in this order) that can be tiled with a) 31 b) 32 equilateral triangles with side length 1 ?
import Mathlib open Real open scoped BigOperators theorem geometry_605970 : βˆƒ a : Fin 6 β†’ ℝ, (βˆ€ i, a i = 1 ∨ a i = 2 ∨ a i = 3 ∨ a i = 4 ∨ a i = 5 ∨ a i = 6) ∧ ((βˆ‘ i, a i) = 31 ∨ (βˆ‘ i, a i) = 32) := by
import Mathlib open Real open scoped BigOperators /- Problem: Does there exist a hexagon (not necessarily convex) with side lengths 1, 2, 3, 4, 5, 6 (not necessarily in this order) that can be tiled with a) 31 b) 32 equilateral triangles with side length 1 ? -/ theorem geometry_605970 : βˆƒ a : Fin 6 β†’ ℝ, (βˆ€ i...
### 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...
lengths 1, 2, 3, 4, 5, 6. use ![1, 2, 3, 4, 5, 6] -- Show that the sum of the side lengths is either 31 or 32. refine' ⟨fun i => by aesop, _⟩ aesop
import Mathlib open Real open scoped BigOperators /- Problem: Does there exist a hexagon (not necessarily convex) with side lengths 1, 2, 3, 4, 5, 6 (not necessarily in this order) that can be tiled with a) 31 b) 32 equilateral triangles with side length 1 ? -/ theorem geometry_605970 : βˆƒ a : Fin 6 β†’ ℝ, (βˆ€ i...
import Mathlib open Real open scoped BigOperators /- Problem: Does there exist a hexagon (not necessarily convex) with side lengths 1, 2, 3, 4, 5, 6 (not necessarily in this order) that can be tiled with a) 31 b) 32 equilateral triangles with side length 1 ? -/ theorem geometry_605970 : βˆƒ a : Fin 6 β†’ ℝ, (βˆ€ i...
28
null
human
Let [triangle](https://artofproblemsolving.com/wiki/index.php/Triangle) $ABC$ be a [right triangle](https://artofproblemsolving.com/wiki/index.php/Right_triangle) in the xy-plane with a right angle at $C_{}$. Given that the length of the [hypotenuse](https://artofproblemsolving.com/wiki/index.php/Hypotenuse) $AB$ is $6...
import Mathlib theorem geometry_94945 (A B C : ℝ Γ— ℝ) (hβ‚€ : A = (p,q)) (hβ‚€' : B = (r,s)) (hβ‚€'' : C = (t,u)) (h₁ : M = (B+C)/2) (hβ‚‚ : N = (A+C)/2) (h₃ : (C-A).1*(C-B).1 + (C-A).2*(C-B).2 = 0) (hβ‚„ : Real.sqrt (((A-B).1)^2 + ((A-B).2)^2) = 60) (hβ‚… : A.2 = A.1 + 3) (hβ‚…' : M.2 = M.1 + 3) (h₆ : B.2 = 2*B.1 + 4) (h₆' : N.2 = ...
import Mathlib theorem geometry_94945 (A B C : ℝ Γ— ℝ) (hβ‚€ : A = (p,q)) -- we put coordinates on the points (hβ‚€' : B = (r,s)) (hβ‚€'' : C = (t,u)) (h₁ : M = (B+C)/2) -- the midpoints (hβ‚‚ : N = (A+C)/2) (h₃ : (C-A).1*(C-B).1 + (C-A).2*(C-B).2 = 0) -- right angle at C (hβ‚„ : Real.sqrt (((A-B).1)^2 + ((A-B).2)^2) = 60) -- hy...
### 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...
ring both sides have hβ‚… : (Real.sqrt (((A-B).1)^2 + ((A-B).2)^2))^2 = 60^2 := by rw [hβ‚„] -- we use the fact that the right angle at C implies that the dot product of the two sides is 0 have h₆ : (C-A).1*(C-B).1 + (C-A).2*(C-B).2 = 0 := h₃ -- we use the fact that the midpoints are on the line y = x+3 have h₁ :...
import Mathlib theorem geometry_94945 (A B C : ℝ Γ— ℝ) (hβ‚€ : A = (p,q)) -- we put coordinates on the points (hβ‚€' : B = (r,s)) (hβ‚€'' : C = (t,u)) (h₁ : M = (B+C)/2) -- the midpoints (hβ‚‚ : N = (A+C)/2) (h₃ : (C-A).1*(C-B).1 + (C-A).2*(C-B).2 = 0) -- right angle at C (hβ‚„ : Real.sqrt (((A-B).1)^2 + ((A-B).2)^2) = 60) -- hy...
import Mathlib theorem geometry_94945 (A B C : ℝ Γ— ℝ) (hβ‚€ : A = (p,q)) -- we put coordinates on the points (hβ‚€' : B = (r,s)) (hβ‚€'' : C = (t,u)) (h₁ : M = (B+C)/2) -- the midpoints (hβ‚‚ : N = (A+C)/2) (h₃ : (C-A).1*(C-B).1 + (C-A).2*(C-B).2 = 0) -- right angle at C (hβ‚„ : Real.sqrt (((A-B).1)^2 + ((A-B).2)^2) = 60) -- hy...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
5