File size: 122,401 Bytes
242ecbe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
{"name": "exercise_1_13a", "split": "valid", "informal_prefix": "/-- Suppose that $f$ is holomorphic in an open set $\\Omega$. Prove that if $\\text{Re}(f)$ is constant, then $f$ is constant.-/\n", "formal_statement": "theorem exercise_1_13a {f : ℂ → ℂ} (Ω : Set ℂ) (a b : Ω) (h : IsOpen Ω)\n (hf : DifferentiableOn ℂ f Ω) (hc : ∃ (c : ℝ), ∀ z ∈ Ω, (f z).re = c) :\n f a = f b :=", "goal": "f : ℂ → ℂ\nΩ : Set ℂ\na b : ↑Ω\nh : IsOpen Ω\nhf : DifferentiableOn ℂ f Ω\nhc : ∃ c, ∀ z ∈ Ω, (f z).re = c\n⊢ f ↑a = f ↑b", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_1_13c", "split": "valid", "informal_prefix": "/-- Suppose that $f$ is holomorphic in an open set $\\Omega$. Prove that if $|f|$ is constant, then $f$ is constant.-/\n", "formal_statement": "theorem exercise_1_13c {f : ℂ → ℂ} (Ω : Set ℂ) (a b : Ω) (h : IsOpen Ω)\n (hf : DifferentiableOn ℂ f Ω) (hc : ∃ (c : ℝ), ∀ z ∈ Ω, abs (f z) = c) :\n f a = f b :=", "goal": "f : ℂ → ℂ\nΩ : Set ℂ\na b : ↑Ω\nh : IsOpen Ω\nhf : DifferentiableOn ℂ f Ω\nhc : ∃ c, ∀ z ∈ Ω, Complex.abs (f z) = c\n⊢ f ↑a = f ↑b", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_1_19b", "split": "valid", "informal_prefix": "/-- Prove that the power series $\\sum zn/n^2$ converges at every point of the unit circle.-/\n", "formal_statement": "theorem exercise_1_19b (z : ℂ) (hz : abs z = 1) (s : ℕ → ℂ)\n (h : s = (λ n => ∑ i in (range n), i * z / i ^ 2)) :\n ∃ y, Tendsto s atTop (𝓝 y) :=", "goal": "z : ℂ\nhz : Complex.abs z = 1\ns : ℕ → ℂ\nh : s = fun n => ∑ i ∈ range n, ↑i * z / ↑i ^ 2\n⊢ ∃ y, Tendsto s atTop (𝓝 y)", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_1_26", "split": "valid", "informal_prefix": "/-- Suppose $f$ is continuous in a region $\\Omega$. Prove that any two primitives of $f$ (if they exist) differ by a constant.-/\n", "formal_statement": "theorem exercise_1_26\n (f F₁ F₂ : ℂ → ℂ) (Ω : Set ℂ) (h1 : IsOpen Ω) (h2 : IsConnected Ω)\n (hF₁ : DifferentiableOn ℂ F₁ Ω) (hF₂ : DifferentiableOn ℂ F₂ Ω)\n (hdF₁ : ∀ x ∈ Ω, deriv F₁ x = f x) (hdF₂ : ∀ x ∈ Ω, deriv F₂ x = f x)\n : ∃ c : ℂ, ∀ x, F₁ x = F₂ x + c :=", "goal": "f F₁ F₂ : ℂ → ℂ\nΩ : Set ℂ\nh1 : IsOpen Ω\nh2 : IsConnected Ω\nhF₁ : DifferentiableOn ℂ F₁ Ω\nhF₂ : DifferentiableOn ℂ F₂ Ω\nhdF₁ : ∀ x ∈ Ω, deriv F₁ x = f x\nhdF₂ : ∀ x ∈ Ω, deriv F₂ x = f x\n⊢ ∃ c, ∀ (x : ℂ), F₁ x = F₂ x + c", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_2_9", "split": "valid", "informal_prefix": "/-- Let $\\Omega$ be a bounded open subset of $\\mathbb{C}$, and $\\varphi: \\Omega \\rightarrow \\Omega$ a holomorphic function. Prove that if there exists a point $z_{0} \\in \\Omega$ such that $\\varphi\\left(z_{0}\\right)=z_{0} \\quad \\text { and } \\quad \\varphi^{\\prime}\\left(z_{0}\\right)=1$ then $\\varphi$ is linear.-/\n", "formal_statement": "theorem exercise_2_9\n {f : ℂ → ℂ} (Ω : Set ℂ) (b : Bornology.IsBounded Ω) (h : IsOpen Ω)\n (hf : DifferentiableOn ℂ f Ω) (z : Ω) (hz : f z = z) (h'z : deriv f z = 1) :\n ∃ (f_lin : ℂ →L[ℂ] ℂ), ∀ x ∈ Ω, f x = f_lin x :=", "goal": "f : ℂ → ℂ\nΩ : Set ℂ\nb : Bornology.IsBounded Ω\nh : IsOpen Ω\nhf : DifferentiableOn ℂ f Ω\nz : ↑Ω\nhz : f ↑z = ↑z\nh'z : deriv f ↑z = 1\n⊢ ∃ f_lin, ∀ x ∈ Ω, f x = f_lin x", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_3_3", "split": "valid", "informal_prefix": "/-- Show that $ \\int_{-\\infty}^{\\infty} \\frac{\\cos x}{x^2 + a^2} dx = \\pi \\frac{e^{-a}}{a}$ for $a > 0$.-/\n", "formal_statement": "theorem exercise_3_3 (a : ℝ) (ha : 0 < a) :\n Tendsto (λ y => ∫ x in -y..y, Real.cos x / (x ^ 2 + a ^ 2))\n atTop (𝓝 (Real.pi * (Real.exp (-a) / a))) :=", "goal": "a : ℝ\nha : 0 < a\n⊢ Tendsto (fun y => ∫ (x : ℝ) in -y..y, x.cos / (x ^ 2 + a ^ 2)) atTop (𝓝 (Real.pi * ((-a).exp / a)))", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_3_9", "split": "valid", "informal_prefix": "/-- Show that $\\int_0^1 \\log(\\sin \\pi x) dx = - \\log 2$.-/\n", "formal_statement": "theorem exercise_3_9 : ∫ x in (0 : ℝ)..(1 : ℝ),\n Real.log (Real.sin (Real.pi * x)) = - Real.log 2 :=", "goal": "⊢ ∫ (x : ℝ) in 0 ..1, (Real.pi * x).sin.log = -Real.log 2", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_3_22", "split": "valid", "informal_prefix": "/-- Show that there is no holomorphic function $f$ in the unit disc $D$ that extends continuously to $\\partial D$ such that $f(z) = 1/z$ for $z \\in \\partial D$.-/\n", "formal_statement": "theorem exercise_3_22 (D : Set ℂ) (hD : D = ball 0 1) (f : ℂ → ℂ)\n (hf : DifferentiableOn ℂ f D) (hfc : ContinuousOn f (closure D)) :\n ¬ ∀ z ∈ (sphere (0 : ℂ) 1), f z = 1 / z :=", "goal": "D : Set ℂ\nhD : D = ball 0 1\nf : ℂ → ℂ\nhf : DifferentiableOn ℂ f D\nhfc : ContinuousOn f (closure D)\n⊢ ¬∀ z ∈ sphere 0 1, f z = 1 / z", "header": "import Mathlib\n\nopen Complex Filter Function Metric Finset\nopen scoped BigOperators Topology\n\n"}
{"name": "exercise_1_1a", "split": "valid", "informal_prefix": "/-- If $r$ is rational $(r \\neq 0)$ and $x$ is irrational, prove that $r+x$ is irrational.-/\n", "formal_statement": "theorem exercise_1_1a\n (x : ℝ) (y : ℚ) :\n ( Irrational x ) -> Irrational ( x + y ) :=", "goal": "x : ℝ\ny : ℚ\n⊢ Irrational x → Irrational (x + ↑y)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_2", "split": "valid", "informal_prefix": "/-- Prove that there is no rational number whose square is $12$.-/\n", "formal_statement": "theorem exercise_1_2 : ¬ ∃ (x : ℚ), ( x ^ 2 = 12 ) :=", "goal": "⊢ ¬∃ x, x ^ 2 = 12", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_5", "split": "valid", "informal_prefix": "/-- Let $A$ be a nonempty set of real numbers which is bounded below. Let $-A$ be the set of all numbers $-x$, where $x \\in A$. Prove that $\\inf A=-\\sup (-A)$.-/\n", "formal_statement": "theorem exercise_1_5 (A minus_A : Set ℝ) (hA : A.Nonempty)\n (hA_bdd_below : BddBelow A) (hminus_A : minus_A = {x | -x ∈ A}) :\n Inf A = Sup minus_A :=", "goal": "A minus_A : Set ℝ\nhA : A.Nonempty\nhA_bdd_below : BddBelow A\nhminus_A : minus_A = {x | -x ∈ A}\n⊢ Inf ↑A = Sup ↑minus_A", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_11a", "split": "valid", "informal_prefix": "/-- If $z$ is a complex number, prove that there exists an $r\\geq 0$ and a complex number $w$ with $| w | = 1$ such that $z = rw$.-/\n", "formal_statement": "theorem exercise_1_11a (z : ℂ) :\n ∃ (r : ℝ) (w : ℂ), abs w = 1 ∧ z = r * w :=", "goal": "z : ℂ\n⊢ ∃ r w, Complex.abs w = 1 ∧ z = ↑r * w", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_13", "split": "valid", "informal_prefix": "/-- If $x, y$ are complex, prove that $||x|-|y|| \\leq |x-y|$.-/\n", "formal_statement": "theorem exercise_1_13 (x y : ℂ) :\n |(abs x) - (abs y)| ≤ abs (x - y) :=", "goal": "x y : ℂ\n⊢ |Complex.abs x - Complex.abs y| ≤ Complex.abs (x - y)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_16a", "split": "valid", "informal_prefix": "/-- Suppose $k \\geq 3, x, y \\in \\mathbb{R}^k, |x - y| = d > 0$, and $r > 0$. Prove that if $2r > d$, there are infinitely many $z \\in \\mathbb{R}^k$ such that $|z-x|=|z-y|=r$.-/\n", "formal_statement": "theorem exercise_1_16a\n (n : ℕ)\n (d r : ℝ)\n (x y z : EuclideanSpace ℝ (Fin n)) -- R^n\n (h₁ : n ≥ 3)\n (h₂ : ‖x - y‖ = d)\n (h₃ : d > 0)\n (h₄ : r > 0)\n (h₅ : 2 * r > d)\n : Set.Infinite {z : EuclideanSpace ℝ (Fin n) | ‖z - x‖ = r ∧ ‖z - y‖ = r} :=", "goal": "n : ℕ\nd r : ℝ\nx y z : EuclideanSpace ℝ (Fin n)\nh₁ : n ≥ 3\nh₂ : ‖x - y‖ = d\nh₃ : d > 0\nh₄ : r > 0\nh₅ : 2 * r > d\n⊢ {z | ‖z - x‖ = r ∧ ‖z - y‖ = r}.Infinite", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_18a", "split": "valid", "informal_prefix": "/-- If $k \\geq 2$ and $\\mathbf{x} \\in R^{k}$, prove that there exists $\\mathbf{y} \\in R^{k}$ such that $\\mathbf{y} \\neq 0$ but $\\mathbf{x} \\cdot \\mathbf{y}=0$-/\n", "formal_statement": "theorem exercise_1_18a\n (n : ℕ)\n (h : n > 1)\n (x : EuclideanSpace ℝ (Fin n)) -- R^n\n : ∃ (y : EuclideanSpace ℝ (Fin n)), y ≠ 0 ∧ (inner x y) = (0 : ℝ) :=", "goal": "n : ℕ\nh : n > 1\nx : EuclideanSpace ℝ (Fin n)\n⊢ ∃ y, y ≠ 0 ∧ ⟪x, y⟫_ℝ = 0", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_19", "split": "valid", "informal_prefix": "/-- Suppose $a, b \\in R^k$. Find $c \\in R^k$ and $r > 0$ such that $|x-a|=2|x-b|$ if and only if $| x - c | = r$. Prove that $3c = 4b - a$ and $3r = 2 |b - a|$.-/\n", "formal_statement": "theorem exercise_1_19\n (n : ℕ)\n (a b c x : EuclideanSpace ℝ (Fin n))\n (r : ℝ)\n (h₁ : r > 0)\n (h₂ : 3 • c = 4 • b - a)\n (h₃ : 3 * r = 2 * ‖x - b‖)\n : ‖x - a‖ = 2 * ‖x - b‖ ↔ ‖x - c‖ = r :=", "goal": "n : ℕ\na b c x : EuclideanSpace ℝ (Fin n)\nr : ℝ\nh₁ : r > 0\nh₂ : 3 • c = 4 • b - a\nh₃ : 3 * r = 2 * ‖x - b‖\n⊢ ‖x - a‖ = 2 * ‖x - b‖ ↔ ‖x - c‖ = r", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_24", "split": "valid", "informal_prefix": "/-- Let $X$ be a metric space in which every infinite subset has a limit point. Prove that $X$ is separable.-/\n", "formal_statement": "theorem exercise_2_24 {X : Type*} [MetricSpace X]\n (hX : ∀ (A : Set X), Infinite A → ∃ (x : X), x ∈ closure A) :\n SeparableSpace X :=", "goal": "X : Type u_1\ninst✝ : MetricSpace X\nhX : ∀ (A : Set X), Infinite ↑A → ∃ x, x ∈ closure A\n⊢ SeparableSpace X", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_27a", "split": "valid", "informal_prefix": "/-- Suppose $E\\subset\\mathbb{R}^k$ is uncountable, and let $P$ be the set of condensation points of $E$. Prove that $P$ is perfect.-/\n", "formal_statement": "theorem exercise_2_27a (k : ℕ) (E P : Set (EuclideanSpace ℝ (Fin k)))\n (hE : E.Nonempty ∧ ¬ Set.Countable E)\n (hP : P = {x | ∀ U ∈ 𝓝 x, ¬ Set.Countable (P ∩ E)}) :\n IsClosed P ∧ P = {x | ClusterPt x (𝓟 P)} :=", "goal": "k : ℕ\nE P : Set (EuclideanSpace ℝ (Fin k))\nhE : E.Nonempty ∧ ¬E.Countable\nhP : P = {x | ∀ U ∈ 𝓝 x, ¬(P ∩ E).Countable}\n⊢ IsClosed P ∧ P = {x | ClusterPt x (𝓟 P)}", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_28", "split": "valid", "informal_prefix": "/-- Prove that every closed set in a separable metric space is the union of a (possibly empty) perfect set and a set which is at most countable.-/\n", "formal_statement": "theorem exercise_2_28 (X : Type*) [MetricSpace X] [SeparableSpace X]\n (A : Set X) (hA : IsClosed A) :\n ∃ P₁ P₂ : Set X, A = P₁ ∪ P₂ ∧\n IsClosed P₁ ∧ P₁ = {x | ClusterPt x (𝓟 P₁)} ∧\n Set.Countable P₂ :=", "goal": "X : Type u_1\ninst✝¹ : MetricSpace X\ninst✝ : SeparableSpace X\nA : Set X\nhA : IsClosed A\n⊢ ∃ P₁ P₂, A = P₁ ∪ P₂ ∧ IsClosed P₁ ∧ P₁ = {x | ClusterPt x (𝓟 P₁)} ∧ P₂.Countable", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_1a", "split": "valid", "informal_prefix": "/-- Prove that convergence of $\\left\\{s_{n}\\right\\}$ implies convergence of $\\left\\{\\left|s_{n}\\right|\\right\\}$.-/\n", "formal_statement": "theorem exercise_3_1a\n (f : ℕ → ℝ)\n (h : ∃ (a : ℝ), Tendsto (λ (n : ℕ) => f n) atTop (𝓝 a))\n : ∃ (a : ℝ), Tendsto (λ (n : ℕ) => |f n|) atTop (𝓝 a) :=", "goal": "f : ℕ → ℝ\nh : ∃ a, Tendsto (fun n => f n) atTop (𝓝 a)\n⊢ ∃ a, Tendsto (fun n => |f n|) atTop (𝓝 a)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_3", "split": "valid", "informal_prefix": "/-- If $s_{1}=\\sqrt{2}$, and $s_{n+1}=\\sqrt{2+\\sqrt{s_{n}}} \\quad(n=1,2,3, \\ldots),$ prove that $\\left\\{s_{n}\\right\\}$ converges, and that $s_{n}<2$ for $n=1,2,3, \\ldots$.-/\n", "formal_statement": "theorem exercise_3_3\n : ∃ (x : ℝ), Tendsto f atTop (𝓝 x) ∧ ∀ n, f n < 2 :=", "goal": "⊢ ∃ x, Tendsto f atTop (𝓝 x) ∧ ∀ (n : ℕ), f n < 2", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\nnoncomputable def f : ℕ → ℝ\n| 0 => sqrt 2\n| (n + 1) => sqrt (2 + sqrt (f n))\n\n"}
{"name": "exercise_3_6a", "split": "valid", "informal_prefix": "/-- Prove that $\\lim_{n \\rightarrow \\infty} \\sum_{i<n} a_i = \\infty$, where $a_i = \\sqrt{i + 1} -\\sqrt{i}$.-/\n", "formal_statement": "theorem exercise_3_6a\n: Tendsto (λ (n : ℕ) => (∑ i in range n, g i)) atTop atTop :=", "goal": "⊢ Tendsto (fun n => ∑ i ∈ range n, g i) atTop atTop", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\nnoncomputable section\n\ndef g (n : ℕ) : ℝ := sqrt (n + 1) - sqrt n\n\n"}
{"name": "exercise_3_8", "split": "valid", "informal_prefix": "/-- If $\\Sigma a_{n}$ converges, and if $\\left\\{b_{n}\\right\\}$ is monotonic and bounded, prove that $\\Sigma a_{n} b_{n}$ converges.-/\n", "formal_statement": "theorem exercise_3_8\n (a b : ℕ → ℝ)\n (h1 : ∃ y, (Tendsto (λ n => (∑ i in (range n), a i)) atTop (𝓝 y)))\n (h2 : Monotone b)\n (h3 : Bornology.IsBounded (Set.range b)) :\n ∃ y, Tendsto (λ n => (∑ i in (range n), (a i) * (b i))) atTop (𝓝 y) :=", "goal": "a b : ℕ → ℝ\nh1 : ∃ y, Tendsto (fun n => ∑ i ∈ range n, a i) atTop (𝓝 y)\nh2 : Monotone b\nh3 : Bornology.IsBounded (Set.range b)\n⊢ ∃ y, Tendsto (fun n => ∑ i ∈ range n, a i * b i) atTop (𝓝 y)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_20", "split": "valid", "informal_prefix": "/-- Suppose $\\left\\{p_{n}\\right\\}$ is a Cauchy sequence in a metric space $X$, and some sequence $\\left\\{p_{n l}\\right\\}$ converges to a point $p \\in X$. Prove that the full sequence $\\left\\{p_{n}\\right\\}$ converges to $p$.-/\n", "formal_statement": "theorem exercise_3_20 {X : Type*} [MetricSpace X]\n (p : ℕ → X) (l : ℕ) (r : X)\n (hp : CauchySeq p)\n (hpl : Tendsto (λ n => p (l * n)) atTop (𝓝 r)) :\n Tendsto p atTop (𝓝 r) :=", "goal": "X : Type u_1\ninst✝ : MetricSpace X\np : ℕ → X\nl : ℕ\nr : X\nhp : CauchySeq p\nhpl : Tendsto (fun n => p (l * n)) atTop (𝓝 r)\n⊢ Tendsto p atTop (𝓝 r)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_22", "split": "valid", "informal_prefix": "/-- Suppose $X$ is a nonempty complete metric space, and $\\left\\{G_{n}\\right\\}$ is a sequence of dense open sets of $X$. Prove Baire's theorem, namely, that $\\bigcap_{1}^{\\infty} G_{n}$ is not empty.-/\n", "formal_statement": "theorem exercise_3_22 (X : Type*) [MetricSpace X] [CompleteSpace X]\n (G : ℕ → Set X) (hG : ∀ n, IsOpen (G n) ∧ Dense (G n)) :\n ∃ x, ∀ n, x ∈ G n :=", "goal": "X : Type u_1\ninst✝¹ : MetricSpace X\ninst✝ : CompleteSpace X\nG : ℕ → Set X\nhG : ∀ (n : ℕ), IsOpen (G n) ∧ Dense (G n)\n⊢ ∃ x, ∀ (n : ℕ), x ∈ G n", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_2a", "split": "valid", "informal_prefix": "/-- If $f$ is a continuous mapping of a metric space $X$ into a metric space $Y$, prove that $f(\\overline{E}) \\subset \\overline{f(E)}$ for every set $E \\subset X$. ($\\overline{E}$ denotes the closure of $E$).-/\n", "formal_statement": "theorem exercise_4_2a\n {α : Type} [MetricSpace α]\n {β : Type} [MetricSpace β]\n (f : α → β)\n (h₁ : Continuous f)\n : ∀ (x : Set α), f '' (closure x) ⊆ closure (f '' x) :=", "goal": "α : Type\ninst✝¹ : MetricSpace α\nβ : Type\ninst✝ : MetricSpace β\nf : α → β\nh₁ : Continuous f\n⊢ ∀ (x : Set α), f '' closure x ⊆ closure (f '' x)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_4a", "split": "valid", "informal_prefix": "/-- Let $f$ and $g$ be continuous mappings of a metric space $X$ into a metric space $Y$, and let $E$ be a dense subset of $X$. Prove that $f(E)$ is dense in $f(X)$.-/\n", "formal_statement": "theorem exercise_4_4a\n {α : Type} [MetricSpace α]\n {β : Type} [MetricSpace β]\n (f : α → β)\n (s : Set α)\n (h₁ : Continuous f)\n (h₂ : Dense s)\n : f '' Set.univ ⊆ closure (f '' s) :=", "goal": "α : Type\ninst✝¹ : MetricSpace α\nβ : Type\ninst✝ : MetricSpace β\nf : α → β\ns : Set α\nh₁ : Continuous f\nh₂ : Dense s\n⊢ f '' Set.univ ⊆ closure (f '' s)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5a", "split": "valid", "informal_prefix": "/-- If $f$ is a real continuous function defined on a closed set $E \\subset \\mathbb{R}$, prove that there exist continuous real functions $g$ on $\\mathbb{R}$ such that $g(x)=f(x)$ for all $x \\in E$.-/\n", "formal_statement": "theorem exercise_4_5a\n (f : ℝ → ℝ)\n (E : Set ℝ)\n (h₁ : IsClosed E)\n (h₂ : ContinuousOn f E)\n : ∃ (g : ℝ → ℝ), Continuous g ∧ ∀ x ∈ E, f x = g x :=", "goal": "f : ℝ → ℝ\nE : Set ℝ\nh₁ : IsClosed E\nh₂ : ContinuousOn f E\n⊢ ∃ g, Continuous g ∧ ∀ x ∈ E, f x = g x", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_6", "split": "valid", "informal_prefix": "/-- If $f$ is defined on $E$, the graph of $f$ is the set of points $(x, f(x))$, for $x \\in E$. In particular, if $E$ is a set of real numbers, and $f$ is real-valued, the graph of $f$ is a subset of the plane. Suppose $E$ is compact, and prove that $f$ is continuous on $E$ if and only if its graph is compact.-/\n", "formal_statement": "theorem exercise_4_6\n (f : ℝ → ℝ)\n (E : Set ℝ)\n (G : Set (ℝ × ℝ))\n (h₁ : IsCompact E)\n (h₂ : G = {(x, f x) | x ∈ E})\n : ContinuousOn f E ↔ IsCompact G :=", "goal": "f : ℝ → ℝ\nE : Set ℝ\nG : Set (ℝ × ℝ)\nh₁ : IsCompact E\nh₂ : G = {x | ∃ x_1 ∈ E, (x_1, f x_1) = x}\n⊢ ContinuousOn f E ↔ IsCompact G", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_8b", "split": "valid", "informal_prefix": "/-- Let $E$ be a bounded set in $R^{1}$. Prove that there exists a real function $f$ such that $f$ is uniformly continuous and is not bounded on $E$.-/\n", "formal_statement": "theorem exercise_4_8b\n (E : Set ℝ) :\n ∃ f : ℝ → ℝ, UniformContinuousOn f E ∧ ¬ Bornology.IsBounded (Set.image f E) :=", "goal": "E : Set ℝ\n⊢ ∃ f, UniformContinuousOn f E ∧ ¬Bornology.IsBounded (f '' E)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_12", "split": "valid", "informal_prefix": "/-- A uniformly continuous function of a uniformly continuous function is uniformly continuous.-/\n", "formal_statement": "theorem exercise_4_12\n {α β γ : Type*} [UniformSpace α] [UniformSpace β] [UniformSpace γ]\n {f : α → β} {g : β → γ}\n (hf : UniformContinuous f) (hg : UniformContinuous g) :\n UniformContinuous (g ∘ f) :=", "goal": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\ninst✝² : UniformSpace α\ninst✝¹ : UniformSpace β\ninst✝ : UniformSpace γ\nf : α → β\ng : β → γ\nhf : UniformContinuous f\nhg : UniformContinuous g\n⊢ UniformContinuous (g ∘ f)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_19", "split": "valid", "informal_prefix": "/-- Suppose $f$ is a real function with domain $R^{1}$ which has the intermediate value property: if $f(a)<c<f(b)$, then $f(x)=c$ for some $x$ between $a$ and $b$. Suppose also, for every rational $r$, that the set of all $x$ with $f(x)=r$ is closed. Prove that $f$ is continuous.-/\n", "formal_statement": "theorem exercise_4_19\n {f : ℝ → ℝ} (hf : ∀ a b c, a < b → f a < c → c < f b → ∃ x, a < x ∧ x < b ∧ f x = c)\n (hg : ∀ r : ℚ, IsClosed {x | f x = r}) : Continuous f :=", "goal": "f : ℝ → ℝ\nhf : ∀ (a b c : ℝ), a < b → f a < c → c < f b → ∃ x, a < x ∧ x < b ∧ f x = c\nhg : ∀ (r : ℚ), IsClosed {x | f x = ↑r}\n⊢ Continuous f", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_24", "split": "valid", "informal_prefix": "/-- Assume that $f$ is a continuous real function defined in $(a, b)$ such that $f\\left(\\frac{x+y}{2}\\right) \\leq \\frac{f(x)+f(y)}{2}$ for all $x, y \\in(a, b)$. Prove that $f$ is convex.-/\n", "formal_statement": "theorem exercise_4_24 {f : ℝ → ℝ}\n (hf : Continuous f) (a b : ℝ) (hab : a < b)\n (h : ∀ x y : ℝ, a < x → x < b → a < y → y < b → f ((x + y) / 2) ≤ (f x + f y) / 2) :\n ConvexOn ℝ (Set.Ioo a b) f :=", "goal": "f : ℝ → ℝ\nhf : Continuous f\na b : ℝ\nhab : a < b\nh : ∀ (x y : ℝ), a < x → x < b → a < y → y < b → f ((x + y) / 2) ≤ (f x + f y) / 2\n⊢ ConvexOn ℝ (Set.Ioo a b) f", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_2", "split": "valid", "informal_prefix": "/-- Suppose $f^{\\prime}(x)>0$ in $(a, b)$. Prove that $f$ is strictly increasing in $(a, b)$, and let $g$ be its inverse function. Prove that $g$ is differentiable, and that $g^{\\prime}(f(x))=\\frac{1}{f^{\\prime}(x)} \\quad(a<x<b)$.-/\n", "formal_statement": "theorem exercise_5_2 {a b : ℝ}\n {f g : ℝ → ℝ} (hf : ∀ x ∈ Set.Ioo a b, deriv f x > 0)\n (hg : g = f⁻¹)\n (hg_diff : DifferentiableOn ℝ g (Set.Ioo a b)) :\n DifferentiableOn ℝ g (Set.Ioo a b) ∧\n ∀ x ∈ Set.Ioo a b, deriv g x = 1 / deriv f x :=", "goal": "a b : ℝ\nf g : ℝ → ℝ\nhf : ∀ x ∈ Set.Ioo a b, deriv f x > 0\nhg : g = f⁻¹\nhg_diff : DifferentiableOn ℝ g (Set.Ioo a b)\n⊢ DifferentiableOn ℝ g (Set.Ioo a b) ∧ ∀ x ∈ Set.Ioo a b, deriv g x = 1 / deriv f x", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_4", "split": "valid", "informal_prefix": "/-- If $C_{0}+\\frac{C_{1}}{2}+\\cdots+\\frac{C_{n-1}}{n}+\\frac{C_{n}}{n+1}=0,$ where $C_{0}, \\ldots, C_{n}$ are real constants, prove that the equation $C_{0}+C_{1} x+\\cdots+C_{n-1} x^{n-1}+C_{n} x^{n}=0$ has at least one real root between 0 and 1.-/\n", "formal_statement": "theorem exercise_5_4 {n : ℕ}\n (C : ℕ → ℝ)\n (hC : ∑ i in (range (n + 1)), (C i) / (i + 1) = 0) :\n ∃ x, x ∈ (Set.Icc (0 : ℝ) 1) ∧ ∑ i in range (n + 1), (C i) * (x^i) = 0 :=", "goal": "n : ℕ\nC : ℕ → ℝ\nhC : ∑ i ∈ range (n + 1), C i / (↑i + 1) = 0\n⊢ ∃ x ∈ Set.Icc 0 1, ∑ i ∈ range (n + 1), C i * x ^ i = 0", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_6", "split": "valid", "informal_prefix": "/-- Suppose (a) $f$ is continuous for $x \\geq 0$, (b) $f^{\\prime}(x)$ exists for $x>0$, (c) $f(0)=0$, (d) $f^{\\prime}$ is monotonically increasing. Put $g(x)=\\frac{f(x)}{x} \\quad(x>0)$ and prove that $g$ is monotonically increasing.-/\n", "formal_statement": "theorem exercise_5_6\n {f : ℝ → ℝ}\n (hf1 : Continuous f)\n (hf2 : ∀ x, DifferentiableAt ℝ f x)\n (hf3 : f 0 = 0)\n (hf4 : Monotone (deriv f)) :\n MonotoneOn (λ x => f x / x) (Set.Ioi 0) :=", "goal": "f : ℝ → ℝ\nhf1 : Continuous f\nhf2 : ∀ (x : ℝ), DifferentiableAt ℝ f x\nhf3 : f 0 = 0\nhf4 : Monotone (deriv f)\n⊢ MonotoneOn (fun x => f x / x) (Set.Ioi 0)", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_15", "split": "valid", "informal_prefix": "/-- Suppose $a \\in R^{1}, f$ is a twice-differentiable real function on $(a, \\infty)$, and $M_{0}, M_{1}, M_{2}$ are the least upper bounds of $|f(x)|,\\left|f^{\\prime}(x)\\right|,\\left|f^{\\prime \\prime}(x)\\right|$, respectively, on $(a, \\infty)$. Prove that $M_{1}^{2} \\leq 4 M_{0} M_{2} .$-/\n", "formal_statement": "theorem exercise_5_15 {f : ℝ → ℝ} (a M0 M1 M2 : ℝ)\n (hf' : DifferentiableOn ℝ f (Set.Ici a))\n (hf'' : DifferentiableOn ℝ (deriv f) (Set.Ici a))\n (hM0 : M0 = sSup {(|f x|) | x ∈ (Set.Ici a)})\n (hM1 : M1 = sSup {(|deriv f x|) | x ∈ (Set.Ici a)})\n (hM2 : M2 = sSup {(|deriv (deriv f) x|) | x ∈ (Set.Ici a)}) :\n (M1 ^ 2) ≤ 4 * M0 * M2 :=", "goal": "f : ℝ → ℝ\na M0 M1 M2 : ℝ\nhf' : DifferentiableOn ℝ f (Set.Ici a)\nhf'' : DifferentiableOn ℝ (deriv f) (Set.Ici a)\nhM0 : M0 = sSup {x | ∃ x_1 ∈ Set.Ici a, |f x_1| = x}\nhM1 : M1 = sSup {x | ∃ x_1 ∈ Set.Ici a, |deriv f x_1| = x}\nhM2 : M2 = sSup {x | ∃ x_1 ∈ Set.Ici a, |deriv (deriv f) x_1| = x}\n⊢ M1 ^ 2 ≤ 4 * M0 * M2", "header": "import Mathlib\n\nopen Topology Filter Real Complex TopologicalSpace Finset\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_1_21", "split": "valid", "informal_prefix": "/-- Show that a group of order 5 must be abelian.-/\n", "formal_statement": "def exercise_2_1_21 (G : Type*) [Group G] [Fintype G]\n (hG : card G = 5) :\n CommGroup G :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhG : card G = 5\n⊢ CommGroup G", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_1_27", "split": "valid", "informal_prefix": "/-- If $G$ is a finite group, prove that there is an integer $m > 0$ such that $a^m = e$ for all $a \\in G$.-/\n", "formal_statement": "theorem exercise_2_1_27 {G : Type*} [Group G]\n [Fintype G] : ∃ (m : ℕ), ∀ (a : G), a ^ m = 1 :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\n⊢ ∃ m, ∀ (a : G), a ^ m = 1", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_2_5", "split": "valid", "informal_prefix": "/-- Let $G$ be a group in which $(a b)^{3}=a^{3} b^{3}$ and $(a b)^{5}=a^{5} b^{5}$ for all $a, b \\in G$. Show that $G$ is abelian.-/\n", "formal_statement": "def exercise_2_2_5 {G : Type*} [Group G]\n (h : ∀ (a b : G), (a * b) ^ 3 = a ^ 3 * b ^ 3 ∧ (a * b) ^ 5 = a ^ 5 * b ^ 5) :\n CommGroup G :=", "goal": "G : Type u_1\ninst✝ : Group G\nh : ∀ (a b : G), (a * b) ^ 3 = a ^ 3 * b ^ 3 ∧ (a * b) ^ 5 = a ^ 5 * b ^ 5\n⊢ CommGroup G", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_3_17", "split": "valid", "informal_prefix": "/-- If $G$ is a group and $a, x \\in G$, prove that $C\\left(x^{-1} a x\\right)=x^{-1} C(a) x$-/\n", "formal_statement": "theorem exercise_2_3_17 {G : Type*} [Mul G] [Group G] (a x : G) :\n centralizer {x⁻¹*a*x} =\n (λ g : G => x⁻¹*g*x) '' (centralizer {a}) :=", "goal": "G : Type u_1\ninst✝¹ : Mul G\ninst✝ : Group G\na x : G\n⊢ {x⁻¹ * a * x}.centralizer = (fun g => x⁻¹ * g * x) '' {a}.centralizer", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_4_36", "split": "valid", "informal_prefix": "/-- If $a > 1$ is an integer, show that $n \\mid \\varphi(a^n - 1)$, where $\\phi$ is the Euler $\\varphi$-function.-/\n", "formal_statement": "theorem exercise_2_4_36 {a n : ℕ} (h : a > 1) :\n n ∣ (a ^ n - 1).totient :=", "goal": "a n : ℕ\nh : a > 1\n⊢ n ∣ (a ^ n - 1).totient", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_5_30", "split": "valid", "informal_prefix": "/-- Suppose that $|G| = pm$, where $p \\nmid m$ and $p$ is a prime. If $H$ is a normal subgroup of order $p$ in $G$, prove that $H$ is characteristic.-/\n", "formal_statement": "theorem exercise_2_5_30 {G : Type*} [Group G] [Fintype G]\n {p m : ℕ} (hp : Nat.Prime p) (hp1 : ¬ p ∣ m) (hG : card G = p*m)\n {H : Subgroup G} [Fintype H] [H.Normal] (hH : card H = p):\n Subgroup.Characteristic H :=", "goal": "G : Type u_1\ninst✝³ : Group G\ninst✝² : Fintype G\np m : ℕ\nhp : p.Prime\nhp1 : ¬p ∣ m\nhG : card G = p * m\nH : Subgroup G\ninst✝¹ : Fintype ↥H\ninst✝ : H.Normal\nhH : card ↥H = p\n⊢ H.Characteristic", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_5_37", "split": "valid", "informal_prefix": "/-- If $G$ is a nonabelian group of order 6, prove that $G \\simeq S_3$.-/\n", "formal_statement": "def exercise_2_5_37 (G : Type*) [Group G] [Fintype G]\n (hG : card G = 6) (hG' : IsEmpty (CommGroup G)) :\n G ≃* Equiv.Perm (Fin 3) :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhG : card G = 6\nhG' : IsEmpty (CommGroup G)\n⊢ G ≃* Equiv.Perm (Fin 3)", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_5_44", "split": "valid", "informal_prefix": "/-- Prove that a group of order $p^2$, $p$ a prime, has a normal subgroup of order $p$.-/\n", "formal_statement": "theorem exercise_2_5_44 {G : Type*} [Group G] [Fintype G] {p : ℕ}\n (hp : Nat.Prime p) (hG : card G = p^2) :\n ∃ (N : Subgroup G) (Fin : Fintype N), @card N Fin = p ∧ N.Normal :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\np : ℕ\nhp : p.Prime\nhG : card G = p ^ 2\n⊢ ∃ N Fin, card ↥N = p ∧ N.Normal", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_6_15", "split": "valid", "informal_prefix": "/-- If $G$ is an abelian group and if $G$ has an element of order $m$ and one of order $n$, where $m$ and $n$ are relatively prime, prove that $G$ has an element of order $mn$.-/\n", "formal_statement": "theorem exercise_2_6_15 {G : Type*} [CommGroup G] {m n : ℕ}\n (hm : ∃ (g : G), orderOf g = m)\n (hn : ∃ (g : G), orderOf g = n)\n (hmn : m.Coprime n) :\n ∃ (g : G), orderOf g = m * n :=", "goal": "G : Type u_1\ninst✝ : CommGroup G\nm n : ℕ\nhm : ∃ g, orderOf g = m\nhn : ∃ g, orderOf g = n\nhmn : m.Coprime n\n⊢ ∃ g, orderOf g = m * n", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_8_12", "split": "valid", "informal_prefix": "/-- Prove that any two nonabelian groups of order 21 are isomorphic.-/\n", "formal_statement": "def exercise_2_8_12 {G H : Type*} [Fintype G] [Fintype H]\n [Group G] [Group H] (hG : card G = 21) (hH : card H = 21)\n (hG1 : IsEmpty (CommGroup G)) (hH1 : IsEmpty (CommGroup H)) :\n G ≃* H :=", "goal": "G : Type u_1\nH : Type u_2\ninst✝³ : Fintype G\ninst✝² : Fintype H\ninst✝¹ : Group G\ninst✝ : Group H\nhG : card G = 21\nhH : card H = 21\nhG1 : IsEmpty (CommGroup G)\nhH1 : IsEmpty (CommGroup H)\n⊢ G ≃* H", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_9_2", "split": "valid", "informal_prefix": "/-- If $G_1$ and $G_2$ are cyclic groups of orders $m$ and $n$, respectively, prove that $G_1 \\times G_2$ is cyclic if and only if $m$ and $n$ are relatively prime.-/\n", "formal_statement": "theorem exercise_2_9_2 {G H : Type*} [Fintype G] [Fintype H] [Group G]\n [Group H] (hG : IsCyclic G) (hH : IsCyclic H) :\n IsCyclic (G × H) ↔ (card G).Coprime (card H) :=", "goal": "G : Type u_1\nH : Type u_2\ninst✝³ : Fintype G\ninst✝² : Fintype H\ninst✝¹ : Group G\ninst✝ : Group H\nhG : IsCyclic G\nhH : IsCyclic H\n⊢ IsCyclic (G × H) ↔ (card G).Coprime (card H)", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_11_6", "split": "valid", "informal_prefix": "/-- If $P$ is a $p$-Sylow subgroup of $G$ and $P \\triangleleft G$, prove that $P$ is the only $p$-Sylow subgroup of $G$.-/\n", "formal_statement": "theorem exercise_2_11_6 {G : Type*} [Group G] {p : ℕ} (hp : Nat.Prime p)\n {P : Sylow p G} (hP : P.Normal) :\n ∀ (Q : Sylow p G), P = Q :=", "goal": "G : Type u_1\ninst✝ : Group G\np : ℕ\nhp : p.Prime\nP : Sylow p G\nhP : (↑P).Normal\n⊢ ∀ (Q : Sylow p G), P = Q", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_11_22", "split": "valid", "informal_prefix": "/-- Show that any subgroup of order $p^{n-1}$ in a group $G$ of order $p^n$ is normal in $G$.-/\n", "formal_statement": "theorem exercise_2_11_22 {p : ℕ} {n : ℕ} {G : Type*} [Fintype G]\n [Group G] (hp : Nat.Prime p) (hG : card G = p ^ n) {K : Subgroup G}\n [Fintype K] (hK : card K = p ^ (n-1)) :\n K.Normal :=", "goal": "p n : ℕ\nG : Type u_1\ninst✝² : Fintype G\ninst✝¹ : Group G\nhp : p.Prime\nhG : card G = p ^ n\nK : Subgroup G\ninst✝ : Fintype ↥K\nhK : card ↥K = p ^ (n - 1)\n⊢ K.Normal", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_1_19", "split": "valid", "informal_prefix": "/-- Show that there is an infinite number of solutions to $x^2 = -1$ in the quaternions.-/\n", "formal_statement": "theorem exercise_4_1_19 : Infinite {x : Quaternion ℝ | x^2 = -1} :=", "goal": "⊢ Infinite ↑{x | x ^ 2 = -1}", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_2_5", "split": "valid", "informal_prefix": "/-- Let $R$ be a ring in which $x^3 = x$ for every $x \\in R$. Prove that $R$ is commutative.-/\n", "formal_statement": "def exercise_4_2_5 {R : Type*} [Ring R]\n (h : ∀ x : R, x ^ 3 = x) : CommRing R :=", "goal": "R : Type u_1\ninst✝ : Ring R\nh : ∀ (x : R), x ^ 3 = x\n⊢ CommRing R", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_2_9", "split": "valid", "informal_prefix": "/-- Let $p$ be an odd prime and let $1 + \\frac{1}{2} + ... + \\frac{1}{p - 1} = \\frac{a}{b}$, where $a, b$ are integers. Show that $p \\mid a$.-/\n", "formal_statement": "theorem exercise_4_2_9 {p : ℕ} (hp : Nat.Prime p) (hp1 : Odd p) :\n ∃ (a b : ℤ), (a / b : ℚ) = ∑ i in Finset.range p, 1 / (i + 1) → ↑p ∣ a :=", "goal": "p : ℕ\nhp : p.Prime\nhp1 : Odd p\n⊢ ∃ a b, ↑a / ↑b = ↑(∑ i ∈ Finset.range p, 1 / (i + 1)) → ↑p ∣ a", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_3_25", "split": "valid", "informal_prefix": "/-- Let $R$ be the ring of $2 \\times 2$ matrices over the real numbers; suppose that $I$ is an ideal of $R$. Show that $I = (0)$ or $I = R$.-/\n", "formal_statement": "theorem exercise_4_3_25 (I : Ideal (Matrix (Fin 2) (Fin 2) ℝ)) :\n I = ⊥ ∨ I = ⊤ :=", "goal": "I : Ideal (Matrix (Fin 2) (Fin 2) ℝ)\n⊢ I = ⊥ ∨ I = ⊤", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_16", "split": "valid", "informal_prefix": "/-- Let $F = \\mathbb{Z}_p$ be the field of integers $\\mod p$, where $p$ is a prime, and let $q(x) \\in F[x]$ be irreducible of degree $n$. Show that $F[x]/(q(x))$ is a field having at exactly $p^n$ elements.-/\n", "formal_statement": "theorem exercise_4_5_16 {p n: ℕ} (hp : Nat.Prime p)\n {q : Polynomial (ZMod p)} (hq : Irreducible q) (hn : q.degree = n) :\n ∃ is_fin : Fintype $ Polynomial (ZMod p) ⧸ span ({q} : Set (Polynomial $ ZMod p)),\n @card (Polynomial (ZMod p) ⧸ span {q}) is_fin = p ^ n ∧\n IsField (Polynomial $ ZMod p) :=", "goal": "p n : ℕ\nhp : p.Prime\nq : (ZMod p)[X]\nhq : Irreducible q\nhn : q.degree = ↑n\n⊢ ∃ is_fin, card ((ZMod p)[X] ⧸ span {q}) = p ^ n ∧ IsField (ZMod p)[X]", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_25", "split": "valid", "informal_prefix": "/-- If $p$ is a prime, show that $q(x) = 1 + x + x^2 + \\cdots x^{p - 1}$ is irreducible in $Q[x]$.-/\n", "formal_statement": "theorem exercise_4_5_25 {p : ℕ} (hp : Nat.Prime p) :\n Irreducible (∑ i : Finset.range p, X ^ p : Polynomial ℚ) :=", "goal": "p : ℕ\nhp : p.Prime\n⊢ Irreducible (∑ i : { x // x ∈ Finset.range p }, X ^ p)", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_6_3", "split": "valid", "informal_prefix": "/-- Show that there is an infinite number of integers a such that $f(x) = x^7 + 15x^2 - 30x + a$ is irreducible in $Q[x]$.-/\n", "formal_statement": "theorem exercise_4_6_3 :\n Infinite {a : ℤ | Irreducible (X^7 + 15*X^2 - 30*X + (a : Polynomial ℚ) : Polynomial ℚ)} :=", "goal": "⊢ Infinite ↑{a | Irreducible (X ^ 7 + 15 * X ^ 2 - 30 * X + ↑a)}", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_2_20", "split": "valid", "informal_prefix": "/-- Let $V$ be a vector space over an infinite field $F$. Show that $V$ cannot be the set-theoretic union of a finite number of proper subspaces of $V$.-/\n", "formal_statement": "theorem exercise_5_2_20 {F V ι: Type*} [Infinite F] [Field F]\n [AddCommGroup V] [Module F V] {u : ι → Submodule F V}\n (hu : ∀ i : ι, u i ≠ ⊤) :\n (⋃ i : ι, (u i : Set V)) ≠ ⊤ :=", "goal": "F : Type u_1\nV : Type u_2\nι : Type u_3\ninst✝³ : Infinite F\ninst✝² : Field F\ninst✝¹ : AddCommGroup V\ninst✝ : Module F V\nu : ι → Submodule F V\nhu : ∀ (i : ι), u i ≠ ⊤\n⊢ ⋃ i, ↑(u i) ≠ ⊤", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_3_10", "split": "valid", "informal_prefix": "/-- Prove that $\\cos 1^{\\circ}$ is algebraic over $\\mathbb{Q}$.-/\n", "formal_statement": "theorem exercise_5_3_10 : IsAlgebraic ℚ (cos (Real.pi / 180)) :=", "goal": "⊢ IsAlgebraic ℚ (π / 180).cos", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_5_2", "split": "valid", "informal_prefix": "/-- Prove that $x^3 - 3x - 1$ is irreducible over $\\mathbb{Q}$.-/\n", "formal_statement": "theorem exercise_5_5_2 : Irreducible (X^3 - 3*X - 1 : Polynomial ℚ) :=", "goal": "⊢ Irreducible (X ^ 3 - 3 * X - 1)", "header": "import Mathlib\n\nopen Fintype Set Real Ideal Polynomial\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_12a", "split": "valid", "informal_prefix": "/-- Let $(p_n)$ be a sequence and $f:\\mathbb{N}\\to\\mathbb{N}$. The sequence $(q_k)_{k\\in\\mathbb{N}}$ with $q_k=p_{f(k)}$ is called a rearrangement of $(p_n)$. Show that if $f$ is an injection, the limit of a sequence is unaffected by rearrangement.-/\n", "formal_statement": "theorem exercise_2_12a (f : ℕ → ℕ) (p : ℕ → ℝ) (a : ℝ)\n (hf : Injective f) (hp : Tendsto p atTop (𝓝 a)) :\n Tendsto (λ n => p (f n)) atTop (𝓝 a) :=", "goal": "f : ℕ → ℕ\np : ℕ → ℝ\na : ℝ\nhf : Injective f\nhp : Tendsto p atTop (𝓝 a)\n⊢ Tendsto (fun n => p (f n)) atTop (𝓝 a)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_2_29", "split": "valid", "informal_prefix": "/-- Let $\\mathcal{T}$ be the collection of open subsets of a metric space $\\mathrm{M}$, and $\\mathcal{K}$ the collection of closed subsets. Show that there is a bijection from $\\mathcal{T}$ onto $\\mathcal{K}$.-/\n", "formal_statement": "theorem exercise_2_29 (M : Type*) [MetricSpace M]\n (O C : Set (Set M))\n (hO : O = {s | IsOpen s})\n (hC : C = {s | IsClosed s}) :\n ∃ f : O → C, Bijective f :=", "goal": "M : Type u_1\ninst✝ : MetricSpace M\nO C : Set (Set M)\nhO : O = {s | IsOpen s}\nhC : C = {s | IsClosed s}\n⊢ ∃ f, Bijective f", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_2_41", "split": "valid", "informal_prefix": "/-- Let $\\|\\cdot\\|$ be any norm on $\\mathbb{R}^{m}$ and let $B=\\left\\{x \\in \\mathbb{R}^{m}:\\|x\\| \\leq 1\\right\\}$. Prove that $B$ is compact.-/\n", "formal_statement": "theorem exercise_2_41 (m : ℕ) {X : Type*} [NormedSpace ℝ ((Fin m) → ℝ)] :\n IsCompact (Metric.closedBall 0 1) :=", "goal": "m : ℕ\nX : Type u_1\ninst✝ : NormedSpace ℝ (Fin m → ℝ)\n⊢ IsCompact (Metric.closedBall 0 1)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_2_57", "split": "valid", "informal_prefix": "/-- Show that if $S$ is connected, it is not true in general that its interior is connected.-/\n", "formal_statement": "theorem exercise_2_57 {X : Type*} [TopologicalSpace X]\n : ∃ (S : Set X), IsConnected S ∧ ¬ IsConnected (interior S) :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\n⊢ ∃ S, IsConnected S ∧ ¬IsConnected (interior S)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_2_126", "split": "valid", "informal_prefix": "/-- Suppose that $E$ is an uncountable subset of $\\mathbb{R}$. Prove that there exists a point $p \\in \\mathbb{R}$ at which $E$ condenses.-/\n", "formal_statement": "theorem exercise_2_126 {E : Set ℝ}\n (hE : ¬ Set.Countable E) : ∃ (p : ℝ), ClusterPt p (𝓟 E) :=", "goal": "E : Set ℝ\nhE : ¬E.Countable\n⊢ ∃ p, ClusterPt p (𝓟 E)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_3_4", "split": "valid", "informal_prefix": "/-- Prove that $\\sqrt{n+1}-\\sqrt{n} \\rightarrow 0$ as $n \\rightarrow \\infty$.-/\n", "formal_statement": "theorem exercise_3_4 (n : ℕ) :\n Tendsto (λ n => (sqrt (n + 1) - sqrt n)) atTop (𝓝 0) :=", "goal": "n : ℕ\n⊢ Tendsto (fun n => √(n + 1) - √n) atTop (𝓝 0)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_3_63b", "split": "valid", "informal_prefix": "/-- Prove that $\\sum 1/k(\\log(k))^p$ diverges when $p \\leq 1$.-/\n", "formal_statement": "theorem exercise_3_63b (p : ℝ) (f : ℕ → ℝ) (hp : p ≤ 1)\n (h : f = λ (k : ℕ) => (1 : ℝ) / (k * (log k) ^ p)) :\n ¬ ∃ l, Tendsto f atTop (𝓝 l) :=", "goal": "p : ℝ\nf : ℕ → ℝ\nhp : p ≤ 1\nh : f = fun k => 1 / (↑k * (↑k).log ^ p)\n⊢ ¬∃ l, Tendsto f atTop (𝓝 l)", "header": "import Mathlib\n\nopen Filter Real Function\nopen scoped Topology\n\n"}
{"name": "exercise_2_2_9", "split": "valid", "informal_prefix": "/-- Let $H$ be the subgroup generated by two elements $a, b$ of a group $G$. Prove that if $a b=b a$, then $H$ is an abelian group.-/\n", "formal_statement": "theorem exercise_2_2_9 {G : Type} [Group G] {a b : G} (h : a * b = b * a) :\n ∀ x y : closure {x| x = a ∨ x = b}, x * y = y * x :=", "goal": "G : Type\ninst✝ : Group G\na b : G\nh : a * b = b * a\n⊢ ∀ (x y : ↥(Subgroup.closure {x | x = a ∨ x = b})), x * y = y * x", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_4_19", "split": "valid", "informal_prefix": "/-- Prove that if a group contains exactly one element of order 2 , then that element is in the center of the group.-/\n", "formal_statement": "theorem exercise_2_4_19 {G : Type*} [Group G] {x : G}\n (hx : orderOf x = 2) (hx1 : ∀ y, orderOf y = 2 → y = x) :\n x ∈ center G :=", "goal": "G : Type u_1\ninst✝ : Group G\nx : G\nhx : orderOf x = 2\nhx1 : ∀ (y : G), orderOf y = 2 → y = x\n⊢ x ∈ center G", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_11_3", "split": "valid", "informal_prefix": "/-- Prove that a group of even order contains an element of order $2 .$-/\n", "formal_statement": "theorem exercise_2_11_3 {G : Type*} [Group G] [Fintype G](hG : Even (card G)) :\n ∃ x : G, orderOf x = 2 :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhG : Even (card G)\n⊢ ∃ x, orderOf x = 2", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_5_6", "split": "valid", "informal_prefix": "/-- Let $V$ be a vector space which is spanned by a countably infinite set. Prove that every linearly independent subset of $V$ is finite or countably infinite.-/\n", "formal_statement": "theorem exercise_3_5_6 {K V : Type*} [Field K] [AddCommGroup V]\n [Module K V] {S : Set V} (hS : Set.Countable S)\n (hS1 : span K S = ⊤) {ι : Type*} (R : ι → V)\n (hR : LinearIndependent K R) : Countable ι :=", "goal": "K : Type u_1\nV : Type u_2\ninst✝² : Field K\ninst✝¹ : AddCommGroup V\ninst✝ : Module K V\nS : Set V\nhS : S.Countable\nhS1 : Submodule.span K S = ⊤\nι : Type u_3\nR : ι → V\nhR : LinearIndependent K R\n⊢ Countable ι", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_1_14", "split": "valid", "informal_prefix": "/-- Let $Z$ be the center of a group $G$. Prove that if $G / Z$ is a cyclic group, then $G$ is abelian and hence $G=Z$.-/\n", "formal_statement": "theorem exercise_6_1_14 (G : Type*) [Group G]\n (hG : IsCyclic $ G ⧸ (center G)) :\n center G = ⊤ :=", "goal": "G : Type u_1\ninst✝ : Group G\nhG : IsCyclic (G ⧸ center G)\n⊢ center G = ⊤", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_4_3", "split": "valid", "informal_prefix": "/-- Prove that no group of order $p^2 q$, where $p$ and $q$ are prime, is simple.-/\n", "formal_statement": "theorem exercise_6_4_3 {G : Type*} [Group G] [Fintype G] {p q : ℕ}\n (hp : Prime p) (hq : Prime q) (hG : card G = p^2 *q) :\n IsSimpleGroup G → false :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\np q : ℕ\nhp : Prime p\nhq : Prime q\nhG : card G = p ^ 2 * q\n⊢ IsSimpleGroup G → false = true", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_8_1", "split": "valid", "informal_prefix": "/-- Prove that two elements $a, b$ of a group generate the same subgroup as $b a b^2, b a b^3$.-/\n", "formal_statement": "theorem exercise_6_8_1 {G : Type*} [Group G]\n (a b : G) : closure ({a, b} : Set G) = Subgroup.closure {b*a*b^2, b*a*b^3} :=", "goal": "G : Type u_1\ninst✝ : Group G\na b : G\n⊢ Subgroup.closure {a, b} = Subgroup.closure {b * a * b ^ 2, b * a * b ^ 3}", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_10_2_4", "split": "valid", "informal_prefix": "/-- Prove that in the ring $\\mathbb{Z}[x],(2) \\cap(x)=(2 x)$.-/\n", "formal_statement": "theorem exercise_10_2_4 :\n span ({2} : Set $ Polynomial ℤ) ⊓ (span {X}) =\n span ({2 * X} : Set $ Polynomial ℤ) :=", "goal": "⊢ Ideal.span {2} ⊓ Ideal.span {X} = Ideal.span {2 * X}", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_10_4_6", "split": "valid", "informal_prefix": "/-- Let $I, J$ be ideals in a ring $R$. Prove that the residue of any element of $I \\cap J$ in $R / I J$ is nilpotent.-/\n", "formal_statement": "theorem exercise_10_4_6 {R : Type*} [CommRing R]\n [NoZeroDivisors R] (I J : Ideal R) (x : ↑(I ⊓ J)) :\n IsNilpotent ((Ideal.Quotient.mk (I*J)) x) :=", "goal": "R : Type u_1\ninst✝¹ : CommRing R\ninst✝ : NoZeroDivisors R\nI J : Ideal R\nx : ↥(I ⊓ J)\n⊢ IsNilpotent ((Ideal.Quotient.mk (I * J)) ↑x)", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_10_7_10", "split": "valid", "informal_prefix": "/-- Let $R$ be a ring, with $M$ an ideal of $R$. Suppose that every element of $R$ which is not in $M$ is a unit of $R$. Prove that $M$ is a maximal ideal and that moreover it is the only maximal ideal of $R$.-/\n", "formal_statement": "theorem exercise_10_7_10 {R : Type*} [Ring R]\n (M : Ideal R) (hM : ∀ (x : R), x ∉ M → IsUnit x)\n (hProper : ∃ x : R, x ∉ M) :\n IsMaximal M ∧ ∀ (N : Ideal R), IsMaximal N → N = M :=", "goal": "R : Type u_1\ninst✝ : Ring R\nM : Ideal R\nhM : ∀ x ∉ M, IsUnit x\nhProper : ∃ x, x ∉ M\n⊢ M.IsMaximal ∧ ∀ (N : Ideal R), N.IsMaximal → N = M", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_11_4_1b", "split": "valid", "informal_prefix": "/-- Prove that $x^3 + 6x + 12$ is irreducible in $\\mathbb{Q}$.-/\n", "formal_statement": "theorem exercise_11_4_1b {F : Type*} [Field F] [Fintype F] (hF : card F = 2) :\n Irreducible (12 + 6 * X + X ^ 3 : Polynomial F) :=", "goal": "F : Type u_1\ninst✝¹ : Field F\ninst✝ : Fintype F\nhF : card F = 2\n⊢ Irreducible (12 + 6 * X + X ^ 3)", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_11_4_6b", "split": "valid", "informal_prefix": "/-- Prove that $x^2+1$ is irreducible in $\\mathbb{F}_7$-/\n", "formal_statement": "theorem exercise_11_4_6b {F : Type*} [Field F] [Fintype F] (hF : card F = 31) :\n Irreducible (X ^ 3 - 9 : Polynomial F) :=", "goal": "F : Type u_1\ninst✝¹ : Field F\ninst✝ : Fintype F\nhF : card F = 31\n⊢ Irreducible (X ^ 3 - 9)", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_11_4_8", "split": "valid", "informal_prefix": "/-- Let $p$ be a prime integer. Prove that the polynomial $x^n-p$ is irreducible in $\\mathbb{Q}[x]$.-/\n", "formal_statement": "theorem exercise_11_4_8 (p : ℕ) (hp : Prime p) (n : ℕ) :\n -- p ∈ ℕ can be written as p ∈ ℚ[X]\n Irreducible (X ^ n - (p : Polynomial ℚ) : Polynomial ℚ) :=", "goal": "p : ℕ\nhp : Prime p\nn : ℕ\n⊢ Irreducible (X ^ n - ↑p)", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_13_4_10", "split": "valid", "informal_prefix": "/-- Prove that if a prime integer $p$ has the form $2^r+1$, then it actually has the form $2^{2^k}+1$.-/\n", "formal_statement": "theorem exercise_13_4_10\n {p : ℕ} {hp : Nat.Prime p} (h : ∃ r : ℕ, p = 2 ^ r + 1) :\n ∃ (k : ℕ), p = 2 ^ (2 ^ k) + 1 :=", "goal": "p : ℕ\nhp : p.Prime\nh : ∃ r, p = 2 ^ r + 1\n⊢ ∃ k, p = 2 ^ 2 ^ k + 1", "header": "import Mathlib\n\nopen Function Fintype Subgroup Ideal Polynomial Submodule Zsqrtd\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_3", "split": "valid", "informal_prefix": "/-- Prove that $-(-v) = v$ for every $v \\in V$.-/\n", "formal_statement": "theorem exercise_1_3 {F V : Type*} [AddCommGroup V] [Field F]\n [Module F V] {v : V} : -(-v) = v :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝² : AddCommGroup V\ninst✝¹ : Field F\ninst✝ : Module F V\nv : V\n⊢ - -v = v", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_6", "split": "valid", "informal_prefix": "/-- Give an example of a nonempty subset $U$ of $\\mathbf{R}^2$ such that $U$ is closed under addition and under taking additive inverses (meaning $-u \\in U$ whenever $u \\in U$), but $U$ is not a subspace of $\\mathbf{R}^2$.-/\n", "formal_statement": "theorem exercise_1_6 : ∃ U : Set (ℝ × ℝ),\n (U ≠ ∅) ∧\n (∀ (u v : ℝ × ℝ), u ∈ U ∧ v ∈ U → u + v ∈ U) ∧\n (∀ (u : ℝ × ℝ), u ∈ U → -u ∈ U) ∧\n (∀ U' : Submodule ℝ (ℝ × ℝ), U ≠ ↑U') :=", "goal": "⊢ ∃ U, U ≠ ∅ ∧ (∀ (u v : ℝ × ℝ), u ∈ U ∧ v ∈ U → u + v ∈ U) ∧ (∀ u ∈ U, -u ∈ U) ∧ ∀ (U' : Submodule ℝ (ℝ × ℝ)), U ≠ ↑U'", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_8", "split": "valid", "informal_prefix": "/-- Prove that the intersection of any collection of subspaces of $V$ is a subspace of $V$.-/\n", "formal_statement": "theorem exercise_1_8 {F V : Type*} [AddCommGroup V] [Field F]\n [Module F V] {ι : Type*} (u : ι → Submodule F V) :\n ∃ U : Submodule F V, (⋂ (i : ι), (u i).carrier) = ↑U :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝² : AddCommGroup V\ninst✝¹ : Field F\ninst✝ : Module F V\nι : Type u_3\nu : ι → Submodule F V\n⊢ ∃ U, ⋂ i, (u i).carrier = ↑U", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_1", "split": "valid", "informal_prefix": "/-- Show that every linear map from a one-dimensional vector space to itself is multiplication by some scalar. More precisely, prove that if $\\operatorname{dim} V=1$ and $T \\in \\mathcal{L}(V, V)$, then there exists $a \\in \\mathbf{F}$ such that $T v=a v$ for all $v \\in V$.-/\n", "formal_statement": "theorem exercise_3_1 {F V : Type*}\n [AddCommGroup V] [Field F] [Module F V] [FiniteDimensional F V]\n (T : V →ₗ[F] V) (hT : finrank F V = 1) :\n ∃ c : F, ∀ v : V, T v = c • v :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝³ : AddCommGroup V\ninst✝² : Field F\ninst✝¹ : Module F V\ninst✝ : FiniteDimensional F V\nT : V →ₗ[F] V\nhT : finrank F V = 1\n⊢ ∃ c, ∀ (v : V), T v = c • v", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_4", "split": "valid", "informal_prefix": "/-- Suppose $p \\in \\mathcal{P}(\\mathbf{C})$ has degree $m$. Prove that $p$ has $m$ distinct roots if and only if $p$ and its derivative $p^{\\prime}$ have no roots in common.-/\n", "formal_statement": "theorem exercise_4_4 (p : Polynomial ℂ) :\n p.degree = @card (rootSet p ℂ) (rootSetFintype p ℂ) ↔\n Disjoint\n (@card (rootSet (derivative p) ℂ) (rootSetFintype (derivative p) ℂ))\n (@card (rootSet p ℂ) (rootSetFintype p ℂ)) :=", "goal": "p : ℂ[X]\n⊢ p.degree = ↑(card ↑(p.rootSet ℂ)) ↔ Disjoint (card ↑((derivative p).rootSet ℂ)) (card ↑(p.rootSet ℂ))", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_4", "split": "valid", "informal_prefix": "/-- Suppose that $S, T \\in \\mathcal{L}(V)$ are such that $S T=T S$. Prove that $\\operatorname{null} (T-\\lambda I)$ is invariant under $S$ for every $\\lambda \\in \\mathbf{F}$.-/\n", "formal_statement": "theorem exercise_5_4 {F V : Type*} [AddCommGroup V] [Field F]\n [Module F V] (S T : V →ₗ[F] V) (hST : S ∘ T = T ∘ S) (c : F):\n Submodule.map S (ker (T - c • LinearMap.id)) = ker (T - c • LinearMap.id) :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝² : AddCommGroup V\ninst✝¹ : Field F\ninst✝ : Module F V\nS T : V →ₗ[F] V\nhST : ⇑S ∘ ⇑T = ⇑T ∘ ⇑S\nc : F\n⊢ Submodule.map S (ker (T - c • LinearMap.id)) = ker (T - c • LinearMap.id)", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_12", "split": "valid", "informal_prefix": "/-- Suppose $T \\in \\mathcal{L}(V)$ is such that every vector in $V$ is an eigenvector of $T$. Prove that $T$ is a scalar multiple of the identity operator.-/\n", "formal_statement": "theorem exercise_5_12 {F V : Type*} [AddCommGroup V] [Field F]\n [Module F V] {S : End F V}\n (hS : ∀ v : V, ∃ c : F, v ∈ eigenspace S c) :\n ∃ c : F, S = c • LinearMap.id :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝² : AddCommGroup V\ninst✝¹ : Field F\ninst✝ : Module F V\nS : End F V\nhS : ∀ (v : V), ∃ c, v ∈ S.eigenspace c\n⊢ ∃ c, S = c • LinearMap.id", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_20", "split": "valid", "informal_prefix": "/-- Suppose that $T \\in \\mathcal{L}(V)$ has $\\operatorname{dim} V$ distinct eigenvalues and that $S \\in \\mathcal{L}(V)$ has the same eigenvectors as $T$ (not necessarily with the same eigenvalues). Prove that $S T=T S$.-/\n", "formal_statement": "theorem exercise_5_20 {F V : Type*} [AddCommGroup V] [Field F]\n [Module F V] [FiniteDimensional F V] {S T : End F V}\n (h1 : card (T.Eigenvalues) = finrank F V)\n (h2 : ∀ v : V, ∃ c : F, v ∈ eigenspace S c ↔ ∃ c : F, v ∈ eigenspace T c) :\n S * T = T * S :=", "goal": "F : Type u_1\nV : Type u_2\ninst✝³ : AddCommGroup V\ninst✝² : Field F\ninst✝¹ : Module F V\ninst✝ : FiniteDimensional F V\nS T : End F V\nh1 : card T.Eigenvalues = finrank F V\nh2 : ∀ (v : V), ∃ c, v ∈ S.eigenspace c ↔ ∃ c, v ∈ T.eigenspace c\n⊢ S * T = T * S", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_2", "split": "valid", "informal_prefix": "/-- Suppose $u, v \\in V$. Prove that $\\langle u, v\\rangle=0$ if and only if $\\|u\\| \\leq\\|u+a v\\|$ for all $a \\in \\mathbf{F}$.-/\n", "formal_statement": "theorem exercise_6_2 {V : Type*} [NormedAddCommGroup V] [Module ℂ V]\n[InnerProductSpace ℂ V] (u v : V) :\n ⟪u, v⟫_ℂ = 0 ↔ ∀ (a : ℂ), ‖u‖ ≤ ‖u + a • v‖ :=", "goal": "V : Type u_1\ninst✝² : NormedAddCommGroup V\ninst✝¹ : Module ℂ V\ninst✝ : InnerProductSpace ℂ V\nu v : V\n⊢ ⟪u, v⟫_ℂ = 0 ↔ ∀ (a : ℂ), ‖u‖ ≤ ‖u + a • v‖", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_7", "split": "valid", "informal_prefix": "/-- Prove that if $V$ is a complex inner-product space, then $\\langle u, v\\rangle=\\frac{\\|u+v\\|^{2}-\\|u-v\\|^{2}+\\|u+i v\\|^{2} i-\\|u-i v\\|^{2} i}{4}$ for all $u, v \\in V$.-/\n", "formal_statement": "theorem exercise_6_7 {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V] (u v : V) :\n ⟪u, v⟫_ℂ = (‖u + v‖^2 - ‖u - v‖^2 + I*‖u + I•v‖^2 - I*‖u-I•v‖^2) / 4 :=", "goal": "V : Type u_1\ninst✝¹ : NormedAddCommGroup V\ninst✝ : InnerProductSpace ℂ V\nu v : V\n⊢ ⟪u, v⟫_ℂ = (↑‖u + v‖ ^ 2 - ↑‖u - v‖ ^ 2 + I * ↑‖u + I • v‖ ^ 2 - I * ↑‖u - I • v‖ ^ 2) / 4", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_6_16", "split": "valid", "informal_prefix": "/-- Suppose $U$ is a subspace of $V$. Prove that $U^{\\perp}=\\{0\\}$ if and only if $U=V$-/\n", "formal_statement": "theorem exercise_6_16 {K V : Type*} [RCLike K] [NormedAddCommGroup V] [InnerProductSpace K V]\n {U : Submodule K V} :\n U.orthogonal = ⊥ ↔ U = ⊤ :=", "goal": "K : Type u_1\nV : Type u_2\ninst✝² : RCLike K\ninst✝¹ : NormedAddCommGroup V\ninst✝ : InnerProductSpace K V\nU : Submodule K V\n⊢ Uᗮ = ⊥ ↔ U = ⊤", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_6", "split": "valid", "informal_prefix": "/-- Prove that if $T \\in \\mathcal{L}(V)$ is normal, then $\\operatorname{range} T=\\operatorname{range} T^{*}.$-/\n", "formal_statement": "theorem exercise_7_6 {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V]\n [FiniteDimensional ℂ V] (T : End ℂ V)\n (hT : T * adjoint T = adjoint T * T) :\n range T = range (adjoint T) :=", "goal": "V : Type u_1\ninst✝² : NormedAddCommGroup V\ninst✝¹ : InnerProductSpace ℂ V\ninst✝ : FiniteDimensional ℂ V\nT : End ℂ V\nhT : T * adjoint T = adjoint T * T\n⊢ range T = range (adjoint T)", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_10", "split": "valid", "informal_prefix": "/-- Suppose $V$ is a complex inner-product space and $T \\in \\mathcal{L}(V)$ is a normal operator such that $T^{9}=T^{8}$. Prove that $T$ is self-adjoint and $T^{2}=T$.-/\n", "formal_statement": "theorem exercise_7_10 {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V]\n [FiniteDimensional ℂ V] (T : End ℂ V)\n (hT : T * adjoint T = adjoint T * T) (hT1 : T^9 = T^8) :\n IsSelfAdjoint T ∧ T^2 = T :=", "goal": "V : Type u_1\ninst✝² : NormedAddCommGroup V\ninst✝¹ : InnerProductSpace ℂ V\ninst✝ : FiniteDimensional ℂ V\nT : End ℂ V\nhT : T * adjoint T = adjoint T * T\nhT1 : T ^ 9 = T ^ 8\n⊢ IsSelfAdjoint T ∧ T ^ 2 = T", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_14", "split": "valid", "informal_prefix": "/-- Suppose $T \\in \\mathcal{L}(V)$ is self-adjoint, $\\lambda \\in \\mathbf{F}$, and $\\epsilon>0$. Prove that if there exists $v \\in V$ such that $\\|v\\|=1$ and $\\|T v-\\lambda v\\|<\\epsilon,$ then $T$ has an eigenvalue $\\lambda^{\\prime}$ such that $\\left|\\lambda-\\lambda^{\\prime}\\right|<\\epsilon$.-/\n", "formal_statement": "theorem exercise_7_14 {𝕜 V : Type*} [RCLike 𝕜] [NormedAddCommGroup V]\n [InnerProductSpace 𝕜 V] [FiniteDimensional 𝕜 V]\n {T : Module.End 𝕜 V} (hT : IsSelfAdjoint T)\n {l : 𝕜} {ε : ℝ} (he : ε > 0) : ∃ v : V, ‖v‖= 1 ∧ (‖T v - l • v‖ < ε →\n (∃ l' : T.Eigenvalues, ‖l - l'‖ < ε)) :=", "goal": "𝕜 : Type u_1\nV : Type u_2\ninst✝³ : RCLike 𝕜\ninst✝² : NormedAddCommGroup V\ninst✝¹ : InnerProductSpace 𝕜 V\ninst✝ : FiniteDimensional 𝕜 V\nT : End 𝕜 V\nhT : IsSelfAdjoint T\nl : 𝕜\nε : ℝ\nhe : ε > 0\n⊢ ∃ v, ‖v‖ = 1 ∧ (‖T v - l • v‖ < ε → ∃ l', ‖l - ↑T l'‖ < ε)", "header": "import Mathlib\n\nopen Fintype Complex Polynomial LinearMap FiniteDimensional Module Module.End\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_3", "split": "valid", "informal_prefix": "/-- Prove that the addition of residue classes $\\mathbb{Z}/n\\mathbb{Z}$ is associative.-/\n", "formal_statement": "theorem exercise_1_1_3 (n : ℤ) :\n ∀ (a b c : ℤ), (a+b)+c ≡ a+(b+c) [ZMOD n] :=", "goal": "n : ℤ\n⊢ ∀ (a b c : ℤ), a + b + c ≡ a + (b + c) [ZMOD n]", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_5", "split": "valid", "informal_prefix": "/-- Prove that for all $n>1$ that $\\mathbb{Z}/n\\mathbb{Z}$ is not a group under multiplication of residue classes.-/\n", "formal_statement": "theorem exercise_1_1_5 (n : ℕ) (hn : 1 < n) :\n IsEmpty (Group (ZMod n)) :=", "goal": "n : ℕ\nhn : 1 < n\n⊢ IsEmpty (Group (ZMod n))", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_16", "split": "valid", "informal_prefix": "/-- Let $x$ be an element of $G$. Prove that $x^2=1$ if and only if $|x|$ is either $1$ or $2$.-/\n", "formal_statement": "theorem exercise_1_1_16 {G : Type*} [Group G]\n (x : G) (hx : x ^ 2 = 1) :\n orderOf x = 1 ∨ orderOf x = 2 :=", "goal": "G : Type u_1\ninst✝ : Group G\nx : G\nhx : x ^ 2 = 1\n⊢ orderOf x = 1 ∨ orderOf x = 2", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_18", "split": "valid", "informal_prefix": "/-- Let $x$ and $y$ be elements of $G$. Prove that $xy=yx$ if and only if $y^{-1}xy=x$ if and only if $x^{-1}y^{-1}xy=1$.-/\n", "formal_statement": "theorem exercise_1_1_18 {G : Type*} [Group G]\n (x y : G) : (x * y = y * x ↔ y⁻¹ * x * y = x) ↔ (x⁻¹ * y⁻¹ * x * y = 1) :=", "goal": "G : Type u_1\ninst✝ : Group G\nx y : G\n⊢ (x * y = y * x ↔ y⁻¹ * x * y = x) ↔ x⁻¹ * y⁻¹ * x * y = 1", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_22a", "split": "valid", "informal_prefix": "/-- If $x$ and $g$ are elements of the group $G$, prove that $|x|=\\left|g^{-1} x g\\right|$.-/\n", "formal_statement": "theorem exercise_1_1_22a {G : Type*} [Group G] (x g : G) :\n orderOf x = orderOf (g⁻¹ * x * g) :=", "goal": "G : Type u_1\ninst✝ : Group G\nx g : G\n⊢ orderOf x = orderOf (g⁻¹ * x * g)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_25", "split": "valid", "informal_prefix": "/-- Prove that if $x^{2}=1$ for all $x \\in G$ then $G$ is abelian.-/\n", "formal_statement": "theorem exercise_1_1_25 {G : Type*} [Group G]\n (h : ∀ x : G, x ^ 2 = 1) : ∀ a b : G, a*b = b*a :=", "goal": "G : Type u_1\ninst✝ : Group G\nh : ∀ (x : G), x ^ 2 = 1\n⊢ ∀ (a b : G), a * b = b * a", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_1_34", "split": "valid", "informal_prefix": "/-- If $x$ is an element of infinite order in $G$, prove that the elements $x^{n}, n \\in \\mathbb{Z}$ are all distinct.-/\n", "formal_statement": "theorem exercise_1_1_34 {G : Type*} [Group G] {x : G}\n (hx_inf : orderOf x = 0) (n m : ℤ) :\n x ^ n ≠ x ^ m :=", "goal": "G : Type u_1\ninst✝ : Group G\nx : G\nhx_inf : orderOf x = 0\nn m : ℤ\n⊢ x ^ n ≠ x ^ m", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_6_4", "split": "valid", "informal_prefix": "/-- Prove that the multiplicative groups $\\mathbb{R}-\\{0\\}$ and $\\mathbb{C}-\\{0\\}$ are not isomorphic.-/\n", "formal_statement": "theorem exercise_1_6_4 :\n IsEmpty (Multiplicative ℝ ≃* Multiplicative ℂ) :=", "goal": "⊢ IsEmpty (Multiplicative ℝ ≃* Multiplicative ℂ)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_6_17", "split": "valid", "informal_prefix": "/-- Let $G$ be any group. Prove that the map from $G$ to itself defined by $g \\mapsto g^{-1}$ is a homomorphism if and only if $G$ is abelian.-/\n", "formal_statement": "theorem exercise_1_6_17 {G : Type*} [Group G] (f : G → G)\n (hf : f = λ g => g⁻¹) :\n ∀ x y : G, f x * f y = f (x*y) ↔ ∀ x y : G, x*y = y*x :=", "goal": "G : Type u_1\ninst✝ : Group G\nf : G → G\nhf : f = fun g => g⁻¹\n⊢ ∀ (x y : G), f x * f y = f (x * y) ↔ ∀ (x y : G), x * y = y * x", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_1_5", "split": "valid", "informal_prefix": "/-- Prove that $G$ cannot have a subgroup $H$ with $|H|=n-1$, where $n=|G|>2$.-/\n", "formal_statement": "theorem exercise_2_1_5 {G : Type*} [Group G] [Fintype G]\n (hG : card G > 2) (H : Subgroup G) [Fintype H] :\n card H ≠ card G - 1 :=", "goal": "G : Type u_1\ninst✝² : Group G\ninst✝¹ : Fintype G\nhG : card G > 2\nH : Subgroup G\ninst✝ : Fintype ↥H\n⊢ card ↥H ≠ card G - 1", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_4_4", "split": "valid", "informal_prefix": "/-- Prove that if $H$ is a subgroup of $G$ then $H$ is generated by the set $H-\\{1\\}$.-/\n", "formal_statement": "theorem exercise_2_4_4 {G : Type*} [Group G] (H : Subgroup G) :\n closure ((H : Set G) \\ {1}) = ⊤ :=", "goal": "G : Type u_1\ninst✝ : Group G\nH : Subgroup G\n⊢ Subgroup.closure (↑H \\ {1}) = ⊤", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_4_16b", "split": "valid", "informal_prefix": "/-- Show that the subgroup of all rotations in a dihedral group is a maximal subgroup.-/\n", "formal_statement": "theorem exercise_2_4_16b {n : ℕ} {hn : n ≠ 0}\n {R : Subgroup (DihedralGroup n)}\n (hR : R = Subgroup.closure {DihedralGroup.r 1}) :\n R ≠ ⊤ ∧\n ∀ K : Subgroup (DihedralGroup n), R ≤ K → K = R ∨ K = ⊤ :=", "goal": "n : ℕ\nhn : n ≠ 0\nR : Subgroup (DihedralGroup n)\nhR : R = Subgroup.closure {DihedralGroup.r 1}\n⊢ R ≠ ⊤ ∧ ∀ (K : Subgroup (DihedralGroup n)), R ≤ K → K = R ∨ K = ⊤", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_1_3a", "split": "valid", "informal_prefix": "/-- Let $A$ be an abelian group and let $B$ be a subgroup of $A$. Prove that $A / B$ is abelian.-/\n", "formal_statement": "theorem exercise_3_1_3a {A : Type*} [CommGroup A] (B : Subgroup A) :\n ∀ a b : A ⧸ B, a*b = b*a :=", "goal": "A : Type u_1\ninst✝ : CommGroup A\nB : Subgroup A\n⊢ ∀ (a b : A ⧸ B), a * b = b * a", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_1_22b", "split": "valid", "informal_prefix": "/-- Prove that the intersection of an arbitrary nonempty collection of normal subgroups of a group is a normal subgroup (do not assume the collection is countable).-/\n", "formal_statement": "theorem exercise_3_1_22b {G : Type*} [Group G] (I : Type*)\n (H : I → Subgroup G) (hH : ∀ i : I, Normal (H i)) :\n Normal (⨅ (i : I), H i) :=", "goal": "G : Type u_1\ninst✝ : Group G\nI : Type u_2\nH : I → Subgroup G\nhH : ∀ (i : I), (H i).Normal\n⊢ (⨅ i, H i).Normal", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_2_11", "split": "valid", "informal_prefix": "/-- Let $H \\leq K \\leq G$. Prove that $|G: H|=|G: K| \\cdot|K: H|$ (do not assume $G$ is finite).-/\n", "formal_statement": "theorem exercise_3_2_11 {G : Type*} [Group G] {H K : Subgroup G}\n (hHK : H ≤ K) :\n H.index = K.index * H.relindex K :=", "goal": "G : Type u_1\ninst✝ : Group G\nH K : Subgroup G\nhHK : H ≤ K\n⊢ H.index = K.index * H.relindex K", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_2_21a", "split": "valid", "informal_prefix": "/-- Prove that $\\mathbb{Q}$ has no proper subgroups of finite index.-/\n", "formal_statement": "theorem exercise_3_2_21a (H : AddSubgroup ℚ) (hH : H ≠ ⊤) : H.index = 0 :=", "goal": "H : AddSubgroup ℚ\nhH : H ≠ ⊤\n⊢ H.index = 0", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_4_1", "split": "valid", "informal_prefix": "/-- Prove that if $G$ is an abelian simple group then $G \\cong Z_{p}$ for some prime $p$ (do not assume $G$ is a finite group).-/\n", "formal_statement": "theorem exercise_3_4_1 (G : Type*) [CommGroup G] [IsSimpleGroup G] :\n IsCyclic G ∧ ∃ G_fin : Fintype G, Nat.Prime (@card G G_fin) :=", "goal": "G : Type u_1\ninst✝¹ : CommGroup G\ninst✝ : IsSimpleGroup G\n⊢ IsCyclic G ∧ ∃ G_fin, (card G).Prime", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_4_5a", "split": "valid", "informal_prefix": "/-- Prove that subgroups of a solvable group are solvable.-/\n", "formal_statement": "theorem exercise_3_4_5a {G : Type*} [Group G]\n (H : Subgroup G) [IsSolvable G] : IsSolvable H :=", "goal": "G : Type u_1\ninst✝¹ : Group G\nH : Subgroup G\ninst✝ : IsSolvable G\n⊢ IsSolvable ↥H", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_4_11", "split": "valid", "informal_prefix": "/-- Prove that if $H$ is a nontrivial normal subgroup of the solvable group $G$ then there is a nontrivial subgroup $A$ of $H$ with $A \\unlhd G$ and $A$ abelian.-/\n", "formal_statement": "theorem exercise_3_4_11 {G : Type*} [Group G] [IsSolvable G]\n {H : Subgroup G} (hH : H ≠ ⊥) [H.Normal] :\n ∃ A ≤ H, A.Normal ∧ ∀ a b : A, a*b = b*a :=", "goal": "G : Type u_1\ninst✝² : Group G\ninst✝¹ : IsSolvable G\nH : Subgroup G\nhH : H ≠ ⊥\ninst✝ : H.Normal\n⊢ ∃ A ≤ H, A.Normal ∧ ∀ (a b : ↥A), a * b = b * a", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_3_26", "split": "valid", "informal_prefix": "/-- Let $G$ be a transitive permutation group on the finite set $A$ with $|A|>1$. Show that there is some $\\sigma \\in G$ such that $\\sigma(a) \\neq a$ for all $a \\in A$.-/\n", "formal_statement": "theorem exercise_4_3_26 {α : Type*} [Fintype α] (ha : card α > 1)\n (h_tran : ∀ a b: α, ∃ σ : Equiv.Perm α, σ a = b) :\n ∃ σ : Equiv.Perm α, ∀ a : α, σ a ≠ a :=", "goal": "α : Type u_1\ninst✝ : Fintype α\nha : card α > 1\nh_tran : ∀ (a b : α), ∃ σ, σ a = b\n⊢ ∃ σ, ∀ (a : α), σ a ≠ a", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_2_14", "split": "valid", "informal_prefix": "/-- Let $G$ be a finite group of composite order $n$ with the property that $G$ has a subgroup of order $k$ for each positive integer $k$ dividing $n$. Prove that $G$ is not simple.-/\n", "formal_statement": "theorem exercise_4_2_14 {G : Type*} [Fintype G] [Group G]\n (hG : ¬ (card G).Prime) (hG1 : ∀ k : ℕ, k ∣ card G →\n ∃ (H : Subgroup G) (fH : Fintype H), @card H fH = k) :\n ¬ IsSimpleGroup G :=", "goal": "G : Type u_1\ninst✝¹ : Fintype G\ninst✝ : Group G\nhG : ¬(card G).Prime\nhG1 : ∀ (k : ℕ), k ∣ card G → ∃ H fH, card ↥H = k\n⊢ ¬IsSimpleGroup G", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_4_6a", "split": "valid", "informal_prefix": "/-- Prove that characteristic subgroups are normal.-/\n", "formal_statement": "theorem exercise_4_4_6a {G : Type*} [Group G] (H : Subgroup G)\n [Characteristic H] : Normal H :=", "goal": "G : Type u_1\ninst✝¹ : Group G\nH : Subgroup G\ninst✝ : H.Characteristic\n⊢ H.Normal", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_4_7", "split": "valid", "informal_prefix": "/-- If $H$ is the unique subgroup of a given order in a group $G$ prove $H$ is characteristic in $G$.-/\n", "formal_statement": "theorem exercise_4_4_7 {G : Type*} [Group G] {H : Subgroup G} [Fintype H]\n (hH : ∀ (K : Subgroup G) (fK : Fintype K), card H = @card K fK → H = K) :\n H.Characteristic :=", "goal": "G : Type u_1\ninst✝¹ : Group G\nH : Subgroup G\ninst✝ : Fintype ↥H\nhH : ∀ (K : Subgroup G) (fK : Fintype ↥K), card ↥H = card ↥K → H = K\n⊢ H.Characteristic", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_1a", "split": "valid", "informal_prefix": "/-- Prove that if $P \\in \\operatorname{Syl}_{p}(G)$ and $H$ is a subgroup of $G$ containing $P$ then $P \\in \\operatorname{Syl}_{p}(H)$.-/\n", "formal_statement": "theorem exercise_4_5_1a {p : ℕ} {G : Type*} [Group G]\n {P : Subgroup G} (hP : IsPGroup p P) (H : Subgroup G)\n (hH : P ≤ H) : IsPGroup p H :=", "goal": "p : ℕ\nG : Type u_1\ninst✝ : Group G\nP : Subgroup G\nhP : IsPGroup p ↥P\nH : Subgroup G\nhH : P ≤ H\n⊢ IsPGroup p ↥H", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_14", "split": "valid", "informal_prefix": "/-- Prove that a group of order 312 has a normal Sylow $p$-subgroup for some prime $p$ dividing its order.-/\n", "formal_statement": "theorem exercise_4_5_14 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 312) :\n ∃ (p : ℕ) (P : Sylow p G), P.Normal :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhG : card G = 312\n⊢ ∃ p P, (↑P).Normal", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_16", "split": "valid", "informal_prefix": "/-- Let $|G|=p q r$, where $p, q$ and $r$ are primes with $p<q<r$. Prove that $G$ has a normal Sylow subgroup for either $p, q$ or $r$.-/\n", "formal_statement": "theorem exercise_4_5_16 {p q r : ℕ} {G : Type*} [Group G]\n [Fintype G] (hpqr : p < q ∧ q < r)\n (hpqr1 : p.Prime ∧ q.Prime ∧ r.Prime)(hG : card G = p*q*r) :\n Nonempty (Sylow p G) ∨ Nonempty (Sylow q G) ∨ Nonempty (Sylow r G) :=", "goal": "p q r : ℕ\nG : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhpqr : p < q ∧ q < r\nhpqr1 : p.Prime ∧ q.Prime ∧ r.Prime\nhG : card G = p * q * r\n⊢ Nonempty (Sylow p G) ∨ Nonempty (Sylow q G) ∨ Nonempty (Sylow r G)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_18", "split": "valid", "informal_prefix": "/-- Prove that a group of order 200 has a normal Sylow 5-subgroup.-/\n", "formal_statement": "theorem exercise_4_5_18 {G : Type*} [Fintype G] [Group G]\n (hG : card G = 200) :\n ∃ N : Sylow 5 G, N.Normal :=", "goal": "G : Type u_1\ninst✝¹ : Fintype G\ninst✝ : Group G\nhG : card G = 200\n⊢ ∃ N, (↑N).Normal", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_20", "split": "valid", "informal_prefix": "/-- Prove that if $|G|=1365$ then $G$ is not simple.-/\n", "formal_statement": "theorem exercise_4_5_20 {G : Type*} [Fintype G] [Group G]\n (hG : card G = 1365) : ¬ IsSimpleGroup G :=", "goal": "G : Type u_1\ninst✝¹ : Fintype G\ninst✝ : Group G\nhG : card G = 1365\n⊢ ¬IsSimpleGroup G", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_22", "split": "valid", "informal_prefix": "/-- Prove that if $|G|=132$ then $G$ is not simple.-/\n", "formal_statement": "theorem exercise_4_5_22 {G : Type*} [Fintype G] [Group G]\n (hG : card G = 132) : ¬ IsSimpleGroup G :=", "goal": "G : Type u_1\ninst✝¹ : Fintype G\ninst✝ : Group G\nhG : card G = 132\n⊢ ¬IsSimpleGroup G", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5_28", "split": "valid", "informal_prefix": "/-- Let $G$ be a group of order 105. Prove that if a Sylow 3-subgroup of $G$ is normal then $G$ is abelian.-/\n", "formal_statement": "def exercise_4_5_28 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 105) (P : Sylow 3 G) [hP : P.Normal] :\n CommGroup G :=", "goal": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : Fintype G\nhG : card G = 105\nP : Sylow 3 G\nhP : (↑P).Normal\n⊢ CommGroup G", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_4_2", "split": "valid", "informal_prefix": "/-- Prove that a subgroup $H$ of $G$ is normal if and only if $[G, H] \\leq H$.-/\n", "formal_statement": "theorem exercise_5_4_2 {G : Type*} [Group G] (H : Subgroup G) :\n H.Normal ↔ ⁅(⊤ : Subgroup G), H⁆ ≤ H :=", "goal": "G : Type u_1\ninst✝ : Group G\nH : Subgroup G\n⊢ H.Normal ↔ ⁅⊤, H⁆ ≤ H", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_1_11", "split": "valid", "informal_prefix": "/-- Prove that if $R$ is an integral domain and $x^{2}=1$ for some $x \\in R$ then $x=\\pm 1$.-/\n", "formal_statement": "theorem exercise_7_1_11 {R : Type*} [Ring R] [IsDomain R]\n {x : R} (hx : x^2 = 1) : x = 1 ∨ x = -1 :=", "goal": "R : Type u_1\ninst✝¹ : Ring R\ninst✝ : IsDomain R\nx : R\nhx : x ^ 2 = 1\n⊢ x = 1 ∨ x = -1", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_1_15", "split": "valid", "informal_prefix": "/-- A ring $R$ is called a Boolean ring if $a^{2}=a$ for all $a \\in R$. Prove that every Boolean ring is commutative.-/\n", "formal_statement": "def exercise_7_1_15 {R : Type*} [Ring R] (hR : ∀ a : R, a^2 = a) :\n CommRing R :=", "goal": "R : Type u_1\ninst✝ : Ring R\nhR : ∀ (a : R), a ^ 2 = a\n⊢ CommRing R", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_2_12", "split": "valid", "informal_prefix": "/-- Let $G=\\left\\{g_{1}, \\ldots, g_{n}\\right\\}$ be a finite group. Prove that the element $N=g_{1}+g_{2}+\\ldots+g_{n}$ is in the center of the group ring $R G$.-/\n", "formal_statement": "theorem exercise_7_2_12 {R G : Type*} [Ring R] [Group G] [Fintype G] :\n ∑ g : G, MonoidAlgebra.of R G g ∈ center (MonoidAlgebra R G) :=", "goal": "R : Type u_1\nG : Type u_2\ninst✝² : Ring R\ninst✝¹ : Group G\ninst✝ : Fintype G\n⊢ ∑ g : G, (MonoidAlgebra.of R G) g ∈ Set.center (MonoidAlgebra R G)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_7_3_37", "split": "valid", "informal_prefix": "/-- An ideal $N$ is called nilpotent if $N^{n}$ is the zero ideal for some $n \\geq 1$. Prove that the ideal $p \\mathbb{Z} / p^{m} \\mathbb{Z}$ is a nilpotent ideal in the ring $\\mathbb{Z} / p^{m} \\mathbb{Z}$.-/\n", "formal_statement": "theorem exercise_7_3_37 {p m : ℕ} (hp : p.Prime) :\n IsNilpotent (span ({↑p} : Set $ ZMod $ p^m) : Ideal $ ZMod $ p^m) :=", "goal": "p m : ℕ\nhp : p.Prime\n⊢ IsNilpotent (span {↑p})", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_8_1_12", "split": "valid", "informal_prefix": "/-- Let $N$ be a positive integer. Let $M$ be an integer relatively prime to $N$ and let $d$ be an integer relatively prime to $\\varphi(N)$, where $\\varphi$ denotes Euler's $\\varphi$-function. Prove that if $M_{1} \\equiv M^{d} \\pmod N$ then $M \\equiv M_{1}^{d^{\\prime}} \\pmod N$ where $d^{\\prime}$ is the inverse of $d \\bmod \\varphi(N)$: $d d^{\\prime} \\equiv 1 \\pmod {\\varphi(N)}$.-/\n", "formal_statement": "theorem exercise_8_1_12 {N : ℕ} (hN : N > 0) {M M': ℤ} {d : ℕ}\n (hMN : M.gcd N = 1) (hMd : d.gcd N.totient = 1)\n (hM' : M' ≡ M^d [ZMOD N]) :\n ∃ d' : ℕ, d' * d ≡ 1 [ZMOD N.totient] ∧\n M ≡ M'^d' [ZMOD N] :=", "goal": "N : ℕ\nhN : N > 0\nM M' : ℤ\nd : ℕ\nhMN : M.gcd ↑N = 1\nhMd : d.gcd N.totient = 1\nhM' : M' ≡ M ^ d [ZMOD ↑N]\n⊢ ∃ d', ↑d' * ↑d ≡ 1 [ZMOD ↑N.totient] ∧ M ≡ M' ^ d' [ZMOD ↑N]", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_8_3_4", "split": "valid", "informal_prefix": "/-- Prove that if an integer is the sum of two rational squares, then it is the sum of two integer squares.-/\n", "formal_statement": "theorem exercise_8_3_4 {R : Type*} {n : ℤ} {r s : ℚ}\n (h : r^2 + s^2 = n) :\n ∃ a b : ℤ, a^2 + b^2 = n :=", "goal": "R : Type u_1\nn : ℤ\nr s : ℚ\nh : r ^ 2 + s ^ 2 = ↑n\n⊢ ∃ a b, a ^ 2 + b ^ 2 = n", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_8_3_6a", "split": "valid", "informal_prefix": "/-- Prove that the quotient ring $\\mathbb{Z}[i] /(1+i)$ is a field of order 2.-/\n", "formal_statement": "theorem exercise_8_3_6a {R : Type} [Ring R]\n (hR : R = (GaussianInt ⧸ span ({⟨0, 1⟩} : Set GaussianInt))) :\n IsField R ∧ ∃ finR : Fintype R, @card R finR = 2 :=", "goal": "R : Type\ninst✝ : Ring R\nhR : R = (GaussianInt ⧸ span {{ re := 0, im := 1 }})\n⊢ IsField R ∧ ∃ finR, card R = 2", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_9_1_6", "split": "valid", "informal_prefix": "/-- Prove that $(x, y)$ is not a principal ideal in $\\mathbb{Q}[x, y]$.-/\n", "formal_statement": "theorem exercise_9_1_6 : ¬ Submodule.IsPrincipal\n (span ({MvPolynomial.X 0, MvPolynomial.X 1} : Set (MvPolynomial (Fin 2) ℚ))) :=", "goal": "⊢ ¬Submodule.IsPrincipal (span {MvPolynomial.X 0, MvPolynomial.X 1})", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_9_3_2", "split": "valid", "informal_prefix": "/-- Prove that if $f(x)$ and $g(x)$ are polynomials with rational coefficients whose product $f(x) g(x)$ has integer coefficients, then the product of any coefficient of $g(x)$ with any coefficient of $f(x)$ is an integer.-/\n", "formal_statement": "theorem exercise_9_3_2 {f g : Polynomial ℚ} (i j : ℕ)\n (hfg : ∀ n : ℕ, ∃ a : ℤ, (f*g).coeff = a) :\n ∃ a : ℤ, f.coeff i * g.coeff j = a :=", "goal": "f g : ℚ[X]\ni j : ℕ\nhfg : ℕ → ∃ a, (f * g).coeff = ↑a\n⊢ ∃ a, f.coeff i * g.coeff j = ↑a", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_9_4_2b", "split": "valid", "informal_prefix": "/-- Prove that $x^6+30x^5-15x^3 + 6x-120$ is irreducible in $\\mathbb{Z}[x]$.-/\n", "formal_statement": "theorem exercise_9_4_2b : Irreducible\n (X^6 + 30*X^5 - 15*X^3 + 6*X - 120 : Polynomial ℤ) :=", "goal": "⊢ Irreducible (X ^ 6 + 30 * X ^ 5 - 15 * X ^ 3 + 6 * X - 120)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_9_4_2d", "split": "valid", "informal_prefix": "/-- Prove that $\\frac{(x+2)^p-2^p}{x}$, where $p$ is an odd prime, is irreducible in $\\mathbb{Z}[x]$.-/\n", "formal_statement": "theorem exercise_9_4_2d {p : ℕ} (hp : p.Prime ∧ p > 2)\n {f : Polynomial ℤ} (hf : f = (X + 2)^p):\n Irreducible (∑ n in (f.support \\ {0}), (f.coeff n : Polynomial ℤ) * X ^ (n-1) :\n Polynomial ℤ) :=", "goal": "p : ℕ\nhp : p.Prime ∧ p > 2\nf : ℤ[X]\nhf : f = (X + 2) ^ p\n⊢ Irreducible (∑ n ∈ f.support \\ {0}, ↑(f.coeff n) * X ^ (n - 1))", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_9_4_11", "split": "valid", "informal_prefix": "/-- Prove that $x^2+y^2-1$ is irreducible in $\\mathbb{Q}[x,y]$.-/\n", "formal_statement": "theorem exercise_9_4_11 :\n Irreducible ((MvPolynomial.X 0)^2 + (MvPolynomial.X 1)^2 - 1 : MvPolynomial (Fin 2) ℚ) :=", "goal": "⊢ Irreducible (MvPolynomial.X 0 ^ 2 + MvPolynomial.X 1 ^ 2 - 1)", "header": "import Mathlib\n\nopen Fintype Subgroup Set Polynomial Ideal\nopen scoped BigOperators\n\n"}
{"name": "exercise_13_1", "split": "valid", "informal_prefix": "/-- Let $X$ be a topological space; let $A$ be a subset of $X$. Suppose that for each $x \\in A$ there is an open set $U$ containing $x$ such that $U \\subset A$. Show that $A$ is open in $X$.-/\n", "formal_statement": "theorem exercise_13_1 (X : Type*) [TopologicalSpace X] (A : Set X)\n (h1 : ∀ x ∈ A, ∃ U : Set X, x ∈ U ∧ IsOpen U ∧ U ⊆ A) :\n IsOpen A :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nA : Set X\nh1 : ∀ x ∈ A, ∃ U, x ∈ U ∧ IsOpen U ∧ U ⊆ A\n⊢ IsOpen A", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_13_4a1", "split": "valid", "informal_prefix": "/-- If $\\mathcal{T}_\\alpha$ is a family of topologies on $X$, show that $\\bigcap \\mathcal{T}_\\alpha$ is a topology on $X$.-/\n", "formal_statement": "theorem exercise_13_4a1 (X I : Type*) (T : I → Set (Set X)) (h : ∀ i, is_topology X (T i)) :\n is_topology X (⋂ i : I, T i) :=", "goal": "X : Type u_1\nI : Type u_2\nT : I → Set (Set X)\nh : ∀ (i : I), is_topology X (T i)\n⊢ is_topology X (⋂ i, T i)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef is_topology (X : Type*) (T : Set (Set X)) :=\n univ ∈ T ∧\n (∀ s t, s ∈ T → t ∈ T → s ∩ t ∈ T) ∧\n (∀s, (∀t ∈ s, t ∈ T) → sUnion s ∈ T)\n\n"}
{"name": "exercise_13_4b1", "split": "valid", "informal_prefix": "/-- Let $\\mathcal{T}_\\alpha$ be a family of topologies on $X$. Show that there is a unique smallest topology on $X$ containing all the collections $\\mathcal{T}_\\alpha$.-/\n", "formal_statement": "theorem exercise_13_4b1 (X I : Type*) (T : I → Set (Set X)) (h : ∀ i, is_topology X (T i)) :\n ∃! T', is_topology X T' ∧ (∀ i, T i ⊆ T') ∧\n ∀ T'', is_topology X T'' → (∀ i, T i ⊆ T'') → T'' ⊆ T' :=", "goal": "X : Type u_1\nI : Type u_2\nT : I → Set (Set X)\nh : ∀ (i : I), is_topology X (T i)\n⊢ ∃! T',\n is_topology X T' ∧\n (∀ (i : I), T i ⊆ T') ∧ ∀ (T'' : Set (Set X)), is_topology X T'' → (∀ (i : I), T i ⊆ T'') → T'' ⊆ T'", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef is_topology (X : Type*) (T : Set (Set X)) :=\n univ ∈ T ∧\n (∀ s t, s ∈ T → t ∈ T → s ∩ t ∈ T) ∧\n (∀s, (∀t ∈ s, t ∈ T) → sUnion s ∈ T)\n\n"}
{"name": "exercise_13_5a", "split": "valid", "informal_prefix": "/-- Show that if $\\mathcal{A}$ is a basis for a topology on $X$, then the topology generated by $\\mathcal{A}$ equals the intersection of all topologies on $X$ that contain $\\mathcal{A}$.-/\n", "formal_statement": "theorem exercise_13_5a {X : Type*}\n [TopologicalSpace X] (A : Set (Set X)) (hA : IsTopologicalBasis A) :\n generateFrom A = generateFrom (sInter {T | is_topology X T ∧ A ⊆ T}) :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nA : Set (Set X)\nhA : IsTopologicalBasis A\n⊢ generateFrom A = generateFrom (⋂₀ {T | is_topology X T ∧ A ⊆ T})", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef is_topology (X : Type*) (T : Set (Set X)) :=\n univ ∈ T ∧\n (∀ s t, s ∈ T → t ∈ T → s ∩ t ∈ T) ∧\n (∀s, (∀t ∈ s, t ∈ T) → sUnion s ∈ T)\n\n"}
{"name": "exercise_13_6", "split": "valid", "informal_prefix": "/-- Show that the lower limit topology $\\mathbb{R}_l$ and $K$-topology $\\mathbb{R}_K$ are not comparable.-/\n", "formal_statement": "theorem exercise_13_6 :\n ¬ (∀ U, Rl.IsOpen U → K_topology.IsOpen U) ∧ ¬ (∀ U, K_topology.IsOpen U → Rl.IsOpen U) :=", "goal": "⊢ (¬∀ (U : Set ℝ), TopologicalSpace.IsOpen U → TopologicalSpace.IsOpen U) ∧\n ¬∀ (U : Set ℝ), TopologicalSpace.IsOpen U → TopologicalSpace.IsOpen U", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef lower_limit_topology (X : Type) [Preorder X] :=\n generateFrom {S : Set X | ∃ a b, a < b ∧ S = Ico a b}\n\ndef Rl := lower_limit_topology ℝ\n\ndef K : Set ℝ := {r | ∃ n : ℕ, r = 1 / n}\n\ndef K_topology := generateFrom\n ({S : Set ℝ | ∃ a b, a < b ∧ S = Ioo a b} ∪ {S : Set ℝ | ∃ a b, a < b ∧ S = Ioo a b \\ K})\n\n"}
{"name": "exercise_13_8b", "split": "valid", "informal_prefix": "/-- Show that the collection $\\{(a,b) \\mid a < b, a \\text{ and } b \\text{ rational}\\}$ is a basis that generates a topology different from the lower limit topology on $\\mathbb{R}$.-/\n", "formal_statement": "theorem exercise_13_8b :\n (generateFrom {S : Set ℝ | ∃ a b : ℚ, a < b ∧ S = Ico ↑a ↑b}).IsOpen ≠\n (lower_limit_topology ℝ).IsOpen :=", "goal": "⊢ TopologicalSpace.IsOpen ≠ TopologicalSpace.IsOpen", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef lower_limit_topology (X : Type) [Preorder X] :=\n generateFrom {S : Set X | ∃ a b, a < b ∧ S = Ico a b}\n\n"}
{"name": "exercise_16_4", "split": "valid", "informal_prefix": "/-- A map $f: X \\rightarrow Y$ is said to be an open map if for every open set $U$ of $X$, the set $f(U)$ is open in $Y$. Show that $\\pi_{1}: X \\times Y \\rightarrow X$ and $\\pi_{2}: X \\times Y \\rightarrow Y$ are open maps.-/\n", "formal_statement": "theorem exercise_16_4 {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]\n (π₁ : X × Y → X)\n (π₂ : X × Y → Y)\n (h₁ : π₁ = Prod.fst)\n (h₂ : π₂ = Prod.snd) :\n IsOpenMap π₁ ∧ IsOpenMap π₂ :=", "goal": "X : Type u_1\nY : Type u_2\ninst✝¹ : TopologicalSpace X\ninst✝ : TopologicalSpace Y\nπ₁ : X × Y → X\nπ₂ : X × Y → Y\nh₁ : π₁ = Prod.fst\nh₂ : π₂ = Prod.snd\n⊢ IsOpenMap π₁ ∧ IsOpenMap π₂", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_17_4", "split": "valid", "informal_prefix": "/-- Show that if $U$ is open in $X$ and $A$ is closed in $X$, then $U-A$ is open in $X$, and $A-U$ is closed in $X$.-/\n", "formal_statement": "theorem exercise_17_4 {X : Type*} [TopologicalSpace X]\n (U A : Set X) (hU : IsOpen U) (hA : IsClosed A) :\n IsOpen (U \\ A) ∧ IsClosed (A \\ U) :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nU A : Set X\nhU : IsOpen U\nhA : IsClosed A\n⊢ IsOpen (U \\ A) ∧ IsClosed (A \\ U)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_18_8b", "split": "valid", "informal_prefix": "/-- Let $Y$ be an ordered set in the order topology. Let $f, g: X \\rightarrow Y$ be continuous. Let $h: X \\rightarrow Y$ be the function $h(x)=\\min \\{f(x), g(x)\\}.$ Show that $h$ is continuous.-/\n", "formal_statement": "theorem exercise_18_8b {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]\n [LinearOrder Y] [OrderTopology Y] {f g : X → Y}\n (hf : Continuous f) (hg : Continuous g) :\n Continuous (λ x => min (f x) (g x)) :=", "goal": "X : Type u_1\nY : Type u_2\ninst✝³ : TopologicalSpace X\ninst✝² : TopologicalSpace Y\ninst✝¹ : LinearOrder Y\ninst✝ : OrderTopology Y\nf g : X → Y\nhf : Continuous f\nhg : Continuous g\n⊢ Continuous fun x => min (f x) (g x)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_19_6a", "split": "valid", "informal_prefix": "/-- Let $\\mathbf{x}_1, \\mathbf{x}_2, \\ldots$ be a sequence of the points of the product space $\\prod X_\\alpha$. Show that this sequence converges to the point $\\mathbf{x}$ if and only if the sequence $\\pi_\\alpha(\\mathbf{x}_i)$ converges to $\\pi_\\alpha(\\mathbf{x})$ for each $\\alpha$.-/\n", "formal_statement": "theorem exercise_19_6a\n {n : ℕ}\n {f : Fin n → Type*} {x : ℕ → Πa, f a}\n (y : Πi, f i)\n [Πa, TopologicalSpace (f a)] :\n Tendsto x atTop (𝓝 y) ↔ ∀ i, Tendsto (λ j => (x j) i) atTop (𝓝 (y i)) :=", "goal": "n : ℕ\nf : Fin n → Type u_1\nx : ℕ → (a : Fin n) → f a\ny : (i : Fin n) → f i\ninst✝ : (a : Fin n) → TopologicalSpace (f a)\n⊢ Tendsto x atTop (𝓝 y) ↔ ∀ (i : Fin n), Tendsto (fun j => x j i) atTop (𝓝 (y i))", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_21_6a", "split": "valid", "informal_prefix": "/-- Define $f_{n}:[0,1] \\rightarrow \\mathbb{R}$ by the equation $f_{n}(x)=x^{n}$. Show that the sequence $\\left(f_{n}(x)\\right)$ converges for each $x \\in[0,1]$.-/\n", "formal_statement": "theorem exercise_21_6a\n (f : ℕ → I → ℝ )\n (h : ∀ x n, f n x = x ^ n) :\n ∀ x, ∃ y, Tendsto (λ n => f n x) atTop (𝓝 y) :=", "goal": "f : ℕ → ↑I → ℝ\nh : ∀ (x : ↑I) (n : ℕ), f n x = ↑x ^ n\n⊢ ∀ (x : ↑I), ∃ y, Tendsto (fun n => f n x) atTop (𝓝 y)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\nabbrev I : Set ℝ := Icc 0 1\n\n"}
{"name": "exercise_21_8", "split": "valid", "informal_prefix": "/-- Let $X$ be a topological space and let $Y$ be a metric space. Let $f_{n}: X \\rightarrow Y$ be a sequence of continuous functions. Let $x_{n}$ be a sequence of points of $X$ converging to $x$. Show that if the sequence $\\left(f_{n}\\right)$ converges uniformly to $f$, then $\\left(f_{n}\\left(x_{n}\\right)\\right)$ converges to $f(x)$.-/\n", "formal_statement": "theorem exercise_21_8\n {X : Type*} [TopologicalSpace X] {Y : Type*} [MetricSpace Y]\n {f : ℕ → X → Y} {x : ℕ → X}\n (hf : ∀ n, Continuous (f n))\n (x₀ : X)\n (hx : Tendsto x atTop (𝓝 x₀))\n (f₀ : X → Y)\n (hh : TendstoUniformly f f₀ atTop) :\n Tendsto (λ n => f n (x n)) atTop (𝓝 (f₀ x₀)) :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\nY : Type u_2\ninst✝ : MetricSpace Y\nf : ℕ → X → Y\nx : ℕ → X\nhf : ∀ (n : ℕ), Continuous (f n)\nx₀ : X\nhx : Tendsto x atTop (𝓝 x₀)\nf₀ : X → Y\nhh : TendstoUniformly f f₀ atTop\n⊢ Tendsto (fun n => f n (x n)) atTop (𝓝 (f₀ x₀))", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_22_2b", "split": "valid", "informal_prefix": "/-- If $A \\subset X$, a retraction of $X$ onto $A$ is a continuous map $r: X \\rightarrow A$ such that $r(a)=a$ for each $a \\in A$. Show that a retraction is a quotient map.-/\n", "formal_statement": "theorem exercise_22_2b {X : Type*} [TopologicalSpace X]\n {A : Set X} (r : X → A) (hr : Continuous r) (h : ∀ x : A, r x = x) :\n QuotientMap r :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nA : Set X\nr : X → ↑A\nhr : Continuous r\nh : ∀ (x : ↑A), r ↑x = x\n⊢ QuotientMap r", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_23_2", "split": "valid", "informal_prefix": "/-- Let $\\left\\{A_{n}\\right\\}$ be a sequence of connected subspaces of $X$, such that $A_{n} \\cap A_{n+1} \\neq \\varnothing$ for all $n$. Show that $\\bigcup A_{n}$ is connected.-/\n", "formal_statement": "theorem exercise_23_2 {X : Type*}\n [TopologicalSpace X] {A : ℕ → Set X} (hA : ∀ n, IsConnected (A n))\n (hAn : ∀ n, A n ∩ A (n + 1) ≠ ∅) :\n IsConnected (⋃ n, A n) :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nA : ℕ → Set X\nhA : ∀ (n : ℕ), IsConnected (A n)\nhAn : ∀ (n : ℕ), A n ∩ A (n + 1) ≠ ∅\n⊢ IsConnected (⋃ n, A n)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_23_4", "split": "valid", "informal_prefix": "/-- Show that if $X$ is an infinite set, it is connected in the finite complement topology.-/\n", "formal_statement": "theorem exercise_23_4 {X : Type*} [TopologicalSpace X] [CofiniteTopology X]\n (s : Set X) : Infinite s → IsConnected s :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\ninst✝ : CofiniteTopology X\ns : Set X\n⊢ Infinite ↑s → IsConnected s", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\nset_option checkBinderAnnotations false\n\n"}
{"name": "exercise_23_9", "split": "valid", "informal_prefix": "/-- Let $A$ be a proper subset of $X$, and let $B$ be a proper subset of $Y$. If $X$ and $Y$ are connected, show that $(X \\times Y)-(A \\times B)$ is connected.-/\n", "formal_statement": "theorem exercise_23_9 {X Y : Type*}\n [TopologicalSpace X] [TopologicalSpace Y]\n (A₁ A₂ : Set X)\n (B₁ B₂ : Set Y)\n (hA : A₁ ⊂ A₂)\n (hB : B₁ ⊂ B₂)\n (hA : IsConnected A₂)\n (hB : IsConnected B₂) :\n IsConnected ({x | ∃ a b, x = (a, b) ∧ a ∈ A₂ ∧ b ∈ B₂} \\\n {x | ∃ a b, x = (a, b) ∧ a ∈ A₁ ∧ b ∈ B₁}) :=", "goal": "X : Type u_1\nY : Type u_2\ninst✝¹ : TopologicalSpace X\ninst✝ : TopologicalSpace Y\nA₁ A₂ : Set X\nB₁ B₂ : Set Y\nhA✝ : A₁ ⊂ A₂\nhB✝ : B₁ ⊂ B₂\nhA : IsConnected A₂\nhB : IsConnected B₂\n⊢ IsConnected ({x | ∃ a b, x = (a, b) ∧ a ∈ A₂ ∧ b ∈ B₂} \\ {x | ∃ a b, x = (a, b) ∧ a ∈ A₁ ∧ b ∈ B₁})", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_24_2", "split": "valid", "informal_prefix": "/-- Let $f: S^{1} \\rightarrow \\mathbb{R}$ be a continuous map. Show there exists a point $x$ of $S^{1}$ such that $f(x)=f(-x)$.-/\n", "formal_statement": "theorem exercise_24_2 {f : (Metric.sphere 0 1 : Set ℝ) → ℝ}\n (hf : Continuous f) : ∃ x, f x = f (-x) :=", "goal": "f : ↑(Metric.sphere 0 1) → ℝ\nhf : Continuous f\n⊢ ∃ x, f x = f (-x)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_25_4", "split": "valid", "informal_prefix": "/-- Let $X$ be locally path connected. Show that every connected open set in $X$ is path connected.-/\n", "formal_statement": "theorem exercise_25_4 {X : Type*} [TopologicalSpace X]\n [LocPathConnectedSpace X] (U : Set X) (hU : IsOpen U)\n (hcU : IsConnected U) : IsPathConnected U :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\ninst✝ : LocPathConnectedSpace X\nU : Set X\nhU : IsOpen U\nhcU : IsConnected U\n⊢ IsPathConnected U", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_26_11", "split": "valid", "informal_prefix": "/-- Let $X$ be a compact Hausdorff space. Let $\\mathcal{A}$ be a collection of closed connected subsets of $X$ that is simply ordered by proper inclusion. Then $Y=\\bigcap_{A \\in \\mathcal{A}} A$ is connected.-/\n", "formal_statement": "theorem exercise_26_11\n {X : Type*} [TopologicalSpace X] [CompactSpace X] [T2Space X]\n (A : Set (Set X)) (hA : ∀ (a b : Set X), a ∈ A → b ∈ A → a ⊆ b ∨ b ⊆ a)\n (hA' : ∀ a ∈ A, IsClosed a) (hA'' : ∀ a ∈ A, IsConnected a) :\n IsConnected (⋂₀ A) :=", "goal": "X : Type u_1\ninst✝² : TopologicalSpace X\ninst✝¹ : CompactSpace X\ninst✝ : T2Space X\nA : Set (Set X)\nhA : ∀ (a b : Set X), a ∈ A → b ∈ A → a ⊆ b ∨ b ⊆ a\nhA' : ∀ a ∈ A, IsClosed a\nhA'' : ∀ a ∈ A, IsConnected a\n⊢ IsConnected (⋂₀ A)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_27_4", "split": "valid", "informal_prefix": "/-- Show that a connected metric space having more than one point is uncountable.-/\n", "formal_statement": "theorem exercise_27_4\n {X : Type*} [MetricSpace X] [ConnectedSpace X] (hX : ∃ x y : X, x ≠ y) :\n ¬ Countable (univ : Set X) :=", "goal": "X : Type u_1\ninst✝¹ : MetricSpace X\ninst✝ : ConnectedSpace X\nhX : ∃ x y, x ≠ y\n⊢ ¬Countable ↑univ", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_28_5", "split": "valid", "informal_prefix": "/-- Show that X is countably compact if and only if every nested sequence $C_1 \\supset C_2 \\supset \\cdots$ of closed nonempty sets of X has a nonempty intersection.-/\n", "formal_statement": "theorem exercise_28_5\n (X : Type*) [TopologicalSpace X] :\n countably_compact X ↔ ∀ (C : ℕ → Set X), (∀ n, IsClosed (C n)) ∧\n (∀ n, C n ≠ ∅) ∧ (∀ n, C n ⊆ C (n + 1)) → ∃ x, ∀ n, x ∈ C n :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\n⊢ countably_compact X ↔\n ∀ (C : ℕ → Set X),\n ((∀ (n : ℕ), IsClosed (C n)) ∧ (∀ (n : ℕ), C n ≠ ∅) ∧ ∀ (n : ℕ), C n ⊆ C (n + 1)) → ∃ x, ∀ (n : ℕ), x ∈ C n", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\ndef countably_compact (X : Type*) [TopologicalSpace X] :=\n ∀ U : ℕ → Set X,\n (∀ i, IsOpen (U i)) ∧ ((univ : Set X) ⊆ ⋃ i, U i) →\n (∃ t : Finset ℕ, (univ : Set X) ⊆ ⋃ i ∈ t, U i)\n\n"}
{"name": "exercise_29_1", "split": "valid", "informal_prefix": "/-- Show that the rationals $\\mathbb{Q}$ are not locally compact.-/\n", "formal_statement": "theorem exercise_29_1 : ¬ LocallyCompactSpace ℚ :=", "goal": "⊢ ¬LocallyCompactSpace ℚ", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_29_10", "split": "valid", "informal_prefix": "/-- Show that if $X$ is a Hausdorff space that is locally compact at the point $x$, then for each neighborhood $U$ of $x$, there is a neighborhood $V$ of $x$ such that $\\bar{V}$ is compact and $\\bar{V} \\subset U$.-/\n", "formal_statement": "theorem exercise_29_10 {X : Type*}\n [TopologicalSpace X] [T2Space X] (x : X)\n (hx : ∃ U : Set X, x ∈ U ∧ IsOpen U ∧ (∃ K : Set X, U ⊂ K ∧ IsCompact K))\n (U : Set X) (hU : IsOpen U) (hxU : x ∈ U) :\n ∃ (V : Set X), IsOpen V ∧ x ∈ V ∧ IsCompact (closure V) ∧ closure V ⊆ U :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\ninst✝ : T2Space X\nx : X\nhx : ∃ U, x ∈ U ∧ IsOpen U ∧ ∃ K, U ⊂ K ∧ IsCompact K\nU : Set X\nhU : IsOpen U\nhxU : x ∈ U\n⊢ ∃ V, IsOpen V ∧ x ∈ V ∧ IsCompact (closure V) ∧ closure V ⊆ U", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_30_13", "split": "valid", "informal_prefix": "/-- Show that if $X$ has a countable dense subset, every collection of disjoint open sets in $X$ is countable.-/\n", "formal_statement": "theorem exercise_30_13 {X : Type*} [TopologicalSpace X]\n (h : ∃ (s : Set X), Countable s ∧ Dense s) (U : Set (Set X))\n (hU : ∀ (x y : Set X), x ∈ U → y ∈ U → x ≠ y → x ∩ y = ∅) :\n Countable U :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nh : ∃ s, Countable ↑s ∧ Dense s\nU : Set (Set X)\nhU : ∀ (x y : Set X), x ∈ U → y ∈ U → x ≠ y → x ∩ y = ∅\n⊢ Countable ↑U", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_31_2", "split": "valid", "informal_prefix": "/-- Show that if $X$ is normal, every pair of disjoint closed sets have neighborhoods whose closures are disjoint.-/\n", "formal_statement": "theorem exercise_31_2 {X : Type*}\n [TopologicalSpace X] [NormalSpace X] {A B : Set X}\n (hA : IsClosed A) (hB : IsClosed B) (hAB : Disjoint A B) :\n ∃ (U V : Set X), IsOpen U ∧ IsOpen V ∧ A ⊆ U ∧ B ⊆ V ∧ closure U ∩ closure V = ∅ :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\ninst✝ : NormalSpace X\nA B : Set X\nhA : IsClosed A\nhB : IsClosed B\nhAB : Disjoint A B\n⊢ ∃ U V, IsOpen U ∧ IsOpen V ∧ A ⊆ U ∧ B ⊆ V ∧ closure U ∩ closure V = ∅", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_32_1", "split": "valid", "informal_prefix": "/-- Show that a closed subspace of a normal space is normal.-/\n", "formal_statement": "theorem exercise_32_1 {X : Type*} [TopologicalSpace X]\n (hX : NormalSpace X) (A : Set X) (hA : IsClosed A) :\n NormalSpace {x // x ∈ A} :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nhX : NormalSpace X\nA : Set X\nhA : IsClosed A\n⊢ NormalSpace { x // x ∈ A }", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_32_2b", "split": "valid", "informal_prefix": "/-- Show that if $\\prod X_\\alpha$ is regular, then so is $X_\\alpha$. Assume that each $X_\\alpha$ is nonempty.-/\n", "formal_statement": "theorem exercise_32_2b\n {ι : Type*} {X : ι → Type*} [∀ i, TopologicalSpace (X i)]\n (h : ∀ i, Nonempty (X i)) (h2 : RegularSpace (Π i, X i)) :\n ∀ i, RegularSpace (X i) :=", "goal": "ι : Type u_1\nX : ι → Type u_2\ninst✝ : (i : ι) → TopologicalSpace (X i)\nh : ∀ (i : ι), Nonempty (X i)\nh2 : RegularSpace ((i : ι) → X i)\n⊢ ∀ (i : ι), RegularSpace (X i)", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_32_3", "split": "valid", "informal_prefix": "/-- Show that every locally compact Hausdorff space is regular.-/\n", "formal_statement": "theorem exercise_32_3 {X : Type*} [TopologicalSpace X]\n (hX : LocallyCompactSpace X) (hX' : T2Space X) :\n RegularSpace X :=", "goal": "X : Type u_1\ninst✝ : TopologicalSpace X\nhX : LocallyCompactSpace X\nhX' : T2Space X\n⊢ RegularSpace X", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\n"}
{"name": "exercise_33_8", "split": "valid", "informal_prefix": "/-- Let $X$ be completely regular, let $A$ and $B$ be disjoint closed subsets of $X$. Show that if $A$ is compact, there is a continuous function $f \\colon X \\rightarrow [0, 1]$ such that $f(A) = \\{0\\}$ and $f(B) = \\{1\\}$.-/\n", "formal_statement": "theorem exercise_33_8\n (X : Type*) [TopologicalSpace X] [RegularSpace X]\n (h : ∀ x A, IsClosed A ∧ ¬ x ∈ A →\n ∃ (f : X → I), Continuous f ∧ f x = (1 : I) ∧ f '' A = {0})\n (A B : Set X) (hA : IsClosed A) (hB : IsClosed B)\n (hAB : Disjoint A B)\n (hAc : IsCompact A) :\n ∃ (f : X → I), Continuous f ∧ f '' A = {0} ∧ f '' B = {1} :=", "goal": "X : Type u_1\ninst✝¹ : TopologicalSpace X\ninst✝ : RegularSpace X\nh : ∀ (x : X) (A : Set X), IsClosed A ∧ x ∉ A → ∃ f, Continuous f ∧ f x = 1 ∧ f '' A = {0}\nA B : Set X\nhA : IsClosed A\nhB : IsClosed B\nhAB : Disjoint A B\nhAc : IsCompact A\n⊢ ∃ f, Continuous f ∧ f '' A = {0} ∧ f '' B = {1}", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\nabbrev I : Set ℝ := Icc 0 1\n\n"}
{"name": "exercise_38_6", "split": "valid", "informal_prefix": "/-- Let $X$ be completely regular. Show that $X$ is connected if and only if the Stone-Čech compactification of $X$ is connected.-/\n", "formal_statement": "theorem exercise_38_6 {X : Type*}\n (X : Type*) [TopologicalSpace X] [RegularSpace X]\n (h : ∀ x A, IsClosed A ∧ ¬ x ∈ A →\n ∃ (f : X → I), Continuous f ∧ f x = (1 : I) ∧ f '' A = {0}) :\n IsConnected (univ : Set X) ↔ IsConnected (univ : Set (StoneCech X)) :=", "goal": "X✝ : Type u_1\nX : Type u_2\ninst✝¹ : TopologicalSpace X\ninst✝ : RegularSpace X\nh : ∀ (x : X) (A : Set X), IsClosed A ∧ x ∉ A → ∃ f, Continuous f ∧ f x = 1 ∧ f '' A = {0}\n⊢ IsConnected univ ↔ IsConnected univ", "header": "import Mathlib\n\nopen Filter Set TopologicalSpace\nopen scoped Topology\n\nabbrev I : Set ℝ := Icc 0 1\n\n"}
{"name": "exercise_1_27", "split": "valid", "informal_prefix": "/-- For all odd $n$ show that $8 \\mid n^{2}-1$.-/\n", "formal_statement": "theorem exercise_1_27 {n : ℕ} (hn : Odd n) : 8 ∣ (n^2 - 1) :=", "goal": "n : ℕ\nhn : Odd n\n⊢ 8 ∣ n ^ 2 - 1", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_1_31", "split": "valid", "informal_prefix": "/-- Show that 2 is divisible by $(1+i)^{2}$ in $\\mathbb{Z}[i]$.-/\n", "formal_statement": "theorem exercise_1_31 : (⟨1, 1⟩ : GaussianInt) ^ 2 ∣ 2 :=", "goal": "⊢ { re := 1, im := 1 } ^ 2 ∣ 2", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_2_21", "split": "valid", "informal_prefix": "/-- Define $\\wedge(n)=\\log p$ if $n$ is a power of $p$ and zero otherwise. Prove that $\\sum_{A \\mid n} \\mu(n / d) \\log d$ $=\\wedge(n)$.-/\n", "formal_statement": "theorem exercise_2_21 {l : ℕ → ℝ}\n (hl : ∀ p n : ℕ, p.Prime → l (p^n) = log p )\n (hl1 : ∀ m : ℕ, ¬ IsPrimePow m → l m = 0) :\n l = λ n => ∑ d : Nat.divisors n, ArithmeticFunction.moebius (n/d) * log d :=", "goal": "l : ℕ → ℝ\nhl : ∀ (p n : ℕ), p.Prime → l (p ^ n) = (↑p).log\nhl1 : ∀ (m : ℕ), ¬IsPrimePow m → l m = 0\n⊢ l = fun n => ∑ d : { x // x ∈ n.divisors }, ↑(ArithmeticFunction.moebius (n / ↑d)) * (↑↑d).log", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_1", "split": "valid", "informal_prefix": "/-- Show that there are infinitely many primes congruent to $-1$ modulo 6 .-/\n", "formal_statement": "theorem exercise_3_1 : Infinite {p : Nat.Primes // p ≡ -1 [ZMOD 6]} :=", "goal": "⊢ Infinite { p // ↑↑p ≡ -1 [ZMOD 6] }", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_5", "split": "valid", "informal_prefix": "/-- Show that the equation $7 x^{3}+2=y^{3}$ has no solution in integers.-/\n", "formal_statement": "theorem exercise_3_5 : ¬ ∃ x y : ℤ, 7*x^3 + 2 = y^3 :=", "goal": "⊢ ¬∃ x y, 7 * x ^ 3 + 2 = y ^ 3", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_3_14", "split": "valid", "informal_prefix": "/-- Let $p$ and $q$ be distinct odd primes such that $p-1$ divides $q-1$. If $(n, p q)=1$, show that $n^{q-1} \\equiv 1(p q)$.-/\n", "formal_statement": "theorem exercise_3_14 {p q n : ℕ} (hp0 : p.Prime ∧ p > 2)\n (hq0 : q.Prime ∧ q > 2) (hpq0 : p ≠ q) (hpq1 : p - 1 ∣ q - 1)\n (hn : n.gcd (p*q) = 1) :\n n^(q-1) ≡ 1 [MOD p*q] :=", "goal": "p q n : ℕ\nhp0 : p.Prime ∧ p > 2\nhq0 : q.Prime ∧ q > 2\nhpq0 : p ≠ q\nhpq1 : p - 1 ∣ q - 1\nhn : n.gcd (p * q) = 1\n⊢ n ^ (q - 1) ≡ 1 [MOD p * q]", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_5", "split": "valid", "informal_prefix": "/-- Consider a prime $p$ of the form $4 t+3$. Show that $a$ is a primitive root modulo $p$ iff $-a$ has order $(p-1) / 2$.-/\n", "formal_statement": "theorem exercise_4_5 {p t : ℕ} (hp0 : p.Prime) (hp1 : p = 4*t + 3)\n (a : ZMod p) :\n IsPrimitiveRoot a p ↔ ((-a) ^ ((p-1)/2) = 1 ∧ ∀ (k : ℕ), k < (p-1)/2 → (-a)^k ≠ 1) :=", "goal": "p t : ℕ\nhp0 : p.Prime\nhp1 : p = 4 * t + 3\na : ZMod p\n⊢ IsPrimitiveRoot a p ↔ (-a) ^ ((p - 1) / 2) = 1 ∧ ∀ k < (p - 1) / 2, (-a) ^ k ≠ 1", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_4_8", "split": "valid", "informal_prefix": "/-- Let $p$ be an odd prime. Show that $a$ is a primitive root modulo $p$ iff $a^{(p-1) / q} \\not \\equiv 1(p)$ for all prime divisors $q$ of $p-1$.-/\n", "formal_statement": "theorem exercise_4_8 {p a : ℕ} (hp : Odd p) :\n IsPrimitiveRoot a p ↔ (∀ q : ℕ, q ∣ (p-1) → q.Prime → ¬ a^(p-1) ≡ 1 [MOD p]) :=", "goal": "p a : ℕ\nhp : Odd p\n⊢ IsPrimitiveRoot a p ↔ ∀ (q : ℕ), q ∣ p - 1 → q.Prime → ¬a ^ (p - 1) ≡ 1 [MOD p]", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_13", "split": "valid", "informal_prefix": "/-- Show that any prime divisor of $x^{4}-x^{2}+1$ is congruent to 1 modulo 12 .-/\n", "formal_statement": "theorem exercise_5_13 {p x: ℤ} (hp : Prime p)\n (hpx : p ∣ (x^4 - x^2 + 1)) : p ≡ 1 [ZMOD 12] :=", "goal": "p x : ℤ\nhp : Prime p\nhpx : p ∣ x ^ 4 - x ^ 2 + 1\n⊢ p ≡ 1 [ZMOD 12]", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_5_37", "split": "valid", "informal_prefix": "/-- Show that if $a$ is negative then $p \\equiv q(4 a) together with p\\not | a$ imply $(a / p)=(a / q)$.-/\n", "formal_statement": "theorem exercise_5_37 {p q : ℕ} [Fact (p.Prime)] [Fact (q.Prime)] {a : ℤ}\n (ha : a < 0) (h0 : p ≡ q [ZMOD 4*a]) (h1 : ¬ ((p : ℤ) ∣ a)) :\n legendreSym p a = legendreSym q a :=", "goal": "p q : ℕ\ninst✝¹ : Fact p.Prime\ninst✝ : Fact q.Prime\na : ℤ\nha : a < 0\nh0 : ↑p ≡ ↑q [ZMOD 4 * a]\nh1 : ¬↑p ∣ a\n⊢ legendreSym p a = legendreSym q a", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_18_4", "split": "valid", "informal_prefix": "/-- Show that 1729 is the smallest positive integer expressible as the sum of two different integral cubes in two ways.-/\n", "formal_statement": "theorem exercise_18_4 {n : ℕ} (hn : ∃ x y z w : ℤ,\n x^3 + y^3 = n ∧ z^3 + w^3 = n ∧ x ≠ z ∧ x ≠ w ∧ y ≠ z ∧ y ≠ w) :\n n ≥ 1729 :=", "goal": "n : ℕ\nhn : ∃ x y z w, x ^ 3 + y ^ 3 = ↑n ∧ z ^ 3 + w ^ 3 = ↑n ∧ x ≠ z ∧ x ≠ w ∧ y ≠ z ∧ y ≠ w\n⊢ n ≥ 1729", "header": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\n"}
{"name": "exercise_2020_b5", "split": "valid", "informal_prefix": "/-- For $j \\in\\{1,2,3,4\\}$, let $z_{j}$ be a complex number with $\\left|z_{j}\\right|=1$ and $z_{j} \\neq 1$. Prove that $3-z_{1}-z_{2}-z_{3}-z_{4}+z_{1} z_{2} z_{3} z_{4} \\neq 0 .$-/\n", "formal_statement": "theorem exercise_2020_b5 (z : Fin 4 → ℂ) (hz0 : ∀ n, ‖z n‖ < 1)\n (hz1 : ∀ n : Fin 4, z n ≠ 1) :\n 3 - z 0 - z 1 - z 2 - z 3 + (z 0) * (z 1) * (z 2) * (z 3) ≠ 0 :=", "goal": "z : Fin 4 → ℂ\nhz0 : ∀ (n : Fin 4), ‖z n‖ < 1\nhz1 : ∀ (n : Fin 4), z n ≠ 1\n⊢ 3 - z 0 - z 1 - z 2 - z 3 + z 0 * z 1 * z 2 * z 3 ≠ 0", "header": "import Mathlib\n\nopen scoped BigOperators\n\nopen scoped BigOperators\n\n"}
{"name": "exercise_2018_b2", "split": "valid", "informal_prefix": "/-- Let $n$ be a positive integer, and let $f_{n}(z)=n+(n-1) z+$ $(n-2) z^{2}+\\cdots+z^{n-1}$. Prove that $f_{n}$ has no roots in the closed unit disk $\\{z \\in \\mathbb{C}:|z| \\leq 1\\}$.-/\n", "formal_statement": "theorem exercise_2018_b2 (n : ℕ) (hn : n > 0) (f : ℕ → ℂ → ℂ)\n (hf : ∀ n : ℕ, f n = λ (z : ℂ) => (∑ i : Fin n, (n-i)* z^(i : ℕ))) :\n ¬ (∃ z : ℂ, ‖z‖ ≤ 1 ∧ f n z = 0) :=", "goal": "n : ℕ\nhn : n > 0\nf : ℕ → ℂ → ℂ\nhf : ∀ (n : ℕ), f n = fun z => ∑ i : Fin n, (↑n - ↑↑i) * z ^ ↑i\n⊢ ¬∃ z, ‖z‖ ≤ 1 ∧ f n z = 0", "header": "import Mathlib\n\nopen scoped BigOperators\n\n"}
{"name": "exercise_2017_b3", "split": "valid", "informal_prefix": "/-- Suppose that $f(x)=\\sum_{i=0}^{\\infty} c_{i} x^{i}$ is a power series for which each coefficient $c_{i}$ is 0 or 1 . Show that if $f(2 / 3)=3 / 2$, then $f(1 / 2)$ must be irrational.-/\n", "formal_statement": "theorem exercise_2017_b3 (f : ℝ → ℝ) (c : ℕ → ℝ)\n (hf : f = λ x => (∑' (i : ℕ), (c i) * x^i))\n (hc : ∀ n, c n = 0 ∨ c n = 1)\n (hf1 : f (2/3) = 3/2) :\n Irrational (f (1/2)) :=", "goal": "f : ℝ → ℝ\nc : ℕ → ℝ\nhf : f = fun x => ∑' (i : ℕ), c i * x ^ i\nhc : ∀ (n : ℕ), c n = 0 ∨ c n = 1\nhf1 : f (2 / 3) = 3 / 2\n⊢ Irrational (f (1 / 2))", "header": "import Mathlib\n\nopen scoped BigOperators\n\n"}
{"name": "exercise_2010_a4", "split": "valid", "informal_prefix": "/-- Prove that for each positive integer $n$, the number $10^{10^{10^n}}+10^{10^n}+10^n-1$ is not prime.-/\n", "formal_statement": "theorem exercise_2010_a4 (n : ℕ) :\n ¬ Nat.Prime (10^10^10^n + 10^10^n + 10^n - 1) :=", "goal": "n : ℕ\n⊢ ¬(10 ^ 10 ^ 10 ^ n + 10 ^ 10 ^ n + 10 ^ n - 1).Prime", "header": "import Mathlib\n\nopen scoped BigOperators\n\n"}
{"name": "exercise_2000_a2", "split": "valid", "informal_prefix": "/-- Prove that there exist infinitely many integers $n$ such that $n, n+1, n+2$ are each the sum of the squares of two integers.-/\n", "formal_statement": "theorem exercise_2000_a2 :\n ∀ N : ℕ, ∃ n : ℕ, n > N ∧ ∃ i : Fin 6 → ℕ, n = (i 0)^2 + (i 1)^2 ∧\n n + 1 = (i 2)^2 + (i 3)^2 ∧ n + 2 = (i 4)^2 + (i 5)^2 :=", "goal": "⊢ ∀ (N : ℕ), ∃ n > N, ∃ i, n = i 0 ^ 2 + i 1 ^ 2 ∧ n + 1 = i 2 ^ 2 + i 3 ^ 2 ∧ n + 2 = i 4 ^ 2 + i 5 ^ 2", "header": "import Mathlib\n\nopen scoped BigOperators\n\n"}
{"name": "exercise_1998_a3", "split": "valid", "informal_prefix": "/-- Let $f$ be a real function on the real line with continuous third derivative. Prove that there exists a point $a$ such that-/\n", "formal_statement": "theorem exercise_1998_a3 (f : ℝ → ℝ) (hf : ContDiff ℝ 3 f) :\n ∃ a : ℝ, (f a) * (deriv f a) * (iteratedDeriv 2 f a) * (iteratedDeriv 3 f a) ≥ 0 :=", "goal": "f : ℝ → ℝ\nhf : ContDiff ℝ 3 f\n⊢ ∃ a, f a * deriv f a * iteratedDeriv 2 f a * iteratedDeriv 3 f a ≥ 0", "header": "import Mathlib\n\nopen scoped BigOperators\n\n"}
|