name
stringlengths
14
14
lean4_statement
stringlengths
75
1.48k
informal_statement
stringlengths
47
898
informal_solution
stringlengths
16
303
tags
stringclasses
36 values
coq_statement
stringlengths
91
1.51k
isabelle_statement
stringlengths
160
2.65k
putnam_1975_a1
abbrev putnam_1975_a1_solution : ((ℤ × ℤ) → ℤ) × ((ℤ × ℤ) → ℤ) := sorry -- (fun (a, b) => a + b + 1, fun (a, b) => a - b) theorem putnam_1975_a1 (nab : (ℤ × ℤ × ℤ) → Prop := fun (n, a, b) => n = (a^2 + (a : ℚ))/2 + (b^2 + (b : ℚ))/2) (nxy : (ℤ × ℤ × ℤ) → Prop := fun (n, x, y) => 4*n + 1 = x^2 + y^2) : (∀ n a b : ℤ, nab...
If an integer $n$ can be written as the sum of two triangular numbers (that is, $n = \frac{a^2 + a}{2} + \frac{b^2 + b}{2}$ for some integers $a$ and $b$), express $4n + 1$ as the sum of the squares of two integers $x$ and $y$, giving $x$ and $y$ in terms of $a$ and $b$. Also, show that if $4n + 1 = x^2 + y^2$ for some...
$x = a + b + 1$ and $y = a - b$ (or vice versa).
['algebra', 'number_theory']
Section putnam_1975_a1. Theorem putnam_1975_a1: forall (m: nat), exists (n: nat), m = Nat.div (n * (n+1)) 2 <-> exists (p q: nat), 4*m + 1 = p*p + q*q. Proof. Admitted. End putnam_1975_a1.
theory putnam_1975_a1 imports Complex_Main begin definition putnam_1975_a1_solution::"(int\<Rightarrow>int\<Rightarrow>int) \<times> (int\<Rightarrow>int\<Rightarrow>int)" where "putnam_1975_a1_solution \<equiv> undefined" (* (\<lambda>a. \<lambda>b. a + b + 1, \<lambda>a. \<lambda>b. a - b) *) theorem putnam_1975_a1:...
putnam_1975_a2
abbrev putnam_1975_a2_solution : (ℝ × ℝ) → Prop := sorry -- fun (b, c) => c < 1 ∧ c - b > -1 ∧ c + b > -1 theorem putnam_1975_a2 : ∀ b c : ℝ, (∀ z : ℂ, (X^2 + (C (b : ℂ))*X + (C (c : ℂ)) : Polynomial ℂ).eval z = 0 → ‖z‖ < 1) ↔ putnam_1975_a2_solution (b, c) := sorry
For which ordered pairs $(b, c)$ of real numbers do both roots of $z^2 + bz + c$ lie strictly inside the unit disk (i.e., $\{|z| < 1\}$) in the complex plane?
The desired region is the strict interior of the triangle with vertices $(0, -1)$, $(2, 1)$, and $(-2, 1)$.
['algebra']
Section putnam_1975_a2. Require Import List Reals Coquelicot.Coquelicot. Open Scope C. Definition putnam_1975_a2_solution : R -> R -> Prop := fun a b => b < 1 /\ b - a > -1 /\ b + a > -1. Theorem putnam_1975_a2 : forall a b : R, (forall z : C, z * z + a * z + b = 0 -> Cmod z < 1) <-> putnam_1975_a2_solution a b. Pr...
theory putnam_1975_a2 imports Complex_Main begin definition putnam_1975_a2_solution::"real\<Rightarrow>real\<Rightarrow>bool" where "putnam_1975_a2_solution \<equiv> undefined" (* \<lambda>b. \<lambda>c. c < 1 \<and> c - b > -1 \<and> c + b > -1 *) theorem putnam_1975_a2: shows "\<forall>b c::real. (\<forall>z::comp...
putnam_1975_a3
abbrev putnam_1975_a3_solution : ((ℝ × ℝ × ℝ) → (ℝ × ℝ × ℝ)) × ((ℝ × ℝ × ℝ) → (ℝ × ℝ × ℝ)) := sorry -- (fun (a, b, c) => ((a/b)^(1/(b - a)), (1 - ((a/b)^(1/(b - a)))^b)^(1/b), 0), fun (a, b, c) => (0, (1 - ((b/c)^(1/(c - b)))^b)^(1/b), (b/c)^(1/(c - b)))) theorem putnam_1975_a3 (a b c : ℝ) (hi : 0 < a ∧ a < b ∧ b < c) ...
If $a$, $b$, and $c$ are real numbers satisfying $0 < a < b < c$, at what points in the set $$\{(x, y, z) \in \mathbb{R}^3 : x^b + y^b + z^b = 1, x \ge 0, y \ge 0, z \ge 0\}$$ does $f(x, y, z) = x^a + y^b + z^c$ attain its maximum and minimum?
$f$ attains its maximum at $\left(x_0, (1 - x_0^b)^{\frac{1}{b}}, 0\right)$ and its minimum at $\left(0, (1 - z_0^b)^{\frac{1}{b}}, z_0\right)$, where $x_0 = \left(\frac{a}{b}\right)^{\frac{1}{b-a}}$ and $z_0 = \left(\frac{b}{c}\right)^{\frac{1}{c-b}}$.
['algebra']
Section putnam_1975_a3. Require Import Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1975_a3_solution1 (a b c: R): R * R * R := (Rpower (a / b) (1 / (b - a)), (1 - (Rpower (a / b) (Rpower (b / (b - a)) (1 / b)))), 0). Definition putnam_1975_a3_solution2 (a b c: R): R * R * R := (0, (1 - (Rpow...
theory putnam_1975_a3 imports Complex_Main begin definition putnam_1975_a3_solution::"(real\<Rightarrow>real\<Rightarrow>real\<Rightarrow>(real\<times>real\<times>real))\<times>(real\<Rightarrow>real\<Rightarrow>real\<Rightarrow>(real\<times>real\<times>real))" where "putnam_1975_a3_solution \<equiv> undefined" (* ( \...
putnam_1975_b1
abbrev putnam_1975_b1_solution : ℤ := sorry -- 7 theorem putnam_1975_b1 (H : Set (ℤ × ℤ) := {(x, y) : (ℤ × ℤ) | ∃ u v w : ℤ, (x, y) = (u*3 + v*4 + w*5, u*8 + v*(-1) + w*4)}) : (∃ b : ℤ, H = {(x, y) : (ℤ × ℤ) | ∃ u v : ℤ, (x, y) = (u, u*b + v*putnam_1975_b1_solution)}) ∧ putnam_1975_b1_solution > 0 := sorry
Let $H$ be a subgroup of the additive group of ordered pairs of integers under componentwise addition. If $H$ is generated by the elements $(3, 8)$, $(4, -1)$, and $(5, 4)$, then $H$ is also generated by two elements $(1, b)$ and $(0, a)$ for some integer $b$ and positive integer $a$. Find $a$.
$a$ must equal $7$.
['abstract_algebra', 'number_theory']
null
theory putnam_1975_b1 imports Complex_Main begin definition putnam_1975_b1_solution::int where "putnam_1975_b1_solution \<equiv> undefined" (* 7 *) theorem putnam_1975_b1: fixes H::"(int \<times> int) set" defines "H \<equiv> {(x, y). \<exists>u v w::int. (x, y) = (u*3 + v*4 + w*5, u*8 - v + w*4)}" shows "\<exis...
putnam_1975_b3
abbrev putnam_1975_b3_solution : ℕ → ℝ := sorry -- fun k : ℕ => 1/(Nat.factorial k) theorem putnam_1975_b3 : ∀ k : ℕ, k > 0 → (∀ a : Multiset ℝ, (∀ i ∈ a, i > 0) ∧ card a ≥ k → (esymm a k)/(esymm a 1)^k ≤ putnam_1975_b3_solution k) ∧ ∀ M : ℝ, M < putnam_1975_b3_solution k → (∃ a : Multiset ℝ, (∀ i ∈ a, i > 0) ∧ card a ...
Let $s_k (a_1, a_2, \dots, a_n)$ denote the $k$-th elementary symmetric function; that is, the sum of all $k$-fold products of the $a_i$. For example, $s_1 (a_1, \dots, a_n) = \sum_{i=1}^{n} a_i$, and $s_2 (a_1, a_2, a_3) = a_1a_2 + a_2a_3 + a_1a_3$. Find the supremum $M_k$ (which is never attained) of $$\frac{s_k (a_1...
The supremum $M_k$ is $ rac{1}{k!}$.
['analysis', 'algebra']
null
theory putnam_1975_b3 imports Complex_Main begin definition putnam_1975_b3_solution::"nat\<Rightarrow>real" where "putnam_1975_b3_solution \<equiv> undefined" (* \<lambda>k. 1 / (fact k) *) theorem putnam_1975_b3: fixes esymm::"nat \<Rightarrow> (real list) \<Rightarrow> real" and f::"nat \<Rightarrow> (real list) \...
putnam_1975_b4
abbrev putnam_1975_b4_solution : Prop := sorry -- False theorem putnam_1975_b4 (P : ℝ × ℝ → Prop := fun (x, y) => x^2 + y^2 = 1) : (∃ B ⊆ setOf P, IsClosed B ∧ ∀ x y : ℝ, P (x, y) → Xor' ((x, y) ∈ B) ((-x, -y) ∈ B)) ↔ putnam_1975_b4_solution := sorry
Let $C = \{(x, y) \in \mathbb{R}^2 : x^2 + y^2 = 1\}$ denote the unit circle. Does there exist $B \subseteq C$ for which $B$ is topologically closed and contains exactly one point from each pair of diametrically opposite points in $C$?
Such $B$ does not exist.
['analysis']
null
theory putnam_1975_b4 imports Complex_Main begin definition putnam_1975_b4_solution::bool where "putnam_1975_b4_solution \<equiv> undefined" (* False *) theorem putnam_1975_b4: fixes P::"real\<Rightarrow>real\<Rightarrow>bool" defines "P \<equiv> \<lambda>x. \<lambda>y. x^2 + y^2 = 1" shows "(\<exists>B. B \<sub...
putnam_1975_b5
theorem putnam_1975_b5 (e : ℝ := Real.exp 1) (f : ℕ → ℝ → ℝ) (h0 : ∀ x : ℝ, f 0 x = e^x) (hf : ∀ n : ℕ, ∀ x : ℝ, f (n + 1) x = x * (deriv (f n) x)) : ∑' n : ℕ, (f n 1)/(Nat.factorial n) = e^e := sorry
Let $f_0(x) = e^x$ and $f_{n+1}(x) = xf'_n(x)$ for all $n \ge 0$. Prove that $$\sum_{n=0}^{\infty} \frac{f_n(1)}{n!} = e^e.$$
null
['analysis', 'algebra']
Section putnam_1975_b5. Require Import Factorial Reals Coquelicot.Coquelicot. Theorem putnam_1975_b5 (f : nat -> nat -> R := fix f (n x: nat) := match n with | O => exp (INR x) | S n' => INR x * f n' x end) : Series (fun n => f n 1%nat / INR (fact n)) = exp (exp 1). Proof. Admitted....
theory putnam_1975_b5 imports Complex_Main "HOL-Analysis.Derivative" begin theorem putnam_1975_b5: fixes f::"nat\<Rightarrow>real\<Rightarrow>real" assumes h0 : "\<forall>x::real. f 0 x = exp x" and hf : "\<forall>n::nat. \<forall>x::real. f (n+1) x = x * (deriv (f n) x)" shows "(\<Sum>n::nat. (f n 1) / (fac...
putnam_1992_a1
theorem putnam_1992_a1 (f : ℤ → ℤ) : ((f = fun n ↦ 1 - n) ↔ (∀ n : ℤ, f (f n) = n) ∧ (∀ n : ℤ, f (f (n + 2) + 2) = n) ∧ (f 0 = 1)) := sorry
Prove that $f(n) = 1-n$ is the only integer-valued function defined on the integers that satisfies the following conditions. \begin{itemize} \item[(i)] $f(f(n)) = n$, for all integers $n$; \item[(ii)] $f(f(n+2)+2) = n$ for all integers $n$; \item[(iii)] $f(0) = 1$. \end{itemize}
null
['algebra']
Section putnam_1992_a1. Require Import Basics. Theorem putnam_1992_a1: forall (f: nat -> nat), (forall (n: nat), f (f n) = n /\ f (f (n + 2)) + 2 = n) /\ f 0 = 1 <-> f = (fun n => 1 - n). Proof. Admitted. End putnam_1992_a1.
theory putnam_1992_a1 imports Complex_Main begin theorem putnam_1992_a1: fixes f :: "int \<Rightarrow> int" shows "(f = (\<lambda>n::int. 1 - n)) \<longleftrightarrow> ((\<forall>n::int. f (f n) = n) \<and> (\<forall>n::int. f (f (n+2) + 2) = n) \<and> f 0 = 1)" sorry end
putnam_1992_a2
abbrev putnam_1992_a2_solution : ℝ := sorry -- 1992 theorem putnam_1992_a2 (C : ℝ → ℝ := fun α ↦ taylorCoeffWithin (fun x ↦ (1 + x) ^ α) 1992 Set.univ 0) : (∫ y in (0)..1, C (-y - 1) * ∑ k in Finset.Icc (1 : ℕ) 1992, 1 / (y + k) = putnam_1992_a2_solution) := sorry
Define $C(\alpha)$ to be the coefficient of $x^{1992}$ in the power series about $x=0$ of $(1 + x)^\alpha$. Evaluate \[ \int_0^1 \left( C(-y-1) \sum_{k=1}^{1992} \frac{1}{y+k} \right)\,dy. \]
Prove that the integral evaluates to $1992$.
['analysis', 'algebra']
Section putnam_1992_a2. Require Import Reals Binomial Factorial Coquelicot.Coquelicot. Open Scope R. Definition putnam_1992_a2_solution := 1992. Theorem putnam_1992_a2: let C (a: R) := (Derive_n (fun x => Rpower (1 + x) a) 1992) 0 / INR (fact 1992) in RInt (fun y => C( - y - 1 ) * (sum_n (fun k => 1 / (y + INR...
theory putnam_1992_a2 imports Complex_Main "HOL-Analysis.Derivative" "HOL-Analysis.Set_Integral" "HOL-Analysis.Lebesgue_Measure" begin definition putnam_1992_a2_solution :: real where "putnam_1992_a2_solution \<equiv> undefined" (* 1992 *) theorem putnam_1992_a2: fixes taylorcoeff :: "(real \<Rightarrow> real) \<Rig...
putnam_1992_a3
abbrev putnam_1992_a3_solution : ℕ → Set (ℕ × ℕ × ℕ) := sorry -- fun m ↦ ite (Odd m) ∅ {(m + 1, 2 ^ (m / 2), 2 ^ (m / 2))} theorem putnam_1992_a3 (m : ℕ) (mpos : m > 0) (S : Set (ℕ × ℕ × ℕ)) (hS : ∀ n x y : ℕ, (n, x, y) ∈ S ↔ n > 0 ∧ x > 0 ∧ y > 0 ∧ Coprime n m ∧ (x ^ 2 + y ^ 2) ^ m = (x * y) ^ n) : (S = putnam_1992_a3...
For a given positive integer $m$, find all triples $(n, x, y)$ of positive integers, with $n$ relatively prime to $m$, which satisfy \[ (x^2 + y^2)^m = (xy)^n. \]
Prove that if $m$ is odd, there are no solutions, and if $m$ is even, the only solution is $(n, x, y) = (m + 1, 2 ^ {m/2}, 2 ^{m/2})$.
['algebra', 'number_theory']
Section putnam_1992_a3. Require Import Nat. From mathcomp Require Import div fintype perm ssrbool. Definition putnam_1992_a3_solution (n x y: nat) := True. Theorem putnam_1992_a3: forall (m: nat), m > 0 -> forall (n x y: nat), n > 0 /\ x > 0 /\ y > 0 /\ coprime n m -> pow (pow x 2 + pow y 2) m = pow (x * y...
theory putnam_1992_a3 imports Complex_Main begin definition putnam_1992_a3_solution :: "nat \<Rightarrow> ((nat \<times> nat \<times> nat) set)" where "putnam_1992_a3_solution \<equiv> undefined" (* (\<lambda>m::nat. if (odd m) then {} else {(m+1, 2^(nat \<lfloor>m/2\<rfloor>), 2^(nat \<lfloor>m/2\<rfloor>))}) *) theo...
putnam_1992_a4
abbrev putnam_1992_a4_solution : ℕ → ℝ := sorry -- fun k ↦ ite (Even k) ((-1) ^ (k / 2) * factorial k) 0 theorem putnam_1992_a4 (f : ℝ → ℝ) (hfdiff : ContDiff ℝ ⊤ f) (hf : ∀ n : ℕ, n > 0 → f (1 / n) = n ^ 2 / (n ^ 2 + 1)) : (∀ k : ℕ, k > 0 → iteratedDeriv k f 0 = putnam_1992_a4_solution k) := sorry
Let $f$ be an infinitely differentiable real-valued function defined on the real numbers. If \[ f\left( \frac{1}{n} \right) = \frac{n^2}{n^2 + 1}, \qquad n = 1, 2, 3, \dots, \] compute the values of the derivatives $f^{(k)}(0), k = 1, 2, 3, \dots$.
Prove that \[ f^{(k)}(0) = \begin{cases} (-1)^{k/2}k! & \text{if $k$ is even;} \\ 0 & \text{if $k$ is odd.} \\ \end{cases} \]
['analysis']
Section putnam_1992_a4. Require Import Nat Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1992_a4_solution (k: nat) := if odd k then 0 else pow (-1) (k/2). Theorem putnam_1992_a4: let f (n: R) := (pow (1 / n) 2) / ((pow (1 / n) 2) + 1) in let df_0 (k: nat) := (Derive_n f k) 0 in forall (k: na...
theory putnam_1992_a4 imports Complex_Main "HOL-Analysis.Derivative" begin definition putnam_1992_a4_solution :: "nat \<Rightarrow> real" where "putnam_1992_a4_solution \<equiv> undefined" (* (\<lambda>k::nat. if (even k) then ((-1)^(nat \<lfloor>k/2\<rfloor>) * fact k) else 0) *) theorem putnam_1992_a4: fixes f :: ...
putnam_1992_a5
theorem putnam_1992_a5 (a : ℕ → ℕ := fun n ↦ ite (Even {i | (digits 2 n).get i = 1}.ncard) 0 1) : (¬∃ k > 0, ∃ m > 0, ∀ j ≤ m - 1, a (k + j) = a (k + m + j) ∧ a (k + m + j) = a (k + 2 * m + j)) := sorry
For each positive integer $n$, let $a_n = 0$ (or $1$) if the number of $1$'s in the binary representation of $n$ is even (or odd), respectively. Show that there do not exist positive integers $k$ and $m$ such that \[ a_{k+j} = a_{k+m+j} = a_{k+2m+j}, \] for $0 \leq j \leq m-1$.
null
['algebra']
Section putnam_1992_a5. Require Import BinPos Nat ZArith. Definition putnam_1992_a5_solution := 1. Theorem putnam_1992_a5: let k:= fix count_ones (n : positive) : nat := match n with | xH => 1 | xO n' => count_ones n' | xI n' => 1 + count_ones n' end in let a (n: po...
theory putnam_1992_a5 imports Complex_Main begin theorem putnam_1992_a5: fixes num1s :: "nat \<Rightarrow> nat" and a :: "nat \<Rightarrow> nat" assumes hnum1s: "num1s 0 = 0 \<and> (\<forall>n::nat>0. num1s n = (if (odd n) then 1 else 0) + num1s (nat \<lfloor>n / 2\<rfloor>))" defines "a \<equiv> (\<lambda>n::...
putnam_1992_b1
abbrev putnam_1992_b1_solution : ℕ → ℤ := sorry -- fun n ↦ 2 * n - 3 theorem putnam_1992_b1 (n : ℕ) (nge2 : n ≥ 2) (A : Finset ℝ → Set ℝ := fun S ↦ {x | ∃ a ∈ S, ∃ b ∈ S, a ≠ b ∧ (a + b) / 2 = x}) (min : ℤ) (hmineq : ∃ S : Finset ℝ, S.card = n ∧ min = (A S).ncard) (hminlb : ∀ S : Finset ℝ, S.card = n → min ≤ (A S).ncar...
Let $S$ be a set of $n$ distinct real numbers. Let $A_S$ be the set of numbers that occur as averages of two distinct elements of $S$. For a given $n \geq 2$, what is the smallest possible number of elements in $A_S$?
Show that the answer is $2n - 3$.
['algebra']
Section putnam_1992_b1. Require Import Nat Ensembles Finite_sets Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1992_b1_solution (n: nat) := sub (mul 2 n) 3. Theorem putnam_1992_b1: forall (n: nat) (E: Ensemble R), let AE_criterion (E AE: Ensemble R) := cardinal R E n /\ forall (m: R), AE m <-> e...
theory putnam_1992_b1 imports Complex_Main begin definition putnam_1992_b1_solution :: "nat \<Rightarrow> nat" where "putnam_1992_b1_solution \<equiv> undefined" (* (\<lambda>n::nat. 2*n - 3) *) theorem putnam_1992_b1: fixes n :: nat and A :: "real set \<Rightarrow> real set" and min :: nat assumes nge2: "n \<...
putnam_1992_b2
theorem putnam_1992_b2 (Q : ℕ → ℕ → ℕ := fun n k ↦ coeff ((1 + X + X ^ 2 + X ^ 3) ^ n) k) : (∀ n k : ℕ, Q n k = ∑ j : Finset.range (k + 1), choose n j * choose n (k - 2 * j)) := sorry
For nonnegative integers $n$ and $k$, define $Q(n, k)$ to be the coefficient of $x^k$ in the expansion of $(1 + x + x^2 + x^3)^n$. Prove that \[ Q(n, k) = \sum_{j=0}^k \binom{n}{j} \binom{n}{k-2j}, \] where $\binom{a}{b}$ is the standard binomial coefficient. (Reminder: For integers $a$ and $b$ with $a \geq 0$, $\binom...
null
['algebra']
null
theory putnam_1992_b2 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin theorem putnam_1992_b2: fixes Q :: "nat \<Rightarrow> nat \<Rightarrow> nat" defines "Q \<equiv> (\<lambda>n k::nat. coeff ((monom 1 0 + monom 1 1 + monom 1 2 + monom 1 3)^n) k)" shows "\<forall>n k::nat. Q n k = (\<Sum>j::na...
putnam_1992_b4
abbrev putnam_1992_b4_solution : ℕ := sorry -- 3984 theorem putnam_1992_b4 (valid : Polynomial ℝ → Prop := fun p ↦ p ≠ 0 ∧ p.degree < 1992 ∧ IsCoprime p (X ^ 3 - X)) (pair : Polynomial ℝ → Polynomial ℝ → Prop := fun p f ↦ ∃ g : Polynomial ℝ, iteratedDeriv 1992 (fun x ↦ p.eval x / (x ^ 3 - x)) = fun x ↦ f.eval x / g.eva...
Let $p(x)$ be a nonzero polynomial of degree less than $1992$ having no nonconstant factor in common with $x^3 - x$. Let \[ \frac{d^{1992}}{dx^{1992}} \left( \frac{p(x)}{x^3 - x} \right) = \frac{f(x)}{g(x)} \] for polynomials $f(x)$ and $g(x)$. Find the smallest possible degree of $f(x)$.
Show that the minimum degree is $3984$.
['algebra']
Section putnam_1992_b4. From mathcomp Require Import ssrnat ssrnum ssralg poly polydiv seq. Open Scope ring_scope. Definition putnam_1992_b4_solution := 3984%nat. Theorem putnam_1992_b4: forall (R: numDomainType) (p: {poly R}), gt (size p) 1992 /\ exists c: R, gcdp_rec p ('X^3 - 'X) = polyC c -> let cond (...
theory putnam_1992_b4 imports Complex_Main "HOL-Computational_Algebra.Polynomial" "HOL-Analysis.Derivative" begin definition putnam_1992_b4_solution :: nat where "putnam_1992_b4_solution \<equiv> undefined" (* 3984 *) theorem putnam_1992_b4: fixes valid :: "(real poly) \<Rightarrow> bool" and pair :: "(real poly) ...
putnam_1992_b5
abbrev putnam_1992_b5_solution : Prop := sorry -- False theorem putnam_1992_b5 (D : ℕ → ℚ := fun n ↦ Matrix.det (fun i j : Fin (n - 1) ↦ ite (i = j) (i + 3) 1)) : ((Bornology.IsBounded {x | ∃ n ≥ 2, D n / factorial n = x}) ↔ putnam_1992_b5_solution) := sorry
Let $D_n$ denote the value of the $(n-1) \times (n-1)$ determinant \[ \left[ \begin{array}{cccccc} 3 & 1 & 1 & 1 & \cdots & 1 \\ 1 & 4 & 1 & 1 & \cdots & 1 \\ 1 & 1 & 5 & 1 & \cdots & 1 \\ 1 & 1 & 1 & 6 & \cdots & 1 \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & 1 & 1 & 1 & \cdots & n+1 \end{array} \righ...
Prove that the set is not bounded.
['linear_algebra', 'analysis']
null
theory putnam_1992_b5 imports Complex_Main "HOL-Combinatorics.Permutations" begin (* uses (nat \<Rightarrow> nat \<Rightarrow> nat) instead of (Fin n \<Rightarrow> Fin n \<Rightarrow> nat) and (nat \<Rightarrow> nat) instead of (Fin n \<Rightarrow> Fin n) *) definition putnam_1992_b5_solution :: bool where "putnam_199...
putnam_1992_b6
theorem putnam_1992_b6 (n : ℕ) (npos : n > 0) (M : Set (Matrix (Fin n) (Fin n) ℝ)) (h1 : 1 ∈ M) (h2 : ∀ A ∈ M, ∀ B ∈ M, Xor' (A * B ∈ M) (-A * B ∈ M)) (h3 : ∀ A ∈ M, ∀ B ∈ M, (A * B = B * A) ∨ (A * B = -B * A)) (h4 : ∀ A ∈ M, A ≠ 1 → ∃ B ∈ M, A * B = -B * A) : (M.encard ≤ n ^ 2) := sorry
Let $M$ be a set of real $n \times n$ matrices such that \begin{itemize} \item[(i)] $I \in M$, where $I$ is the $n \times n$ identity matrix; \item[(ii)] if $A \in M$ and $B \in M$, then either $AB \in M$ or $-AB \in M$, but not both; \item[(iii)] if $A \in M$ and $B \in M$, then either $AB = BA$ or $AB = -BA$; \item[(...
null
['linear_algebra']
null
theory putnam_1992_b6 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" begin theorem putnam_1992_b6: fixes n :: nat and M :: "(real^'n^'n) set" assumes npos: "n > 0" and pncard: "CARD('n) = n" and h1: "mat 1 \<in> M" and h2: "\<forall>A\<in>M. \<forall>B\<in>M. (A**B \<in> M) \<noteq> (-A**B \<...
putnam_2002_a1
abbrev putnam_2002_a1_solution : ℕ → ℕ → ℝ := sorry -- (fun k n : ℕ => (-k) ^ n * (n)!) theorem putnam_2002_a1 (k : ℕ) (P : ℕ → Polynomial ℝ) (kpos : k > 0) (Pderiv : ∀ n : ℕ, ∀ x : ℝ, iteratedDeriv n (fun x' : ℝ => 1 / (x' ^ k - 1)) x = ((P n).eval x) / ((x ^ k - 1) ^ (n + 1))) : ∀ n : ℕ, (P n).eval 1 = putnam_2002_a1...
Let $k$ be a fixed positive integer. The $n$-th derivative of $\frac{1}{x^k-1}$ has the form $\frac{P_n(x)}{(x^k-1)^{n+1}}$ where $P_n(x)$ is a polynomial. Find $P_n(1)$.
Show that $P_n(1)=(-k)^nn!$ for all $n \geq 0$.
['analysis', 'algebra']
Section putnam_2002_a1. Require Import Reals Factorial Coquelicot.Coquelicot. Definition putnam_2002_a1_solution (k n: nat) := Rpower (-1 * INR k) (INR n) * INR (fact n). Theorem putnam_2002_a1: let p (a: nat -> R) (x: R) (n: nat) := sum_n (fun i => a i * x ^ i) n in forall (N k: nat), gt k 0 -> exists (a: nat...
theory putnam_2002_a1 imports Complex_Main "HOL-Computational_Algebra.Polynomial" "HOL-Analysis.Derivative" begin definition putnam_2002_a1_solution::"nat\<Rightarrow>nat\<Rightarrow>real" where "putnam_2002_a1_solution \<equiv> undefined" (* \<lambda>k. \<lambda>n. (-k) ^n * fact n *) theorem putnam_2002_a1: fixes ...
putnam_2002_a3
theorem putnam_2002_a3 (n : ℤ) (hn : n ≥ 2) (Tn : ℤ) (hTn : Tn = Set.ncard {S : Set ℤ | S ⊆ Set.Icc 1 n ∧ Nonempty S ∧ ∃ k : ℤ, k = ((1 : ℝ) / S.ncard) * (∑' s : S, s.1)}) : Even (Tn - n) := sorry
Let $n \geq 2$ be an integer and $T_n$ be the number of non-empty subsets $S$ of $\{1, 2, 3, \dots, n\}$ with the property that the average of the elements of $S$ is an integer. Prove that $T_n - n$ is always even.
null
['algebra']
null
theory putnam_2002_a3 imports Complex_Main begin theorem putnam_2002_a3: fixes n Tn :: "int" defines "Tn \<equiv> card {S :: int set. S \<subseteq> {1..16} \<and> S \<noteq> {} \<and> (\<exists> k :: int. k = (real 1)/(card S) * (\<Sum> s \<in> S. s))}" assumes hn : "n \<ge> 2" shows "even (Tn - n)" sorry e...
putnam_2002_a5
theorem putnam_2002_a5 (a : ℕ → ℚ) (ha : a 0 = 1 ∧ ∀ n : ℕ, a (2*n + 1) = a n ∧ a (2*n + 2) = a n + a (n + 1)) : ∀ q : ℚ, q > 0 → q ∈ {a (n - 1) / a n | n ∈ Ici 1} := sorry
Define a sequence by $a_0=1$, together with the rules $a_{2n+1} = a_n$ and $a_{2n+2} = a_n + a_{n+1}$ for each integer $n \geq 0$. Prove that every positive rational number appears in the set \[ \left\{ \frac{a_{n-1}}{a_n}: n \geq 1 \right\} = \left\{ \frac{1}{1}, \frac{1}{2}, \frac{2}{1}, \frac{1}{3}, \frac{3}{2}, \do...
null
['number_theory', 'algebra']
null
theory putnam_2002_a5 imports Complex_Main begin theorem putnam_2002_a5: fixes a :: "nat \<Rightarrow> rat" assumes ha: "a 0 = 1 \<and> (\<forall> n :: nat. a (2 * n + 1) = a n \<and> a (2 * n + 2) = a n + a (n + 1))" shows "\<forall> q :: rat. q > 0 \<longrightarrow> q \<in> {a (n - 1) / a n | n :: nat. n \<ge>...
putnam_2002_a6
abbrev putnam_2002_a6_solution : Set ℕ := sorry -- {2} theorem putnam_2002_a6 (f : ℕ → ℕ → ℝ) (hf : ∀ b : ℕ, f b 1 = 1 ∧ f b 2 = 2 ∧ ∀ n ∈ Ici 3, f b n = n * f b (Nat.digits b n).length) : {b ∈ Ici 2 | ∃ L : ℝ, Tendsto (fun m : ℕ => ∑ n in Finset.Icc 1 m, 1/(f b n)) atTop (𝓝 L)} = putnam_2002_a6_solution := sorry
Fix an integer $b \geq 2$. Let $f(1) = 1$, $f(2) = 2$, and for each $n \geq 3$, define $f(n) = n f(d)$, where $d$ is the number of base-$b$ digits of $n$. For which values of $b$ does \[ \sum_{n=1}^\infty \frac{1}{f(n)} \] converge?
The sum converges for $b=2$ and diverges for $b \geq 3$.
['analysis', 'number_theory']
null
theory putnam_2002_a6 imports Complex_Main begin definition putnam_2002_a6_solution :: "nat set" where "putnam_2002_a6_solution \<equiv> undefined" (* {2} *) theorem putnam_2002_a6: fixes f :: "nat \<Rightarrow> nat \<Rightarrow> nat" and digitlength :: "nat \<Rightarrow> nat \<Rightarrow> nat" defines "digitlen...
putnam_2002_b3
theorem putnam_2002_b3 (e : ℝ := Real.exp 1) (f : ℤ → ℝ := fun n : ℤ => 1/e - (1 - 1/n)^n) : ∀ n : ℤ, n > 1 → 1/(2*n*e) < f n ∧ f n < 1/(n*e) := sorry
Show that, for all integers $n > 1$, \[ \frac{1}{2ne} < \frac{1}{e} - \left( 1 - \frac{1}{n} \right)^n < \frac{1}{ne}. \]
null
['algebra']
Section putnam_2002_b3. Require Import Reals Coquelicot.Coquelicot. Open Scope R. Theorem putnam_2002_b3: forall (n: nat), ge n 1 -> let n := INR n in 1 / (2 * n * exp 1) < 1 / (exp 1) - Rpower (1 - 1 / n) n < 1 / (n * (exp 1)). Proof. Admitted. End putnam_2002_b3.
theory putnam_2002_b3 imports Complex_Main begin theorem putnam_2002_b3: fixes e :: real and f :: "int \<Rightarrow> real" defines "e \<equiv> exp 1" and "f \<equiv> \<lambda> n :: int. 1 / e - (1 - 1 / n) powi n" shows "\<forall> n :: int. n > 1 \<longrightarrow> 1 / (2 * n * e) < f n \<and> f n < 1 / (n *...
putnam_2002_b5
theorem putnam_2002_b5 : ∃ n : ℕ, {b : ℕ | (Nat.digits b n).length = 3 ∧ List.Palindrome (Nat.digits b n)}.ncard ≥ 2002 := sorry
A palindrome in base $b$ is a positive integer whose base-$b$ digits read the same backwards and forwards; for example, $2002$ is a 4-digit palindrome in base 10. Note that 200 is not a palindrome in base 10, but it is the 3-digit palindrome 242 in base 9, and 404 in base 7. Prove that there is an integer which is a 3-...
null
['number_theory']
null
theory putnam_2002_b5 imports Complex_Main begin fun digits :: "nat \<Rightarrow> nat \<Rightarrow> nat list" where "digits b n = (if b < 2 then (replicate n 1) else (if n < b then [n] else [n mod b] @ digits b (n div b)))" theorem putnam_2002_b5: shows "\<exists> n :: nat. card {b :: nat. length (digits b n) = 3 ...
putnam_2002_b6
theorem putnam_2002_b6 (p : ℕ) (hp : Nat.Prime p) (M : Matrix (Fin 3) (Fin 3) (MvPolynomial (Fin 3) ℤ) := fun r : Fin 3 => fun c : Fin 3 => (X c)^(p^(r : ℕ))) (cong : ℕ → MvPolynomial (Fin 3) ℤ × MvPolynomial (Fin 3) ℤ → Prop := fun p : ℕ => fun (f, g) => ∀ n : Fin 3 →₀ ℕ, Int.ModEq p (f.coeff n) (g.coeff n)) : ∃ S : F...
Let $p$ be a prime number. Prove that the determinant of the matrix \[ \begin{pmatrix} x & y & z \\ x^p & y^p & z^p \\ x^{p^2} & y^{p^2} & z^{p^2} \end{pmatrix} \] is congruent modulo $p$ to a product of polynomials of the form $ax+by+cz$, where $a,b,c$ are integers. (We say two integer polynomials are congruent modulo...
null
['linear_algebra', 'number_theory', 'algebra']
null
theory putnam_2002_b6 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" "HOL-Analysis.Determinants" "HOL-Number_Theory.Cong" "HOL-Computational_Algebra.Primes" "HOL-Computational_Algebra.Polynomial" begin theorem putnam_2002_b6: fixes p :: nat and lincomb :: "int \<times> int \<times> int \<Rightarrow> ...
putnam_1969_a2
theorem putnam_1969_a2 (D : (n : ℕ) → Matrix (Fin n) (Fin n) ℝ := fun n => λ i j => |i.1 - j.1| ) : ∀ n, n ≥ 2 → (D n).det = (-1)^((n : ℤ)-1) * ((n : ℤ)-1) * 2^((n : ℤ)-2) := sorry
Let $D_n$ be the determinant of the $n$ by $n$ matrix whose value in the $i$th row and $j$th column is $|i-j|$. Show that $D_n = (-1)^{n-1} * (n-1) * (2^{n-2}).$
null
['linear_algebra']
null
theory putnam_1969_a2 imports Complex_Main "HOL-Combinatorics.Permutations" begin (* uses (nat \<Rightarrow> nat \<Rightarrow> real) instead of (Fin n \<Rightarrow> Fin n \<Rightarrow> real) and (nat \<Rightarrow> nat) instead of (Fin n \<Rightarrow> Fin n) *) theorem putnam_1969_a2: fixes D :: "nat \<Rightarrow> na...
putnam_1969_a4
theorem putnam_1969_a4 : Tendsto (fun n => ∑ i in Finset.Icc (1 : ℤ) n, (-1)^(i+1)*(i : ℝ)^(-i)) atTop (𝓝 (∫ x in Ioo (0 : ℝ) 1, x^x)) := sorry
Show that $\int_0^1 x^x dx = \sum_{n=1}^{\infty} (-1)^{n+1}n^{-n}$.
null
['analysis']
null
theory putnam_1969_a4 imports Complex_Main "HOL-Analysis.Interval_Integral" begin theorem putnam_1969_a4: shows "filterlim (\<lambda>n::int. (\<Sum>i::int=1..n. (-1) powi (i+1) * i powi (-i))) (nhds (interval_lebesgue_integral lebesgue 0 1 (\<lambda>x::real. x powr x))) at_top" sorry end
putnam_1969_a6
theorem putnam_1969_a6 (x : ℕ → ℝ) (y : ℕ → ℝ) (hy1 : ∀ n ≥ 2, y n = x (n-1) + 2 * (x n)) (hy2 : ∃ c : ℝ, Tendsto y atTop (𝓝 c)) : ∃ C : ℝ, Tendsto x atTop (𝓝 C) := sorry
Let $(x_n)$ be a sequence, and let $y_n = x_{n-1} + 2*x_n$ for $n \geq 2$. Suppose that $(y_n)$ converges, then prove that $(x_n)$ converges.
null
['analysis']
null
theory putnam_1969_a6 imports Complex_Main begin theorem putnam_1969_a6: fixes x :: "nat \<Rightarrow> real" and y :: "nat \<Rightarrow> real" assumes hy1: "\<forall>n::nat\<ge>2. y n = x (n-1) + 2*(x n)" and hy2: "\<exists>c::real. filterlim y (nhds c) at_top" shows "\<exists>C::real. filterlim x (nhds C) a...
putnam_1969_b1
theorem putnam_1969_b1 (n : ℕ) (hnpos : n > 0) (hn : 24 ∣ (n + 1 : ℤ)) : 24 ∣ ∑ d in divisors n, (d : ℤ) := sorry
Let $n$ be a positive integer such that $n+1$ is divisible by $24$. Prove that the sum of all the divisors of $n$ is divisible by $24$.
null
['number_theory']
null
theory putnam_1969_b1 imports Complex_Main begin theorem putnam_1969_b1: fixes n :: nat assumes hnpos: "n > 0" and hn: "24 dvd (n + 1)" shows "24 dvd (\<Sum> {d::nat. d dvd n})" sorry end
putnam_1969_b2
abbrev putnam_1969_b2_solution : Prop := sorry -- False theorem putnam_1969_b2 (G : Type*) [Group G] [Finite G] (h : ℕ → Prop := fun n => ∃ H : Fin n → Subgroup G, (∀ i : Fin n, (H i) < ⊤) ∧ ((⊤ : Set G) = ⋃ i : Fin n, (H i))) : ¬(h 2) ∧ ((¬(h 3)) ↔ putnam_1969_b2_solution) := sorry
Show that a finite group can not be the union of two of its proper subgroups. Does the statement remain true if 'two' is replaced by 'three'?
Show that the statement is no longer true if 'two' is replaced by 'three'.
['abstract_algebra']
null
theory putnam_1969_b2 imports Complex_Main "HOL-Algebra.Group" begin (* uses (nat \<Rightarrow> ('a set)) instead of (Fin n \<Rightarrow> ('a set)) *) definition putnam_1969_b2_solution :: bool where "putnam_1969_b2_solution \<equiv> undefined" (* False *) theorem putnam_1969_b2: fixes G (structure) and h :: "nat ...
putnam_1969_b3
theorem putnam_1969_b3 (T : ℕ → ℝ) (hT1 : ∀ n : ℕ, n ≥ 1 → (T n) * (T (n + 1)) = n) (hT2 : Tendsto (fun n => (T n)/(T (n + 1))) atTop (𝓝 1)) : Real.pi * (T 1)^2 = 2 := sorry
Suppose $T$ is a sequence which satisfies $T_n * T_{n+1} = n$ whenever $n \geq 1$, and also $\lim_{n \to \infty} \frac{T_n}{T_{n+1}} = 1. Show that $\pi * T_1^2 = 2$.
null
['analysis']
null
theory putnam_1969_b3 imports Complex_Main begin theorem putnam_1969_b3: fixes T :: "nat \<Rightarrow> real" assumes hT1: "\<forall>n::nat. (n \<ge> 1 \<longrightarrow> (T n) * (T (n+1)) = n)" and hT2: "filterlim (\<lambda>n::nat. (T n) / (T (n+1))) (nhds 1) at_top" shows "pi*(T 1)^2 = 2" sorry end
putnam_1969_b5
theorem putnam_1969_b5 (a : ℕ → ℝ) (ha : StrictMono a ∧ (∀ x : ℕ, a > 0)) (hinvasum : ∃ C : ℝ, Tendsto (fun n => ∑ i : Fin n, 1/(a i)) atTop (𝓝 C)) (k : ℝ → ℕ := fun x => {n | a n ≤ x}.ncard) : Tendsto (fun t => (k t)/t) atTop (𝓝 0) := sorry
Let $a_1 < a_2 < a_3 < \dots$ be an increasing sequence of positive integers. Assume that the sequences $\sum_{i = 1}^{\infty} 1/(a n)$ is convergent. For any number $x$, let $k(x)$ be the number of $a_n$'s which do not exceed $x$. Show that $\lim_{x \to \infty} k(x)/x = 0$.
null
['analysis']
null
theory putnam_1969_b5 imports Complex_Main begin theorem putnam_1969_b5: fixes a :: "nat \<Rightarrow> real" and k :: "real \<Rightarrow> nat" assumes ha: "strict_mono a \<and> (\<forall>n::nat. a n > 0)" and hinvasum: "\<exists>C::real. filterlim (\<lambda>n::nat. (\<Sum>i::nat=0..(n-1). 1/(a i))) (nhds C) at...
putnam_1969_b6
theorem putnam_1969_b6 (A : Matrix (Fin 3) (Fin 2) ℝ) (B : Matrix (Fin 2) (Fin 3) ℝ) (p : Fin 3 → Fin 3 → ℝ) (hp : p 0 0 = 8 ∧ p 0 1 = 2 ∧ p 0 2 = -2 ∧ p 1 0 = 2 ∧ p 1 1 = 5 ∧ p 1 2 = 4 ∧ p 2 0 = -2 ∧ p 2 1 = 4 ∧ p 2 2 = 5) (hAB : A * B = Matrix.of p) : B * A = 9 * (1 : Matrix (Fin 2) (Fin 2) ℝ) := sorry
Let $A$ be a $3 \times 2$ matrix and $B$ be a $2 \times 3$ matrix such that $$AB = \begin{pmatrix} 8 & 2 & -2 \\ 2 & 5 & 4 \\ -2 & 4 & 5 \end{pmatrix}. $$ Prove that $$BA = \begin{pmatrix} 9 & 0 \\ 0 & 9 \end{pmatrix}.$$
null
['linear_algebra']
null
theory putnam_1969_b6 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" begin theorem putnam_1969_b6: fixes A :: "real^2^3" and B :: "real^3^2" and p :: "real^3^3" assumes hp: "p$1$1 = 8 \<and> p$1$2 = 2 \<and> p$1$3 = -2 \<and> p$2$1 = 2 \<and> p$2$2 = 5 \<and> p$2$3 = 4 \<and> p$3$1 = -2 \<and...
putnam_1977_a1
abbrev putnam_1977_a1_solution : ℝ := sorry -- -7 / 8 theorem putnam_1977_a1 (y : ℝ → ℝ := fun x ↦ 2 * x ^ 4 + 7 * x ^ 3 + 3 * x - 5) (S : Finset ℝ) (hS : S.card = 4) : (Collinear ℝ {P : Fin 2 → ℝ | P 0 ∈ S ∧ P 1 = y (P 0)} → (∑ x in S, x) / 4 = putnam_1977_a1_solution) := sorry
Show that if four distinct points of the curve $y = 2x^4 + 7x^3 + 3x - 5$ are collinear, then their average $x$-coordinate is some constant $k$. Find $k$.
Prove that $k = -\frac{7}{8}$.
['algebra']
Section putnam_1977_a1. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1977_a1_solution := 1. Theorem putnam_1977_a1 (y : R -> R := fun x => 2 * x ^ 4 + 7 * x ^ 3 + 3 * x - 5) (collinear : ((R * R) * (R * R) * (R * R) * (R * R)) -> Prop := fun ABCD => let '((Ax, Ay), (Bx, By), (Cx, Cy), (...
theory putnam_1977_a1 imports Complex_Main "HOL-Analysis.Linear_Algebra" begin definition putnam_1977_a1_solution::real where "putnam_1977_a1_solution \<equiv> undefined" (* -7/8 *) theorem putnam_1977_a1: fixes f::"real\<Rightarrow>real" and S::"real set" defines "f \<equiv> \<lambda>x. 2 * x^4 + 7 * x^3 + 3 * x ...
putnam_1977_a2
abbrev putnam_1977_a2_solution : ℝ → ℝ → ℝ → ℝ → Prop := sorry -- fun a b c d ↦ d = a ∧ b = -c ∨ d = b ∧ a = -c ∨ d = c ∧ a = -b theorem putnam_1977_a2 : (∀ a b c d : ℝ, a ≠ 0 → b ≠ 0 → c ≠ 0 → d ≠ 0 → ((a + b + c = d ∧ 1 / a + 1 / b + 1 / c = 1 / d) ↔ putnam_1977_a2_solution a b c d)) := sorry
Find all real solutions $(a, b, c, d)$ to the equations $a + b + c = d$, $\frac{1}{a} + \frac{1}{b} + \frac{1}{c} = \frac{1}{d}$.
Prove that the solutions are $d = a$ and $b = -c$, $d = b$ and $a = -c$, or $d = c$ and $a = -b$, with $a, b, c, d$ nonzero.
['algebra']
Section putnam_1977_a2. Require Import Reals. Open Scope R. Definition putnam_1977_a2_solution (a b c d: R) := c = -a /\ d = b. Theorem putnam_1977_a2: forall (a b c d: R), a + b + c = d /\ 1/a + 1/b + 1/c = 1/d -> putnam_1977_a2_solution a b c d. Proof. Admitted. End putnam_1977_a2.
theory putnam_1977_a2 imports Complex_Main begin definition putnam_1977_a2_solution::"real\<Rightarrow>real\<Rightarrow>real\<Rightarrow>real\<Rightarrow>bool" where "putnam_1977_a2_solution \<equiv> undefined" (* \<lambda>a. \<lambda>b. \<lambda>c. \<lambda>d. d = a \<and> b = -c \<or> d = b \<and> a = -c \<or> d = c...
putnam_1977_a3
abbrev putnam_1977_a3_solution : (ℝ → ℝ) → (ℝ → ℝ) → (ℝ → ℝ) := sorry -- fun f g x ↦ g x - f (x - 3) + f (x - 1) + f (x + 1) - f (x + 3) theorem putnam_1977_a3 (f g : ℝ → ℝ) : let h := putnam_1977_a3_solution f g; (∀ x : ℝ, f x = (h (x + 1) + h (x - 1)) / 2 ∧ g x = (h (x + 4) + h (x - 4)) / 2) := sorry
Let $f, g, h$ be functions $\mathbb{R} \to \mathbb{R}$. Find an expression for $h(x)$ in terms of $f$ and $g$ such that $f(x) = \frac{h(x + 1) + h(x - 1)}{2}$ and $g(x) = \frac{h(x + 4) + h(x - 4)}{2}$.
Prove that $h(x) = g(x) - f(x - 3) + f(x - 1) + f(x + 1) - f(x + 3)$ suffices.
['algebra']
Section putnam_1977_a3. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1977_a3_solution (f g: R -> R) : R -> R := fun x => g x - f (x - 3) + f (x - 1) + f (x + 1) - f (x + 3). Theorem putnam_1977_a3 (f g h : R -> R) (hf : Prop := f = fun x => (h (x + 1) + h (x - 1)) / 2) (hg : Prop := g = fun...
theory putnam_1977_a3 imports Complex_Main begin definition putnam_1977_a3_solution::"(real\<Rightarrow>real) \<Rightarrow> (real\<Rightarrow>real) \<Rightarrow> (real\<Rightarrow>real)" where "putnam_1977_a3_solution \<equiv> undefined" (* \<lambda>f. \<lambda>g. \<lambda>x. g x - f (x-3) + f (x-1) + f (x+1) - f (x+3...
putnam_1977_a4
abbrev putnam_1977_a4_solution : RatFunc ℝ := sorry -- RatFunc.X / (1 - RatFunc.X) theorem putnam_1977_a4 : (∀ x ∈ Ioo 0 1, putnam_1977_a4_solution.eval (id ℝ) x = ∑' n : ℕ, x ^ 2 ^ n / (1 - x ^ 2 ^ (n + 1))) := sorry
Find $\sum_{n=0}^{\infty} \frac{x^{2^n}}{1 - x^{2^{n+1}}}$ as a rational function of $x$ for $x \in (0, 1)$.
Prove that the sum equals $\frac{x}{1 - x}$.
['algebra', 'analysis']
Section putnam_1977_a4. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1977_a4_solution (coeff1 coeff2 : nat -> Z) (n1 n2: nat) := (coeff1 = fun x => match x with | S O => Z.of_nat 1 | _ => Z.of_nat 0 end) /\ (coeff2 = fun x => match x with | O => Z.of_nat 1 | S O => (floor (-1)) | _ => Z.of_nat 0 end) /...
theory putnam_1977_a4 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_1977_a4_solution::"(real poly) \<times> (real poly)" where "putnam_1977_a4_solution \<equiv> undefined" (* ([: 0, 1 :], [: 1, -1 :]) *) theorem putnam_1977_a4: shows "\<forall>x \<in> {0<..<1::real}. (poly (fst ...
putnam_1977_a5
theorem putnam_1977_a5 (p m n : ℕ) (hp : Nat.Prime p) (hmgen : m ≥ n) : (choose (p * m) (p * n) ≡ choose m n [MOD p]) := sorry
Let $p$ be a prime and $m \geq n$ be non-negative integers. Show that $\binom{pm}{pn} = \binom{m}{n} \pmod p$, where $\binom{m}{n}$ is the binomial coefficient.
null
['algebra', 'number_theory']
Section putnam_1977_a5. Require Import Binomial Reals Znumtheory Coquelicot.Coquelicot. Open Scope nat_scope. Theorem putnam_1977_a5: forall (p n m: nat), prime (Z.of_nat p) /\ m >= n -> (Z.to_nat (floor (Binomial.C (p*m) (p*n)))) = (Z.to_nat (floor (Binomial.C m n))) mod p. Proof. Admitted. End putnam_1977_a...
theory putnam_1977_a5 imports Complex_Main "HOL-Number_Theory.Cong" begin theorem putnam_1977_a5: fixes p m n::nat assumes hp : "prime p" and hmgen : "m \<ge> n" shows "[(p*m) choose (p * n) = m choose n] (mod p)" sorry end
putnam_1977_a6
abbrev putnam_1977_a6_solution : Prop := sorry -- True theorem putnam_1977_a6 (X : Set (ℝ × ℝ) := Set.prod (Icc 0 1) (Icc 0 1)) (room : (ℝ × ℝ) → ℝ := fun (a,b) ↦ min (min a (1 - a)) (min b (1 - b))) : ((∀ f : (ℝ × ℝ) → ℝ, Continuous f → (∀ P ∈ X, ∫ x in (P.1 - room P)..(P.1 + room P), ∫ y in (P.2 - room P)..(P.2 + roo...
Let $X$ be the square $[0, 1] \times [0, 1]$, and let $f : X \to \mathbb{R}$ be continuous. If $\int_Y f(x, y) \, dx \, dy = 0$ for all squares $Y$ such that \begin{itemize} \item[(1)] $Y \subseteq X$, \item[(2)] $Y$ has sides parallel to those of $X$, \item[(3)] at least one of $Y$'s sides is contained in the bounda...
Prove that $f(x,y)$ must be identically zero.
['analysis']
null
theory putnam_1977_a6 imports Complex_Main "HOL-Analysis.Interval_Integral" begin definition putnam_1977_a6_solution::bool where "putnam_1977_a6_solution \<equiv> undefined" (* True *) theorem putnam_1977_a6: fixes X::"(real \<times> real) set" and room::"real\<Rightarrow>real\<Rightarrow>real" defines "X \<equiv>...
putnam_1977_b1
abbrev putnam_1977_b1_solution : ℝ := sorry -- 2 / 3 theorem putnam_1977_b1 : (Tendsto (fun N ↦ ∏ n in Finset.Icc (2 : ℤ) N, ((n : ℝ) ^ 3 - 1) / (n ^ 3 + 1)) ⊤ (𝓝 putnam_1977_b1_solution)) := sorry
Find $\prod_{n=2}^{\infty} \frac{(n^3 - 1)}{(n^3 + 1)}$.
Prove that the product equals $\frac{2}{3}$.
['algebra', 'analysis']
Section putnam_1977_b1. Require Import Reals Coquelicot.Series. Open Scope R. Definition putnam_1977_b1_solution := 2/3. Theorem putnam_1977_b1: Series (fun n => if (Rle_dec (INR n) 1) then 0 else (pow (INR n) 3 - 1)/ (pow (INR n) 3 + 1)) = putnam_1977_b1_solution. Proof. Admitted. End putnam_1977_b1.
theory putnam_1977_b1 imports Complex_Main begin definition putnam_1977_b1_solution::real where "putnam_1977_b1_solution \<equiv> undefined" (* 2/3 *) theorem putnam_1977_b1: shows "(\<lambda>N. \<Prod>n=2..N. (n^3 - 1) / (n^3 + 1)) \<longlonglongrightarrow> putnam_1977_b1_solution" sorry end
putnam_1977_b3
abbrev putnam_1977_b3_solution : Prop := sorry -- False theorem putnam_1977_b3 (P : ℝ × ℝ × ℝ → Prop := fun (a, b, c) => Irrational a ∧ Irrational b ∧ Irrational c ∧ a > 0 ∧ b > 0 ∧ c > 0 ∧ a + b + c = 1) (balanced : ℝ × ℝ × ℝ → Prop := fun (a, b, c) => a < 1/2 ∧ b < 1/2 ∧ c < 1/2) (B : ℝ × ℝ × ℝ → ℝ × ℝ × ℝ := fun (a,...
An ordered triple $(a, b, c)$ of positive irrational numbers with $a + b + c = 1$ is considered $\textit{balanced}$ if all three elements are less than $\frac{1}{2}$. If a triple is not balanced, we can perform a ``balancing act'' $B$ defined by $B(a, b, c) = (f(a), f(b), f(c))$, where $f(x) = 2x - 1$ if $x > 1/2$ and ...
Not necessarily.
['algebra']
null
theory putnam_1977_b3 imports Complex_Main begin definition putnam_1977_b3_solution :: "bool" where "putnam_1977_b3_solution \<equiv> undefined" (* False *) theorem putnam_1977_b3: fixes P balanced :: "(real \<times> real \<times> real) \<Rightarrow> bool" and B :: "(real \<times> real \<times> real) \<Rightarro...
putnam_1977_b5
theorem putnam_1977_b5 (n : ℕ) (hn : n > 1) (a : Fin n → ℝ) (A : ℝ) (hA : A + ∑ i : Fin n, (a i)^2 < (1/((n : ℝ) - 1))*(∑ i : Fin n, a i)^2) : ∀ i j : Fin n, i < j → A < 2*(a i)*(a j) := sorry
If $a_1, a_2, \dots, a_n$ are real numbers with $n > 1$ and $A$ satisfies $$A + \sum_{i = 1}^{n} a_i^2 < \frac{1}{n-1}\left(\sum_{i=1}^{n}a_i\right)^2,$$ prove that $A < 2a_{i}a_{j}$ for all $i, j$ with $1 \le i < j \le n$.
null
['algebra']
Section putnam_1977_b5. Require Import List Reals. Open Scope R. Theorem putnam_1977_b5: forall (n: nat) (a: list R) (b: R), length a = n -> let sum1 := fold_left Rplus a 0 in let sum2 := fold_left (fun acc x => Rplus acc (x*x)) a 0 in forall (b: R), b < sum1*sum1/(INR n-1) - sum2 -> forall...
theory putnam_1977_b5 imports Complex_Main begin theorem putnam_1977_b5: fixes n :: "nat" and a :: "nat \<Rightarrow> real" and A :: "real" assumes hn : "n > 1" and hA : "A + (\<Sum> i \<in> {1..n}. (a i)^2) < 1/(real n - 1) * (\<Sum> i \<in> {1..n}. a i)^2" shows "\<forall> i \<in> {1 :: nat..n}. \<...
putnam_1977_b6
theorem putnam_1977_b6 [Group G] (H : Subgroup G) (h : ℕ := Nat.card H) (a : G) (ha : ∀ x : H, (x*a)^3 = 1) (P : Set G := {g : G | ∃ xs : List H, (xs.length ≥ 1) ∧ g = (List.map (fun h : H => h*a) xs).prod}) : (Finite P) ∧ (P.ncard ≤ 3*h^2) := sorry
Let $G$ be a group and $H$ be a subgroup of $G$ with $h$ elements. Suppose that $G$ contains some element $a$ such that $(xa)^3 = 1$ for all $x \in H$ (here $1$ represents the identity element of $G$). Let $P$ be the subset of $G$ containing all products of the form $x_1 a x_2 a \cdots x_n a$ with $n \ge 1$ and $x_i \i...
null
['abstract_algebra']
null
theory putnam_1977_b6 imports Complex_Main "HOL-Algebra.Group" begin theorem putnam_1977_b6: fixes G (structure) and h :: "nat" and a :: "'a" and P H :: "'a set" defines "P \<equiv> {g :: 'a. \<exists> x :: 'a list. (length x \<ge> 1 \<and> (\<forall> i \<in> {1..length x}. x!i \<in> H) \<and> g = fold...
putnam_2012_a2
theorem putnam_2012_a2 (S : Type*) [CommSemigroup S] (a b c : S) (hS : ∀ x y : S, ∃ z : S, x * z = y) (habc : a * c = b * c) : a = b := sorry
Let $*$ be a commutative and associative binary operation on a set $S$. Assume that for every $x$ and $y$ in $S$, there exists $z$ in $S$ such that $x*z=y$. (This $z$ may depend on $x$ and $y$.) Show that if $a,b,c$ are in $S$ and $a*c=b*c$, then $a=b$.
null
['abstract_algebra']
Section putnam_2012_a2. Require Import ssreflect. Theorem putnam_2012_a2: forall (S : Type), let is_comm (op : S -> S -> S) := forall (x y: S), op x y = op y x in let is_assc (op : S -> S -> S) := forall (x y z: S), op x (op y z) = op (op x y) z in forall op, is_comm op /\ is_assc op /\ forall (x y: S...
theory putnam_2012_a2 imports Complex_Main begin theorem putnam_2012_a2: fixes Smul :: "'S \<Rightarrow> 'S \<Rightarrow> 'S" (infixl "\<^bold>*" 70) and a b c :: 'S assumes Smulasg: "abel_semigroup Smul" and hS: "\<forall>x y::'S. \<exists>z::'S. x \<^bold>* z = y" and habc: "a \<^bold>* c = b \<^bold>* c" ...
putnam_2012_a3
abbrev putnam_2012_a3_solution : ℝ → ℝ := sorry -- fun x : ℝ => Real.sqrt (1 - x^2) theorem putnam_2012_a3 (S : Set ℝ := Set.Icc (-1 : ℝ) 1) (hf : (ℝ → ℝ) → Prop := fun f : ℝ → ℝ => ContinuousOn f S ∧ (∀ x ∈ S, f x = ((2 - x^2)/2)*f (x^2/(2 - x^2))) ∧ f 0 = 1 ∧ (∃ y : ℝ, leftLim (fun x : ℝ => (f x)/Real.sqrt (1 - x)) 1...
Let $f: [-1, 1] \to \mathbb{R}$ be a continuous function such that \begin{itemize} \item[(i)] $f(x) = \frac{2-x^2}{2} f \left( \frac{x^2}{2-x^2} \right)$ for every $x$ in $[-1, 1]$, \item[(ii)] $f(0) = 1$, and \item[(iii)] $\lim_{x \to 1^-} \frac{f(x)}{\sqrt{1-x}}$ exists and is finite. \end{itemize} Prove that $f$ is ...
$f(x) = \sqrt{1-x^2}$ for all $x \in [-1,1]$.
['analysis', 'algebra']
Section putnam_2012_a3. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2012_a3_solution (x: R) := sqrt (1 - x ^ 2). Theorem putnam_2012_a3: forall (f: R -> R) (x: R), (-1 <= x <= 1 /\ continuity_pt f x /\ f x = (2 - x ^ 2) / 2 * f ((x ^ 2) / (2 - x ^ 2)) /\ f 0 = 1 /\ exists (c: R), filt...
theory putnam_2012_a3 imports Complex_Main begin (* uses (real \<Rightarrow> real) instead of ({-1..1} \<Rightarrow> real) *) definition putnam_2012_a3_solution :: "real \<Rightarrow> real" where "putnam_2012_a3_solution \<equiv> undefined" (* (\<lambda>x::real. sqrt (1 - x^2)) *) theorem putnam_2012_a3: fixes S :: ...
putnam_2012_a4
theorem putnam_2012_a4 (q r : ℤ) (A B : Fin 2 → ℝ) (T : Set ℝ) (S : Set ℤ) (qpos : q > 0) (ABlt : A 0 < A 1 ∧ B 0 < B 1) (hT : T = {x : ℝ | ∃ b m : ℤ, ((b : ℝ) ∈ Set.Icc (B 0) (B 1)) ∧ (x = b + m * q)}) (hS : S = {a : ℤ | ((a : ℝ) ∈ Set.Icc (A 0) (A 1)) ∧ (∃ t ∈ T, r * a = t)}) : ((A 1 - A 0) * (B 1 - B 0) < q) → (∃ n ...
Let $q$ and $r$ be integers with $q>0$, and let $A$ and $B$ be intervals on the real line. Let $T$ be the set of all $b+mq$ where $b$ and $m$ are integers with $b$ in $B$, and let $S$ be the set of all integers $a$ in $A$ such that $ra$ is in $T$. Show that if the product of the lengths of $A$ and $B$ is less than $q$,...
null
['algebra']
null
theory putnam_2012_a4 imports Complex_Main begin theorem putnam_2012_a4: fixes q r :: "int" and A B :: "real \<times> real" and S :: "int set" and T :: "real set" defines "T \<equiv> {x :: real. \<exists> b m :: int. real_of_int b \<in> {fst B..snd B} \<and> x = b + m * q}" and "S \<equiv> {a :: i...
putnam_2012_a5
abbrev putnam_2012_a5_solution : Set (ℕ × ℕ) := sorry -- {q | let ⟨n, _⟩ := q; n = 1} ∪ {(2,2)} theorem putnam_2012_a5 (n p : ℕ) (hn : n > 0) (hp : Nat.Prime p) {F : Type*} [Field F] [Fintype F] (hK : Fintype.card F = p) (G : Matrix (Fin n) (Fin n) F → (Fin n → F) → (Fin n → F) → (Fin n → F)) (hG : ∀ M : Matrix (Fin n...
Let $\FF_p$ denote the field of integers modulo a prime $p$, and let $n$ be a positive integer. Let $v$ be a fixed vector in $\FF_p^n$, let $M$ be an $n \times n$ matrix with entries of $\FF_p$, and define $G: \FF_p^n \to \FF_p^n$ by $G(x) = v + Mx$. Let $G^{(k)}$ denote the $k$-fold composition of $G$ with itself, tha...
Show that the solution is the pairs $(p,n)$ with $n = 1$ as well as the single pair $(2,2)$.
['linear_algebra']
null
theory putnam_2012_a5 imports Complex_Main "HOL-Computational_Algebra.Primes" "HOL-Analysis.Finite_Cartesian_Product" begin definition putnam_2012_a5_solution :: "(nat \<times> nat) set" where "putnam_2012_a5_solution \<equiv> undefined" (* {q. fst q = 1} \<union> {(2, 2)} *) theorem putnam_2012_a5: fixes n p :: nat...
putnam_2012_a6
abbrev putnam_2012_a6_solution : Prop := sorry -- True theorem putnam_2012_a6 (p : ((ℝ × ℝ) → ℝ) → Prop := fun f ↦ Continuous f ∧ ∀ x1 x2 y1 y2 : ℝ, x2 > x1 → y2 > y1 → (x2 - x1) * (y2 - y1) = 1 → ∫ x in x1..x2, ∫ y in y1..y2, f (x, y) = 0) : ((∀ f : (ℝ × ℝ) → ℝ, ∀ x y : ℝ, p f → f (x, y) = 0) ↔ putnam_2012_a6_solution...
Let $f(x,y)$ be a continuous, real-valued function on $\mathbb{R}^2$. Suppose that, for every rectangular region $R$ of area $1$, the double integral of $f(x,y)$ over $R$ equals $0$. Must $f(x,y)$ be identically $0$?
Prove that $f(x,y)$ must be identically $0$.
['analysis']
Section putnam_2012_a6. Require Import Reals. From Coquelicot Require Import Coquelicot Continuity RInt. Open Scope R_scope. Definition putnam_2012_a6_solution := True. Theorem putnam_2012_a6: forall (f: (R*R) -> R) (a: R*R), continuous f a -> forall (a b c d : R), a > b /\ c > d /\ (a - b) * (c - d) = 1 -> ...
theory putnam_2012_a6 imports Complex_Main "HOL-Analysis.Set_Integral" "HOL-Analysis.Lebesgue_Measure" begin (* NOTE: this formalization differs from the original problem wording in only allowing axis-aligned rectangles. The problem is solvable given this weaker hypothesis. *) definition putnam_2012_a6_solution::bool ...
putnam_2012_b1
theorem putnam_2012_b1 (nneg : Set ℝ := Set.Ici 0) (S : Set (nneg → ℝ)) (rngS : ∀ f ∈ S, ∀ x : nneg, f x ∈ nneg) (f1 : nneg → ℝ := fun x ↦ exp x - 1) (f2 : nneg → ℝ := fun x ↦ Real.log (x + 1)) (hf1 : f1 ∈ S) (hf2 : f2 ∈ S) (hsum : ∀ f ∈ S, ∀ g ∈ S, (fun x ↦ (f x) + (g x)) ∈ S) (hcomp : ∀ f ∈ S, ∀ g ∈ S, ∀ gnneg : nneg...
Let $S$ be a class of functions from $[0, \infty)$ to $[0, \infty)$ that satisfies: \begin{itemize} \item[(i)] The functions $f_1(x) = e^x - 1$ and $f_2(x) = \ln(x+1)$ are in $S$; \item[(ii)] If $f(x)$ and $g(x)$ are in $S$, the functions $f(x) + g(x)$ and $f(g(x))$ are in $S$; \item[(iii)] If $f(x)$ and $g(x)$ are in ...
null
['algebra']
Section putnam_2012_b1. Require Import Reals RIneq. Open Scope R. Theorem putnam_2012_b1: forall (A: list (R -> R)), let fPlus (f g: R -> R) := fun x => f x + g x in let fMinus (f g: R -> R) := fun x => f x - g x in let fMult (f g: R -> R) := fun x => f x * g x in let to_Rplus (f: R -> R) (x : R...
theory putnam_2012_b1 imports Complex_Main begin (* NOTE: Isabelle doesn't support restricted domains, so we have to get around this by treating functions as products *) theorem putnam_2012_b1: fixes S::"((real\<times>real) set) set" assumes f1 : "{(x, y). x \<ge> 0 \<and> y \<ge> 0 \<and> y = exp x - 1} \<in> S" ...
putnam_2012_b4
abbrev putnam_2012_b4_solution : Prop := True -- True theorem putnam_2012_b4 (a : ℕ → ℝ) (ha0 : a 0 = 1) (han : ∀ n : ℕ, a (n + 1) = a n + exp (-a n)) : ((∃ L : ℝ, Tendsto (fun n ↦ a n - Real.log n) ⊤ (𝓝 L)) ↔ putnam_2012_b4_solution) := sorry
Suppose that $a_0 = 1$ and that $a_{n+1} = a_n + e^{-a_n}$ for $n=0,1,2,\dots$. Does $a_n - \log n$ have a finite limit as $n \to \infty$? (Here $\log n = \log_e n = \ln n$.)
Prove that the sequence has a finite limit.
['analysis']
Section putnam_2012_b4. Require Import Reals Coquelicot.Lim_seq. Open Scope R. Definition putnam_2012_b4_solution := True. Theorem putnam_2012_b4: let A := fix a (n: nat) : R := match n with | O => 1 | S n' => a n' + Rpower (exp 1) ((-1) * a n') end in let B ...
theory putnam_2012_b4 imports Complex_Main begin definition putnam_2012_b4_solution::bool where "putnam_2012_b4_solution \<equiv> undefined" (* True *) theorem putnam_2012_b4: fixes a::"nat\<Rightarrow>real" assumes ha0 : "a 0 = 1" and han : "\<forall>n::nat. a (n+1) = a n + exp (-a n)" shows "(convergent (\...
putnam_2012_b5
theorem putnam_2012_b5 (g1 g2 : ℝ → ℝ) (hgim : ∀ x : ℝ, g1 x ≥ 1 ∧ g2 x ≥ 1) (hgbd : ∃ B1 B2 : ℝ, ∀ x : ℝ, g1 x ≤ B1 ∧ g2 x ≤ B2) : ∃ h1 h2 : ℝ → ℝ, ∀ x : ℝ, sSup {((g1 s)^x * (g2 s)) | s : ℝ} = sSup {(x * (h1 t) + h2 t) | t : ℝ} := sorry
Prove that, for any two bounded functions $g_1, g_2: \RR \to [1, \infty)$, there exist functions $h_1, h_2: \RR o \RR$ such that, for every $x \in \RR$, \[ \sup_{s \in \RR} (g_1(s)^x g_2(s)) = \max_{t \in \RR} (x h_1(t) + h_2(t)).\]
null
['analysis']
null
theory putnam_2012_b5 imports Complex_Main begin (* Note: This formalization (like its Lean counterpart) uses Sup instead of Max for the right-hand side of the goal. *) theorem putnam_2012_b5: fixes g1 g2 :: "real \<Rightarrow> real" assumes hgim: "\<forall> x :: real. g1 x \<ge> 1 \<and> g2 x \<ge> 1" and hgbd:...
putnam_2012_b6
theorem putnam_2012_b6 (p : ℕ) (hpodd : Odd p) (hpprime : Nat.Prime p) (hpmod3 : p ≡ 2 [MOD 3]) (P : Equiv.Perm (Fin p)) (hP : ∀ i : Fin p, P i = (i * i * i)) : Equiv.Perm.signAux P = 1 ↔ (p ≡ 3 [MOD 4]) := sorry
Let $p$ be an odd prime number such that $p \equiv 2 \pmod{3}$. Define a permutation $\pi$ of the residue classes modulo $p$ by $\pi(x) \equiv x^3 \pmod{p}$. Show that $\pi$ is an even permutation if and only if $p \equiv 3 \pmod{4}$.
null
['number_theory']
null
theory putnam_2012_b6 imports Complex_Main "HOL-Library.Cardinality" "HOL-Computational_Algebra.Primes" "HOL-Number_Theory.Cong" "HOL-Combinatorics.Permutations" begin theorem putnam_2012_b6: fixes p :: nat and P :: "('p::field) \<Rightarrow> 'p" defines "P \<equiv> \<lambda> i :: 'p. i ^ 3" assumes pcard: "C...
putnam_1978_a1
theorem putnam_1978_a1 (S : Set ℤ := {k | ∃ j : ℤ, 0 ≤ j ∧ j ≤ 33 ∧ k = 3 * j + 1}) (T : Set ℤ) (hT : T ⊆ S ∧ T.ncard = 20) : (∃ m ∈ T, ∃ n ∈ T, m ≠ n ∧ m + n = 104) := sorry
Let $S = \{1, 4, 7, 10, 13, 16, \dots , 100\}$. Let $T$ be a subset of $20$ elements of $S$. Show that we can find two distinct elements of $T$ with sum $104$.
null
['algebra']
Section putnam_1978_a1. Require Import Nat Ensembles Finite_sets. Theorem putnam_1978_a1 : forall (A B: Ensemble nat) (n: nat), A n <-> 1 <= n <= 100 /\ n mod 3 = 1 /\ B n -> A n /\ cardinal nat B 20 -> exists (b1 b2: nat), B b1 /\ B b2 /\ b1 <> b2 -> b1 + b2 = 104. Proof. Admitted. End putnam_1978_a1.
theory putnam_1978_a1 imports Complex_Main begin theorem putnam_1978_a1: fixes S T :: "nat set" defines "S \<equiv> {k :: nat. \<exists> j :: nat \<le> 33. k = 3 * j + 1}" assumes hT : "T \<subset> S \<and> card T = 20" shows "\<exists> m \<in> T. \<exists> n \<in> T. m \<noteq> n \<and> m + n = 104" sorry ...
putnam_1978_a2
theorem putnam_1978_a2 (n : ℕ) (npos : n > 0) (a b : ℝ) (hab : a ≠ b) (c : Fin n → ℝ) (A : Matrix (Fin n) (Fin n) ℝ := fun i j ↦ ite (i < j) a (ite (i > j) b (c i))) (p : ℝ → ℝ := fun x ↦ ∏ i : Fin n, (c i - x)) : (A.det = ((b * p a - a * p b) / (b - a))) := sorry
Let $A$ be the real $n \times n$ matrix $(a_{ij})$ where $a_{ij} = a$ for $i < j$, $b \; (\neq a)$ for $i > j$, and $c_i$ for $i = j$. Show that $\det A = \frac{b p(a) - a p(b)}{b - a}$, where $p(x) = \prod_{i=1}^n (c_i - x)$.
null
['linear_algebra']
null
theory putnam_1978_a2 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" "HOL-Analysis.Determinants" begin theorem putnam_1978_a2: fixes n :: "nat" and a b :: "real" and A :: "real^'n^'n" and c :: "'n \<Rightarrow> real" and p :: "real \<Rightarrow> real" and prm :: "'n \<Rightarrow> na...
putnam_1978_a3
abbrev putnam_1978_a3_solution : ℕ := sorry -- 2 theorem putnam_1978_a3 (p : Polynomial ℝ := 2 * (X ^ 6 + 1) + 4 * (X ^ 5 + X) + 3 * (X ^ 4 + X ^ 2) + 5 * X ^ 3) (I : ℕ → ℝ := fun k ↦ ∫ x in Ioi 0, x ^ k / p.eval x) : (putnam_1978_a3_solution ∈ Ioo 0 5 ∧ ∀ k ∈ Ioo 0 5, I putnam_1978_a3_solution ≤ I k) := sorry
Let $p(x) = 2(x^6 + 1) + 4(x^5 + x) + 3(x^4 + x^2) + 5x^3$. For $k$ with $0 < k < 5$, let \[ I_k = \int_0^{\infty} \frac{x^k}{p(x)} \, dx. \] For which $k$ is $I_k$ smallest?
Show that $I_k$ is smallest for $k = 2$.
['analysis', 'algebra']
Section putnam_1978_a3. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1978_a3_solution (a b c d: R) := b. Theorem putnam_1978_a3 (p : R -> R := fun x => 2 * (x ^ 6 + 1) + 4 * (x ^ 5 + x) + 3 * (x ^ 4 + x ^ 2) + 5 * x ^ 3) (a : R := Lim_seq (fun nInc => RInt (fun x => x / p x) 0 (INR nInc))) ...
theory putnam_1978_a3 imports Complex_Main "HOL-Computational_Algebra.Polynomial" "HOL-Analysis.Interval_Integral" begin definition putnam_1978_a3_solution :: "nat" where "putnam_1978_a3_solution \<equiv> undefined" (* 2 *) theorem putnam_1978_a3: fixes p :: "real poly" and I :: "nat \<Rightarrow> real" define...
putnam_1978_a4
theorem putnam_1978_a4 (bypass : (S : Type) → [inst : Mul S] → Prop := fun S [Mul S] ↦ ∀ a b c d : S, (a * b) * (c * d) = a * d) : ((∀ (S : Type) (_ : Mul S), bypass S → ∀ a b c : S, a * b = c → (c * c = c ∧ ∀ d : S, a * d = c * d)) ∧ (∃ (S : Type) (_ : Mul S) (_ : Fintype S), bypass S ∧ (∀ a : S, a * a = a) ∧ (∃ a b...
A binary operation (represented by multiplication) on $S$ has the property that $(ab)(cd) = ad$ for all $a, b, c, d$. Show that: \begin{itemize} \item[(1)] if $ab = c$, then $cc = c$; \item[(2)] if $ab = c$, then $ad = cd$ for all $d$. \end{itemize} Find a set $S$, and such a binary operation, which also satisfies: ...
null
['abstract_algebra']
null
theory putnam_1978_a4 imports Complex_Main begin theorem putnam_1978_a4: fixes bypass :: "('a set) \<Rightarrow> ('a \<Rightarrow> 'a \<Rightarrow> 'a) \<Rightarrow> bool" fixes binop :: "('a set) \<Rightarrow> ('a \<Rightarrow> 'a \<Rightarrow> 'a) \<Rightarrow> bool" defines "bypass \<equiv> \<lambda> S Smul. ...
putnam_1978_a5
theorem putnam_1978_a5 (n : ℕ) (npos : n > 0) (a : Fin n → ℝ) (ha : ∀ i : Fin n, a i ∈ Ioo 0 Real.pi) (μ : ℝ := ∑ i : Fin n, a i / n) : (∏ i : Fin n, sin (a i) / (a i) ≤ (sin μ / μ) ^ n) := sorry
Let $a_1, a_2, \dots , a_n$ be reals in the interval $(0, \pi)$ with arithmetic mean $\mu$. Show that \[ \prod_{i=1}^n \left( \frac{\sin a_i}{a_i} \right) \leq \left( \frac{\sin \mu}{\mu} \right)^n. \]
null
['analysis']
Section putnam_1978_a5. Require Import List Reals Coquelicot.Coquelicot. Theorem putnam_1978_a5: let mu (a: nat -> R) (n: nat) := (sum_n a n)/(INR n) in let wrapper_a (a: nat -> R) := fun i => sin (a i) / (a i) in forall (a: nat -> R) (n i: nat), 0 <= INR i < INR n /\ 0 < a i < PI -> fold_right Rmult ...
theory putnam_1978_a5 imports Complex_Main begin theorem putnam_1978_a5: fixes n :: "nat" and \<mu> :: "real" and a :: "nat \<Rightarrow> real" defines "\<mu> \<equiv> (\<Sum> i \<in> {1..n}. a i)/(real n)" assumes npos : "n > 0" and ha : "\<forall> i :: nat. a i \<in> {0 :: real<..<pi}" shows "(\<...
putnam_1978_a6
theorem putnam_1978_a6 (S : Finset (Fin 2 → ℝ)) (n : ℕ := S.card) (npos : n > 0) : ({pair : Set (Fin 2 → ℝ) | ∃ P ∈ S, ∃ Q ∈ S, pair = {P, Q} ∧ Euclidean.dist P Q = 1}.ncard < 2 * (n : ℝ) ^ ((3 : ℝ) / 2)) := sorry
Given $n$ distinct points in the plane, prove that fewer than $2n^{3/2}$ pairs of these points are a distance of $1$ apart.
null
['geometry', 'combinatorics']
Section putnam_1978_a6. Require Import List Reals Coquelicot.Coquelicot. Theorem putnam_1978_a6 (n : nat) (npos : gt n 0) (A : list (nat * nat)) (hA : length A = n) (subA : list (nat * nat)) (hsubA : forall (P1 P2: (nat * nat)), let '(Ax, Ay) := P1 in let (Bx, By) := P2 in (In (Ax, Ay) subA /\ I...
theory putnam_1978_a6 imports Complex_Main "HOL-Analysis.Elementary_Metric_Spaces" begin theorem putnam_1978_a6: fixes S :: "(real \<times> real) set" and n :: "nat" defines "n \<equiv> card S" assumes npos : "n > 0" and Sfin : "finite S" shows "card {pair :: (real \<times> real) set. \<exists> P \<in>...
putnam_1978_b2
abbrev putnam_1978_b2_solution : ℚ := sorry -- 7 / 4 theorem putnam_1978_b2 : (∑' i : ℕ+, ∑' j : ℕ+, (1 : ℚ) / (i ^ 2 * j + 2 * i * j + i * j ^ 2) = putnam_1978_b2_solution) := sorry
Find \[ \sum_{i=1}^{\infty} \sum_{j=1}^{\infty} \frac{1}{i^2j + 2ij + ij^2}. \]
Prove that the sum evaluates to $\frac{7}{4}$.
['algebra', 'analysis']
Section putnam_1978_b2. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1978_b2_solution := 7/4. Theorem putnam_1978_b2: Series (fun i => Series (fun j => 1/(INR i*INR i*INR j + 2*INR i*INR j + INR i*INR j*INR j))) = putnam_1978_b2_solution. Proof. Admitted. End putnam_1978_b2.
theory putnam_1978_b2 imports Complex_Main begin definition putnam_1978_b2_solution :: "rat" where "putnam_1978_b2_solution \<equiv> undefined" (* (rat_of_nat 7)/4 *) theorem putnam_1978_b2: shows "(\<Sum> i \<in> {1 :: nat..}. (\<Sum> j \<in> {1 :: nat..}. (rat_of_nat 1)/(rat_of_nat (i^2 * j + 2 * i * j + i * j^2))...
putnam_1978_b3
theorem putnam_1978_b3 (P : ℕ+ → Polynomial ℝ) (hP1 : P 1 = 1 + X) (hP2 : P 2 = 1 + 2 * X) (hPodd : ∀ n, P (2 * n + 1) = P (2 * n) + C ((n : ℝ) + 1) * X * P (2 * n - 1)) (hPeven : ∀ n, P (2 * n + 2) = P (2 * n + 1) + C ((n : ℝ) + 1) * X * P (2 * n)) (a : ℕ+ → ℝ) (haroot : ∀ n, (P n).eval (a n) = 0) (haub : ∀ n, ∀ x, (P...
The polynomials $P_n(x)$ are defined by \begin{align*} P_1(x) &= 1 + x, \\ P_2(x) &= 1 + 2x, \\ P_{2n+1}(x) &= P_{2n}(x) + (n + 1) x P_{2n-1}(x), \\ P_{2n+2}(x) &= P_{2n+1}(x) + (n + 1) x P_{2n}(x). \end{align*} Let $a_n$ be the largest real root of $P_n(x)$. Prove that $a_n$ is strictly monotonically increasing and ...
null
['algebra', 'analysis']
Section putnam_1978_b3. Require Import Nat Reals Coquelicot.Coquelicot. Theorem putnam_1978_b3 (p : nat -> (R -> R) := fix p (n: nat) := match n with | O => fun x => 1 + x | S O => fun x => 1 + 2 * x | S n' => if even n' then fun x => p n' x + INR (S (S n')) / 2 * x * p ...
theory putnam_1978_b3 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin theorem putnam_1978_b3: fixes P :: "nat \<Rightarrow> (real poly)" and a :: "nat \<Rightarrow> real" assumes hP1 : "P 1 = monom 1 0 + monom 1 1" and hP2 : "P 2 = monom 1 0 + monom 2 1" and hPodd : "\<forall> n :: na...
putnam_1978_b4
theorem putnam_1978_b4 : (∀ N : ℝ, ∃ a b c d : ℤ, a > N ∧ b > N ∧ c > N ∧ d > N ∧ a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2 = a * b * c + a * b * d + a * c * d + b * c * d) := sorry
Show that we can find integers $a, b, c, d$ such that $a^2 + b^2 + c^2 + d^2 = abc + abd + acd + bcd$, and the smallest of $a, b, c, d$ is arbitrarily large.
null
['algebra']
Section putnam_1978_b4. Require Import Reals. Open Scope R. Theorem putnam_1978_b4: forall (n: R), exists (a b c d: Z), IZR a > n /\ IZR b > n /\ IZR c > n /\ IZR d > n /\ IZR a * IZR a + IZR b * IZR b + IZR c * IZR c + IZR d * IZR d = IZR a * IZR b * IZR c + IZR a * IZR b * IZR d + IZR a * IZR c * IZR d + IZR b *...
theory putnam_1978_b4 imports Complex_Main begin theorem putnam_1978_b4: shows "\<forall>N::real. \<exists> a b c d::int. a > N \<and> b > N \<and> c > N \<and> d > N \<and> a^2 + b^2 + c^2 + d^2 = a*b*c + a*b*d + a*c*d + b*c*d" sorry end
putnam_1978_b5
abbrev putnam_1978_b5_solution : Polynomial ℝ := sorry -- 4 * X ^ 4 - 4 * X ^ 2 + 1 theorem putnam_1978_b5 (S : Set (Polynomial ℝ) := {p : Polynomial ℝ | p.degree = 4 ∧ ∀ x ∈ Icc (-1) 1, p.eval x ∈ Icc 0 1}) : (putnam_1978_b5_solution ∈ S ∧ (∀ p ∈ S, p.coeff 4 ≤ putnam_1978_b5_solution.coeff 4)) := sorry
Find the real polynomial $p(x)$ of degree $4$ with largest possible coefficient of $x^4$ such that $p([-1, 1]) \subseteq [0, 1]$.
Prove that $p(x) = 4x^4 - 4x^2 + 1$.
['algebra']
Section putnam_1978_b5. Require Import Reals Coquelicot.Coquelicot. Definition putnam_1978_b5_solution := fun n => match n with | O => 1 | S (S O) => -4 | S (S (S (S O))) => 4 | _ => 0 end. Theorem putnam_1978_b5 (valid : (nat -> R) -> Prop := fun coeff => let p := fun x => sum_n (fun i => coeff i * x ^ i)...
theory putnam_1978_b5 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_1978_b5_solution::"real poly" where "putnam_1978_b5_solution \<equiv> undefined" (* [: 1, 0, -4, 0, 4 :] *) theorem putnam_1978_b5: fixes S::"(real poly) set" defines "S \<equiv> { p::(real poly). degree p = 4...
putnam_1978_b6
theorem putnam_1978_b6 (a : ℕ → ℕ → ℝ) (ha : ∀ i j, a i j ∈ Icc 0 1) (m n : ℕ) (mnpos : m > 0 ∧ n > 0) : ((∑ i in Finset.Icc 1 n, ∑ j in Finset.Icc 1 (m * i), a i j / i) ^ 2 ≤ 2 * m * ∑ i in Finset.Icc 1 n, ∑ j in Finset.Icc 1 (m * i), a i j) := sorry
Let $a_{ij}$ be real numbers in $[0, 1]$. Show that \[ \left( \sum_{i=1}^n \sum_{j=1}^{mi} \frac{a_{ij}}{i} \right) ^2 \leq 2m \sum_{i=1}^n \sum_{j=1}^{mi} a_{ij}. \]
null
['algebra']
Section putnam_1978_b6. Require Import Reals Coquelicot.Coquelicot. Open Scope R. Theorem putnam_1978_b6: forall (a: nat -> nat -> R) (n m: nat) (i j: nat), 0 <= a i j <= 1 -> pow (sum_n (fun i => sum_n (fun j => (a i j)/INR i) m * INR i) n) 2 <= 2 * INR m * sum_n (fun i => sum_n (fun j => a i j) m*INR i) ...
theory putnam_1978_b6 imports Complex_Main begin theorem putnam_1978_b6: fixes a::"nat\<Rightarrow>nat\<Rightarrow>real" and m n::nat assumes ha : "\<forall>i j. a i j \<in> {0..1::real}" and mnpos : "m > 0 \<and> n > 0" shows "(\<Sum>i=1..n. (\<Sum>j=1..m*i. a i j / i))^2 \<le> 2 * m * (\<Sum>i=1..n. (\<Sum...
putnam_2019_a1
abbrev putnam_2019_a1_solution : Set ℤ := sorry -- {n : ℤ | n ≥ 0 ∧ ¬Int.ModEq 9 n 3 ∧ ¬Int.ModEq 9 n 6} theorem putnam_2019_a1 : {n : ℤ | ∃ A B C : ℤ, A ≥ 0 ∧ B ≥ 0 ∧ C ≥ 0 ∧ A^3 + B^3 + C^3 - 3*A*B*C = n} = putnam_2019_a1_solution := sorry
Determine all possible values of the expression \[ A^3+B^3+C^3-3ABC \] where $A, B$, and $C$ are nonnegative integers.
The answer is all nonnegative integers not congruent to $3$ or $6 \pmod{9}$.
['algebra']
Section putnam_2019_a1. Require Import ZArith Ensembles Coquelicot.Coquelicot. Open Scope Z. Definition putnam_2019_a1_solution : Ensemble Z := fun n => Z.ge n 0 /\ n mod 9 <> 3 /\ n mod 9 <> 6. Theorem putnam_2019_a1 (A : Ensemble Z) (hA : forall (n: Z), A n <-> exists (A B C: Z), A >= 0 /\ B >= 0 /\ C >= 0 /...
theory putnam_2019_a1 imports Complex_Main "HOL-Number_Theory.Cong" begin definition putnam_2019_a1_solution :: "int set" where "putnam_2019_a1_solution \<equiv> undefined" (* {n::int. n \<ge> 0 \<and> \<not>[n = 3] (mod 9) \<and> \<not>[n = 6] (mod 9)} *) theorem putnam_2019_a1: shows "{n::int. (\<exists>A::int\<ge...
putnam_2019_a3
abbrev putnam_2019_a3_solution : ℝ := sorry -- 2019^(-(1:ℝ)/2019) theorem putnam_2019_a3 (v : Polynomial ℂ → Prop := fun b : Polynomial ℂ => b.degree = 2019 ∧ 1 ≤ (b.coeff 0).re ∧ (b.coeff 2019).re ≤ 2019 ∧ (∀ i : Fin 2020, (b.coeff i).im = 0) ∧ (∀ i : Fin 2019, (b.coeff i).re < (b.coeff (i + 1)).re)) (μ : Polynomial ℂ...
Given real numbers $b_0, b_1, \dots, b_{2019}$ with $b_{2019} \neq 0$, let $z_1,z_2,\dots,z_{2019}$ be the roots in the complex plane of the polynomial \[ P(z) = \sum_{k=0}^{2019} b_k z^k. \] Let $\mu = (|z_1| + \cdots + |z_{2019}|)/2019$ be the average of the distances from $z_1,z_2,\dots,z_{2019}$ to the origin. De...
The answer is $M = 2019^{-1/2019}$.
['algebra']
null
theory putnam_2019_a3 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_2019_a3_solution :: real where "putnam_2019_a3_solution \<equiv> undefined" (* 2019 powr (-1/2019) *) theorem putnam_2019_a3: fixes proots :: "(complex poly) \<Rightarrow> (complex multiset)" and v :: "(comple...
putnam_2019_a4
abbrev putnam_2019_a4_solution : Prop := sorry -- False theorem putnam_2019_a4 (fint : ((Fin 3 → ℝ) → ℝ) → Prop) (hfint : ∀ f : (Fin 3 → ℝ) → ℝ, fint f = (∀ S : Fin 3 → ℝ, (∫ x in {p : Fin 3 → ℝ | Euclidean.dist p S = 1}, f x) = 0)) : (∀ f : (Fin 3 → ℝ) → ℝ, (Continuous f ∧ fint f) → (∀ x : Fin 3 → ℝ, f x = 0)) ↔ putna...
Let $f$ be a continuous real-valued function on $\mathbb{R}^3$. Suppose that for every sphere $S$ of radius $1$, the integral of $f(x,y,z)$ over the surface of $S$ equals $0$. Must $f(x,y,z)$ be identically 0?
Show that the answer is no.
['analysis']
Section putnam_2019_a4. Require Import PeanoNat. Require Import Reals Coquelicot.Derive. Definition putnam_2019_a4_solution := false. Theorem putnam_2019_a4: forall (f: R -> R), continuity f -> forall (x y z: R), x*x + y*y + z*z = 1 -> True. Proof. Admitted. End putnam_2019_a4.
theory putnam_2019_a4 imports Complex_Main "HOL-Analysis.Set_Integral" "HOL-Analysis.Lebesgue_Measure" begin definition putnam_2019_a4_solution :: bool where "putnam_2019_a4_solution \<equiv> undefined" (* False *) theorem putnam_2019_a4: fixes fint :: "((real^3) \<Rightarrow> real) \<Rightarrow> bool" assumes hfi...
putnam_2019_a5
abbrev putnam_2019_a5_solution : ℕ → ℕ := sorry -- (fun p : ℕ => (p - 1) / 2) theorem putnam_2019_a5 (p : ℕ) (q : Polynomial (ZMod p)) (a : ℕ → ZMod p) (npoly : ℕ → Polynomial (ZMod p)) (ndiv : ℕ → Prop) (podd : Odd p) (pprime : p.Prime) (hq : ∀ k : ℕ, q.coeff k = a k) (ha0 : a 0 = 0 ∧ ∀ k > p - 1, a k = 0) (haother : ...
Let $p$ be an odd prime number, and let $\mathbb{F}_p$ denote the field of integers modulo $p$. Let $\mathbb{F}_p[x]$ be the ring of polynomials over $\mathbb{F}_p$, and let $q(x) \in \mathbb{F}_p[x]$ be given by $q(x)=\sum_{k=1}^{p-1} a_kx^k$, where $a_k=k^{(p-1)/2}\mod{p}$. Find the greatest nonnegative integer $n$ s...
Show that the answer is $\frac{p-1}{2}$.
['abstract_algebra', 'number_theory', 'algebra']
null
theory putnam_2019_a5 imports Complex_Main "HOL-Computational_Algebra.Polynomial" "HOL-Library.Cardinality" begin (* uses (nat \<Rightarrow> 'p) instead of (Fin p \<Rightarrow> 'p) and ('p \<Rightarrow> nat) instead of ('p \<Rightarrow> Fin p) *) definition putnam_2019_a5_solution :: "nat \<Rightarrow> nat" where "put...
putnam_2019_a6
theorem putnam_2019_a6 (g : ℝ → ℝ) (r : ℝ) (hcont : ContinuousOn g (Set.Icc 0 1)) (hdiff : ContDiffOn ℝ 1 g (Set.Ioo 0 1) ∧ DifferentiableOn ℝ (deriv g) (Set.Ioo 0 1)) (rgt1 : r > 1) (hlim : Tendsto (fun x => g x / x ^ r) (𝓝[>] 0) (𝓝 0)) : (Tendsto (deriv g) (𝓝[>] 0) (𝓝 0)) ∨ (Tendsto (fun x : ℝ => sSup {x' ^ r * a...
Let \( g \) be a real-valued function that is continuous on the closed interval \([0,1]\) and twice differentiable on the open interval \((0,1)\). Suppose that for some real number $\( r > 1 \),\lim_{{x \to 0^+}} \frac{g(x)}{x^r} = 0.$ Prove that either $\lim_{{x \to 0^+}} g'(x) = 0$ or $\limsup_{{x \to 0^+}} x^r |g''(...
null
['analysis']
Section putnam_2019_a6. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2019_a6_solution := 1. Theorem putnam_2019_a6 (g : R -> R) (contg : forall (x: R), 0 <= x <= 1 -> continuity_pt g x) (diff2g : forall (x: R), 0 < x < 1 -> ex_derive_n g 2 x) (r : R) (posr : r > 1) (p : filterl...
theory putnam_2019_a6 imports Complex_Main "HOL-Analysis.Derivative" begin theorem putnam_2019_a6: fixes g :: "real \<Rightarrow> real" and r :: real assumes hcont: "continuous_on {0..1} g" and hdiff: "g C1_differentiable_on {0<..<1} \<and> (deriv g) differentiable_on {0<..<1}" and rgt1: "r > 1" and hlim: ...
putnam_2019_b1
abbrev putnam_2019_b1_solution : ℕ → ℕ := sorry -- (fun n : ℕ => 5 * n + 1) theorem putnam_2019_b1 (n : ℕ) (Pn : Set (Fin 2 → ℤ)) (pZtoR : (Fin 2 → ℤ) → (Fin 2 → ℝ)) (sPnsquare : Finset (Fin 2 → ℤ) → Prop) (hPn : Pn = {p : Fin 2 → ℤ | (p 0 = 0 ∧ p 1 = 0) ∨ (∃ k ≤ n, (p 0) ^ 2 + (p 1) ^ 2 = 2 ^ k)}) (hpZtoR : ∀ p : Fin ...
Denote by $\mathbb{Z}^2$ the set of all points $(x,y)$ in the plane with integer coordinates. For each integer $n \geq 0$, let $P_n$ be the subset of $\mathbb{Z}^2$ consisting of the point $(0,0)$ together with all points $(x,y)$ such that $x^2+y^2=2^k$ for some integer $k \leq n$. Determine, as a function of $n$, the ...
Show that the answer is $5n+1$.
['geometry']
null
theory putnam_2019_b1 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" begin definition putnam_2019_b1_solution :: "nat \<Rightarrow> nat" where "putnam_2019_b1_solution \<equiv> undefined" (* \<lambda> n. 5 * n + 1 *) theorem putnam_2019_b1: fixes n :: nat and Pn :: "(int^2) set" and pZtoR :: "(int^...
putnam_2019_b2
abbrev putnam_2019_b2_solution : ℝ := sorry -- 8/Real.pi^3 theorem putnam_2019_b2 (a : ℕ → ℝ := fun n : ℕ => ∑ k : Icc (1 : ℤ) (n - 1), Real.sin ((2*k - 1)*Real.pi/(2*n))/((Real.cos ((k - 1)*Real.pi/(2*n))^2)*(Real.cos (k*Real.pi/(2*n))^2))) : Tendsto (fun n : ℕ => (a n)/n^3) atTop (𝓝 putnam_2019_b2_solution) := sorry
For all $n \geq 1$, let \[ a_n = \sum_{k=1}^{n-1} \frac{\sin \left( \frac{(2k-1)\pi}{2n} \right)}{\cos^2 \left( \frac{(k-1)\pi}{2n} \right) \cos^2 \left( \frac{k\pi}{2n} \right)}. \] Determine \[ \lim_{n \to \infty} \frac{a_n}{n^3}. \]
The answer is $\frac{8}{\pi^3}$.
['analysis']
Section putnam_2019_b2. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2019_b2_solution := 8 / PI ^ 3. Theorem putnam_2019_b2 (a : nat -> R := fun n => sum_n (fun k => let k := INR k in let n := INR n in (sin (2 * (k + 1) * PI / (2 * n))) / ((cos ((k - 1) * PI / (2 * n))) ^ 2 * (cos ((k * PI) / (2 *...
theory putnam_2019_b2 imports Complex_Main begin definition putnam_2019_b2_solution :: real where "putnam_2019_b2_solution \<equiv> undefined" (* 8 / pi^3 *) theorem putnam_2019_b2: fixes a :: "nat \<Rightarrow> real" defines "a \<equiv> (\<lambda>n::nat. (\<Sum>k::int=1..(n-1). sin ((2*k-1)*pi/(2*n)) / ((cos ((k-...
putnam_2019_b3
theorem putnam_2019_b3 (n : ℕ) (hn : n > 0) (Q : Matrix (Fin n) (Fin n) ℝ) (hQ0 : ∀ i j : Fin n, i ≠ j → dotProduct (Q i) (Q j) = 0 ∧ dotProduct (Qᵀ i) (Qᵀ j) = 0) (hQ1 : ∀ i : Fin n, dotProduct (Q i) (Q i) = 1 ∧ dotProduct (Qᵀ i) (Qᵀ i) = 1) (u : Matrix (Fin n) (Fin 1) ℝ) (hu : uᵀ*u = 1) (P : Matrix (Fin n) (Fin n) ℝ ...
Let $Q$ be an $n$-by-$n$ real orthogonal matrix, and let $u \in \mathbb{R}^n$ be a unit column vector (that is, $u^T u = 1$). Let $P = I - 2uu^T$, where $I$ is the $n$-by-$n$ identity matrix. Show that if $1$ is not an eigenvalue of $Q$, then $1$ is an eigenvalue of $PQ$.
null
['linear_algebra']
null
theory putnam_2019_b3 imports Complex_Main "HOL-Analysis.Determinants" begin theorem putnam_2019_b3: fixes n :: nat and Q :: "real^'n^'n" and u :: "real^1^'n" and P :: "real^'n^'n" defines "P \<equiv> mat 1 - 2 *s u ** (transpose u)" assumes hn: "n > 0" and hncard: "CARD('n) = n" and hQ0: "\<forall> i...
putnam_2019_b5
abbrev putnam_2019_b5_solution : ℕ × ℕ := sorry -- ⟨2019, 1010⟩ theorem putnam_2019_b5 (F : ℕ → ℤ) (P : Polynomial ℝ) (hF : ∀ x, x ≥ 3 → F x = F (x - 1) + F (x - 2)) (F12 : F 1 = 1 ∧ F 2 = 1) (Pdeg: Polynomial.degree P = 1008) (hp: ∀ n : ℕ, (n ≤ 1008) → P.eval (2 * n + 1 : ℝ) = F (2 * n + 1)) : ∀ j k : ℕ, (P.eval 2019 ...
Let $F_m$ be the $m$th Fibonacci number, defined by $F_1 = F_2 = 1$ and $F_m = F_{m-1} + F_{m-2}$ for all $m \geq 3$. Let $p(x)$ be the polynomial of degree $1008$ such that $p(2n + 1) = F_{2n+1}$ for $n = 0,1,2,\ldots,1008$. Find integers $j$ and $k$ such that $p(2019) = F_j - F_k$.
Show that the solution takes the form of $(j, k) = (2019, 1010)$.
['number_theory', 'algebra']
Section putnam_2019_b5. Require Import Nat PeanoNat Reals NewtonInt. From mathcomp Require Import bigop fintype ssrnat ssrnum ssralg fintype poly seq. Local Open Scope ring_scope. Theorem putnam_2019_b5: let F := fix f (n: nat) : nat := match n with | O => O | S O => 1%...
theory putnam_2019_b5 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_2019_b5_solution::"nat \<times> nat" where "putnam_2019_b5_solution \<equiv> undefined" (* (2019, 1010) *) theorem putnam_2019_b5: fixes f::"nat\<Rightarrow>int" and p::"real poly" assumes hf : "\<forall>x\<ge...
putnam_2019_b6
abbrev putnam_2019_b6_solution : Set ℕ := sorry -- Set.Ici 1 theorem putnam_2019_b6 (n : ℕ) (neighbors : (Fin n → ℤ) → (Fin n → ℤ) → Prop) (hneighbors : ∀ p q : Fin n → ℤ, neighbors p q = (∃ i : Fin n, abs (p i - q i) = 1 ∧ ∀ j ≠ i, p j = q j)) : (n ≥ 1 ∧ ∃ S : Set (Fin n → ℤ), (∀ p ∈ S, ∀ q : Fin n → ℤ, neighbors p q ...
Let \( \mathbb{Z}^n \) be the integer lattice in \( \mathbb{R}^n \). Two points in \( \mathbb{Z}^n \) are called neighbors if they differ by exactly 1 in one coordinate and are equal in all other coordinates. For which integers \( n \geq 1 \) does there exist a set of points \( S \subset \mathbb{Z}^n \) satisfying the ...
null
['abstract_algebra']
null
theory putnam_2019_b6 imports Complex_Main begin (* uses (nat \<Rightarrow> int) instead of (Fin n \<Rightarrow> int) *) definition putnam_2019_b6_solution :: "nat set" where "putnam_2019_b6_solution \<equiv> undefined" (* {1..} *) theorem putnam_2019_b6: fixes n :: nat and neighbors :: "(nat \<Rightarrow> int) \<...
putnam_1976_a2
theorem putnam_1976_a2 (P : MvPolynomial (Fin 2) ℤ := (X 0)^2*(X 1) + (X 0)*(X 1)^2) (Q : MvPolynomial (Fin 2) ℤ := (X 0)^2 + (X 0)*(X 1) + (X 2)^2) (F : ℕ → MvPolynomial (Fin 2) ℤ := fun n : ℕ => ((X 0) + (X 1))^n - (X 0)^n - (X 1)^n) (G : ℕ → MvPolynomial (Fin 2) ℤ := fun n : ℕ => ((X 0) + (X 1))^n + (X 0)^n + (X 1)^...
Let $P(x, y) = x^2y + xy^2$, $Q(x, y) = x^2 + xy + y^2$, $F_n(x, y) = (x + y)^n - x^n - y^n$, and $G_n(x, y) = (x + y)^n + x^n + y^n$. Prove that for all positive integers $n$, either $F_n$ or $G_n$ can be represented as a polynomial in $P$ and $Q$ with integer coefficients.
null
['algebra']
null
theory putnam_1976_a2 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin (* Note: Annoying solution, but it works. Need to find a way to cast an int poly poly to int poly poly poly *) theorem putnam_1976_a2: fixes P Q :: "int poly poly" and F G :: "nat \<Rightarrow> (int poly poly)" and is_pol...
putnam_1976_a3
abbrev putnam_1976_a3_solution : Set (ℕ × ℕ × ℕ × ℕ) := sorry -- {(3, 2, 2, 3), (2, 3, 3, 2)} theorem putnam_1976_a3 : {(p, r, q, s) : ℕ × ℕ × ℕ × ℕ | Nat.Prime p ∧ Nat.Prime q ∧ r > 1 ∧ s > 1 ∧ |(p^r : ℤ) - q^s| = 1} = putnam_1976_a3_solution := sorry
Find all integer solutions $(p, r, q, s)$ of the equation $|p^r - q^s| = 1$, where $p$ and $q$ are prime and $r$ and $s$ are greater than $1$.
The only solutions are $(p, r, q, s) = (3, 2, 2, 3)$ and $(p, r, q, s) = (2, 3, 3, 2)$.
['number_theory']
Section putnam_1976_a3. Require Import Nat ZArith Znumtheory. Open Scope nat_scope. Definition putnam_1976_a3_solution (p q n m: nat) := p = 2 /\ q = 3 /\ n = 3 /\ m = 2. Theorem putnam_1976_a3: forall (p q n m: nat), prime (Z.of_nat p) /\ prime (Z.of_nat q) /\ n >= 2 /\ m >= 2 -> p^n = q^m + 1 \/ p^n = q^m...
theory putnam_1976_a3 imports Complex_Main begin definition putnam_1976_a3_solution :: "(nat \<times> nat \<times> nat \<times> nat) set" where "putnam_1976_a3_solution \<equiv> undefined" (* {(3,2,2,3), (2,3,3,2)} *) theorem putnam_1976_a3: shows "{z :: nat \<times> nat \<times> nat \<times> nat. let (p,q,r,s) = z ...
putnam_1976_a4
abbrev putnam_1976_a4_solution : (ℝ → ℝ) × (ℝ → ℝ) := sorry -- (fun r : ℝ => -1/(r + 1), fun r : ℝ => -(r + 1)/r) theorem putnam_1976_a4 (a b c d : ℤ) (r : ℝ) (P : Polynomial ℚ := X^3 + (C (a : ℚ))*X^2 + (C (b : ℚ))*X - (C 1)) (Q : Polynomial ℚ := X^3 + (C (c : ℚ))*X^2 + (C (d : ℚ))*X + (C 1)) (hP : aeval r P = 0 ∧ Irr...
Let $r$ be a real root of $P(x) = x^3 + ax^2 + bx - 1$, where $a$ and $b$ are integers and $P$ is irreducible over the rationals. Suppose that $r + 1$ is a root of $x^3 + cx^2 + dx + 1$, where $c$ and $d$ are also integers. Express another root $s$ of $P$ as a function of $r$ that does not depend on the values of $a$, ...
The possible answers are $s = -\frac{1}{r + 1}$ and $s = -\frac{r + 1}{r}$.
['algebra']
null
theory putnam_1976_a4 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_1976_a4_solution :: "(real \<Rightarrow> real) \<times> (real \<Rightarrow> real)" where "putnam_1976_a4_solution \<equiv> undefined" (* (\<lambda> r :: real. -1/(r + 1), \<lambda> r :: real. -(r+1)/r) *) theorem ...
putnam_1976_a6
theorem putnam_1976_a6 (f : ℝ → ℝ) (hfdiff : ContDiff ℝ 2 f) (hfbd : ∀ x : ℝ, |f x| ≤ 1) (hf0 : (f 0)^2 + (deriv f 0)^2 = 4) : ∃ y : ℝ, (f y) + (iteratedDeriv 2 f y) = 0 := sorry
Suppose that $f : \mathbb{R} \to \mathbb{R}$ is a twice continuously differentiable function such that $|f(x)| \le 1$ for all real $x$ and $(f(0))^2 + (f'(0))^2 = 4$. Prove that $f(y) + f''(y) = 0$ for some real number $y$.
null
['analysis', 'algebra']
Section putnam_1976_a6. Require Import Reals Coquelicot.Derive. Theorem putnam_1976_a6: forall (f: R -> R) (x: R), -1 <= x <= 1 -> ex_derive_n f 2 x /\ (f 0)*(f 0) + ((Derive_n f 1) 0)*((Derive_n f 1) 0) = 4 <-> exists (a: R), f a + ((Derive_n f 2) a) = 0. Proof. Admitted. End putnam_1976_a6.
theory putnam_1976_a6 imports Complex_Main "HOL-Analysis.Derivative" begin theorem putnam_1976_a6: fixes f :: "real \<Rightarrow> real" assumes hfcdiff1 : "f C1_differentiable_on UNIV" and hfcdiff2 : "(deriv f) C1_differentiable_on UNIV" and hfbd : "\<forall> x :: real. \<bar>f x\<bar> \<le> 1" and hf0...
putnam_1976_b1
abbrev putnam_1976_b1_solution : ℕ × ℕ := sorry -- (4, 1) theorem putnam_1976_b1 : Tendsto (fun n : ℕ => ((1 : ℝ)/n)*∑ k in Finset.Icc (1 : ℤ) n, (Int.floor ((2*n)/k) - 2*Int.floor (n/k))) ⊤ (𝓝 (Real.log putnam_1976_b1_solution.1 - putnam_1976_b1_solution.2)) := sorry
Find $$\lim_{n \to \infty} \frac{1}{n} \sum_{k=1}^{n}\left(\left\lfloor \frac{2n}{k} \right\rfloor - 2\left\lfloor \frac{n}{k} \right\rfloor\right).$$ Your answer should be in the form $\ln(a) - b$, where $a$ and $b$ are positive integers.
The limit equals $\ln(4) - 1$, so $a = 4$ and $b = 1$.
['analysis']
null
theory putnam_1976_b1 imports Complex_Main begin definition putnam_1976_b1_solution :: "real \<times> real" where "putnam_1976_b1_solution \<equiv> undefined" (* (4,1) *) theorem putnam_1976_b1: shows "filterlim (\<lambda> n :: nat. 1/(real n) * (\<Sum> k \<in> {1 :: nat..n}. \<lfloor>2*(real n)/(real k)\<rfloor> - ...
putnam_1976_b2
abbrev putnam_1976_b2_solution : ℕ × Set (List (ℤ × ℤ)) := sorry -- (8, {[(0, 0)], [(2, 0)], [(0, 1)], [(0, 2)], [(0, 3)], [(0, 4)], [(0, 5)], [(0, 6)]}) theorem putnam_1976_b2 (G : Type*) [Group G] (A B : G) (word : List (ℤ × ℤ) → G := fun w : List (ℤ × ℤ) => (List.map (fun t : ℤ × ℤ => A^(t.1)*B^(t.2)) w).prod) (hG :...
Let $G$ be a group generated by two elements $A$ and $B$; i.e., every element of $G$ can be expressed as a finite word $A^{n_1}B^{n_2} \cdots A^{n_{k-1}}B^{n_k}$, where the $n_i$ can assume any integer values and $A^0 = B^0 = 1$. Further assume that $A^4 = B^7 = ABA^{-1}B = 1$, but $A^2 \ne 1$ and $B \ne 1$. Find the n...
There are $8$ such squares: $1$, $A^2$, $B$, $B^2$, $B^3$, $B^4$, $B^5$, and $B^6$.
['abstract_algebra']
null
theory putnam_1976_b2 imports Complex_Main "HOL-Algebra.Group" begin definition putnam_1976_b2_solution :: "nat \<times> (((nat \<times> nat) list) set)" where "putnam_1976_b2_solution \<equiv> undefined" (* (8, {[(0,0)], [(2, 0)], [(0, 1)], [(0, 2)], [(0, 3)], [(0, 4)], [(0, 5)], [(0, 6)]}) *) theorem putnam_1976_b2:...
putnam_1976_b5
abbrev putnam_1976_b5_solution : ℕ → Polynomial ℤ := sorry -- fun n => C (Nat.factorial n) theorem putnam_1976_b5 : ∀ n : ℕ, ∑ k in Finset.range (n + 1), C ((-(1 : ℤ))^k * Nat.choose n k) * (X - (C (k : ℤ)))^n = putnam_1976_b5_solution n := sorry
Find $$\sum_{k=0}^{n} (-1)^k {n \choose k} (x - k)^n.$$
The sum equals $n!$.
['algebra']
Section putnam_1976_b5. Require Import Factorial Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1976_b5_solution (n: nat) : R -> R := fun x => INR (fact n). Theorem putnam_1976_b5 : forall (n: nat), (fun x => sum_n (fun i => (-1) ^ i * Binomial.C n i * (x - INR i) ^ n) (n + 1)) = putnam_1976_b5_soluti...
theory putnam_1976_b5 imports Complex_Main begin definition putnam_1976_b5_solution::"nat\<Rightarrow>(real \<Rightarrow> real)" where "putnam_1976_b5_solution \<equiv> undefined" (* \<lambda>n. \<lambda>x. fact n *) theorem putnam_1976_b5: shows "\<forall>n::nat. (\<lambda>x. (\<Sum>k=0..n. ((-1)^k * (n choose k)) ...
putnam_1976_b6
theorem putnam_1976_b6 (σ : ℕ → ℤ := fun N : ℕ => ∑ d in Nat.divisors N, (d : ℤ)) (quasiperfect : ℕ → Prop := fun N : ℕ => σ N = 2*N + 1) : ∀ N : ℕ, quasiperfect N → ∃ m : ℤ, Odd m ∧ m^2 = N := sorry
Let $\sigma(N)$ denote the sum of all positive integer divisors of $N$, including $1$ and $N$. Call a positive integer $N$ \textit{quasiperfect} if $\sigma(N) = 2N + 1$. Prove that every quasiperfect number is the square of an odd integer.
null
['number_theory']
Section putnam_1976_b6. Require Import List Nat. Theorem putnam_1976_b6: let sigma (n : nat) := fold_right plus 0 (filter (fun m => Nat.eqb (n mod m) 0) (seq 1 (S n))) in forall (n: nat), sigma n = 2*n + 1 -> exists (m: nat), (odd m = true )/\ n = m*m. Proof. Admitted. End putnam_1976_b6.
theory putnam_1976_b6 imports Complex_Main begin theorem putnam_1976_b6: fixes \<sigma> :: "nat \<Rightarrow> nat" and quasiperfect :: "nat \<Rightarrow> bool" defines "\<sigma> \<equiv> \<lambda> N :: nat. (\<Sum> d \<in> {k :: nat. k dvd N}. d)" and "quasiperfect \<equiv> \<lambda> N :: nat. \<sigma> N =...
putnam_2010_a1
abbrev putnam_2010_a1_solution : ℕ → ℕ := sorry -- (fun n : ℕ => Nat.ceil ((n : ℝ) / 2)) theorem putnam_2010_a1 (n : ℕ) (kboxes : ℕ → Prop) (npos : n > 0) (hkboxes : ∀ k : ℕ, kboxes k = (∃ boxes : Fin n → Fin k, ∀ i j : Fin k, (∑' x : boxes ⁻¹' {i}, (x : ℕ)) = (∑' x : boxes ⁻¹' {j}, (x : ℕ)))) : kboxes (putnam_2010_a1_...
Given a positive integer $n$, what is the largest $k$ such that the numbers $1,2,\dots,n$ can be put into $k$ boxes so that the sum of the numbers in each box is the same? [When $n=8$, the example $\{1,2,3,6\},\{4,8\},\{5,7\}$ shows that the largest $k$ is \emph{at least} $3$.]
Show that the largest such $k$ is $\lceil \frac{n}{2} \rceil$.
['algebra']
null
theory putnam_2010_a1 imports Complex_Main begin (* Boosted domains to naturals *) definition putnam_2010_a1_solution :: "nat\<Rightarrow>nat" where "putnam_2010_a1_solution \<equiv> undefined" (* \<lambda>n. nat \<lceil>n/2\<rceil> *) theorem putnam_2010_a1: fixes n :: "nat" and k_boxes :: "nat\<Rightarrow>bool"...
putnam_2010_a2
abbrev putnam_2010_a2_solution : Set (ℝ → ℝ) := sorry -- {f : ℝ → ℝ | ∃ c d : ℝ, ∀ x : ℝ, f x = c*x + d} theorem putnam_2010_a2 : {f : ℝ → ℝ | Differentiable ℝ f ∧ ∀ x : ℝ, ∀ n : ℤ, n > 0 → deriv f x = (f (x + n) - f x)/n} = putnam_2010_a2_solution := sorry
Find all differentiable functions $f:\mathbb{R} \to \mathbb{R}$ such that \[ f'(x) = \frac{f(x+n)-f(x)}{n} \] for all real numbers $x$ and all positive integers $n$.
The solution consists of all functions of the form $f(x) = cx+d$ for some real numbers $c,d$.
['analysis']
Section putnam_2010_a2. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2010_a2_solution (f: R -> R) := exists (c d: R), f = (fun x => c * x + d). Theorem putnam_2010_a2: forall (f: R -> R) (x: R) (n: nat), Derive f x = (f (x + (INR n)) - f x) / (INR n) <-> putnam_2010_a2_solution f. Proof. Admitted....
theory putnam_2010_a2 imports Complex_Main "HOL-Analysis.Derivative" begin definition putnam_2010_a2_solution :: "(real \<Rightarrow> real) set" where "putnam_2010_a2_solution \<equiv> undefined" (* {f::real\<Rightarrow>real. (\<exists>c d::real. \<forall>x::real. f x = c*x + d)} *) theorem putnam_2010_a2: shows "{f...
putnam_2010_a4
theorem putnam_2010_a4 : ∀ n : ℕ, n > 0 → ¬Nat.Prime (10^10^10^n + 10^10^n + 10^n - 1) := sorry
Prove that for each positive integer $n$, the number $10^{10^{10^n}} + 10^{10^n} + 10^n - 1$ is not prime.
null
['number_theory']
null
theory putnam_2010_a4 imports Complex_Main "HOL-Computational_Algebra.Primes" begin theorem putnam_2010_a4: fixes n :: nat assumes n_pos : "n > 0" shows "\<not> prime (10^(10^(10^n)) + 10^(10^n) + 10^n - 1)" sorry end
putnam_2010_a5
theorem putnam_2010_a5 (G : Set (Fin 3 → ℝ)) (hGgrp : Group G) (hGcross : ∀ a b : G, crossProduct a b = (a * b : Fin 3 → ℝ) ∨ crossProduct (a : Fin 3 → ℝ) b = 0) : ∀ a b : G, crossProduct (a : Fin 3 → ℝ) b = 0 := sorry
Let $G$ be a group, with operation $*$. Suppose that \begin{enumerate} \item[(i)] $G$ is a subset of $\mathbb{R}^3$ (but $*$ need not be related to addition of vectors); \item[(ii)] For each $\mathbf{a},\mathbf{b} \in G$, either $\mathbf{a}\times \mathbf{b} = \mathbf{a}*\mathbf{b}$ or $\mathbf{a}\times \mathbf{b} = 0$ ...
null
['abstract_algebra', 'algebra']
null
theory putnam_2010_a5 imports Complex_Main "HOL-Analysis.Cross3" "HOL-Algebra.Group" begin theorem putnam_2010_a5: fixes S :: "(real^3) monoid" assumes hgroup : "Group.group S" and hcross: "\<forall>a \<in> carrier S. \<forall>b \<in> carrier S. cross3 a b = a \<otimes>\<index> b \<or> cross3 a b = 0" shows ...
putnam_2010_a6
theorem putnam_2010_a6 (f : ℝ → ℝ) (hf : (StrictAntiOn f (Ici 0) ∧ ContinuousOn f (Ici 0) ∧ Tendsto f atTop (𝓝 0))) : ¬∃ y : ℝ, Tendsto (fun z : ℝ => ∫ x in Ico 0 z, ((f x) - f (x + 1))/(f x)) atTop (𝓝 y) := sorry
Let $f:[0,\infty)\to \mathbb{R}$ be a strictly decreasing continuous function such that $\lim_{x\to\infty} f(x) = 0$. Prove that $\int_0^\infty \frac{f(x)-f(x+1)}{f(x)}\,dx$ diverges.
null
['analysis']
Section putnam_2010_a6. Require Import Reals Coquelicot.Coquelicot. Theorem putnam_2010_a6: forall (f: R -> R) (x y: R), (x >= 0 /\ x < y -> f x > f y /\ continuity_pt f x /\ Lim_seq (fun n => f (INR n)) = 0) -> ~ ex_lim_seq (fun nInc => RInt (fun x => (f x - f (x + 1)) / f x) 0 (INR nInc)). Proof. Admitted. E...
theory putnam_2010_a6 imports Complex_Main "HOL-Analysis.Interval_Integral" begin (* uses (real \<Rightarrow> real) instead of ({0..} \<Rightarrow> real) *) theorem putnam_2010_a6: fixes f :: "real \<Rightarrow> real" assumes hf: "strict_antimono_on {0..} f \<and> continuous_on {0..} f \<and> filterlim f (nhds 0) ...
putnam_2010_b1
abbrev putnam_2010_b1_solution : Prop := sorry -- False theorem putnam_2010_b1 : (∃ a : ℕ → ℝ, ∀ m : ℕ, m > 0 → ∑' i : ℕ, (a i)^m = m) ↔ putnam_2010_b1_solution := sorry
Is there an infinite sequence of real numbers $a_1, a_2, a_3, \dots$ such that \[ a_1^m + a_2^m + a_3^m + \cdots = m \] for every positive integer $m$?
Show that the solution is no such infinite sequence exists.
['analysis']
Section putnam_2010_b1. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2010_b1_solution := False. Theorem putnam_2010_b1: exists (a: nat -> R), forall (m: nat), gt m 0 -> Series (fun i => (a i) ^ m) = (INR m) <-> putnam_2010_b1_solution. Proof. Admitted. End putnam_2010_b1.
theory putnam_2010_b1 imports Complex_Main begin definition putnam_2010_b1_solution :: bool where "putnam_2010_b1_solution \<equiv> undefined" (* False *) theorem putnam_2010_b1: shows "(\<exists>a::nat\<Rightarrow>real. \<forall>m::nat>0. (\<Sum>i::nat. (a i)^m) = m) \<longleftrightarrow> putnam_2010_b1_solution" ...
putnam_2010_b2
abbrev putnam_2010_b2_solution : ℕ := sorry -- 3 theorem putnam_2010_b2 (ABCintcoords : (Fin 2 → ℝ) → (Fin 2 → ℝ) → (Fin 2 → ℝ) → Prop) (ABCintdists : (Fin 2 → ℝ) → (Fin 2 → ℝ) → (Fin 2 → ℝ) → Prop) (ABCall : (Fin 2 → ℝ) → (Fin 2 → ℝ) → (Fin 2 → ℝ) → Prop) (hABCintcoords : ∀ A B C : Fin 2 → ℝ, ABCintcoords A B C = (∀ i...
Given that $A$, $B$, and $C$ are noncollinear points in the plane with integer coordinates such that the distances $AB$, $AC$, and $BC$ are integers, what is the smallest possible value of $AB$?
Show that the smallest distance is $3$.
['geometry']
Section putnam_2010_b2. Require Import Reals Rgeom ZArith GeoCoq.Main.Tarski_dev.Ch16_coordinates_with_functions. Context `{T2D:Tarski_2D} `{TE:@Tarski_euclidean Tn TnEQD}. Open Scope R. Definition putnam_2010_b2_solution := 3. Theorem putnam_2010_b2 (pt_to_R : Tpoint -> (R * R)) (int_val : Tpoint -> Prop := fu...
theory putnam_2010_b2 imports Complex_Main "HOL-Analysis.Analysis" begin definition putnam_2010_b2_solution::nat where "putnam_2010_b2_solution \<equiv> undefined" (* 3 *) theorem putnam_2010_b2: fixes ABCintcoords::"(real \<times> real) \<Rightarrow> (real \<times> real) \<Rightarrow> (real \<times> real) \<Rightar...
putnam_2010_b4
abbrev putnam_2010_b4_solution : Set (Polynomial ℝ × Polynomial ℝ) := sorry -- {(p, q) : Polynomial ℝ × Polynomial ℝ | p.degree ≤ 1 ∧ q.degree ≤ 1 ∧ p.coeff 0 * q.coeff 1 - p.coeff 1 * q.coeff 0 = 1} theorem putnam_2010_b4 (p q : Polynomial ℝ) : (∀ x : ℝ, p.eval x * q.eval (x + 1) - p.eval (x + 1) * q.eval x = 1) ↔ (p,...
Find all pairs of polynomials $p(x)$ and $q(x)$ with real coefficients for which $p(x)q(x+1)-p(x+1)q(x)=1$.
Show that the pairs $(p,q)$ satisfying the given equation are those of the form $p(x)=ax+b,q(x)=cx+d$ for $a,b,c,d \in \mathbb{R}$ such that $bc-ad=1$.
['algebra']
Section putnam_2010_b4. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2010_b4_solution (c1 c2: nat -> R) (n m: nat) := exists (a b c d: R), b * c - a * d = 1 /\ n = 1%nat /\ m = 1%nat /\ c1 = (fun x => match x with | O => b | S O => a | _ => 0 end) /\ c2 = (fun x => match x with | O => d | S O => c | _...
theory putnam_2010_b4 imports Complex_Main "HOL-Computational_Algebra.Polynomial" begin definition putnam_2010_b4_solution :: "(real poly \<times> real poly) set" where "putnam_2010_b4_solution \<equiv> undefined" (* {w :: real poly \<times> real poly. degree (fst w) \<le> 1 \<and> degree (snd w) \<le> 1 \<and> (coe...
putnam_2010_b5
abbrev putnam_2010_b5_solution : Prop := sorry -- False theorem putnam_2010_b5 : (∃ f : ℝ → ℝ, StrictMono f ∧ Differentiable ℝ f ∧ (∀ x : ℝ, deriv f x = f (f x))) ↔ putnam_2010_b5_solution := sorry
Is there a strictly increasing function $f: \mathbb{R} \to \mathbb{R}$ such that $f'(x) = f(f(x))$ for all $x$?
Show that the solution is no such function exists.
['analysis']
Section putnam_2010_b5. Require Import Reals Coquelicot.Coquelicot. Definition putnam_2010_b5_solution := False. Theorem putnam_2010_b5: exists (f: R -> R), forall (x y: R), x < y -> f x < f y /\ Derive f x = f (f x) <-> putnam_2010_b5_solution. Proof. Admitted. End putnam_2010_b5.
theory putnam_2010_b5 imports Complex_Main "HOL-Analysis.Derivative" begin definition putnam_2010_b5_solution :: bool where "putnam_2010_b5_solution \<equiv> undefined" (* False *) theorem putnam_2010_b5: shows "(\<exists>f::real\<Rightarrow>real. strict_mono_on UNIV f \<and> f differentiable_on UNIV \<and> (\<foral...
putnam_2010_b6
theorem putnam_2010_b6 (n : ℕ) (npos : n ≥ 1) (A : Matrix (Fin n) (Fin n) ℝ) (Apow : ℕ → Matrix (Fin n) (Fin n) ℝ) (hApow : ∀ k > 0, Apow k = (fun i j : Fin n => (A i j) ^ k)) : (∀ k ∈ Set.Icc 1 (n + 1), A ^ k = Apow k) → (∀ k ≥ 1, A ^ k = Apow k) := sorry
Let $A$ be an $n \times n$ matrix of real numbers for some $n \geq 1$. For each positive integer $k$, let $A^{[k]}$ be the matrix obtained by raising each entry to the $k$th power. Show that if $A^k=A^{[k]}$ for $k=1,2,\dots,n+1$, then $A^k=A^{[k]}$ for all $k \geq 1$.
null
['linear_algebra']
null
theory putnam_2010_b6 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" begin theorem putnam_2010_b6: fixes n :: "nat" and A :: "real^'n^'n" and Apow :: "nat \<Rightarrow> real^'n^'n" and matrixpow :: "real^'n^'n \<Rightarrow> nat \<Rightarrow> real^'n^'n" assumes hApow : "\<forall> k > 0....
putnam_2013_a2
theorem putnam_2013_a2 (S : Set ℤ := {n : ℤ | n > 0 ∧ ¬∃ m : ℤ, m ^ 2 = n}) (P : ℤ → List ℤ → Prop := fun n : ℤ => fun a : List ℤ => a.length > 0 ∧ n < a[0]! ∧ (∃ m : ℤ, m ^ 2 = n * a.prod) ∧ (∀ i : Fin (a.length - 1), a[i] < a[i+(1:ℕ)])) (T : ℤ → Set ℤ := fun n : ℤ => {m : ℤ | ∃ a : List ℤ, P n a ∧ a[a.length - 1]! = ...
Let $S$ be the set of all positive integers that are \emph{not} perfect squares. For $n$ in $S$, consider choices of integers $a_1, a_2, \dots, a_r$ such that $n < a_1< a_2 < \cdots < a_r$ and $n \cdot a_1 \cdot a_2 \cdots a_r$ is a perfect square, and let $f(n)$ be the minumum of $a_r$ over all such choices. For exam...
null
['number_theory', 'algebra']
null
theory putnam_2013_a2 imports Complex_Main begin theorem putnam_2013_a2: fixes S :: "nat set" and P :: "nat \<Rightarrow> (int list) \<Rightarrow> bool" and T :: "nat \<Rightarrow> (int set)" and f :: "nat \<Rightarrow> int" defines "S \<equiv> {n::nat. n > 0 \<and> \<not>(\<exists>m::int. m^2 = n)}" and "...
putnam_2013_a3
theorem putnam_2013_a3 (n : ℕ) (a : Set.Icc 0 n → ℝ) (x : ℝ) (hx : 0 < x ∧ x < 1) (hsum: (∑ i : Set.Icc 0 n, a i / (1 - x ^ (i.1 + 1))) = 0) : ∃ y : ℝ, 0 < y ∧ y < 1 ∧ (∑ i : Set.Icc 0 n, a i * y ^ i.1) = 0 := sorry
Suppose that the real numbers \( a_0, a_1, \ldots, a_n \) and \( x \), with \( 0 < x < 1 \), satisfy $ \frac{a_0}{1-x} + \frac{a_1}{(1-x)^2} + \cdots + \frac{a_n}{(1-x)^{n+1}} = 0. $ Prove that there exists a real number \( y \) with \( 0 < y < 1 \) such that $ a_0 + a_1y + \cdots + a_ny^n = 0. $.
null
['number_theory']
Section putnam_2013_a3. Require Import Reals Coquelicot.Coquelicot. Theorem putnam_2013_a3: forall (a: nat -> R) (x: R) (n: nat), 0 < x < 1 /\ sum_n (fun i => a i / (1 - x ^ (i + 1))) (n + 1) = 0 -> exists (y: R), 0 < y < 1 /\ sum_n (fun i => a i * y ^ i) (n + 1) = 0. Proof. Admitted. End putnam_2013_a3.
theory putnam_2013_a3 imports Complex_Main begin (* uses (nat \<Rightarrow> real) instead of ({0..n} \<Rightarrow> real) *) theorem putnam_2013_a3: fixes n :: nat and a :: "nat \<Rightarrow> real" and x :: real assumes hx: "0 < x \<and> x < 1" and hsum: "(\<Sum>i::nat=0..n. a i / (1 - x^(i+1))) = 0" shows ...
putnam_2013_a4
theorem putnam_2013_a4 (n : ℕ) (circle : Fin n → Fin 2) (Z N : Fin n × Fin (n + 1) → ℤ) (k : ℕ) (ws : Fin k → Fin n × Fin (n + 1)) (Zsum Nsum : ℤ) (npos : n ≥ 1) (hZ : ∀ w : Fin n × Fin (n + 1), Z w = ∑ l : {x : Fin n | x < w.2}, if (circle (w.1 + l) = 0) then 1 else 0) (hN : ∀ w : Fin n × Fin (n + 1), N w = ∑ l : {x :...
A finite collection of digits $0$ and $1$ is written around a circle. An \emph{arc} of length $L \geq 0$ consists of $L$ consecutive digits around the circle. For each arc $w$, let $Z(w)$ and $N(w)$ denote the number of $0$'s in $w$ and the number of $1$'s in $w$, respectively. Assume that $|Z(w)-Z(w')| \leq 1$ for any...
null
['algebra']
null
theory putnam_2013_a4 imports Complex_Main begin theorem putnam_2013_a4: fixes n k :: "nat" and Zsum Nsum :: "real" and circle :: "nat \<Rightarrow> nat" and Z N :: "(nat \<times> nat) \<Rightarrow> nat" and ws :: "nat \<Rightarrow> (nat \<times> nat)" defines "Zsum \<equiv> (1 / real_of_nat k) * ...
putnam_2013_a5
theorem putnam_2013_a5 (m : ℕ) (area2 : (Fin 2 → ℝ) → (Fin 2 → ℝ) → (Fin 2 → ℝ) → ℝ) (area3 : (Fin 3 → ℝ) → (Fin 3 → ℝ) → (Fin 3 → ℝ) → ℝ) (areadef2 : (Fin m → Fin m → Fin m → ℝ) → Prop) (areadef3 : (Fin m → Fin m → Fin m → ℝ) → Prop) (mge3 : m ≥ 3) (harea2 : ∀ a b c : Fin 2 → ℝ, area2 a b c = (MeasureTheory.volume (co...
For $m \geq 3$, a list of $\binom{m}{3}$ real numbers $a_{ijk}$ ($1 \leq i<j<k \leq m$) is said to be \emph{area definite} for $\mathbb{R}^n$ if the inequality $\sum_{1 \leq i<j<k \leq m} a_{ijk} \cdot \text{Area}(\Delta A_iA_jA_k) \geq 0$ holds for every choice of $m$ points $A_1,\dots,A_m$ in $\mathbb{R}^n$. For exam...
null
['geometry', 'linear_algebra']
null
theory putnam_2013_a5 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product" "HOL-Analysis.Lebesgue_Measure" begin (* uses (nat \<Rightarrow> nat \<Rightarrow> nat \<Rightarrow> real), (nat \<Rightarrow> (real^2)), and (nat \<Rightarrow> (real^3)) instead of limiting inputs to (Fin m) and ensuring inputs are str...
putnam_2013_a6
theorem putnam_2013_a6 (w : ℤ → ℤ → ℤ) (A : Finset (ℤ × ℤ) → ℤ) (hwn1 : w (-2) (-2) = -1 ∧ w 2 (-2) = -1 ∧ w (-2) 2 = -1 ∧ w 2 2 = -1) (hwn2 : w (-1) (-2) = -2 ∧ w 1 (-2) = -2 ∧ w (-2) (-1) = -2 ∧ w 2 (-1) = -2 ∧ w (-2) 1 = -2 ∧ w 2 1 = -2 ∧ w (-1) 2 = -2 ∧ w 1 2 = -2) (hw2 : w 0 (-2) = 2 ∧ w (-2) 0 = 2 ∧ w 2 0 = 2 ∧ w...
Define a function $w:\mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}$ as follows. For $|a|,|b| \leq 2$, let $w(a,b)$ be as in the table shown; otherwise, let $w(a,b)=0$. \begin{center} \begin{tabular}{|cc|r|r|r|r|r|} \hline \multicolumn{2}{|c|}{\multirow{2}{*}{$w(a,b)$}} & \multicolumn{5}{|c|}{$b$} \\ & & -2 & -1 & 0 & 1 &...
null
['algebra']
Section putnam_2013_a6. Require Import List ZArith. Open Scope Z. Theorem putnam_2013_a6: let w (v: (Z*Z)) : Z := match v with | (-2, -2) => -1 | (-2, -1) => -2 | (-2, 0) => 2 | (-2, 1) => -2 | (-2, 2) => -1 | (-1, -2) => -2 | (-1, -1) => 4 | (-1, 0) => -4 | (-1, 1) => 4 | (-1, 2) =>...
theory putnam_2013_a6 imports Complex_Main begin theorem putnam_2013_a6: fixes w :: "int \<Rightarrow> int \<Rightarrow> int" and A :: "((int \<times> int) set) \<Rightarrow> int" assumes hwn1: "w (-2) (-2) = -1 \<and> w 2 (-2) = -1 \<and> w (-2) 2 = -1 \<and> w 2 2 = -1" and hwn2: "w (-1) (-2) = -2 \<and> w 1...
putnam_2013_b1
abbrev putnam_2013_b1_solution : ℤ := sorry -- -1 theorem putnam_2013_b1 (c : ℕ → ℤ) (hc1 : c 1 = 1) (hceven : ∀ n : ℕ, n > 0 → c (2 * n) = c n) (hcodd : ∀ n : ℕ, n > 0 → c (2 * n + 1) = (-1) ^ n * c n) : (∑ n : Set.Icc 1 2013, c n * c (n.1 + 2)) = putnam_2013_b1_solution := sorry
For positive integers $n$, let the numbers $c(n)$ be determined by the rules $c(1)=1$, $c(2n)=c(n)$, and $c(2n+1)=(-1)^nc(n)$. Find the value of $\sum_{n=1}^{2013} c(n)c(n+2)$.
Show that the desired sum is $-1$.
['algebra']
Section putnam_2013_b1. Require Import ZArith Nat List Lia Ensembles Finite_sets Reals Program Coquelicot.Hierarchy. Open Scope Z. Program Fixpoint Aa (n : nat) {measure n} : Z := match n with | O => 0 | S O => 1 | S (S m) => if even m then Aa (div2 (m+2)) else if even (div2 (m+2)) then Aa (div2 (m+2)) else (...
theory putnam_2013_b1 imports Complex_Main begin definition putnam_2013_b1_solution :: int where "putnam_2013_b1_solution \<equiv> undefined" (* -1 *) theorem putnam_2013_b1: fixes c :: "nat \<Rightarrow> int" assumes hc1: "c 1 = 1" and hceven: "\<forall>n::nat. n > 0 \<longrightarrow> c (2*n) = c n" and hcodd...
putnam_2013_b2
abbrev putnam_2013_b2_solution : ℝ := sorry -- 3 theorem putnam_2013_b2 (CN : ℕ → Set (ℝ → ℝ) := fun N : ℕ => {f : ℝ → ℝ | (∀ x : ℝ, f x ≥ 0) ∧ ∃ a : List ℝ, a.length = N + 1 ∧ (∀ n : Fin (N + 1), 3 ∣ (n : ℕ) → a[n]! = 0) ∧ ∀ x : ℝ, f x = 1 + ∑ n in Finset.Icc 1 N, a[(n : ℕ)]! * Real.cos (2*Real.pi*n*x)}) (C : Set (ℝ →...
Let $C = \bigcup_{N=1}^\infty C_N$, where $C_N$ denotes the set of those `cosine polynomials' of the form \[ f(x) = 1 + \sum_{n=1}^N a_n \cos(2 \pi n x) \] for which: \begin{enumerate} \item[(i)] $f(x) \geq 0$ for all real $x$, and \item[(ii)] $a_n = 0$ whenever $n$ is a multiple of $3$. \end{enumerate} Determine the m...
The maximum value of $f(0)$ is $3$.
['algebra']
Section putnam_2013_b2. Require Import Ensembles Finite_sets Reals Coquelicot.Coquelicot. Definition putnam_2013_b2_solution := 3. Theorem putnam_2013_b2: forall (E: Ensemble (R -> R)) (f: R -> R), (E f <-> (forall (x: R), exists (a: nat -> R) (N: nat), f x = 1 + sum_n (fun n => a n * cos (2 * PI * INR n...
theory putnam_2013_b2 imports Complex_Main begin definition putnam_2013_b2_solution :: real where "putnam_2013_b2_solution \<equiv> undefined" (* 3 *) theorem putnam_2013_b2: fixes CN :: "nat \<Rightarrow> ((real \<Rightarrow> real) set)" and C :: "(real \<Rightarrow> real) set" defines "CN \<equiv> (\<lambda>N:...
putnam_2013_b3
abbrev putnam_2013_b3_solution : Prop := sorry -- True theorem putnam_2013_b3 : (∀ (n : ℕ) (P : Finset (Finset (Fin n))) (f : Finset (Fin n) → ℝ), P ≠ ⊥ → (∀ S ∈ P, ∀ S' ∈ P, S ∪ S' ∈ P ∧ S ∩ S' ∈ P) → (∀ S ∈ P, S ≠ ⊥ → ∃ T ∈ P, T ⊂ S ∧ Finset.card T + 1 = Finset.card S) → f ⊥ = 0 → (∀ S ∈ P, ∀ S' ∈ P...
Let $\mathcal{P}$ be a nonempty collection of subsets of $\{1,\dots, n\}$ such that: \begin{enumerate} \item[(i)] if $S, S' \in \mathcal{P}$, then $S \cup S' \in \mathcal{P}$ and $S \cap S' \in \mathcal{P}$, and \item[(ii)] if $S \in \mathcal{P}$ and $S \neq \emptyset$, then there is a subset $T \subset S$ such that $T...
null
['set_theory']
null
theory putnam_2013_b3 imports Complex_Main begin (* This formalization uses "nat set" and "nat \<Rightarrow> real" instead of finite types ("Fin n" in Lean) *) definition putnam_2013_b3_solution :: bool where "putnam_2013_b3_solution \<equiv> undefined" (* True *) theorem putnam_2013_b3: shows "(\<forall> (n :: nat)...
putnam_2013_b4
theorem putnam_2013_b4 (μ : (Set.Icc (0 : ℝ) 1 → ℝ) → ℝ) (Var : (Set.Icc (0 : ℝ) 1 → ℝ) → ℝ) (M : (Set.Icc (0 : ℝ) 1 → ℝ) → ℝ) (hμ : ∀ f : Set.Icc (0 : ℝ) 1 → ℝ, μ f = ∫ x : Set.Icc (0 : ℝ) 1, f x) (hVar : ∀ f : Set.Icc (0 : ℝ) 1 → ℝ, Var f = ∫ x : Set.Icc (0 : ℝ) 1, (f x - μ f) ^ 2) (hM : ∀ f : Set.Icc (0 : ℝ) 1 → ℝ, ...
For any continuous real-valued function $f$ defined on the interval $[0,1]$, let $\mu(f)=\int_0^1 f(x)\,dx,\text{Var}(f)=\int_0^1 (f(x)-\mu(f))^2\,dx,M(f)=\max_{0 \leq x \leq 1} |f(x)|$. Show that if $f$ and $g$ are continuous real-valued functions defined on the interval $[0,1]$, then $\text{Var}(fg) \leq 2\text{Var}(...
null
['analysis']
Section putnam_2013_b4. Require Import Reals. From Coquelicot Require Import Coquelicot Continuity RInt. Open Scope R. Definition mu (f: R -> R) := RInt f 0 1. Variable f: R -> R. Check mu f. Theorem putnam_2013_b4: let fMult (f g: R -> R) := fun x => f x * g x in let mu (f: R -> R) := RInt f 0 1 in let v...
theory putnam_2013_b4 imports Complex_Main "HOL-Analysis.Set_Integral" "HOL-Analysis.Lebesgue_Measure" begin (* uses (real \<Rightarrow> real) instead of ({0..1} \<Rightarrow> real) *) theorem putnam_2013_b4: fixes \<mu> :: "(real \<Rightarrow> real) \<Rightarrow> real" and Var :: "(real \<Rightarrow> real) \<Righ...
putnam_2013_b5
theorem putnam_2013_b5 (n : ℕ) (k : Set.Icc 1 n) (fiter : (Set.Icc 1 n → Set.Icc 1 n) → Prop) (npos : n ≥ 1) (hfiter : ∀ f : Set.Icc 1 n → Set.Icc 1 n, fiter f = ∀ x : Set.Icc 1 n, ∃ j : ℕ, f^[j] x ≤ k) : {f : Set.Icc 1 n → Set.Icc 1 n | fiter f}.encard = k * n ^ (n - 1) := sorry
Let $X=\{1,2,\dots,n\}$, and let $k \in X$. Show that there are exactly $k \cdot n^{n-1}$ functions $f:X \to X$ such that for every $x \in X$ there is a $j \geq 0$ such that $f^{(j)}(x) \leq k$. [Here $f^{(j)}$ denotes the $j$\textsuperscript{th} iterate of $f$, so that $f^{(0)}(x)=x$ and $f^{(j+1)}(x)=f(f^{(j)}(x))$.]
null
['algebra']
Section putnam_2013_b5. Require Import Basics Reals Ensembles Finite_sets. From mathcomp Require Import fintype. Theorem putnam_2013_b5: forall (n: nat), let fix compose_n (f : 'I_n -> 'I_n) (n : nat) := match n with | O => fun x => x | S n' => compose f (compose_n f n') end in ...
theory putnam_2013_b5 imports Complex_Main begin (* uses (nat \<Rightarrow> nat) instead of ({1..n} \<Rightarrow> {1..n}) *) theorem putnam_2013_b5: fixes n :: nat and k :: nat and fiter :: "(nat \<Rightarrow> nat) \<Rightarrow> bool" assumes npos: "n \<ge> 1" and kinX: "k \<in> {1..n}" and hfiter: "\<fora...