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_2023_a1 | abbrev putnam_2023_a1_solution : ℕ := sorry
-- 18
theorem putnam_2023_a1
(f : ℕ → ℝ → ℝ)
(hf : ∀ n > 0, f n = fun x : ℝ => ∏ i in Finset.Icc 1 n, Real.cos (i * x))
: putnam_2023_a1_solution > 0 ∧ |iteratedDeriv 2 (f putnam_2023_a1_solution) 0| > 2023 ∧
∀ n > 0, n < putnam_2023_a1_solution → (|iteratedDeriv 2 (f n) 0| ≤... | For a positive integer $n$, let $f_n(x) = \cos(x) \cos(2x) \cos(3x) \cdots \cos(nx)$. Find the smallest $n$ such that $|f_n''(0)| > 2023$. | Show that the solution is $n = 18$. | ['analysis'] | null | theory putnam_2023_a1 imports Complex_Main
"HOL-Analysis.Derivative"
begin
definition putnam_2023_a1_solution::nat where "putnam_2023_a1_solution \<equiv> undefined"
(* 18 *)
theorem putnam_2023_a1:
fixes n :: nat and f :: "nat \<Rightarrow> real \<Rightarrow> real"
defines "f \<equiv> \<lambda>n. \<lambda>x. \<Pr... |
putnam_2023_a2 | abbrev putnam_2023_a2_solution : ℕ → Set ℝ := sorry
-- fun n => {(1 : ℝ)/(factorial n), -(1 : ℝ)/(factorial n)}
theorem putnam_2023_a2
(n : ℕ)
(hn : n > 0 ∧ Even n)
(p : Polynomial ℝ)
(hp : Polynomial.Monic p ∧ p.degree = 2*n)
(S : Set ℝ := {x : ℝ | ∃ k : ℤ, x = k ∧ 1 ≤ |k| ∧ |k| ≤ n})
(hpinv : ∀ k ∈ S, p.eval (1/k) = ... | Let $n$ be an even positive integer. Let $p$ be a monic, real polynomial of degree $2n$; that is to say, $p(x) = x^{2n} + a_{2n-1} x^{2n-1} + \cdots + a_1 x + a_0$ for some real coefficients $a_0, \dots, a_{2n-1}$. Suppose that $p(1/k) = k^2$ for all integers $k$ such that $1 \leq |k| \leq n$. Find all other real numbe... | Show that the other real numbers satisfying $p(1/x) = x^2$ are $\pm rac{1}{n!}.$ | ['algebra'] | Section putnam_2023_a2.
Require Import Nat Ensembles Factorial Reals Coquelicot.Coquelicot.
Definition putnam_2023_a2_solution : Ensemble R := fun x => exists (n: nat), x = -1 / INR (fact n) \/ x = 1 / INR (fact n).
Theorem putnam_2023_a2
(n : nat)
(hn0 : gt n 0)
(hnev : even n = true)
(coeff: nat -> R... | theory putnam_2023_a2 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_2023_a2_solution :: "nat \<Rightarrow> (real set)" where "putnam_2023_a2_solution \<equiv> undefined"
(* \<lambda> n :: nat. {(1 :: real)/(fact n), -(1 :: real)/(fact n)} *)
theorem putnam_2023_a2:
fixes n :: "n... |
putnam_2023_a3 | abbrev putnam_2023_a3_solution : ℝ := sorry
-- Real.pi / 2
theorem putnam_2023_a3
: sInf {r > 0 | ∃ f g : ℝ → ℝ, Differentiable ℝ f ∧ Differentiable ℝ g ∧
f 0 > 0 ∧ g 0 = 0 ∧ (∀ x : ℝ, |deriv f x| ≤ |g x| ∧ |deriv g x| ≤ |f x|) ∧ f r = 0} = putnam_2023_a3_solution :=
sorry | Determine the smallest positive real number $r$ such that there exist differentiable functions $f\colon \mathbb{R} \to \mathbb{R}$ and $g\colon \mathbb{R} \to \mathbb{R}$ satisfying
\begin{enumerate}
\item[(a)] $f(0) > 0$,
\item[(b)] $g(0) = 0$,
\item[(c)] $|f'(x)| \leq |g(x)|$ for all $x$,
\item[(d)] $|g'(x)| ... | Show that the solution is $r = \pi/2$. | ['analysis'] | Section putnam_2023_a3.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2023_a3_solution := PI / 2.
Theorem putnam_2023_a3
(r : R)
(hr : r > 0)
(p : R -> Prop := fun t => exists (f g : R -> R), f 0 = 0 /\ g 0 = 0 /\ forall (x: R), Rabs (Derive f x) <= Rabs (g x) /\ forall (x: R), Rabs (Derive... | theory putnam_2023_a3 imports Complex_Main
"HOL-Analysis.Derivative"
begin
definition putnam_2023_a3_solution :: "real" where "putnam_2023_a3_solution \<equiv> undefined"
(* pi / 2 *)
theorem putnam_2023_a3:
shows "(LEAST r :: real. r > 0 \<and> (\<exists> f g :: real \<Rightarrow> real. Differentiable f UNIV \<and>... |
putnam_2023_b2 | abbrev putnam_2023_b2_solution : ℕ := sorry
-- 3
theorem putnam_2023_b2
: sInf {(digits 2 (2023*n)).sum | n > 0} = putnam_2023_b2_solution :=
sorry | For each positive integer $n$, let $k(n)$ be the number of ones in the binary representation of $2023 \cdot n$. What is the minimum value of $k(n)$? | Show that the minimum is $3$. | ['number_theory'] | Section putnam_2023_b2.
Require Import BinNums Nat NArith.
Definition putnam_2023_b2_solution := 3.
Theorem putnam_2023_b2:
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
(forall (n... | theory putnam_2023_b2 imports Complex_Main
"HOL-Number_Theory.Cong"
begin
definition putnam_2023_b2_solution :: "nat" where "putnam_2023_b2_solution \<equiv> undefined"
(* 3 *)
theorem putnam_2023_b2:
fixes ones :: "nat \<Rightarrow> nat"
assumes h0 : "ones 0 = 0"
and hi : "\<forall> n > 0. ones n = ones (n di... |
putnam_2023_a5 | abbrev putnam_2023_a5_solution : Set ℂ := sorry
-- {-(3^1010 - 1)/2, -(3^1010 - 1)/2 + Real.sqrt (9^1010 - 1) * Complex.I/4, -(3^1010 - 1)/2 - Real.sqrt (9^1010 - 1) * Complex.I/4}
theorem putnam_2023_a5
: {z : ℂ | ∑ k in Finset.Icc 0 (3^1010 - 1), (-2)^(num_ones (digits 3 k)) * (z + k)^2023 = 0} = putnam_2023_a5_solut... | For a nonnegative integer $k$, let $f(k)$ be the number of ones in the base 3 representation of $k$. Find all complex numbers $z$ such that \[ \sum_{k=0}^{3^{1010}-1} (-2)^{f(k)} (z+k)^{2023} = 0. \] | Show that the solution is the set of complex numbers $\{- \frac{3^{1010} - 1}{2} \pm \frac{\sqrt{9^{1010} - 1}}{4} * i \}$ | ['algebra'] | null | theory putnam_2023_a5 imports Complex_Main
"HOL-Number_Theory.Cong"
begin
definition putnam_2023_a5_solution :: "complex set" where "putnam_2023_a5_solution \<equiv> undefined"
(* {-(3^1010 - 1)/2, -(3^1010 - 1)/2 + sqrt (9^1010 - 1) * \<i>/4, -(3^1010 - 1)/2 - sqrt (9^1010 - 1) * \<i>/4} *)
theorem putnam_2023_a5:
... |
putnam_2023_b4 | abbrev putnam_2023_b4_solution : ℝ := sorry
-- 29
theorem putnam_2023_b4
(tne : ℕ → (ℕ → ℝ) → Set ℝ)
(fdiff : ℕ → (ℕ → ℝ) → (ℝ → ℝ) → Prop)
(flim : ℕ → (ℕ → ℝ) → (ℝ → ℝ) → Prop)
(fderiv1 : ℕ → (ℕ → ℝ) → (ℝ → ℝ) → Prop)
(fderiv2 : ℕ → (ℕ → ℝ) → (ℝ → ℝ) → Prop)
(fall : ℕ → (ℕ → ℝ) → (ℝ → ℝ) → Prop)
(tinc : ℕ → (ℕ → ℝ) → ... | For a nonnegative integer $n$ and a strictly increasing sequence of real numbers $t_0,t_1,\dots,t_n$, let $f(t)$ be the corresponding real-valued function defined for $t \geq t_0$ by the following properties:
\begin{enumerate}
\item[(a)] $f(t)$ is continuous for $t \geq t_0$, and is twice differentiable for all $t>t_0$... | Show that the minimum value of $T$ is $29$. | ['analysis'] | Section putnam_2023_b4.
Require Import Reals Coquelicot.Derive Coquelicot.Hierarchy. From mathcomp Require Import div fintype seq ssrbool.
Definition putnam_2023_b4_solution := 29.
Theorem putnam_2023_b4:
forall (n: nat) (s: 'I_n -> R) (i i0 : 'I_n), s i < s (ordS i) ->
let t0 := s (nth i0 (enum 'I_n) 0)... | theory putnam_2023_b4 imports Complex_Main
"HOL-Analysis.Derivative"
begin
(* uses (nat \<Rightarrow> real) instead of (Fin (n+1) \<Rightarrow> real) and (real \<Rightarrow> real) instead of ({(ts 0)..} \<Rightarrow> real) *)
definition putnam_2023_b4_solution :: real where "putnam_2023_b4_solution \<equiv> undefined"... |
putnam_2023_b5 | abbrev putnam_2023_b5_solution : Set ℕ := sorry
-- {n : ℕ | n = 1 ∨ n ≡ 2 [MOD 4]}
theorem putnam_2023_b5
(n : ℕ)
(perm : Prop)
(hperm : perm = ∀ m : ℤ, IsRelPrime m n → ∃ p : Equiv.Perm (Fin n), ∀ k : Fin n, (p (p k)).1 + 1 ≡ m * (k.1 + 1) [ZMOD n])
: (n > 0 ∧ perm) ↔ n ∈ putnam_2023_b5_solution :=
sorry | Determine which positive integers $n$ have the following property: For all integers $m$ that are relatively prime to $n$, there exists a permutation $\pi:\{1,2,\dots,n\} \to \{1,2,\dots,n\}$ such that $\pi(\pi(k)) \equiv mk \pmod{n}$ for all $k \in \{1,2,\dots,n\}$. | Show that the desired property holds if and only if $n=1$ or $n \equiv 2 \pmod{4}$. | ['number_theory'] | Section putnam_2023_b5.
Require Import PeanoNat. From mathcomp Require Import div fintype perm ssrbool.
Theorem putnam_2023_b5:
forall (m n: nat), coprime m n ->
exists (π: {perm 'I_n}),
forall (k: 'I_n), (π (π k))%%n mod n = m*k%%n.
Proof. Admitted.
End putnam_2023_b5. | theory putnam_2023_b5 imports Complex_Main
"HOL-Number_Theory.Cong"
"HOL-Combinatorics.Permutations"
begin
definition putnam_2023_b5_solution :: "nat set" where "putnam_2023_b5_solution \<equiv> undefined"
(* {n::nat. n = 1 \<or> [n = 2] (mod 4)} *)
theorem putnam_2023_b5:
fixes n :: nat
and perm :: bool
assumes... |
putnam_2023_b6 | abbrev putnam_2023_b6_solution : ℕ → ℤ := sorry
-- (fun n : ℕ => (-1) ^ (Nat.ceil (n / 2) - 1) * 2 * Nat.ceil (n / 2))
theorem putnam_2023_b6
(n : ℕ)
(S : Matrix (Fin n) (Fin n) ℤ)
(npos : n > 0)
(hS : ∀ i j : Fin n, S i j = ∑' a : ℕ, ∑' b : ℕ, if a * (i.1 + 1) + b * (j.1 + 1) = n then 1 else 0)
: S.det = putnam_2023_b... | Let $n$ be a positive integer. For $i$ and $j$ in $\{1,2,\dots,n\}$, let $s(i,j)$ be the number of pairs $(a,b)$ of nonnegative integers satisfying $ai+bj=n$. Let $S$ be the $n$-by-$n$ matrix whose $(i,j)$ entry is $s(i,j)$. For example, when $n=5$, we have $S = \begin{bmatrix}
6 & 3 & 2 & 2 & 2 \\
3 & 0 & 1 & 0 & 1 \\... | Show that the determinant equals $(-1)^{\lceil n/2 \rceil-1}2\lceil\frac{n}{2}\rceil$. | ['linear_algebra'] | Section putnam_2023_b6.
Require Import Nat Finite_sets.
From mathcomp Require Import matrix ssrbool ssralg fintype.
Variable putnam_2023_b6_solution : nat -> nat.
Local Open Scope ring_scope.
Theorem putnam_2023_b6:
forall (n: nat),
let s (i j: nat) := cardinal (nat*nat) (fun p => let (a, b) := p in 1 <=... | theory putnam_2023_b6 imports Complex_Main
"HOL-Analysis.Determinants"
begin
(* uses (nat \<Rightarrow> 'n) instead of (Fin n \<Rightarrow> 'n) *)
definition putnam_2023_b6_solution :: "nat \<Rightarrow> int" where "putnam_2023_b6_solution \<equiv> undefined"
(* (\<lambda>n::nat. (-1)^(nat (\<lceil>n/2\<rceil>-1)) * 2... |
putnam_1996_a3 | abbrev putnam_1996_a3_solution : Prop := sorry
-- False
theorem putnam_1996_a3
(student_choices : Finset.range 20 → Set (Finset.range 6))
: putnam_1996_a3_solution ↔ ∃ S : Set (Finset.range 20), ∃ c1 c2 : Finset.range 6, c1 ≠ c2 ∧ S.ncard = 5 ∧ ({c1, c2} ⊆ ⋂ s ∈ S, student_choices s ∨ ({c1, c2} ⊆ ⋂ s ∈ S, (student_choi... | Suppose that each of 20 students has made a choice of anywhere from 0 to 6 courses from a total of 6 courses offered. Prove or disprove: there are 5 students and 2 courses such that all 5 have chosen both courses or all 5 have chosen neither course. | Show that the solution is that the statement is false. | ['combinatorics'] | null | theory putnam_1996_a3 imports Complex_Main
begin
definition putnam_1996_a3_solution :: "bool" where
"putnam_1996_a3_solution \<equiv> undefined"
(* False *)
theorem putnam_1996_a3:
fixes student_choices :: "nat \<Rightarrow> (nat set)"
assumes hinrange : "\<forall> n :: nat. student_choices n \<subseteq> {1..6}"
... |
putnam_1996_a4 | theorem putnam_1996_a4
(A : Type*)
[Finite A]
(S : Set (A × A × A))
(hSdistinct : ∀ a b c : A, ⟨a, b, c⟩ ∈ S → a ≠ b ∧ b ≠ c ∧ a ≠ c)
(hS1 : ∀ a b c : A, ⟨a, b, c⟩ ∈ S ↔ ⟨b, c, a⟩ ∈ S)
(hS2 : ∀ a b c : A, ⟨a, b, c⟩ ∈ S ↔ ⟨c, b, a⟩ ∉ S)
(hS3 : ∀ a b c d : A, (⟨a, b, c⟩ ∈ S ∧ ⟨c, d, a⟩ ∈ S) ↔ (⟨b,c,d⟩ ∈ S ∧ ⟨d,a,b⟩ ∈ S))... | Let $S$ be the set of ordered triples $(a, b, c)$ of distinct elements of a finite set $A$. Suppose that \begin{enumerate} \item $(a,b,c) \in S$ if and only if $(b,c,a) \in S$; \item $(a,b,c) \in S$ if and only if $(c,b,a) \notin S$; \item $(a,b,c)$ and $(c,d,a)$ are both in $S$ if and only if $(b,c,d)$ and $(d,a,b)$ a... | null | ['algebra'] | null | theory putnam_1996_a4 imports Complex_Main
begin
theorem putnam_1996_a4:
fixes S :: "('A \<times> 'A \<times> 'A) set"
and n :: "nat"
assumes hA : "CARD('A) = n"
and hS1 : " \<forall> a b c :: 'A. (a, b, c) \<in> S \<longleftrightarrow> (b, c, a) \<in> S"
and hS2 : " \<forall> a b c :: 'A. (a, b, c) ... |
putnam_1996_a5 | theorem putnam_1996_a5
(p : ℕ)
(hpprime : Prime p)
(hpge3 : p > 3)
(k : ℕ := Nat.floor (2*p/(3 : ℚ)))
: p^2 ∣ ∑ i in Finset.Icc 1 k, Nat.choose p i :=
sorry | If $p$ is a prime number greater than 3 and $k = \lfloor 2p/3 \rfloor$, prove that the sum \[\binom p1 + \binom p2 + \cdots + \binom pk \] of binomial coefficients is divisible by $p^2$. | null | ['number_theory'] | Section putnam_1996_a5.
Require Import Binomial Reals Znumtheory Coquelicot.Coquelicot. From mathcomp Require Import div.
Open Scope R.
Theorem putnam_1996_a5:
forall (p: nat), prime (Z.of_nat p) /\ gt p 3 ->
let k := floor (2 * INR p / 3) in
exists (m: nat), sum_n (fun i => Binomial.C p (i+1)) (Z.to_nat ... | theory putnam_1996_a5 imports Complex_Main
begin
theorem putnam_1996_a5:
fixes p k :: "nat"
defines "k \<equiv> nat \<lfloor>2 * p / 3\<rfloor>"
assumes hpprime : "prime p"
and hpge3 : "p > 3"
shows "p^2 dvd (\<Sum> i \<in> {1 :: nat..k}. p choose i)"
sorry
end |
putnam_1996_a6 | abbrev putnam_1996_a6_solution : ℝ → Set (ℝ → ℝ) := sorry
-- (fun c : ℝ => if c ≤ 1 / 4 then {f : ℝ → ℝ | ∃ d : ℝ, ∀ x : ℝ, f x = d} else {f : ℝ → ℝ | ContinuousOn f (Set.Icc 0 c) ∧ f 0 = f c ∧ (∀ x > 0, f x = f (x ^ 2 + c)) ∧ (∀ x < 0, f x = f (-x))})
theorem putnam_1996_a6
(c : ℝ)
(f : ℝ → ℝ)
(cgt0 : c > 0)
: (Contin... | Let $c>0$ be a constant. Give a complete description, with proof, of the set of all continuous functions $f:\mathbb{R} \to \mathbb{R}$ such that $f(x)=f(x^2+c)$ for all $x \in \mathbb{R}$. | Show that if $c \leq 1/4$ then $f$ must be constant, and if $c>1/4$ then $f$ can be defined on $[0,c]$ as any continuous function with equal values on the endpoints, then extended to $x>c$ by the relation $f(x)=f(x^2+c)$, then extended further to $x<0$ by the relation $f(x)=f(-x)$. | ['analysis', 'algebra'] | Section putnam_1996_a6.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1996_a6_solution (c: R) (f: R -> R) := if Rle_dec c (1/4) then exists (d: R), f = (fun _ => d) else forall (x: R), 0 <= x <= c -> continuity_pt f x /\ f 0 = f c /\ forall (x: R), x > 0 -> f x = f (pow x 2 + c) /\ (foral... | theory putnam_1996_a6 imports
Complex_Main
begin
definition putnam_1996_a6_solution :: "real \<Rightarrow> ((real \<Rightarrow> real) set)" where "putnam_1996_a6_solution \<equiv> undefined"
(* \<lambda> c :: real. if c \<le> 1 / 4 then {f :: real \<Rightarrow> real. \<exists> d :: real. \<forall> x :: real. f x = d} ... |
putnam_1996_b1 | abbrev putnam_1996_b1_solution : ℕ → ℕ := sorry
-- Nat.fib
theorem putnam_1996_b1
(selfish : Finset ℕ → Prop)
(n : ℕ)
(hselfish : ∀ s : Finset ℕ, selfish s = (s.card ∈ s))
(npos : n ≥ 1)
: {s : Finset ℕ | (s : Set ℕ) ⊆ Set.Icc 1 n ∧ selfish s ∧ (∀ ss : Finset ℕ, ss ⊂ s → ¬selfish ss)}.encard = putnam_1996_b1_solution n... | Define a \emph{selfish} set to be a set which has its own cardinality (number of elements) as an element. Find, with proof, the number of subsets of $\{1,2,\ldots,n\}$ which are \emph{minimal} selfish sets, that is, selfish sets none of whose proper subsets is selfish. | Show that the number of subsets is $F_n$, the $n$th Fibonacci number. | ['algebra'] | null | theory putnam_1996_b1 imports
Complex_Main
begin
fun putnam_1996_b1_solution :: "nat \<Rightarrow> nat"
where "putnam_1996_b1_solution n = undefined"
(* "putnam_1996_b1_solution 0 = 0"
| "putnam_1996_b1_solution (Suc 0) = 1"
| "putnam_1996_b1_solution (Suc (Suc n)) = putnam_1996_b1_solution n + putnam_1996_b1_... |
putnam_1996_b2 | theorem putnam_1996_b2
(n : ℕ)
(prododd : ℝ)
(npos : n > 0)
(hprododd : prododd = ∏ i in Finset.range (2 * n), if Odd i then i else 1)
: ((2 * n - 1 : ℝ) / Real.exp 1) ^ ((2 * n - 1 : ℝ) / 2) < prododd ∧ prododd < ((2 * n + 1 : ℝ) / Real.exp 1) ^ ((2 * n + 1 : ℝ) / 2) :=
sorry | Show that for every positive integer $n$, $(\frac{2n-1}{e})^{\frac{2n-1}{2}}<1 \cdot 3 \cdot 5 \cdots (2n-1)<(\frac{2n+1}{e})^{\frac{2n+1}{2}}$. | null | ['analysis'] | Section putnam_1996_b2.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1996_b2:
let fix odd_fact (n : nat) : R :=
match n with
| O => 1
| S n' => (2 * INR n - 1) * odd_fact n'
end in
forall (n: nat), gt n 0 ->
pow ((2 * INR n - 1) / exp 1) ((2 * n - 1) ... | theory putnam_1996_b2 imports
Complex_Main
begin
theorem putnam_1996_b2:
fixes n :: nat
and prododd :: real
defines "prododd \<equiv> \<Prod> i \<in> {1 .. 2 * n - 1}. if odd i then i else 1"
assumes npos: "n > 0"
shows "((2 * n - 1) / exp 1) powr ((2 * n - 1) / 2) < prododd \<and> prododd < ((2 * ... |
putnam_1996_b3 | abbrev putnam_1996_b3_solution : ℕ → ℕ := sorry
-- (fun n : ℕ => (2 * n ^ 3 + 3 * n ^ 2 - 11 * n + 18) / 6)
theorem putnam_1996_b3
(n : ℕ)
(xset : (ℕ → ℤ) → Prop)
(xsum : (ℕ → ℤ) → ℤ)
(nge2 : n ≥ 2)
(hxset : ∀ x : ℕ → ℤ, xset x = (x '' (Finset.range n) = Set.Icc (1 : ℤ) n))
(hxsum : ∀ x : ℕ → ℤ, xsum x = ∑ i : Fin n, x... | Given that $\{x_1,x_2,\ldots,x_n\}=\{1,2,\ldots,n\}$, find, with proof, the largest possible value, as a function of $n$ (with $n \geq 2$), of $x_1x_2+x_2x_3+\cdots+x_{n-1}x_n+x_nx_1$. | Show that the maximum is $(2n^3+3n^2-11n+18)/6$. | ['algebra'] | Section putnam_1996_b3.
Require Import Nat List Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1996_b3_solution := 1.
Theorem putnam_1996_b3:
exists (m: nat),
(forall (n: nat), ge n 2 ->
sum_n (fun i => INR ((nth i (seq 1 (S n)) 0%nat) * (nth ((i + 1) mod n) (seq 1 (S n)) 0%nat))) n <= INR m)... | theory putnam_1996_b3 imports
Complex_Main
begin
definition putnam_1996_b3_solution :: "nat \<Rightarrow> nat" where "putnam_1996_b3_solution \<equiv> undefined"
(* \<lambda> n :: nat. (2 * n ^ 3 + 3 * n ^ 2 - 11 * n + 18) div 6 *)
theorem putnam_1996_b3:
fixes n :: nat
and xset :: "(nat \<Rightarrow> nat) \<Righ... |
putnam_1996_b4 | abbrev putnam_1996_b4_solution : Prop := sorry
-- False
theorem putnam_1996_b4
(matsin : Matrix (Fin 2) (Fin 2) ℝ → Matrix (Fin 2) (Fin 2) ℝ)
(mat1996 : Matrix (Fin 2) (Fin 2) ℝ)
(hmatsin : ∀ A : Matrix (Fin 2) (Fin 2) ℝ, matsin A = ∑' n : ℕ, ((-(1 : ℝ)) ^ n / (2 * n + 1)!) • A ^ (2 * n + 1))
(hmat1996 : mat1996 0 0 = ... | For any square matrix $A$, we can define $\sin A$ by the usual power series: $\sin A=\sum_{n=0}^\infty \frac{(-1)^n}{(2n+1)!}A^{2n+1}$. Prove or disprove: there exists a $2 \times 2$ matrix $A$ with real entries such that $\sin A=\begin{pmatrix} 1 & 1996 \\ 0 & 1 \end{pmatrix}$. | Show that there does not exist such a matrix $A$. | ['linear_algebra'] | Section putnam_1996_b4.
Require Import Factorial Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1996_b4_solution := False.
Theorem putnam_1996_b4:
let fix Mmult_n {T : Ring} {n : nat} (A : matrix n n) (p : nat) :=
match p with
| O => A
| S p' => @Mmult T n n n A (Mmult_n A p')
end in
... | theory putnam_1996_b4 imports
Complex_Main
"HOL-Analysis.Finite_Cartesian_Product"
begin
definition putnam_1996_b4_solution :: bool where "putnam_1996_b4_solution \<equiv> undefined"
(* False *)
theorem putnam_1996_b4:
fixes matsin :: "real^2^2 \<Rightarrow> real^2^2"
and mat1996 :: "real^2^2"
and matpow :: "rea... |
putnam_1996_b5 | abbrev putnam_1996_b5_solution : ℕ → ℕ := sorry
-- (fun n : ℕ => if Even n then (3 * 2 ^ (n / 2) - 2) else (2 ^ ((n + 1) / 2) - 2))
theorem putnam_1996_b5
(n : ℕ)
(STdelta : (Fin n → Fin 2) → Fin n → Fin n → ℤ)
(Sbalanced : (Fin n → Fin 2) → Prop)
(hSTdelta : ∀ S : Fin n → Fin 2, ∀ T1 T2 : Fin n, T1 ≤ T2 → (STdelta S T... | Given a finite string $S$ of symbols $X$ and $O$, we write $\Delta(S)$ for the number of $X$'s in $S$ minus the number of $O$'s. For example, $\Delta(XOOXOOX)=-1$. We call a string $S$ \emph{balanced} if every substring $T$ of (consecutive symbols of) $S$ has $-2 \leq \Delta(T) \leq 2$. Thus, $XOOXOOX$ is not balanced,... | Show that the number of balanced strings of length $n$ is $3 \cdot 2^{n/2}-2$ if $n$ is even, and $2^{(n+1)/2}-2$ if $n$ is odd. | ['algebra'] | null | theory putnam_1996_b5 imports
Complex_Main
begin
definition putnam_1996_b5_solution :: "nat \<Rightarrow> nat" where "putnam_1996_b5_solution \<equiv> undefined"
(* \<lambda> n :: nat. 2 ^ ((n + 2) div 2) + 2 ^ ((n + 1) div 2) - 2 *)
theorem putnam_1996_b5:
fixes n :: nat
and STdelta :: "(nat \<Rightarrow> bool) \... |
putnam_2016_a1 | abbrev putnam_2016_a1_solution : ℕ := sorry
-- 8
theorem putnam_2016_a1
: (∀ j : ℕ+, (∀ P : ℤ[X], ∀ k : ℤ, 2016 ∣ (derivative^[j] P).eval k) → j ≥ putnam_2016_a1_solution) ∧ (∀ P : ℤ[X], ∀ k : ℤ, 2016 ∣ (derivative^[putnam_2016_a1_solution] P).eval k) :=
sorry | Find the smallest positive integer $j$ such that for every polynomial $p(x)$ with integer coefficients and for every integer $k$, the integer \[ p^{(j)}(k) = \left. \frac{d^j}{dx^j} p(x) \right|_{x=k} \] (the $j$-th derivative of $p(x)$ at $k$) is divisible by 2016. | Show that the solution is $18$. | ['algebra', 'number_theory'] | null | theory putnam_2016_a1 imports
Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_2016_a1_solution :: nat where "putnam_2016_a1_solution \<equiv> undefined"
(* 8 *)
theorem putnam_2016_a1:
shows "putnam_2016_a1_solution = (LEAST j :: nat. j > 0 \<and> (\<forall> P :: int poly. \<forall> k :: ... |
putnam_2016_a2 | abbrev putnam_2016_a2_solution : ℝ := sorry
-- (3 + sqrt 5) / 2
theorem putnam_2016_a2
(p : ℕ → ℕ → Prop := fun n ↦ fun m ↦ Nat.choose m (n - 1) > Nat.choose (m - 1) n)
(M : ℕ → ℕ)
(hpM : ∀ n : ℕ, p n (M n))
(hMub : ∀ n : ℕ, ∀ m : ℕ, p n m → m ≤ M n)
: (Tendsto (fun n ↦ ((M n : ℝ) / (n : ℝ))) ⊤ (𝓝 putnam_2016_a2_solut... | Given a positive integer $n$, let $M(n)$ be the largest integer $m$ such that
\[
inom{m}{n-1} > \binom{m-1}{n}.
\]
Evaluate
\[
\lim_{n o \infty} \frac{M(n)}{n}.
\] | Show that the answer is $\frac{3 + \sqrt{5}}{2}$. | ['analysis'] | Section putnam_2016_a2.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2016_a2_solution := (3 + sqrt 5) / 2.
Theorem putnam_2016_a2
(p : nat -> nat -> Prop := fun n m => Binomial.C m (n - 1) > Binomial.C (m - 1) n)
(M : nat -> nat)
(pM : forall n : nat, p n (M n))
(hMub : forall n m : nat... | theory putnam_2016_a2 imports
Complex_Main
begin
definition putnam_2016_a2_solution :: real where "putnam_2016_a2_solution \<equiv> undefined"
(* (3 + sqrt 5) / 2 *)
theorem putnam_2016_a2:
fixes M :: "nat \<Rightarrow> nat"
defines "M \<equiv> \<lambda> n. GREATEST m. m choose (n - 1) > (m - 1) choose n"
shows ... |
putnam_2016_a3 | abbrev putnam_2016_a3_solution : ℝ := sorry
-- 3 * Real.pi / 8
theorem putnam_2016_a3
(f : ℝ → ℝ)
(hf : ∀ x : ℝ, x ≠ 0 → f x + f (1 - 1 / x) = arctan x)
: (∫ x in (0)..1, f x = putnam_2016_a3_solution) :=
sorry | Suppose that $f$ is a function from $\mathbb{R}$ to $\mathbb{R}$ such that
\[
f(x) + f\left( 1 - \frac{1}{x} \right) = \arctan x
\]
for all real $x \neq 0$. (As usual, $y = \arctan x$ means $-\pi/2 < y < \pi/2$ and $\tan y = x$.) Find
\[
\int_0^1 f(x)\,dx.
\] | Prove that the answer is $\frac{3\pi}{8}$. | ['analysis'] | Section putnam_2017_b6.
Require Import Ensembles Finite_sets Factorial List. From mathcomp Require Import div.
Definition putnam_2017_b6_solution := Nat.div (fact 2016) (fact 1953) - fact 63 * 2016.
Theorem putnam_2017_b6:
exists (A: Ensemble (list nat)),
forall (l: list nat), (A l <->
(length l = 64 /\ N... | theory putnam_2016_a3 imports Complex_Main
"HOL-Analysis.Set_Integral"
"HOL-Analysis.Lebesgue_Measure"
begin
definition putnam_2016_a3_solution::real where "putnam_2016_a3_solution \<equiv> undefined"
(* 3 * pi / 8 *)
theorem putnam_2016_a3:
fixes f::"real\<Rightarrow>real"
assumes hf : "\<forall>x. x \<noteq> 0 \... |
putnam_2016_a5 | theorem putnam_2016_a5
(G : Type*) [Group G]
(Gfin : Fintype G)
(g h : G)
(ghgen : Group.closure {g, h} = G ∧ ¬Group.closure {g} = G ∧ ¬Group.closure {h} = G)
(godd : Odd (orderOf g))
(S : Set G := {g * h, g⁻¹ * h, g * h⁻¹, g⁻¹ * h⁻¹})
: (∀ x : G, ∃ mn : List G, 1 ≤ mn.length ∧ mn.length ≤ Gfin.card ∧ ∀ i : Fin mn.leng... | Suppose that $G$ is a finite group generated by the two elements $g$ and $h$, where the order of $g$ is odd. Show that every element of $G$ can be written in the form
\[
g^{m_1} h^{n_1} g^{m_2} h^{n_2} \cdots g^{m_r} h^{n_r}
\]
with $1 \leq r \leq |G|$ and $m_1, n_1, m_2, n_2, \ldots, m_r, n_r \in \{-1, 1\}$.
(Here $|... | null | ['abstract_algebra'] | Section putnam_2016_a5.
Theorem putnam_2016_a5: True.
Proof. Admitted.
End putnam_2016_a5. | theory putnam_2016_a5 imports Complex_Main
"HOL-Algebra.Multiplicative_Group"
begin
theorem putnam_2016_a5:
fixes G (structure) and g h::"'a" and S::"'a set"
defines "S \<equiv> {g \<otimes> h, inv g \<otimes> h, g \<otimes> inv h, inv g \<otimes> inv h}"
assumes hG : "Group.group G \<and> finite (carrier G)"
... |
putnam_2016_a6 | abbrev putnam_2016_a6_solution : ℝ := sorry
-- 5 / 6
theorem putnam_2016_a6
(C : ℝ)
(max : Polynomial ℝ → ℝ)
(hmax : ∀ P : Polynomial ℝ, ∃ x ∈ Icc 0 1, |P.eval x| = max P)
(hmaxub : ∀ P : Polynomial ℝ, ∀ x ∈ Icc 0 1, |P.eval x| ≤ max P)
(p : ℝ → Prop := fun c ↦ ∀ P : Polynomial ℝ, P.degree = 3 → (∃ x ∈ Icc 0 1, P.eval ... | Find the smallest constant $C$ such that for every real polynomial $P(x)$ of degree $3$ that has a root in the interval $[0,1]$,
\[
\int_0^1 \left| P(x) \right|\,dx \leq C \max_{x \in [0,1]} \left| P(x) \right|.
\] | Prove that the smallest such value of $C$ is $\frac{5}{6}$. | ['algebra'] | Section putnam_2016_a6.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2016_a6_solution := 5 / 6.
Theorem putnam_2016_a6
(C : R)
(max : (R -> R) -> R)
(hmax : forall (P : R -> R) (coeff: nat -> R) (n: nat),
(coeff n <> 0 /\ P = (fun x => sum_n (fun i => coeff i * x ^ i) (n + 1))) -> ... | theory putnam_2016_a6 imports
Complex_Main
"HOL-Computational_Algebra.Polynomial"
"HOL-Analysis.Set_Integral"
"HOL-Analysis.Lebesgue_Measure"
begin
definition putnam_2016_a6_solution :: real where "putnam_2016_a6_solution \<equiv> undefined"
(* 5 / 6 *)
theorem putnam_2016_a6:
shows "(LEAST C :: real. \<forall> P ... |
putnam_2016_b1 | abbrev putnam_2016_b1_solution : ℝ := sorry
-- exp 1 - 1
theorem putnam_2016_b1
(x : ℕ → ℝ)
(hx0 : x 0 = 1)
(hxn : ∀ n : ℕ, x (n + 1) = log (exp (x n) - (x n)))
: (∑' n : ℕ, x n = putnam_2016_b1_solution) :=
sorry | Let $x_0,x_1,x_2,\dots$ be the sequence such that $x_0=1$ and for $n \geq 0$,
\[
x_{n+1} = \ln(e^{x_n} - x_n)
\]
(as usual, the function $\ln$ is the natural logarithm). Show that the infinite series
\[
x_0 + x_1 + x_2 + \cdots
\]
converges and find its sum. | The sum converges to $e - 1$. | ['analysis'] | Section putnam_2016_b1.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2016_b1_solution := 1.
Theorem putnam_2016_b1
(x : nat -> R := fix x (n: nat) :=
match n with
| O => 1
| S n' => ln (exp (x n') - x n')
end)
: Series x = putnam_2016_b1_solution.
Proof. Admitted.
En... | theory putnam_2016_b1 imports
Complex_Main
begin
definition putnam_2016_b1_solution :: real where "putnam_2016_b1_solution \<equiv> undefined"
(* exp 1 - 1 *)
theorem putnam_2016_b1:
fixes x :: "nat \<Rightarrow> real"
assumes hx0: "x 0 = 1"
and hxn: "\<forall> n :: nat. x (n + 1) = ln (exp (x n) - x n)"
shows... |
putnam_2016_b2 | abbrev putnam_2016_b2_solution : ℝ × ℝ := sorry
-- (3 / 4, 4 / 3)
theorem putnam_2016_b2
(squarish : ℤ → Prop := fun n ↦ IsSquare n ∨ ∃ w : ℤ, IsSquare |n - w ^ 2| ∧ ∀ v : ℕ, |n - w ^ 2| ≤ |n - v ^ 2|)
(S : ℤ → ℕ := fun n ↦ {i ∈ Finset.Icc 1 n | squarish i}.ncard)
(p : ℝ → ℝ → Prop := fun α ↦ fun β ↦ α > 0 ∧ β > 0 ∧ Te... | Define a positive integer $n$ to be \emph{squarish} if either $n$ is itself a perfect square or the distance from $n$ to the nearest perfect square is a perfect square. For example, $2016$ is squarish, because the nearest perfect square to $2016$ is $45^2 = 2025$ and $2025 - 2016 = 9$ is a perfect square. (Of the posit... | Prove that the limit exists for $\alpha = \frac{3}{4}$ and equals $\beta = \frac{4}{3}$. | ['analysis'] | Section putnam_2016_b2.
Require Import Bool Reals Coquelicot.Lim_seq Coquelicot.Rbar.
Theorem putnam_2016_b2:
let squarish (n: nat) := existsb ( fun m => Nat.eqb n (m * m) || (forallb (fun p => leb ((n-m)*(n-m)) ((n-p)*(n-p))) (seq 0 (S n))) ) (seq 0 (S n)) in
let squarish_set (n : nat) : list nat := filter ... | theory putnam_2016_b2 imports Complex_Main
begin
definition is_square::"int\<Rightarrow>bool" where "is_square n \<equiv> \<exists>x::nat. n = x * x"
definition squarish::"int\<Rightarrow>bool" where "squarish n \<equiv> is_square n \<or>
(\<exists>w::int. is_square (abs (n - w * w)) \<and> (\<forall>v::nat. abs (n... |
putnam_2016_b5 | abbrev putnam_2016_b5_solution : Set (Set.Ioi (1 : ℝ) → Set.Ioi (1 : ℝ)) := sorry
-- {f : Set.Ioi (1 : ℝ) → Set.Ioi (1 : ℝ) | ∃ c : ℝ, c > 0 ∧ ∀ x : Set.Ioi (1 : ℝ), (f x : ℝ) = x ^ c}
theorem putnam_2016_b5
(f : Set.Ioi (1 : ℝ) → Set.Ioi (1 : ℝ))
(fle : Prop)
(hfle : fle = ∀ x y : Set.Ioi (1 : ℝ), ((x : ℝ) ^ 2 ≤ y ∧ y... | Find all functions $f$ from the interval $(1,\infty)$ to $(1,\infty)$ with the following property: if $x,y \in (1,\infty)$ and $x^2 \leq y \leq x^3$, then $(f(x))^2 \leq f(y) \leq (f(x))^3$. | Show that the only such functions are the functions $f(x)=x^c$ for some $c>0$. | ['algebra'] | Section putnam_2016_b5.
Require Import Reals Rpower.
Local Open Scope R.
Definition putnam_2016_b5_solution (f: R -> R) : Prop := exists (c: R), c > 0 /\ forall (x: R), x > 1 -> f x = Rpower x c .
Theorem putnam_2016_b5:
forall (f: R -> R), forall (x y: R),
(x > 1 /\ y > 1 /\ f x > 1 /\ f y > 1)
/\
... | theory putnam_2016_b5 imports Complex_Main
begin
(* uses ((real \<Rightarrow> real) set) instead of (({1<..} \<Rightarrow> {1<..}) set) *)
definition putnam_2016_b5_solution :: "(real \<Rightarrow> real) set" where "putnam_2016_b5_solution \<equiv> undefined"
(* {f::real\<Rightarrow>real. (\<exists>c::real. c > 0 \<an... |
putnam_2016_b6 | abbrev putnam_2016_b6_solution : ℝ := sorry
-- 1
theorem putnam_2016_b6
: ∑' k : ℕ, ((-1 : ℝ) ^ ((k + 1 : ℤ) - 1) / (k + 1 : ℝ)) * ∑' n : ℕ, (1 : ℝ) / ((k + 1) * (2 ^ n) + 1) = putnam_2016_b6_solution :=
sorry | Evaluate $\sum_{k=1}^\infty \frac{(-1)^{k-1}}{k} \sum_{n=0}^\infty \frac{1}{k2^n+1}$. | Show that the desired sum equals $1$. | ['analysis'] | Section putnam_2016_b6.
Require Import List Reals Coquelicot.Hierarchy Coquelicot.Series.
Definition putnam_2016_b6_solution := 1.
Theorem putnam_2016_b6:
Series (fun k => (-1)^k/(INR k+1) * Series (fun n => 1/(INR k*(2^n)+1))) = putnam_2016_b6_solution.
Proof. Admitted.
End putnam_2016_b6. | theory putnam_2016_b6 imports Complex_Main
"HOL-Analysis.Infinite_Sum"
begin
definition putnam_2016_b6_solution :: real where "putnam_2016_b6_solution \<equiv> undefined"
(* 1 *)
theorem putnam_2016_b6:
shows "(\<Sum>\<^sub>\<infinity>k::nat\<in>{1..}. ((-1)^(k-1) / k) * (\<Sum>n::nat. 1 / (k*2^n + 1))) = putnam_201... |
putnam_1982_a2 | abbrev putnam_1982_a2_solution : Prop := sorry
-- True
theorem putnam_1982_a2
(B : ℕ → ℝ → ℝ := fun n x ↦ ∑ k in Finset.Icc 1 n, k ^ x)
(f : ℕ → ℝ := fun n ↦ B n (logb n 2) / (n * logb 2 n) ^ 2)
: (∃ L : ℝ, Tendsto (fun N ↦ ∑ j in Finset.Icc 2 N, f j) ⊤ (𝓝 L)) ↔ putnam_1982_a2_solution :=
sorry | For positive real $x$, let $B_n(x)=1^x+2^x+3^x+\dots+n^x$. Prove or disprove the convergence of $\sum_{n=2}^\infty \frac{B_n(\log_n2)}{(n\log_2n)^2}$. | Show that the given series converges. | ['analysis'] | Section putnam_1982_a2.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1982_a2_solution := True.
Theorem putnam_1982_a2:
let B (n: nat) (x: R) := sum_n (fun n => Rpower (INR n) x) n in
let f (n: nat) := B n (ln 2 / ln (INR n)) / (INR n) * Rpower (ln 2 / ln (INR n)) 2 in
ex_seri... | theory putnam_1982_a2 imports Complex_Main
begin
definition putnam_1982_a2_solution :: "bool" where
"putnam_1982_a2_solution \<equiv> undefined"
(* True *)
theorem putnam_1982_a2:
fixes B :: "nat \<Rightarrow> real \<Rightarrow> real"
and f :: "nat \<Rightarrow> real"
defines "B \<equiv> \<lambda> (n :: nat) ... |
putnam_1982_a3 | abbrev putnam_1982_a3_solution : ℝ := sorry
-- (Real.pi / 2) * log Real.pi
theorem putnam_1982_a3
: (Tendsto (fun t ↦ ∫ x in (0)..t, (arctan (Real.pi * x) - arctan x) / x) ⊤ (𝓝 putnam_1982_a3_solution)) :=
sorry | Evaluate $\int_0^{\infty} \frac{\tan^{-1}(\pi x) - \tan^{-1} x}{x} \, dx$. | Show that the integral evaluates to $\frac{\pi}{2} \ln \pi$. | ['analysis'] | Section putnam_1982_a3.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1982_a3_solution := PI / 2 * ln PI.
Theorem putnam_1982_a3:
let f (x: R) := (atan (PI * x) - atan x) / x in
Lim_seq (fun n => RInt f 0 (INR n)) = putnam_1982_a3_solution.
Proof. Admitted.
End putnam_1982_a3. | theory putnam_1982_a3 imports Complex_Main
"HOL-Analysis.Interval_Integral"
begin
definition putnam_1982_a3_solution :: "real" where
"putnam_1982_a3_solution \<equiv> undefined"
(* (pi / 2) * ln pi *)
theorem putnam_1982_a3:
shows "filterlim (\<lambda> t :: real. (interval_lebesgue_integral lebesgue 0 t (\<lambda> ... |
putnam_1982_a5 | theorem putnam_1982_a5
(a b c d : ℤ)
(hpos : a > 0 ∧ b > 0 ∧ c > 0 ∧ d > 0)
(hac : a + c ≤ 1982)
(hfrac : (a : ℝ) / b + (c : ℝ) / d < 1)
: (1 - (a : ℝ) / b - (c : ℝ) / d > 1 / 1983 ^ 3) :=
sorry | Let $a, b, c, d$ be positive integers satisfying $a + c \leq 1982$ and $\frac{a}{b} + \frac{c}{d} < 1$. Prove that $1 - \frac{a}{b} - \frac{c}{d} > \frac{1}{1983^3}$. | null | ['algebra'] | Section putnam_1982_a5.
Require Import Reals.
Open Scope R.
Theorem putnam_1982_a5:
forall (a b c d: nat), Nat.le (Nat.add a c) 1982 /\ INR a / INR b + INR c / INR d < 1 ->
1 - INR a / INR b - INR c / INR d > 1/pow 1983 3.
Proof. Admitted.
End putnam_1982_a5. | theory putnam_1982_a5 imports Complex_Main
begin
theorem putnam_1982_a5:
fixes a b c d :: "nat"
assumes hpos : "a > 0 \<and> b > 0 \<and> c > 0 \<and> d > 0"
and hac : "a + c \<le> 1982"
and hfrac : "(real a) / b + (real c) / d < 1"
shows "(1 - (real a)/b - (real c)/d) > 1 / 1983^3"
sorry
end |
putnam_1982_a6 | abbrev putnam_1982_a6_solution : Prop := sorry
-- False
theorem putnam_1982_a6
(S : Set ℕ := Ici 1)
(hb : (ℕ → ℕ) → Prop := fun b : ℕ → ℕ => BijOn b S S)
(hx : (ℕ → ℝ) → Prop := fun x : ℕ → ℝ => StrictAntiOn (fun n : ℕ => |x n|) S)
(limb : (ℕ → ℕ) × (ℕ → ℝ) → Prop := fun (b, x) => Tendsto (fun n : ℕ => |b n - (n : ℤ)| ... | Let $b$ be a bijection from the positive integers to the positive integers. Also, let $x_1, x_2, x_3, \dots$ be an infinite sequence of real numbers with the following properties:
\begin{enumerate}
\item
$|x_n|$ is a strictly decreasing function of $n$;
\item
$\lim_{n \rightarrow \infty} |b(n) - n| \cdot |x_n| = 0$;
\i... | The limit need not equal $1$. | ['analysis'] | Section putnam_1982_a6.
Require Import Nat Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1982_a6_solution := False.
Theorem putnam_1982_a6:
forall (a: nat -> R),
(Series a = 1 /\ forall (i j: nat), le i j -> Rabs (a i) > Rabs (a j)) /\
forall (f: nat -> nat), Lim_seq (fun i => Rabs (INR (f ... | theory putnam_1982_a6 imports Complex_Main
begin
definition putnam_1982_a6_solution::bool where "putnam_1982_a6_solution \<equiv> undefined"
(* False *)
theorem putnam_1982_a6:
fixes hb::"(nat\<Rightarrow>nat) \<Rightarrow> bool" and hx limx::"(nat\<Rightarrow>real) \<Rightarrow> bool" and limb::"(nat\<Rightarrow>na... |
putnam_1982_b2 | abbrev putnam_1982_b2_solution : Polynomial ℝ := sorry
-- C Real.pi * (2*X - 1)^2
theorem putnam_1982_b2
(A : ℝ × ℝ → ℕ := fun (x, y) => {(m, n) : ℤ × ℤ | m^2 + n^2 ≤ x^2 + y^2}.ncard)
(g : ℝ := ∑' k : ℕ, Real.exp (-k^2))
(I : ℝ := ∫ y : ℝ, ∫ x : ℝ, A (x, y) * Real.exp (-x^2 - y^2))
: I = putnam_1982_b2_solution.eval g... | Let $A(x, y)$ denote the number of points $(m, n)$ with integer coordinates $m$ and $n$ where $m^2 + n^2 \le x^2 + y^2$. Also, let $g = \sum_{k = 0}^{\infty} e^{-k^2}$. Express the value $$\int_{-\infty}^{\infty}\int_{-\infty}^{\infty} A(x, y)e^{-x^2 - y^2} dx dy$$ as a polynomial in $g$. | The desired polynomial is $\pi(2g - 1)^2$. | ['analysis'] | null | theory putnam_1982_b2 imports Complex_Main "HOL-Computational_Algebra.Polynomial" "HOL-Analysis.Interval_Integral"
begin
definition putnam_1982_b2_solution::"real poly" where "putnam_1982_b2_solution \<equiv> undefined"
(* [: pi :] * [: -1, 2 :] ^2 *)
theorem putnam_1982_b2:
fixes A::"real\<Rightarrow>real\<Rightarr... |
putnam_1982_b3 | abbrev putnam_1982_b3_solution : ℝ := sorry
-- 4/3 * (Real.sqrt 2 - 1)
theorem putnam_1982_b3
(p : ℕ → ℝ := fun n : ℕ => {(c, d) : Finset.Icc 1 n × Finset.Icc 1 n | ∃ m : ℕ, m^2 = c + d}.ncard / n^2)
: Tendsto (fun n : ℕ => p n * Real.sqrt n) atTop (𝓝 putnam_1982_b3_solution) :=
sorry | Let $p_n$ denote the probability that $c + d$ will be a perfect square if $c$ and $d$ are selected independently and uniformly at random from $\{1, 2, 3, \dots, n\}$. Express $\lim_{n \rightarrow \infty} p_n \sqrt{n}$ in the form $r(\sqrt{s} - t)$ for integers $s$ and $t$ and rational $r$. | The limit equals $\frac{4}{3}(\sqrt{2} - 1)$. | ['analysis', 'number_theory', 'probability'] | null | theory putnam_1982_b3 imports Complex_Main
begin
definition putnam_1982_b3_solution::real where "putnam_1982_b3_solution \<equiv> undefined"
(* 4/3 * (sqrt 2 - 1) *)
theorem putnam_1982_b3:
fixes p::"nat\<Rightarrow>real"
defines "p \<equiv> \<lambda>n. card {(c::nat, d::nat). c \<in> {1..n} \<and> d \<in> {1..n} ... |
putnam_1982_b4 | abbrev putnam_1982_b4_solution : Prop × Prop := sorry
-- (True, True)
theorem putnam_1982_b4
(hn : Finset ℤ → Prop := fun n : Finset ℤ => ∀ k : ℤ, ∏ i in n, i ∣ ∏ i in n, (i + k))
: ((∀ n : Finset ℤ, hn n → (∃ i ∈ n, |i| = 1)) ↔ putnam_1982_b4_solution.1) ∧
((∀ n : Finset ℤ, (hn n ∧ ∀ i ∈ n, i > 0) → n = Finset.Icc (1 ... | Let $n_1, n_2, \dots, n_s$ be distinct integers such that, for every integer $k$, $n_1n_2\cdots n_s$ divides $(n_1 + k)(n_2 + k) \cdots (n_s + k)$. Prove or provide a counterexample to the following claims:
\begin{enumerate}
\item
For some $i$, $|n_i| = 1$.
\item
If all $n_i$ are positive, then $\{n_1, n_2, \dots, n_s\... | Both claims are true. | ['number_theory'] | null | theory putnam_1982_b4 imports Complex_Main
begin
definition putnam_1982_b4_solution::"bool \<times> bool" where "putnam_1982_b4_solution \<equiv> undefined"
(* True, True *)
theorem putnam_1982_b4:
fixes hn::"(int set) \<Rightarrow> bool"
defines "hn \<equiv> \<lambda>n. (\<forall>k::int. (\<Prod>i \<in> n. i) dvd... |
putnam_1982_b5 | theorem putnam_1982_b5
(T : Set ℝ := Ioi (Real.exp (Real.exp 1)))
(S : ℝ → ℕ → ℝ)
(hS : ∀ x ∈ T, S x 0 = (Real.exp 1) ∧ ∀ n : ℕ, S x (n + 1) = Real.logb (S x n) x)
(g : ℝ → ℝ)
: ∀ x ∈ T, (∃ L : ℝ, Tendsto (S x) atTop (𝓝 L)) ∧
(∀ x ∈ T, Tendsto (S x) atTop (𝓝 (g x))) → ContinuousOn g T :=
sorry | For all $x > e^e$, let $S = u_0, u_1, \dots$ be a recursively defined sequence with $u_0 = e$ and $u_{n+1} = \log_{u_n} x$ for all $n \ge 0$. Prove that $S_x$ converges to some real number $g(x)$ and that this function $g$ is continuous for $x > e^e$. | null | ['analysis'] | Section putnam_1982_b5.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1982_b5:
let F :=
fix f (n: nat) (x: R) :=
match n with
| O => exp 1
| S n' => ln x / ln (f n' x)
end in
forall (x: R), x > Rpower (exp 1) (exp 1) ->
ex_lim_seq (fun n => F... | theory putnam_1982_b5 imports Complex_Main
begin
theorem putnam_1982_b5:
fixes T::"real set" and S::"real\<Rightarrow>nat\<Rightarrow>real" and g::"real \<Rightarrow> real"
defines "T \<equiv> {(exp (exp 1))<..}"
assumes hS : "\<forall>x \<in> T. S x 0 = exp 1 \<and> (\<forall>n::nat. S x (n+1) = log (S x n) x)"... |
putnam_1983_a1 | abbrev putnam_1983_a1_solution : ℕ := sorry
-- 2301
theorem putnam_1983_a1
: {n : ℤ | n > 0 ∧ (n ∣ 10 ^ 40 ∨ n ∣ 20 ^ 30)}.encard = putnam_1983_a1_solution :=
sorry | How many positive integers $n$ are there such that $n$ is an exact divisor of at least one of the numbers $10^{40},20^{30}$? | Show that the desired count is $2301$. | ['number_theory'] | Section putnam_1983_a1.
Require Import Nat Ensembles Finite_sets. From mathcomp Require Import div.
Definition putnam_1983_a1_solution := 2301.
Theorem putnam_1983_a1:
exists (E: Ensemble nat), forall (n: nat),
(E n <-> n %| 10^(40) = true \/ n %| 20^(30) = true) ->
cardinal nat E putnam_1983_a1_solution.
P... | theory putnam_1983_a1 imports Complex_Main
begin
definition putnam_1983_a1_solution :: "nat" where "putnam_1983_a1_solution \<equiv> undefined"
(* 2301 *)
theorem putnam_1983_a1:
shows "card {n :: nat. n > 0 \<and> (n dvd 10^40 \<or> n dvd 20^30)} = putnam_1983_a1_solution"
sorry
end |
putnam_1983_a3 | theorem putnam_1983_a3
(p : ℕ)
(F : ℕ → ℕ)
(poddprime : Odd p ∧ p.Prime)
(hF : ∀ n : ℕ, F n = ∑ i in Finset.range (p - 1), (i + 1) * n ^ i)
: ∀ a ∈ Finset.Icc 1 p, ∀ b ∈ Finset.Icc 1 p, a ≠ b → ¬(F a ≡ F b [MOD p]) :=
sorry | Let $p$ be in the set $\{3,5,7,11,\dots\}$ of odd primes and let $F(n)=1+2n+3n^2+\dots+(p-1)n^{p-2}$. Prove that if $a$ and $b$ are distinct integers in $\{0,1,2,\dots,p-1\}$ then $F(a)$ and $F(b)$ are not congruent modulo $p$, that is, $F(a)-F(b)$ is not exactly divisible by $p$. | null | ['number_theory', 'algebra'] | Section putnam_1983_a3.
Require Import Nat Reals ZArith Znumtheory Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1983_a3:
let f (n p: nat) : R := sum_n (fun i => INR ((i+1) * n^i)) (p-1) in
forall (p m n: nat), odd p = true /\ prime (Z.of_nat p) /\ (floor (f m p)) mod Z.of_nat p = (floor (f n p)) mod Z.of... | theory putnam_1983_a3 imports Complex_Main
"HOL-Number_Theory.Cong"
begin
theorem putnam_1983_a3:
fixes p :: "nat"
and F :: "nat \<Rightarrow> nat"
defines "F \<equiv> \<lambda> n::nat. (\<Sum> i=0..(p-2). ((i + 1) * n^i))"
assumes hp : "odd p \<and> prime p"
shows "\<forall> a b :: nat. ((a < p \<and> b <... |
putnam_1983_a4 | theorem putnam_1983_a4
(k : ℕ)
(kpos : k > 0)
(m : ℕ := 6 * k - 1)
(S : ℤ := ∑ j in Finset.Icc 1 (2 * k - 1), (-1) ^ (j + 1) * choose m (3 * j - 1))
: (S ≠ 0) :=
sorry | Prove that for $m = 5 \pmod 6$,
\[
\binom{m}{2} - \binom{m}{5} + \binom{m}{8} - \binom{m}{11} + ... - \binom{m}{m-6} + \binom{m}{m-3} \neq 0.
\] | null | ['algebra'] | Section putnam_1983_a4.
Require Import Binomial Reals Znumtheory Coquelicot.Coquelicot.
Open Scope nat_scope.
Theorem putnam_1983_a4:
forall (m: nat), m mod 6 = 5 ->
sum_n (fun n => (if (eq_nat_dec (n mod 3) 2) then Binomial.C m n else R0)) (m-2) <> R0.
Proof. Admitted.
End putnam_1983_a4. | theory putnam_1983_a4 imports Complex_Main
begin
theorem putnam_1983_a4:
fixes k m :: "nat"
and S :: "int"
defines "m \<equiv> 6*k-1"
and "S \<equiv> \<Sum> j::nat \<in> {1..2*k-1}. (-1)^(j+1) * (m choose (3 * j -1))"
assumes kpos : "k > 0"
shows "S \<noteq> 0"
sorry
end |
putnam_1983_a5 | abbrev putnam_1983_a5_solution : Prop := sorry
-- True
theorem putnam_1983_a5
: ((∃ α : ℝ, α > 0 ∧ ∀ n : ℕ, n > 0 → Even (⌊α ^ n⌋ - n)) ↔ putnam_1983_a5_solution) :=
sorry | Prove or disprove that there exists a positive real number $\alpha$ such that $[\alpha_n] - n$ is even for all integers $n > 0$. (Here $[x]$ denotes the greatest integer less than or equal to $x$.) | Prove that such an $\alpha$ exists. | ['analysis'] | Section putnam_1983_a5.
Require Import Nat Reals Coquelicot.Coquelicot.
Definition putnam_1983_a5_solution := true.
Theorem putnam_1983_a5:
exists (a: R), forall (n: nat), gt n 0 -> even (Z.to_nat (floor (Rpower a (INR n))) - n) = putnam_1983_a5_solution.
Proof. Admitted.
End putnam_1983_a5. | theory putnam_1983_a5 imports Complex_Main
begin
definition putnam_1983_a5_solution :: "bool" where
"putnam_1983_a5_solution \<equiv> undefined"
(* True *)
theorem putnam_1983_a5:
shows "putnam_1983_a5_solution \<longleftrightarrow> (\<exists> \<alpha> :: real. \<alpha> > 0 \<and> (\<forall> n :: nat. n > 0 \<longr... |
putnam_1983_a6 | abbrev putnam_1983_a6_solution : ℝ := sorry
-- 2 / 9
theorem putnam_1983_a6
(F : ℝ → ℝ := fun a ↦ (a ^ 4 / exp (a ^ 3)) * ∫ x in (0)..a, ∫ y in (0)..(a - x), exp (x ^ 3 + y ^ 3))
: (Tendsto F ⊤ (𝓝 putnam_1983_a6_solution)) :=
sorry | Let $T$ be the triangle with vertices $(0, 0)$, $(a, 0)$, and $(0, a)$. Find $\lim_{a \to \infty} a^4 \exp(-a^3) \int_T \exp(x^3+y^3) \, dx \, dy$. | Show that the integral evaluates to $\frac{2}{9}$. | ['analysis'] | Section putnam_1983_a6.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_1983_a6_solution := 2 / 9.
Theorem putnam_1983_a6
: Lim_seq (fun a => let a := INR a in a ^ 4 * exp (-a ^ 3) * RInt (fun x => RInt (fun y => exp (x ^ 3 + y ^ 3)) 0 (a - x)) 0 a) = putnam_1983_a6_solution.
Proof. Admitted.
End putn... | theory putnam_1983_a6 imports Complex_Main
"HOL-Analysis.Set_Integral"
"HOL-Analysis.Lebesgue_Measure"
begin
definition putnam_1983_a6_solution :: "real" where
"putnam_1983_a6_solution \<equiv> undefined"
(* 2/9 *)
theorem putnam_1983_a6:
fixes F :: "real \<Rightarrow> real"
defines "F \<equiv> \<lambda> a. (a^4 ... |
putnam_1983_b2 | abbrev putnam_1983_b2_solution : Prop := sorry
-- True
theorem putnam_1983_b2
(f : ℕ+ → ℕ := fun n ↦ {M : Multiset ℕ | (∀ m ∈ M, ∃ k : ℕ, m = (2 ^ k : ℤ)) ∧ (∀ m ∈ M, M.count m ≤ 3) ∧ (M.sum : ℤ) = n}.ncard)
: ((∃ p : Polynomial ℝ, ∀ n : ℕ+, ⌊p.eval (n : ℝ)⌋ = f n) ↔ putnam_1983_b2_solution) :=
sorry | Let $f(n)$ be the number of ways of representing $n$ as a sum of powers of $2$ with no power being used more than $3$ times. For example, $f(7) = 4$ (the representations are $4 + 2 + 1$, $4 + 1 + 1 + 1$, $2 + 2 + 2 + 1$, $2 + 2 + 1 + 1 + 1$). Can we find a real polynomial $p(x)$ such that $f(n) = [p(n)]$, where $[u]$ d... | Prove that such a polynomial exists. | ['algebra'] | null | theory putnam_1983_b2 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_1983_b2_solution :: "bool" where
"putnam_1983_b2_solution \<equiv> undefined"
(* True *)
theorem putnam_1983_b2:
fixes f :: "nat \<Rightarrow> nat"
defines "f \<equiv> \<lambda> n. card {M :: nat multiset. (\... |
putnam_1983_b4 | theorem putnam_1983_b4
(f : ℕ → ℤ := fun n ↦ n + Int.floor (Real.sqrt n))
(a : ℕ → ℕ)
(ha0 : a 0 > 0)
(han : ∀ n : ℕ, a (n + 1) = f (a n))
: (∃ i : ℕ, ∃ s : ℤ, a i = s ^ 2) :=
sorry | Let $f(n) = n + [\sqrt n]$, where $[x]$ denotes the greatest integer less than or equal to $x$. Define the sequence $a_i$ by $a_0 = m$, $a_{n+1} = f(a_n)$. Prove that it contains at least one square. | null | ['algebra'] | Section putnam_1983_b4.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1983_b4:
exists (m: nat),
let f (n: R) := n + IZR (floor (sqrt n)) in
let A :=
fix a (n: nat) :=
match n with
| O => INR m
| S n' => f (a n')
end in
exists (i: nat) (q: Z)... | theory putnam_1983_b4 imports Complex_Main
begin
theorem putnam_1983_b4:
fixes a f :: "nat \<Rightarrow> nat"
defines "f \<equiv> \<lambda> n :: nat. n + (nat \<lfloor>sqrt (real n)\<rfloor>)"
assumes ha0 : "a 0 > 0"
and han : "\<forall> n :: nat. a (n + 1) = f (a n)"
shows "\<exists> i :: nat. \<exists> ... |
putnam_1983_b5 | abbrev putnam_1983_b5_solution : ℝ := sorry
-- log (4 / Real.pi)
theorem putnam_1983_b5
(dist : ℝ → ℝ := fun x ↦ min (x - ⌊x⌋) (⌈x⌉ - x))
(fact : Tendsto (fun N ↦ ∏ n in Finset.Icc 1 N, (2 * n / (2 * n - 1)) * (2 * n / (2 * n + 1)) : ℕ → ℝ) ⊤ (𝓝 (Real.pi / 2)))
: (Tendsto (fun n ↦ (1 / n) * ∫ x in (1)..n, dist (n / x)... | Define $\left\lVert x \right\rVert$ as the distance from $x$ to the nearest integer. Find $\lim_{n \to \infty} \frac{1}{n} \int_{1}^{n} \left\lVert \frac{n}{x} \right\rVert \, dx$. You may assume that $\prod_{n=1}^{\infty} \frac{2n}{(2n-1)} \cdot \frac{2n}{(2n+1)} = \frac{\pi}{2}$. | Show that the limit equals $\ln \left( \frac{4}{\pi} \right)$. | ['analysis'] | Section putnam_1983_b5.
Require Import Nat Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1983_b5_solution := ln (4/PI).
Theorem putnam_1983_b5:
let mindist (x: R) := Rmin (Rabs (x - IZR (floor x))) (Rabs (x - IZR (floor (x+1)))) in
Lim_seq (fun n => 1/(INR n) * (RInt (fun x => mindist (INR n/x))... | theory putnam_1983_b5 imports Complex_Main
"HOL-Analysis.Interval_Integral"
begin
definition putnam_1983_b5_solution :: "real" where
"putnam_1983_b5_solution \<equiv> undefined"
(* ln (4 / pi) *)
theorem putnam_1983_b5:
fixes dist :: "real \<Rightarrow> real"
defines "dist \<equiv> \<lambda> x :: real. \<bar>x - ... |
putnam_1983_b6 | theorem putnam_1983_b6
(n : ℕ)
(npos : n > 0)
(α : ℂ)
(hα : α ^ (2 ^ n + 1) - 1 = 0 ∧ α ≠ 1)
: (∃ p q : Polynomial ℤ, (aeval α p) ^ 2 + (aeval α q) ^ 2 = -1) :=
sorry | Let $n$ be a positive integer and let $\alpha \neq 1$ be a complex $(2n + 1)\textsuperscript{th}$ root of unity. Prove that there always exist polynomials $p(x)$, $q(x)$ with integer coefficients such that $p(\alpha)^2 + q(\alpha)^2 = -1$. | null | ['algebra'] | null | theory putnam_1983_b6 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
theorem putnam_1983_b6:
fixes n :: "nat"
and \<alpha> :: "complex"
and integralcoeffs :: "complex poly \<Rightarrow> bool"
defines "integralcoeffs \<equiv> \<lambda> p. (\<forall> n :: nat. (\<exists> k :: int. complex... |
putnam_2003_a1 | abbrev putnam_2003_a1_solution : ℕ → ℕ := sorry
-- fun n => n
theorem putnam_2003_a1
(n : ℕ)
(hn : n > 0)
: Set.encard {a : ℕ → ℤ | ∃ k > 0, (∑ i : Fin k, a i = n) ∧ (∀ i : Fin k, a i > 0) ∧ (∀ i : Fin (k - 1), a i ≤ a (i + 1)) ∧ a (k - 1) ≤ a 0 + 1 ∧ (∀ i ≥ k, a i = 0)} = putnam_2003_a1_solution n :=
sorry | null | null | [] | Section putnam_2003_a1.
Require Import Nat List Ensembles Finite_sets Coquelicot.Coquelicot.
Definition putnam_2003_a1_solution (n: nat) := n.
Theorem putnam_2003_a1:
forall (n: nat), n > 0 ->
forall (E: Ensemble (list nat)) (l: list nat),
E l <->
forall (i j: nat), i < length l /\ j < length l /\ i < ... | theory putnam_2003_a1 imports Complex_Main
begin
(* uses (nat \<Rightarrow> int) instead of (Fin k \<Rightarrow> int) *)
definition putnam_2003_a1_solution :: "nat \<Rightarrow> nat" where "putnam_2003_a1_solution \<equiv> undefined"
(* (\<lambda>n::nat. n) *)
theorem putnam_2003_a1:
fixes n :: nat
assumes hn: "n ... |
putnam_2003_a2 | theorem putnam_2003_a2
(n : ℕ)
(a b : Fin n → ℝ)
(abnneg : ∀ i : Fin n, a i ≥ 0 ∧ b i ≥ 0)
: (∏ i : Fin n, a i) ^ ((1 : ℝ) / n) + (∏ i : Fin n, b i) ^ ((1 : ℝ) / n) ≤ (∏ i : Fin n, (a i + b i)) ^ ((1 : ℝ) / n) :=
sorry | Let $a_1,a_2,\dots,a_n$ and $b_1,b_2,\dots,b_n$ be nonnegative real numbers. Show that $(a_1a_2 \cdots a_n)^{1/n}+(b_1b_2 \cdots b_n)^{1/n} \leq [(a_1+b_1)(a_2+b_2) \cdots (a_n+b_n)]^{1/n}$. | null | ['algebra'] | Section putnam_2003_a2.
Require Import List Reals Coquelicot.Coquelicot.
Theorem putnam_2003_a2:
let fix suml (l1 l2 : list R) : list R :=
match l1, l2 with
| nil, _ => nil
| _, nil => nil
| h1 :: t1, h2 :: t2 => (h1 + h2) :: suml t1 t2
end in
forall (n: nat) (a b: list R), ... | theory putnam_2003_a2 imports Complex_Main
begin
(* Note: Boosted domain to infinite set *)
theorem putnam_2003_a2:
fixes n::nat and a b::"nat\<Rightarrow>real"
assumes abnneg : "\<forall>i \<in> {0..<n}. a i \<ge> 0 \<and> b i \<ge> 0"
shows "((\<Prod>i=0..<n. a i) powr (1/n)) + ((\<Prod>i=0..<n. b i) powr (1/n... |
putnam_2003_a3 | abbrev putnam_2003_a3_solution : ℝ := sorry
-- 2 * Real.sqrt 2 - 1
theorem putnam_2003_a3
(f : ℝ → ℝ)
(hf : ∀ x : ℝ, f x = |Real.sin x + Real.cos x + Real.tan x + 1 / Real.tan x + 1 / Real.cos x + 1 / Real.sin x|)
: (∃ x : ℝ, f x = putnam_2003_a3_solution) ∧ (∀ x : ℝ, f x ≥ putnam_2003_a3_solution) :=
sorry | Find the minimum value of $|\sin x+\cos x+\tan x+\cot x+\sec x+\csc x|$ for real numbers $x$. | Show that the minimum is $2\sqrt{2}-1$. | ['analysis'] | Section putnam_2003_a3.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2003_a3_solution := 2 * sqrt 2 - 1.
Theorem putnam_2003_a3:
let f (x: R) := Rabs (sin x + cos x + tan x + 1 / tan x + 1 / cos x + 1 / sin x) in
exists (minx: R), forall (x: R), f minx <= f x ->
f minx = putnam_2003_a3_so... | theory putnam_2003_a3 imports Complex_Main
begin
definition putnam_2003_a3_solution::real where "putnam_2003_a3_solution \<equiv> undefined"
(* 2 * sqrt 2 - 1 *)
theorem putnam_2003_a3:
fixes f::"real\<Rightarrow>real"
defines "f \<equiv> \<lambda>x::real. abs(sin x + cos x + tan x + 1 / tan x + 1 / cos x + 1 / si... |
putnam_2003_a4 | theorem putnam_2003_a4
(a b c A B C : ℝ)
(aAne0 : a ≠ 0 ∧ A ≠ 0)
(hle : ∀ x : ℝ, |a * x ^ 2 + b * x + c| ≤ |A * x ^ 2 + B * x + C|)
: |b ^ 2 - 4 * a * c| ≤ |B ^ 2 - 4 * A * C| :=
sorry | Suppose that $a,b,c,A,B,C$ are real numbers, $a \ne 0$ and $A \ne 0$, such that $|ax^2+bx+c| \leq |Ax^2+Bx+C|$ for all real numbers $x$. Show that $|b^2-4ac| \leq |B^2-4AC|$. | null | ['algebra'] | Section putnam_2003_a4.
Require Import Reals Coquelicot.Coquelicot.
Theorem putnam_2003_a4:
forall (a b c A B C: R), a <> 0 /\ A <> 0 /\ forall (x: R),
Rabs (a * x ^ 2 + b * x + c) <= Rabs (A * x ^ 2 + B * x + C) ->
Rabs (b ^ 2 - 4 * a * c) <= Rabs (B ^ 2 - 4 * A * C).
Proof. Admitted.
End putnam_2003_a4. | theory putnam_2003_a4 imports Complex_Main
begin
theorem putnam_2003_a4:
fixes a b c A B C::real
assumes aAne0 : "a \<noteq> 0 \<and> A \<noteq> 0"
and hle : "\<forall>x::real. abs(a * x^2 + b * x + c) \<le> abs(A * x^2 + B * x + C)"
shows "abs(b^2 - 4 * a * c) \<le> abs(B^2 - 4 * A * C)"
sorry
end |
putnam_2003_a6 | abbrev putnam_2003_a6_solution : Prop := sorry
-- True
theorem putnam_2003_a6
(r : Set ℕ → ℕ → ℕ)
(hr : ∀ (S : Set ℕ) (n : ℕ), r S n = ∑' s1 : S, ∑' s2 : S, if (s1 ≠ s2 ∧ s1 + s2 = n) then 1 else 0)
: (∃ A B : Set ℕ, A ∪ B = ℕ ∧ A ∩ B = ∅ ∧ (∀ n : ℕ, r A n = r B n)) ↔ putnam_2003_a6_solution :=
sorry | For a set $S$ of nonnegative integers, let $r_S(n)$ denote the number of ordered pairs $(s_1,s_2)$ such that $s_1 \in S$, $s_2 \in S$, $s_1 \ne s_2$, and $s_1+s_2=n$. Is it possible to partition the nonnegative integers into two sets $A$ and $B$ in such a way that $r_A(n)=r_B(n)$ for all $n$? | Show that such a partition is possible. | ['algebra'] | null | theory putnam_2003_a6 imports Complex_Main
begin
definition putnam_2003_a6_solution::bool where "putnam_2003_a6_solution \<equiv> undefined"
(* True *)
theorem putnam_2003_a6:
fixes r::"(nat set) \<Rightarrow> nat \<Rightarrow> nat"
defines "r \<equiv> \<lambda>S. \<lambda>n. card {(s1, s2). s1 \<in> S \<and> s2 \... |
putnam_2003_b1 | abbrev putnam_2003_b1_solution : Prop := sorry
-- False
theorem putnam_2003_b1
: (∃ a b c d : Polynomial ℝ, (∀ x y : ℝ, 1 + x * y + x ^ 2 * y ^ 2 = a.eval x * c.eval y + b.eval x * d.eval y)) ↔ putnam_2003_b1_solution :=
sorry | null | null | [] | Section putnam_2003_b1.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2003_b1_solution := True.
Theorem putnam_2003_b1:
let p (coeff: nat -> R) (x: R) (n: nat) := sum_n (fun i => coeff i * x ^ i) n in
exists (coeffa coeffb coeffc coeffd: nat -> R) (na nb nc nd: nat), forall (x y: R),
1 + x ... | theory putnam_2003_b1 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_2003_b1_solution :: bool where "putnam_2003_b1_solution \<equiv> undefined"
(* False *)
theorem putnam_2003_b1:
shows "(\<exists>a b c d::real poly. (\<forall>x y::real. 1 + x*y + x^2*y^2 = poly a x * poly c y +... |
putnam_2003_b3 | theorem putnam_2003_b3
(multicc : ℕ → ℕ → Prop)
(lcmicc : ℕ → ℕ)
(hmulticc : ∀ n mult : ℕ, multicc n mult = ∀ i : Set.Icc 1 n, i.1 ∣ mult)
(hlcmicc : ∀ n : ℕ, multicc n (lcmicc n) ∧ (∀ n' : ℕ, multicc n n' → n' ≥ (lcmicc n)))
: ∀ n > 0, (n)! = ∏ i : Set.Icc 1 n, lcmicc (n / i.1) :=
sorry | Show that for each positive integer $n$, $n!=\prod_{i=1}^n \text{lcm}\{1,2,\dots,\lfloor n/i \rfloor\}$. (Here lcm denotes the least common multiple, and $\lfloor x \rfloor$ denotes the greatest integer $\leq x$.) | null | ['number_theory'] | Section putnam_2003_b3.
Require Import Nat List Reals Coquelicot.Coquelicot.
Theorem putnam_2003_b3:
let fix lcm_n (args : list nat) : nat :=
match args with
| nil => 0%nat
| h :: args' => div (h * (lcm_n args')) (gcd h (lcm_n args'))
end in
let fix prod_n (m: nat -> R) (n : nat) : R... | theory putnam_2003_b3 imports Complex_Main
begin
theorem putnam_2003_b3:
fixes n::nat
assumes npos : "n > 0"
shows "fact n = (\<Prod>i=1..n. Lcm {1..\<lfloor>n / i\<rfloor>})"
sorry
end |
putnam_2003_b4 | theorem putnam_2003_b4
(f : ℝ → ℝ)
(a b c d e : ℤ)
(r1 r2 r3 r4 : ℝ)
(ane0 : a ≠ 0)
(hf1 : ∀ z : ℝ, f z = a * z ^ 4 + b * z ^ 3 + c * z ^ 2 + d * z + e)
(hf2 : ∀ z : ℝ, f z = a * (z - r1) * (z - r2) * (z - r3) * (z - r4))
: (¬Irrational (r1 + r2) ∧ r1 + r2 ≠ r3 + r4) → ¬Irrational (r1 * r2) :=
sorry | Let $f(z)=az^4+bz^3+cz^2+dz+e=a(z-r_1)(z-r_2)(z-r_3)(z-r_4)$ where $a,b,c,d,e$ are integers, $a \neq 0$. Show that if $r_1+r_2$ is a rational number and $r_1+r_2 \neq r_3+r_4$, then $r_1r_2$ is a rational number. | null | ['number_theory', 'algebra'] | Section putnam_2003_b4.
Require Import Reals ZArith Coquelicot.Coquelicot.
Theorem putnam_2003_b4:
forall (a b c d e: Z), ~ Z.eq a 0 ->
let a := IZR a in
let b := IZR b in
let c := IZR c in
let d := IZR d in
let e := IZR e in
exists (r1 r2 r3 r4: R),
forall (z: R),
a * z ^ 4 +... | theory putnam_2003_b4 imports Complex_Main
begin
theorem putnam_2003_b4:
fixes f::"real\<Rightarrow>real" and a b c d e::int and r1 r2 r3 r4::real
defines "f \<equiv> \<lambda>z::real. a * z^4 + b * z^3 + c * z^2 + d * z + e"
assumes ane0 : "a \<noteq> 0"
and hf : "\<forall>z::real. f z = a * (z - r1) * (z -... |
putnam_2003_b6 | theorem putnam_2003_b6
(f : ℝ → ℝ)
(hf : Continuous f)
: (∫ x in (0 : ℝ)..1, (∫ y in (0 : ℝ)..1, |f x + f y|)) ≥ (∫ x in (0 : ℝ)..1, |f x|) :=
sorry | Let $f(x)$ be a continuous real-valued function defined on the interval $[0,1]$. Show that \[ \int_0^1 \int_0^1 | f(x) + f(y) |\,dx\,dy \geq \int_0^1 |f(x)|\,dx. \] | null | ['analysis'] | Section putnam_2003_b6.
Require Import Reals Coquelicot.Coquelicot.
Theorem putnam_2003_b6:
forall (f: R -> R) (x: R), 0 <= x <= 1 -> continuity_pt f x ->
RInt (fun x => RInt (fun y => Rabs (f x + f y)) 0 1) 0 1 >= RInt (fun x => Rabs (f x)) 0 1.
Proof. Admitted.
End putnam_2003_b6. | theory putnam_2003_b6 imports Complex_Main
"HOL-Analysis.Lebesgue_Measure"
"HOL-Analysis.Set_Integral"
begin
theorem putnam_2003_b6:
fixes f :: "real \<Rightarrow> real"
assumes hf : "continuous_on UNIV f"
shows "set_lebesgue_integral lebesgue {(x, y). 0 \<le> x \<and> x \<le> 1 \<and> 0 \<le> y \<and> y \<le> 1... |
putnam_1990_a1 | abbrev putnam_1990_a1_solution : (ℕ → ℤ) × (ℕ → ℤ) := sorry
-- (fun n : ℕ => (n)!, fun n : ℕ => 2 ^ n)
theorem putnam_1990_a1
(T : ℕ → ℤ)
(hT012 : T 0 = 2 ∧ T 1 = 3 ∧ T 2 = 6)
(hTn : ∀ n ≥ 3, T n = (n + 4) * T (n - 1) - 4 * n * T (n - 2) + (4 * n - 8) * T (n - 3))
: T = putnam_1990_a1_solution.1 + putnam_1990_a1_soluti... | Let $T_0=2,T_1=3,T_2=6$, and for $n \geq 3$, $T_n=(n+4)T_{n-1}-4nT_{n-2}+(4n-8)T_{n-3}$. The first few terms are $2,3,6,14,40,152,784,5168,40576$. Find, with proof, a formula for $T_n$ of the form $T_n=A_n+B_n$, where $\{A_n\}$ and $\{B_n\}$ are well-known sequences. | Show that we have $T_n=n!+2^n$. | ['algebra'] | Section putnam_1990_a1.
Require Import Nat Factorial Coquelicot.Coquelicot.
Definition putnam_1990_a1_solution := (fun n => fact n, fun n => pow 2 n).
Theorem putnam_1990_a1:
let A :=
fix a (n: nat) : nat :=
match n with
| O => 2
| S O => 3
| S (S O) => 6
| S (S (S n'... | theory putnam_1990_a1 imports Complex_Main
begin
definition putnam_1990_a1_solution::"((nat\<Rightarrow>int)\<times>(nat\<Rightarrow>int))" where "putnam_1990_a1_solution \<equiv> undefined"
(* (\<lambda>n. fact n, \<lambda>n. 2^n) *)
theorem putnam_1990_a1:
fixes T::"nat\<Rightarrow>int"
assumes hT012 : "T 0 = 2 ... |
putnam_1990_a2 | abbrev putnam_1990_a2_solution : Prop := sorry
-- True
theorem putnam_1990_a2
(numform : ℝ → Prop)
(hnumform : ∀ x : ℝ, numform x = ∃ n m : ℕ, x = n ^ ((1 : ℝ) / 3) - m ^ ((1 : ℝ) / 3))
: (∃ s : ℕ → ℝ, (∀ i : ℕ, numform (s i)) ∧ Tendsto s atTop (𝓝 (Real.sqrt 2))) ↔ putnam_1990_a2_solution :=
sorry | Is $\sqrt{2}$ the limit of a sequence of numbers of the form $\sqrt[3]{n}-\sqrt[3]{m}$ ($n,m=0,1,2,\dots$)? | Show that the answer is yes. | ['analysis'] | Section putnam_1990_a2.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1990_a2_solution := True.
Theorem putnam_1990_a2:
let numform (x: R) : Prop := exists (n m: nat), x = pow (INR n) (1/3) - pow (INR m) (1/3) in
exists (s: nat -> R), forall (i: nat), numform (s i) /\ Lim_seq s = s... | theory putnam_1990_a2 imports Complex_Main
begin
definition putnam_1990_a2_solution::bool where "putnam_1990_a2_solution \<equiv> undefined"
(* True *)
theorem putnam_1990_a2:
fixes numform::"real\<Rightarrow>bool"
defines "numform \<equiv> \<lambda>x. (\<exists>n m::nat. x = n powr (1/3) - m powr (1/3))"
shows ... |
putnam_1990_a5 | abbrev putnam_1990_a5_solution : Prop := sorry
-- False
theorem putnam_1990_a5
: (∀ n ≥ 1, ∀ A B : Matrix (Fin n) (Fin n) ℝ, A * B * A * B = 0 → B * A * B * A = 0) ↔ putnam_1990_a5_solution :=
sorry | If $\mathbf{A}$ and $\mathbf{B}$ are square matrices of the same size such that $\mathbf{ABAB}=\mathbf{0}$, does it follow that $\mathbf{BABA}=\mathbf{0}$? | Show that the answer is no. | ['linear_algebra'] | Section putnam_1990_a5.
From mathcomp Require Import matrix ssralg.
Open Scope ring_scope.
Theorem putnam_1990_a5:
forall (R: ringType) (n: nat) (A B: 'M[R]_n),
mulmx (mulmx (mulmx A B) A) B = 0 ->
mulmx (mulmx (mulmx B A) B) A = 0.
Proof. Admitted.
End putnam_1990_a5. | theory putnam_1990_a5 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product"
begin
definition putnam_1990_a5_solution::bool where "putnam_1990_a5_solution \<equiv> undefined"
(* False *)
theorem putnam_1990_a5:
fixes A B::"real^'a^'a" and n::nat
assumes matsize : "CARD('a) = n \<and> n \<ge> 1"
and hab... |
putnam_1990_a6 | abbrev putnam_1990_a6_solution : ℕ := sorry
-- 17711
theorem putnam_1990_a6
(STadmiss : (Fin 2 → (Finset (Fin 10))) → Prop)
(hSTadmiss : ∀ ST : Fin 2 → (Finset (Fin 10)), STadmiss ST = ((∀ s ∈ ST 0, (s+1) > (ST 1).card) ∧ (∀ t ∈ ST 1, (t+1) > (ST 0).card)))
: {ST : Fin 2 → (Finset (Fin 10)) | STadmiss ST}.encard = putn... | If $X$ is a finite set, let $|X|$ denote the number of elements in $X$. Call an ordered pair $(S,T)$ of subsets of $\{1,2,\dots,n\}$ \emph{admissible} if $s>|T|$ for each $s \in S$, and $t>|S|$ for each $t \in T$. How many admissible ordered pairs of subsets of $\{1,2,\dots,10\}$ are there? Prove your answer. | Show that the number of admissible ordered pairs of subsets of $\{1,2,\dots,10\}$ equals the $22$nd Fibonacci number $F_{22}=17711$. | ['algebra'] | null | theory putnam_1990_a6 imports Complex_Main
begin
definition putnam_1990_a6_solution::nat where "putnam_1990_a6_solution \<equiv> undefined"
(* 17711 *)
theorem putnam_1990_a6:
fixes STadmiss::"(nat set) \<Rightarrow> (nat set) \<Rightarrow> bool"
defines "STadmiss \<equiv> \<lambda>S. \<lambda>T. S \<subseteq> {1.... |
putnam_1990_b1 | abbrev putnam_1990_b1_solution : Set (ℝ → ℝ) := sorry
-- {fun x : ℝ => (Real.sqrt 1990) * Real.exp x, fun x : ℝ => -(Real.sqrt 1990) * Real.exp x}
theorem putnam_1990_b1
(f : ℝ → ℝ)
(fint : Prop)
(hfint : fint = ∀ x : ℝ, (f x) ^ 2 = (∫ t in Set.Ioo 0 x, (f t) ^ 2 + (deriv f t) ^ 2) + 1990)
: (ContDiff ℝ 1 f ∧ fint) ↔ f... | Find all real-valued continuously differentiable functions $f$ on the real line such that for all $x$, $(f(x))^2=\int_0^x [(f(t))^2+(f'(t))^2]\,dt+1990$. | Show that there are two such functions, namely $f(x)=\sqrt{1990}e^x$, and $f(x)=-\sqrt{1990}e^x$. | ['analysis'] | Section putnam_1990_b1.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Definition putnam_1990_b1_solution (f: R -> R) := f = (fun x => sqrt 1990 * exp x) /\ f = (fun x => -sqrt 1990 * exp x).
Theorem putnam_1990_b1:
forall (f: R -> R), continuity f /\ forall x, ex_derive_n f 1 x ->
forall x, pow (f... | theory putnam_1990_b1 imports Complex_Main "HOL-Analysis.Interval_Integral"
begin
definition putnam_1990_b1_solution::"(real\<Rightarrow>real) set" where "putnam_1990_b1_solution \<equiv> undefined"
(* { (\<lambda>x. (sqrt 1990) * exp x), (\<lambda>x. - (sqrt 1990) * exp x)} *)
theorem putnam_1990_b1:
fixes f f'::"... |
putnam_1990_b2 | theorem putnam_1990_b2
(x z : ℝ)
(P : ℕ → ℝ)
(xlt1 : |x| < 1)
(zgt1 : |z| > 1)
(hP : ∀ j ≥ 1, P j = (∏ i : Fin j, (1 - z * x ^ (i : ℕ))) / (∏ i : Set.Icc 1 j, (z - x ^ (i : ℕ))))
: 1 + (∑' j : Set.Ici 1, (1 + x ^ (j : ℕ)) * P j) = 0 :=
sorry | Prove that for $|x|<1$, $|z|>1$, $1+\sum_{j=1}^\infty (1+x^j)P_j=0$, where $P_j$ is $\frac{(1-z)(1-zx)(1-zx^2) \cdots (1-zx^{j-1})}{(z-x)(z-x^2)(z-x^3) \cdots (z-x^j)}$. | null | ['analysis'] | Section putnam_1990_b2.
Require Import Reals Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1990_b2:
forall (x z: R), Rabs x < 1 /\ Rabs z > 1 ->
let P (j: nat) := (sum_n (fun i => 1 - z * x ^ i) j) / (sum_n (fun i => z - x ^ i) j+1) in
1 + Series (fun j => 1 + x ^ (j+1) * P j) = 0.
Proof. Admitted.
E... | theory putnam_1990_b2 imports Complex_Main
begin
theorem putnam_1990_b2:
fixes x z::real and P::"nat\<Rightarrow>real"
defines "P \<equiv> \<lambda>j. (\<Prod>i=0..<j. (1 - z * x^i)) / (\<Prod>i=1..j. (z - x^i))"
assumes xlt1 : "abs(x) < 1"
and zgt1 : "abs(z) > 1"
shows "1 + (\<Sum>j::nat. (1 + x^(j+1)) * ... |
putnam_1990_b3 | theorem putnam_1990_b3
(S : Set (Matrix (Fin 2) (Fin 2) ℕ))
(hS : ∀ A ∈ S, ∀ i j : Fin 2, (∃ x : ℤ, A i j = x ^ 2) ∧ A i j ≤ 200)
: (S.encard > 50387) → (∃ A ∈ S, ∃ B ∈ S, A ≠ B ∧ A * B = B * A) :=
sorry | Let $S$ be a set of $2 \times 2$ integer matrices whose entries $a_{ij}$ (1) are all squares of integers, and, (2) satisfy $a_{ij} \leq 200$. Show that if $S$ has more than $50387$ ($=15^4-15^2-15+2$) elements, then it has two elements that commute. | null | ['linear_algebra'] | Section putnam_1990_b3.
Require Import Ensembles Finite_sets Reals Coquelicot.Coquelicot.
Open Scope R.
Theorem putnam_1990_b3
(Mmult_n :=
fix Mmult_n {T : Ring} (A : matrix 2 2) (p : nat) :=
match p with
| O => A
| S p' => @Mmult T 2 2 2 A (Mmult_n A p')
end)
(E : Ensemble (matr... | theory putnam_1990_b3 imports Complex_Main "HOL-Analysis.Finite_Cartesian_Product"
begin
theorem putnam_1990_b3:
fixes S::"(nat^2^2) set"
assumes hS : "\<forall>A \<in> S. (\<forall>i \<in> {1..2}. \<forall>j \<in> {1..2}. ((\<exists>x::nat. A$i$j = x^2) \<and> A$i$j \<le> 200))"
shows "card S > 50387 \<longrigh... |
putnam_1990_b4 | abbrev putnam_1990_b4_solution : Prop := sorry
-- True
theorem putnam_1990_b4
: (∀ (G : Type*) (_ : Fintype G) (_ : Group G) (n : ℕ) (a b : G), (n = Fintype.card G ∧ a ≠ b ∧ G = Subgroup.closure {a, b}) → (∃ g : ℕ → G, (∀ x : G, {i : Fin (2 * n) | g i = x}.encard = 2)
∧ (∀ i : Fin (2 * n), (g ((i + 1) % (2 * n)) = g ... | Let $G$ be a finite group of order $n$ generated by $a$ and $b$. Prove or disprove: there is a sequence $g_1,g_2,g_3,\dots,g_{2n}$ such that
\begin{itemize}
\item[(1)] every element of $G$ occurs exactly twice, and
\item[(2)] $g_{i+1}$ equals $g_ia$ or $g_ib$ for $i=1,2,\dots,2n$. (Interpret $g_{2n+1}$ as $g_1$.)
\end{... | Show that such a sequence does exist. | ['abstract_algebra'] | null | theory putnam_1990_b4 imports Complex_Main "HOL-Algebra.Multiplicative_Group"
begin
(* Note: Boosted domain to infinite set *)
definition putnam_1990_b4_solution::bool where "putnam_1990_b4_solution \<equiv> undefined"
(* True *)
theorem putnam_1990_b4:
fixes G (structure) and n::nat and a b::"'a"
assumes hG : "G... |
putnam_1990_b5 | abbrev putnam_1990_b5_solution : Prop := sorry
-- True
theorem putnam_1990_b5
(anpoly : (ℕ → ℝ) → ℕ → Polynomial ℝ)
(hanpoly : ∀ (a : ℕ → ℝ) (n : ℕ), (anpoly a n).degree = n ∧ (∀ i : Fin (n + 1), (anpoly a n).coeff i = a i))
: (∃ a : ℕ → ℝ, (∀ i : ℕ, a i ≠ 0) ∧ (∀ n ≥ 1, {r : ℝ | (anpoly a n).eval r = 0}.encard = n)) ↔... | Is there an infinite sequence $a_0,a_1,a_2,\dots$ of nonzero real numbers such that for $n=1,2,3,\dots$ the polynomial $p_n(x)=a_0+a_1x+a_2x^2+\cdots+a_nx^n$ has exactly $n$ distinct real roots? | Show that the answer is yes, such an infinite sequence exists. | ['algebra', 'analysis'] | Section putnam_1990_b5.
Require Import Reals Ensembles Finite_sets Coquelicot.Coquelicot.
Definition putnam_1990_b5_solution := True.
Open Scope R.
Theorem putnam_1990_b5:
exists (a: nat -> R),
let pn (n: nat) (x: R) := sum_n (fun i => a i * pow x i) n in
forall (n: nat), gt n 0 -> exists (roots: Ensemble... | theory putnam_1990_b5 imports Complex_Main "HOL-Computational_Algebra.Polynomial"
begin
definition putnam_1990_b5_solution::bool where "putnam_1990_b5_solution \<equiv> undefined"
(* True *)
theorem putnam_1990_b5:
fixes anpoly::"(nat\<Rightarrow>real) \<Rightarrow> nat \<Rightarrow> (real poly)"
assumes hanpoly :... |
putnam_2008_a1 | theorem putnam_2008_a1
(f : ℝ → ℝ → ℝ)
(hf : ∀ x y z : ℝ, f x y + f y z + f z x = 0)
: ∃ g : ℝ → ℝ, ∀ x y : ℝ, f x y = g x - g y :=
sorry | Let $f:\mathbb{R}^2 \to \mathbb{R}$ be a function such that $f(x,y)+f(y,z)+f(z,x)=0$ for all real numbers $x$, $y$, and $z$. Prove that there exists a function $g:\mathbb{R} \to \mathbb{R}$ such that $f(x,y)=g(x)-g(y)$ for all real numbers $x$ and $y$. | null | ['algebra'] | Section putnam_2008_a1.
Require Import Reals Coquelicot.Coquelicot.
Theorem putnam_2008_a1:
forall (f: R -> R -> R) (x y z: R), f x y + f y z + f z x = 0 ->
exists (g: R -> R), forall (x y: R), f x y = g x - g y.
Proof. Admitted.
End putnam_2008_a1. | theory putnam_2008_a1 imports Complex_Main
begin
theorem putnam_2008_a1:
fixes f :: "real \<Rightarrow> real \<Rightarrow> real"
assumes hf : "\<forall> x y z :: real. f x y + f y z + f z x = 0"
shows "\<exists> g :: real \<Rightarrow> real. \<forall> x y :: real. f x y = g x - g y"
sorry
end |
putnam_2008_a4 | abbrev putnam_2008_a4_solution : Prop := sorry
-- False
theorem putnam_2008_a4
(f : ℝ → ℝ)
(hf : f = fun x => if x ≤ Real.exp 1 then x else x * (f (Real.log x)))
: (∃ r : ℝ, Tendsto (fun N : ℕ => ∑ n in Finset.range N, 1/(f (n + 1))) atTop (𝓝 r)) ↔ putnam_2008_a4_solution :=
sorry | Define $f : \mathbb{R} \to \mathbb{R} by $f(x) = x$ if $x \leq e$ and $f(x) = x * f(\ln(x))$ if $x > e$. Does $\sum_{n=1}^{\infty} 1/(f(n))$ converge? | Show that the sum does not converge. | ['algebra'] | Section putnam_2008_a4.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2008_a4_solution := False.
Theorem putnam_2008_a4:
forall (f: R -> R) (x: R), f x = (if (Rle_dec x (exp 1)) then x else x * f (ln x)) ->
ex_lim_seq (fun nInc => sum_n (fun n => 1 / f (INR n)) nInc) <-> putnam_2008_a4_solution... | theory putnam_2008_a4 imports Complex_Main
begin
definition putnam_2008_a4_solution :: bool where "putnam_2008_a4_solution \<equiv> undefined"
(* False *)
theorem putnam_2008_a4:
fixes f :: "real \<Rightarrow> real"
assumes hf: "f \<equiv> (\<lambda>x::real. if x \<le> exp 1 then x else (x * f (ln x)))"
shows "(... |
putnam_2008_a6 | theorem putnam_2008_a6
: (∃ c : ℝ, c > 0 ∧ ∀ G [Group G] (fing : Fintype G), fing.card > 1 → ∃ s : List G, s.length ≤ c * Real.log (fing.card : ℝ) ∧ ∀ g : G, ∃ t : List G, t.Sublist s ∧ t.prod = g) :=
sorry | Prove that there exists a constant $c>0$ such that in every nontrivial finite group $G$ there exists a sequence of length at most $c \log |G|$ with the property that each element of $G$ equals the product of some subsequence. (The elements of $G$ in the sequence are not required to be distinct. A \emph{subsequence} of ... | null | ['abstract_algebra'] | null | theory putnam_2008_a6 imports
Complex_Main
"HOL-Algebra.Multiplicative_Group"
begin
theorem putnam_2008_a6:
shows "\<exists> c :: real. c > 0 \<and> (\<forall> G :: 'a monoid. group G \<longrightarrow> finite (carrier G) \<longrightarrow> card (carrier G) > 1 \<longrightarrow> (\<exists> s :: 'a list. length s \<le>... |
putnam_2008_b1 | abbrev putnam_2008_b1_solution : ℕ := sorry
-- 2
def is_rational_point (p : Fin 2 → ℝ) : Prop := ∃ (a b : ℚ), a = p 0 ∧ b = p 1
def real_circle (c : Fin 2 → ℝ) (r : ℝ) : Set (Fin 2 → ℝ) := {p : Fin 2 → ℝ | Euclidean.dist p c = r}
theorem putnam_2008_b1 :
∀ (c : Fin 2 → ℝ) (r : ℝ), ¬ is_rational_point c → (Set.ncard {p ... | What is the maximum number of rational points that can lie on a circle in $\mathbb{R}^2$ whose center is not a rational point? (A \emph{rational point} is a point both of whose coordinates are rational numbers.) | Show that the maximum number is $2$. | ['number_theory'] | null | theory putnam_2008_b1 imports Complex_Main
"HOL-Analysis.Finite_Cartesian_Product"
"HOL-Analysis.Elementary_Metric_Spaces"
begin
definition putnam_2008_b1_solution :: "nat" where "putnam_2008_b1_solution \<equiv> undefined"
(* 2 *)
definition is_rational_point :: "real^2 \<Rightarrow> bool" where "is_rational_point \<... |
putnam_2008_b2 | abbrev putnam_2008_b2_solution : ℝ := sorry
-- -1
theorem putnam_2008_b2
(F : ℕ → ℝ → ℝ)
(hF0 : ∀ x : ℝ, F 0 x = Real.log x)
(hFn : ∀ n : ℕ, ∀ x > 0, F (n + 1) x = ∫ t in Set.Ioo 0 x, F n t)
: Tendsto (fun n : ℕ => ((n)! * F n 1) / Real.log n) atTop (𝓝 putnam_2008_b2_solution) :=
sorry | Let $F_0(x)=\ln x$. For $n \geq 0$ and $x>0$, let $F_{n+1}(x)=\int_0^x F_n(t)\,dt$. Evaluate $\lim_{n \to \infty} \frac{n!F_n(1)}{\ln n}$. | Show that the desired limit is $-1$. | ['analysis'] | Section putnam_2008_b2.
Require Import Factorial Reals Coquelicot.Coquelicot.
Definition putnam_2008_b2_solution := -1.
Theorem putnam_2008_b2:
let fix F (n: nat) (x: R) :=
match n with
| O => ln x
| S n' => RInt (fun t => F n' t) 0 x
end in
Lim_seq (fun n => INR (fact n) * F n 1 / ... | theory putnam_2008_b2 imports Complex_Main
"HOL-Analysis.Interval_Integral"
begin
definition putnam_2008_b2_solution :: "real" where
"putnam_2008_b2_solution \<equiv> undefined"
(* -1 *)
theorem putnam_2008_b2:
fixes F :: "nat \<Rightarrow> real \<Rightarrow> real"
assumes hF0 : "\<forall> x :: real. F 0 x = ln x... |
putnam_2008_b4 | theorem putnam_2008_b4
(p : ℕ)
(hp : Nat.Prime p)
(h : Polynomial ℤ)
(hh : ∀ i j : Finset.range (p ^ 2), h.eval i ≡ h.eval j [ZMOD p ^ 2] → i = j)
: (∀ i j : Finset.range (p ^ 3), h.eval i ≡ h.eval j [ZMOD p ^ 3] → i = j) :=
sorry | Let $p$ be a prime number. Let $h(x)$ be a polynomial with integer coefficients such that $h(0), h(1), \dots, h(p^2-1)$ are distinct modulo $p^2$. Show that $h(0), h(1), \dots, h(p^3-1)$ are distinct modulo $p^3$. | null | ['algebra', 'number_theory'] | Section putnam_2008_b4.
Require Import Nat Reals Coquelicot.Coquelicot.
Theorem putnam_2008_b4:
forall (p: nat), Znumtheory.prime (Z.of_nat p) ->
exists (c: nat -> Z) (n: nat),
let h (x: nat) := Z.to_nat (floor (sum_n (fun i => IZR (c i) * INR (x ^ i)) (n + 1))) in
(forall (i j: nat), i <> j /\ and (l... | theory putnam_2008_b4 imports
Complex_Main
"HOL-Computational_Algebra.Primes"
"HOL-Computational_Algebra.Polynomial"
"HOL-Number_Theory.Cong"
begin
theorem putnam_2008_b4:
fixes p :: nat
and h :: "int poly"
assumes hp: "prime p"
and hh: "\<forall> i \<in> {0 .. p ^ 2 - 1}. \<forall> j \<in> {0 .. p ^ 2 - 1}. [... |
putnam_2008_b5 | abbrev putnam_2008_b5_solution : Set (ℝ → ℝ) := sorry
-- {fun (x : ℝ) => x + n | n : ℤ} ∪ {fun (x : ℝ) => -x + n | n : ℤ}
theorem putnam_2008_b5
(fqsat : (ℝ → ℝ) → ℚ → Prop := fun f q => ContDiff ℝ 1 f ∧ (∃ p : ℚ, p = f q ∧ p.den = q.den))
(fsat : (ℝ → ℝ) → Prop := fun f => ∀ q : ℚ, fqsat f q)
: ∀ f : (ℝ → ℝ), fsat f ↔... | Find all continuously differentiable functions f : \mathbb{R} \to \mathbb{R} such that for every rational number $q$, the number $f(q)$ is rational and has the same denominator as $q$. | Show that the solution is the set of all functions of the form n + x, n - x where n is any integer. | ['analysis'] | Section putnam_2008_b5.
Require Import Reals Coquelicot.Coquelicot. From mathcomp Require Import div.
Definition putnam_2008_b5_solution := 1.
Theorem putnam_2008_b5:
forall (f: R -> R), continuity f /\ (forall (x: R), ex_derive f x) ->
forall (q: R), exists (n1 n2 d: nat), q = INR (n1 / d) /\ f q = INR (n2 / ... | theory putnam_2008_b5 imports Complex_Main
"HOL-Analysis.Derivative"
begin
definition putnam_2008_b5_solution :: "(real \<Rightarrow> real) set" where "putnam_2008_b5_solution \<equiv> undefined"
(* {f::real\<Rightarrow>real. (\<exists>n::int. f = (\<lambda>x::real. x + n))} \<union> {f::real\<Rightarrow>real. (\<exis... |
putnam_2008_b6 | theorem putnam_2008_b6
(n k : ℕ)
(hnk : n > 0 ∧ k > 0)
: Odd (Set.ncard {s : Equiv.Perm (Fin n) | klimited k n s}) ↔ (n ≡ 0 [MOD 2*k+1] ∨ n ≡ 1 [MOD 2*k+1]) :=
sorry | Let $n$ and $k$ be positive integers. Say that a permutation $\sigma$ of $\{1,2,\dots,n\} is $k-limited$ if \|\sigma(i) - i\| \leq k$ for all $i$. Prove that the number of $k-limited$ permutations $\{1,2,\dots,n\}$ is odd if and only if $n \equiv 0$ or $1 (mod 2k+1)$. | null | ['number_theory'] | Section putnam_2008_b6.
Require Import Ensembles Finite_sets Reals. From mathcomp Require Import div fintype seq ssrbool perm.
Theorem putnam_2008_b6:
forall (n k: nat), n > 0 /\ k > 0 ->
let klimited (sigma: {perm 'I_n}) : Prop := forall (i: 'I_n), Rle (Rabs (INR (nat_of_ord (sigma i)) - INR i)) (INR k) in
... | theory putnam_2008_b6 imports Complex_Main
"HOL-Combinatorics.Permutations"
"HOL-Number_Theory.Cong"
begin
(* uses (nat \<Rightarrow> nat) instead of (Fin n \<Rightarrow> Fin n) *)
definition klimited :: "nat \<Rightarrow> nat \<Rightarrow> (nat \<Rightarrow> nat) \<Rightarrow> bool" where "klimited \<equiv> (\<lambda... |
putnam_2021_a1 | abbrev putnam_2021_a1_solution : ℕ := sorry
-- 578
theorem putnam_2021_a1
(P : List (ℤ × ℤ) → Prop := fun l : List (ℤ × ℤ) => l.length ≥ 1 ∧ l[0]! = (0, 0) ∧ l[l.length-1]! = (2021, 2021) ∧
∀ n ∈ Finset.range (l.length-1), Real.sqrt ((l[n]!.1 - l[n + 1]!.1)^2 + (l[n]!.2 - l[n + 1]!.2)^2) = 5)
: (∃ l : List (ℤ × ℤ), P l... | A grasshopper starts at the origin in the coordinate plane and makes a sequence of hops.
Each hop has length $5$, and after each hop the grasshopper is at a point whose coordinates are both integers; thus, there are $12$ possible locations for the grasshopper after the first hop.
What is the smallest number of hops nee... | The answer is $578$. | ['geometry'] | null | theory putnam_2021_a1 imports Complex_Main
begin
definition putnam_2021_a1_solution :: nat where "putnam_2021_a1_solution \<equiv> undefined"
(* 578 *)
theorem putnam_2021_a1:
fixes P :: "((int \<times> int) list) \<Rightarrow> bool"
assumes "P \<equiv> (\<lambda>l::(int\<times>int) list. length l \<ge> 1 \<and> l... |
putnam_2021_a2 | abbrev putnam_2021_a2_solution : ℝ := sorry
-- Real.exp 1
theorem putnam_2021_a2
(g : ℝ → ℝ)
(hg : ∀ x > 0, Tendsto (fun r : ℝ => ((x + 1) ^ (r + 1) - x ^ (r + 1)) ^ (1 / r)) (𝓝 0) (𝓝 (g x)))
: Tendsto (fun x : ℝ => g x / x) atTop (𝓝 putnam_2021_a2_solution) :=
sorry | For every positive real number $x$, let $g(x)=\lim_{r \to 0}((x+1)^{r+1}-x^{r+1})^\frac{1}{r}$. Find $\lim_{x \to \infty}\frac{g(x)}{x}$. | Show that the limit is $e$. | ['analysis'] | Section putnam_2021_a2.
Require Import Reals. From Coquelicot Require Import Continuity Lim_seq Rbar.
Local Open Scope R.
Definition putnam_2021_a2_solution := exp 1.
Theorem putnam_2021_a2:
let sequence_r_to_0 (n : nat) : R := 1 / INR n in
let f (r x: R) := Rpower (Rpower(x+1)(r+1) - Rpower x (r+1)) 1/r in
... | theory putnam_2021_a2 imports Complex_Main
begin
definition putnam_2021_a2_solution :: real where "putnam_2021_a2_solution \<equiv> undefined"
(* exp 1 *)
theorem putnam_2021_a2:
fixes g :: "real \<Rightarrow> real"
assumes hg: "\<forall>x::real>0. filterlim (\<lambda>r::real. ((x+1) powr (r+1) - x powr (r+1)) pow... |
putnam_2021_a4 | abbrev putnam_2021_a4_solution : ℝ := sorry
-- ((Real.sqrt 2) / 2) * Real.pi * Real.log 2
theorem putnam_2021_a4
(S : ℝ → Set (Fin 2 → ℝ) := fun R : ℝ => {p : (Fin 2 → ℝ) | (p 0)^2 + (p 1)^2 ≤ R^2})
(I : ℝ → ℝ := fun R : ℝ => ∫ p in S R,
(1 + 2*(p 0)^2)/(1 + (p 0)^4 + 6*(p 0)^2*(p 1)^2 + (p 1)^4) - (1 + (p 1)^2)/(2 + (... | Let
\[
I(R) = \iint_{x^2+y^2 \leq R^2} \left( \frac{1+2x^2}{1+x^4+6x^2y^2+y^4} - \frac{1+y^2}{2+x^4+y^4} \right)\,dx\,dy.
\]
Find
\[
\lim_{R \to \infty} I(R),
\]
or show that this limit does not exist. | The limit exists and equals $\frac{\sqrt{2}}{2} \pi \log 2$. | ['analysis'] | Section putnam_2021_a4.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_2021_a4_solution := (sqrt 2 / 2) * PI * ln 2 / ln 10.
Theorem putnam_2021_a4
(I : nat -> R := fun r => RInt (fun x => RInt (fun y => (1 + 2 * x ^ 2) / (1 + x ^ 4 + 6 * x ^ 2 * y ^ 2 + y ^ 4) - (1 + y ^ 2) / (2 + x ^ 4 + y ^ 4)) ... | theory putnam_2021_a4 imports Complex_Main
"HOL-Analysis.Set_Integral"
"HOL-Analysis.Lebesgue_Measure"
begin
definition putnam_2021_a4_solution :: real where "putnam_2021_a4_solution \<equiv> undefined"
(* ((sqrt 2)/2) * pi * ln 2 *)
theorem putnam_2021_a4:
fixes S :: "real \<Rightarrow> ((real^2) set)"
and I :: "... |
putnam_2021_a5 | abbrev putnam_2021_a5_solution : Set ℕ := sorry
-- {j : ℕ | ¬(42 ∣ j) ∧ ¬(46 ∣ j)}
theorem putnam_2021_a5
(j : ℕ)
(A : Finset ℕ)
(S : ℕ → ℕ)
(hA : A = {n : ℕ | 1 ≤ n ∧ n ≤ 2021 ∧ Nat.gcd n 2021 = 1})
(hS : ∀ j' : ℕ, S j' = ∑ n in A, n ^ j')
: (2021 ∣ S j) ↔ j ∈ putnam_2021_a5_solution :=
sorry | Let $A$ be the set of all integers $n$ such that $1 \leq n \leq 2021$ and $\gcd(n,2021)=1$. For every nonnegative integer $j$, let $S(j)=\sum_{n \in A}n^j$. Determine all values of $j$ such that $S(j)$ is a multiple of $2021$. | Show that the values of $j$ in question are those not divisible by either $42$ or $46$. | ['number_theory'] | Section putnam_2021_a5.
Require Import Nat. From mathcomp Require Import bigop div fintype eqtype seq ssrbool ssrnat.
Variables (I : finType) (P : pred I).
Definition putnam_2021_a5_solution (n: nat) := ~(n%|42 \/ n%|46).
Theorem putnam_2021_a5:
forall (j: nat),
let A : pred 'I_2021 := fun n => let m := nat_... | theory putnam_2021_a5 imports Complex_Main
begin
definition putnam_2021_a5_solution :: "nat set" where "putnam_2021_a5_solution \<equiv> undefined"
(* {j::nat. \<not>(42 dvd j) \<and> \<not>(46 dvd j)} *)
theorem putnam_2021_a5:
fixes j :: nat
and A :: "nat set"
and S :: "nat \<Rightarrow> nat"
assumes hA : "A... |
putnam_2021_a6 | abbrev putnam_2021_a6_solution : Prop := sorry
-- True
theorem putnam_2021_a6
(Pcoeff : Polynomial ℤ → Prop)
(Pprod : Polynomial ℤ → Prop)
(hPcoeff : ∀ P : Polynomial ℤ, Pcoeff P = (∀ n : ℕ, P.coeff n = 0 ∨ P.coeff n = 1))
(hPprod : ∀ P : Polynomial ℤ, Pprod P = (∃ Q R : Polynomial ℤ, Q.degree > 0 ∧ R.degree > 0 ∧ P = ... | Let $P(x)$ be a polynomial whose coefficients are all either $0$ or $1$. Suppose that $P(x)$ can be written as a product of two nonconstant polynomials with integer coefficients. Does it follow that $P(2)$ is a composite integer? | Show that it does follow that $P(2)$ is a composite integer. | ['number_theory', 'algebra'] | Section putnam_2021_a6.
From mathcomp Require Import seq ssrnat ssrnum ssralg poly.
Local Open Scope ring_scope.
Definition putnam_2021_a6_solution := True.
Theorem putnam_2021_a6:
forall (R: numDomainType) (p: {poly R}) (i: nat), p`_i = 0 /\ p`_i = 1 ->
exists (q r: {poly R}), size p <> 0%nat /\ size q <> 0... | theory putnam_2021_a6 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_2021_a6_solution :: bool where "putnam_2021_a6_solution \<equiv> undefined"
(* True *)
theorem putnam_2021_a6:
fixes Pcoeff :: "int poly \<Rightarrow> bool"
and Pprod :: "int poly \<Rightarrow> bool"
assumes... |
putnam_2021_b2 | abbrev putnam_2021_b2_solution : ℝ := sorry
-- 2 / 3
theorem putnam_2021_b2
(S : (ℕ → ℝ) → ℝ)
(asum : (ℕ → ℝ) → Prop)
(hS : ∀ a : ℕ → ℝ, S a = ∑' n : ℕ, (n + 1) / 2 ^ (n + 1) * (∏ k : Fin (n + 1), a k.1) ^ ((1 : ℝ) / (n + 1)))
(hasum : ∀ a : ℕ → ℝ, asum a = (∀ k : ℕ, a k ≥ 0) ∧ ∑' k : ℕ, a k = 1)
: (∃ a : ℕ → ℝ, asum a... | Determine the maximum value of the sum $S = \sum_{n=1}^\infty \frac{n}{2^n}(a_1a_2 \dots a_n)^{1/n}$ over all sequences $a_1,a_2,a_3,\dots$ of nonnegative real numbers satisfying $\sum_{k=1}^\infty a_k=1$. | Show that the answer is $2/3$. | ['analysis'] | Section putnam_2021_b2.
Require Import List Reals Coquelicot.Hierarchy Coquelicot.Series.
Definition putnam_2021_b2_solution := 2/3.
Theorem putnam_2021_b2:
let A (a : nat -> R) (n : nat) : R := fold_left Rmult (map a (seq 0 n)) 1 in
let B (a : nat -> R) := Series (fun n => INR n * (Rpower (A a n) 1/(INR n))... | theory putnam_2021_b2 imports Complex_Main
begin
definition putnam_2021_b2_solution :: real where "putnam_2021_b2_solution \<equiv> undefined"
(* 2/3 *)
theorem putnam_2021_b2:
fixes S :: "(nat \<Rightarrow> real) \<Rightarrow> real" and asum :: "(nat \<Rightarrow> real) \<Rightarrow> bool"
defines "S \<equiv... |
putnam_2021_b4 | theorem putnam_2021_b4
(F : ℕ → ℕ)
(hF : ∀ x, x ≥ 2 → F x = F (x - 1) + F (x - 2))
(F01 : F 0 = 0 ∧ F 1 = 1)
: ∀ m, m > 2 → (∃ p, (∏ k : Set.Icc 1 (F m - 1), (k.1 ^ k.1)) % F m = F p) :=
sorry | Let $F_0, F_1, \ldots$ be the sequence of Fibonacci numbers, with $F_0 = 0$, $F_1 = 1$, and $F_n = F_{n-1} + F_{n-2}$ for $n \geq 2$. For $m > 2$, let $R_m$ be the remainder when the product $\prod_{k=1}^{F_{m-1}} k^k$ is divided by $F_m$. Prove that $R_m$ is also a Fibonacci number. | null | ['number_theory'] | Section putnam_2021_b4.
Require Import PeanoNat. From mathcomp Require Import bigop fintype ssrnat.
Theorem putnam_2021_b4:
let F :=
fix f (n: nat) : nat :=
match n with
| O => O
| S O => 1
| S ((S n'') as n') => f n' + f n''
end in
forall (m: n... | theory putnam_2021_b4 imports Complex_Main
begin
theorem putnam_2021_b4:
fixes f :: "nat\<Rightarrow>nat"
assumes hf : "\<forall>x\<ge>2. f x = f (x-1) + f (x-2)"
and f01 : "f 0 = 0 \<and> f 1 = 1"
shows "\<forall>m > 2. \<exists>p. (\<Prod>k=1..(f m - 1). k^k) mod f m = f p"
sorry
end
|
putnam_1972_a1 | theorem putnam_1972_a1
(n : ℕ)
(hn : n > 0)
(fourAP : ℤ → ℤ → ℤ → ℤ → Prop := fun n1 n2 n3 n4 => ∃ o1 o2 o3 o4 : ℤ, {n1, n2, n3, n4} = ({o1, o2, o3, o4} : Set ℤ) ∧ o1 ≤ o2 ∧ o2 ≤ o3 ∧ o3 ≤ o4 ∧ o4-o3 = o3-o2 ∧ o3-o2 = o2-o1)
: ¬ ∃ r : ℕ, r > 0 ∧ r + 3 ≤ n ∧ fourAP (n.choose r) (n.choose (r+1)) (n.choose (r+2)) (n.choos... | Show that there are no four consecutive binomial coefficients ${n \choose r}, {n \choose (r+1)}, {n \choose (r+2)}, {n \choose (r+3)}$ where $n,r$ are positive integers and $r+3 \leq n$, which are in arithmetic progression. | null | ['algebra'] | null | theory putnam_1972_a1 imports Complex_Main
begin
theorem putnam_1972_a1:
fixes n :: nat
and fourAP :: "nat \<Rightarrow> nat \<Rightarrow> nat \<Rightarrow> nat \<Rightarrow> bool"
assumes hn: "n > 0"
defines "fourAP \<equiv> (\<lambda>n1 n2 n3 n4::nat. (\<exists>o1 o2 o3 o4::nat. {n1,n2,n3,n4} = {o1,o2,o3,o4}... |
putnam_1972_a2 | theorem putnam_1972_a2
: (∀ (S : Type*) (_ : Mul S), (∀ x y : S, x * (x * y) = y ∧ ((y * x) * x) = y) → (∀ x y : S, x * y = y * x)) ∧ ∃ (S : Type*) (_ : Mul S), (∀ x y : S, x * (x * y) = y ∧ ((y * x) * x) = y) ∧ ¬(∀ x y z : S, x * (y * z) = (x * y) * z) :=
sorry | Let $S$ be a set and $\cdot$ be a binary operation on $S$ satisfying: (1) for all $x,y$ in $S$, $x \cdot (x \cdot y) = y$ (2) for all $x,y$ in $S$, $(y \cdot x) \cdot x = y$. Show that $\cdot$ is commutative but not necessarily associative. | null | ['abstract_algebra'] | null | theory putnam_1972_a2 imports Complex_Main
begin
(* The existential magma can have at most the cardinality of the real numbers. *)
theorem putnam_1972_a2:
assumes pauncount: "\<exists>pamap::'a\<Rightarrow>real. surj pamap"
shows "(\<forall>(S::'a set)(Smul::'a\<Rightarrow>'a\<Rightarrow>'a). (\<forall>x\<in>S. \<... |
putnam_1972_a3 | abbrev putnam_1972_a3_solution : Set (ℝ → ℝ) := sorry
-- {f | ∃ A B : ℝ, ∀ x ∈ Set.Icc 0 1, f x = A * x + B}
theorem putnam_1972_a3
(x : ℕ → ℝ)
(climit_exists : (ℕ → ℝ) → Prop := fun x => ∃ C : ℝ, Tendsto (fun n => (∑ i in Finset.range n, (x i))/(n : ℝ)) atTop (𝓝 C))
(supercontinuous : (ℝ → ℝ) → Prop := fun f => ∀ (x ... | We call a function $f$ from $[0,1]$ to the reals to be supercontinuous on $[0,1]$ if the Cesaro-limit exists for the sequence $f(x_1), f(x_2), f(x_3), \dots$ whenever it does for the sequence $x_1, x_2, x_3 \dots$. Find all supercontinuous functions on $[0,1]$. | Show that the solution is the set of affine functions. | ['analysis'] | null | theory putnam_1972_a3 imports Complex_Main
begin
(* uses (real \<Rightarrow> real) instead of ({0..1} \<Rightarrow> real) *)
definition putnam_1972_a3_solution :: "(real \<Rightarrow> real) set" where "putnam_1972_a3_solution \<equiv> undefined"
(* {f::real\<Rightarrow>real. (\<exists>A B::real. \<forall>x::real\<in>{... |
putnam_1972_a5 | theorem putnam_1972_a5
(n : ℕ)
(hn : n > 1)
: ¬((n : ℤ) ∣ 2^n - 1) :=
sorry | Show that if $n$ is an integer greater than $1$, then $n$ does not divide $2^n - 1$. | null | ['number_theory'] | null | theory putnam_1972_a5 imports Complex_Main
begin
theorem putnam_1972_a5:
fixes n :: nat
assumes hn: "n > 1"
shows "\<not>(n dvd (2^n - 1))"
sorry
end
|
putnam_1972_a6 | theorem putnam_1972_a6
(f : ℝ → ℝ)
(n : ℤ)
(hn : n ≥ 0)
(hfintegrable: IntegrableOn f (Icc 0 1))
(hfint : ∀ i ∈ Icc 0 (n-1), ∫ x in Icc 0 1, x^i*(f x) = 0)
(hfintlast : ∫ x in Icc 0 1, x^n*(f x) = 1)
: ∃ S, S ⊆ Icc (0 : ℝ) 1 ∧ MeasurableSet S ∧ volume S > 0 ∧ ∀ x ∈ S, |f x| ≥ 2^n * (n + 1) :=
sorry | Let $f$ be an integrable function in $0 \leq x \leq 1$ and suppose for all $0 \leq i \leq n-1, \int_0^1 x^i f(x) dx = 0$. Further suppose that $\int_0^1 x^n f(x) dx = 1$. Show that $|f(x)| \geq 2^n(n+1)$ on a set of positive measure. | null | ['analysis'] | null | theory putnam_1972_a6 imports Complex_Main
"HOL-Analysis.Interval_Integral"
begin
theorem putnam_1972_a6:
fixes f :: "real \<Rightarrow> real"
and n :: nat
assumes hfintegrable: "interval_lebesgue_integrable lebesgue 0 1 f"
and hfint: "\<forall>i::nat\<in>{0..(n-1)}. interval_lebesgue_integral lebesgue 0 1 (\<... |
putnam_1972_b1 | theorem putnam_1972_b1
(S : ℝ → ℝ := fun x : ℝ => ∑' n : ℕ, x^n * (x - 1)^(2*n) / (Nat.factorial n))
(p : ℕ → ℝ)
(hp : ∃ a : ℝ, a > 0 ∧ ∀ x ∈ ball 0 a, ∑' n : ℕ, (p n)*x^n = S x)
: ¬∃ n : ℕ, p n = 0 ∧ p (n + 1) = 0 ∧ p (n + 2) = 0 :=
sorry | Prove that no three consecutive coefficients of the power series of $$\sum_{n = 0}^{\infty} \frac{x^n(x - 1)^{2n}}{n!}$$ all equal $0$. | null | ['analysis'] | null | theory putnam_1972_b1 imports Complex_Main
begin
theorem putnam_1972_b1:
fixes S :: "real \<Rightarrow> real"
and p :: "nat \<Rightarrow> real"
defines "S \<equiv> (\<lambda>x::real. (\<Sum>n::nat. x^n * (x - 1)^(2*n) / (fact n)))"
assumes hp: "\<exists>a::real>0. \<forall>x::real\<in>(ball 0 a). (\<Sum>n::nat... |
putnam_1972_b3 | theorem putnam_1972_b3
(G : Type*) [Group G]
(A B : G)
(hab : A * B * A = B * A^2 * B ∧ A^3 = 1 ∧ (∃ n : ℤ, n > 0 ∧ B^(2*n - 1) = 1))
: B = 1 :=
sorry | Let $A$ and $B$ be two elements in a group such that $ABA = BA^2B$, $A^3 = 1$, and $B^{2n-1} = 1$ for some positive integer $n$. Prove that $B = 1$. | null | ['abstract_algebra'] | null | theory putnam_1972_b3 imports Complex_Main
"HOL-Algebra.Group"
begin
theorem putnam_1972_b3:
fixes G (structure)
and A B :: 'a
assumes Ggroup: "group G"
and abinG: "A \<in> carrier G \<and> B \<in> carrier G"
and hab: "A\<otimes>B\<otimes>A = B\<otimes>A[^]2\<otimes>B \<and> A[^]3 = \<one> \<and> (\<exists>n... |
putnam_1972_b4 | theorem putnam_1972_b4
(n : ℤ)
(hn : n > 1)
(vars : ℝ → ℝ → ℝ → (Fin 3 → ℝ) := fun a b c ↦ fun i ↦ ite (i = 0) a (ite (i = 1) b c))
: ∃ P : MvPolynomial (Fin 3) ℝ, ∀ x : ℝ, x = MvPolynomial.eval (vars (x^n) (x^(n+1)) (x + x^(n+2))) P :=
sorry | Let $n \geq 2$ be an integer. Show that there exists a polynomial $P(x,y,z)$ with integral coefficients such that $x \equiv P(x^n, x^{n+1}, x + x^{n+2})$. | null | ['algebra'] | null | theory putnam_1972_b4 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
theorem putnam_1972_b4:
fixes n :: nat
assumes hn: "n > 1"
shows "\<exists>P::real poly poly poly. \<forall>x::real. x = poly (poly (poly P (monom (monom (x + x^(n+2)) 0) 0)) (monom (x^(n+1)) 0)) (x^n)"
sorry
end
|
putnam_1972_b6 | theorem putnam_1972_b6
(k : ℕ)
(hk : k ≥ 1)
(n : Fin k → ℤ)
(hn : ∀ i : Fin k, n i > 0)
(hn' : ∀ i j : Fin k, i < j → n i < n j)
(zpoly : ℂ → ℂ := fun z => 1 + ∑ i : Fin k, z^(n i))
: ∀ z : ℂ, z ∈ ball 0 ((Real.sqrt 5 - 1)/2) → zpoly z ≠ 0 :=
sorry | Let $n_1 < n_2 < \dots < n_k$ be a set of positive integers. Prove that the polynomail $1 + z^{n_1} + z^{n_2} + \dots + z^{n_k}$ has not roots inside the circle $|z| < (\frac{\sqrt{5}-1}{2}$. | null | ['analysis'] | null | theory putnam_1972_b6 imports Complex_Main
begin
(* uses (nat \<Rightarrow> nat) instead of (Fin k \<Rightarrow> nat) *)
theorem putnam_1972_b6:
fixes k :: nat
and n :: "nat \<Rightarrow> nat"
and zpoly :: "complex \<Rightarrow> complex"
assumes hk: "k \<ge> 1"
and hn: "\<forall>i::nat\<in>{0..(k-1)}. n i > ... |
putnam_1971_a1 | theorem putnam_1971_a1
(S : Set (ℤ × ℤ × ℤ))
(hS : S.ncard = 9)
(L : (ℤ × ℤ × ℤ) × (ℤ × ℤ × ℤ) → Set (ℝ × ℝ × ℝ) := fun ((a, b, c), (d, e, f)) =>
{(t*a + (1-t)*d, t*b + (1-t)*e, t*c + (1-t)*f) | t ∈ Ioo (0 : ℝ) 1})
: ∃ x y z : ℤ, ∃ P Q : ℤ × ℤ × ℤ, P ∈ S ∧ Q ∈ S ∧ P ≠ Q ∧ ((x : ℝ), (y : ℝ), (z : ℝ)) ∈ L (P, Q) :=
sorry | Let $S$ be a set of $9$ lattice points (points with integer coordinates) in $3$-dimensional Euclidean space. Prove that there exists a lattice point along the interior of some line segment that joins two distinct points in $S$. | null | ['geometry', 'combinatorics'] | null | theory putnam_1971_a1 imports Complex_Main
begin
theorem putnam_1971_a1:
fixes S :: "(int \<times> int \<times> int) set"
and L :: "((int \<times> int \<times> int) \<times> (int \<times> int \<times> int)) \<Rightarrow> ((real \<times> real \<times> real) set)"
assumes hS: "card S = 9"
defines "L \<equiv> (\<... |
putnam_1971_a2 | abbrev putnam_1971_a2_solution : Set (Polynomial ℝ) := sorry
-- {Polynomial.X}
theorem putnam_1971_a2
: ∀ P : Polynomial ℝ, (P.eval 0 = 0 ∧ (∀ x : ℝ, P.eval (x^2 + 1) = (P.eval x)^2 + 1)) ↔ P ∈ putnam_1971_a2_solution :=
sorry | Determine all polynomials $P(x)$ such that $P(x^2 + 1) = (P(x))^2 + 1$ and $P(0) = 0$. | Show that the only such polynomial is the identity function. | ['algebra'] | null | theory putnam_1971_a2 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
definition putnam_1971_a2_solution :: "(real poly) set" where "putnam_1971_a2_solution \<equiv> undefined"
(* {monom 1 1} *)
theorem putnam_1971_a2:
shows "\<forall>P::real poly. ((poly P 0 = 0 \<and> (\<forall>x::real. poly P (x... |
putnam_1971_a3 | theorem putnam_1971_a3
(a b c : ℝ × ℝ)
(R : ℝ)
(habclattice : a.1 = round a.1 ∧ a.2 = round a.2 ∧ b.1 = round b.1 ∧ b.2 = round b.2 ∧ c.1 = round c.1 ∧ c.2 = round c.2)
(habcneq : a ≠ b ∧ a ≠ c ∧ b ≠ c)
(oncircle : (ℝ × ℝ) → ℝ → (ℝ × ℝ) → Prop := fun C r p => Euclidean.dist p C = r)
(hcircle : ∃ C : ℝ × ℝ, oncircle C R... | The three vertices of a triangle of sides $a,b,c$ are lattice points and lie on a circle of radius $R$. Show that $abc \geq 2R$. | null | ['geometry'] | null | theory putnam_1971_a3 imports Complex_Main
"HOL-Analysis.Finite_Cartesian_Product"
begin
theorem putnam_1971_a3:
fixes a b c :: "real^2"
and oncircle :: "(real^2) \<Rightarrow> real \<Rightarrow> (real^2) \<Rightarrow> bool"
and R :: real
assumes habclattice: "a$1 = round (a$1) \<and> a$2 = round (a$2) \<and> ... |
putnam_1971_a4 | theorem putnam_1971_a4
(ε : ℝ)
(hε : 0 < ε ∧ ε < 1)
(P : ℕ → ℝ → MvPolynomial (Fin 2) ℝ := fun n δ => (MvPolynomial.X 0 + MvPolynomial.X 1)^n * ((MvPolynomial.X 0)^2 - (MvPolynomial.C (2 - δ))*(MvPolynomial.X 0)*(MvPolynomial.X 1) + (MvPolynomial.X 1)^2))
: ∃ N : ℕ, ∀ n ≥ N, ∀ i : Fin 2 →₀ ℕ, MvPolynomial.coeff i (P n ... | Show that for $\epsilon \in (0,1)$, the expression $(x + y)^n (x^2 - 2-\epsilon)xy + y^2)$ is a polynomial with positive coefficients for $n$ sufficiently large, where $n$ is an integer. | null | ['analysis'] | null | theory putnam_1971_a4 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
theorem putnam_1971_a4:
fixes \<epsilon> :: real
and P :: "nat \<Rightarrow> real \<Rightarrow> (real poly poly)"
assumes h\<epsilon>: "0 < \<epsilon> \<and> \<epsilon> < 1"
defines "P \<equiv> (\<lambda>(n::nat)(\<delta>::... |
putnam_1971_a6 | theorem putnam_1971_a6
(c : ℝ)
(hc : ∀ n : ℤ, n > 0 → ∃ m : ℤ, (n : ℝ)^c = m)
: ∃ m : ℕ, c = m :=
sorry | Let $c$ be a real number such that $n^c$ is an integer for every positive integer $n$. Show that $c$ is a non-negative integer. | null | ['number_theory'] | null | theory putnam_1971_a6 imports Complex_Main
begin
theorem putnam_1971_a6:
fixes c :: real
assumes hc: "\<forall>n::nat. (n > 0 \<longrightarrow> (\<exists>m::int. n powr c = m))"
shows "\<exists>m::nat. c = m"
sorry
end
|
putnam_1971_b1 | theorem putnam_1971_b1
(S : Type*) [Mul S]
(hself : ∀ x : S, x * x = x)
(h2 : ∀ x y z : S, (x * y) * z = (y * z) * x)
: ∀ x y z : S, (x * y) * z = x * (y * z) ∧ x * y = y * x :=
sorry | Let $S$ be a set and let $\cdot$ be a binary operation on $S$ satisfying the two following laws: (1) for all $x$ in $S$, $x = x \cdot x$, (2) for all $x,y,z$ in $S$, $(x \cdot y) \cdot z) = (y \cdot z) \cdot x$. Show that $\cdot$ is associative and commutative. | null | ['abstract_algebra'] | null | theory putnam_1971_b1 imports Complex_Main
begin
theorem putnam_1971_b1:
fixes Smul :: "'S \<Rightarrow> 'S \<Rightarrow> 'S" (infixl "\<^bold>*" 70)
assumes hself: "\<forall>x::'S. x \<^bold>* x = x"
and h2: "\<forall>x y z::'S. (x \<^bold>* y) \<^bold>* z = (y \<^bold>* z) \<^bold>* x"
shows "\<forall>x y z:... |
putnam_1971_b2 | abbrev putnam_1971_b2_solution : Set (ℝ → ℝ) := sorry
-- {fun x : ℝ => (x^3 - x^2 - 1)/(2 * x * (x - 1))}
theorem putnam_1971_b2
(S : Set ℝ := univ \ {0, 1})
(P : (ℝ → ℝ) → Prop := fun (F : ℝ → ℝ) => ∀ x ∈ S, F x + F ((x - 1)/x) = 1 + x)
: (∀ F ∈ putnam_1971_b2_solution, P F) ∧ ∀ f : ℝ → ℝ, P f → ∃ F ∈ putnam_1971_b2_s... | Find all functions $F : \mathbb{R} \setminus \{0, 1\} \to \mathbb{R}$ that satisfy $F(x) + F\left(\frac{x - 1}{x}\right) = 1 + x$ for all $x \in \mathbb{R} \setminus \{0, 1\}$. | The only such function is $F(x) = \frac{x^3 - x^2 - 1}{2x(x - 1)}$. | ['algebra'] | null | theory putnam_1971_b2 imports Complex_Main
begin
definition putnam_1971_b2_solution :: "(real \<Rightarrow> real) set" where "putnam_1971_b2_solution \<equiv> undefined"
(* {(\<lambda>x::real. (x^3 - x^2 - 1) / (2*x*(x - 1)))} *)
theorem putnam_1971_b2:
fixes S :: "real set"
and P :: "(real \<Rightarrow> real) \<R... |
putnam_1971_b6 | theorem putnam_1971_b6
(δ : ℤ → ℤ := fun n => sSup {t | Odd t ∧ t ∣ n})
: ∀ x : ℤ, x > 0 → |∑ i in Finset.Icc 1 x, (δ i)/(i : ℚ) - 2*x/3| < 1 :=
sorry | Let $\delta(x) be the greatest odd divisor of the positive integer $x$. Show that $|\sum_{n = 1}^x \delta(n)/n - 2x/3| < 1$ for all positive integers $x$. | null | ['number_theory'] | null | theory putnam_1971_b6 imports Complex_Main
begin
theorem putnam_1971_b6:
fixes \<delta> :: "nat \<Rightarrow> nat"
defines "\<delta> \<equiv> (\<lambda>n::nat. (GREATEST t::nat. odd t \<and> t dvd n))"
shows "\<forall>x::nat. (x > 0 \<longrightarrow> \<bar>(\<Sum>i::nat=1..x. (\<delta> i)/i) - 2*x/3\<bar> < 1)"
... |
putnam_1999_a1 | abbrev putnam_1999_a1_solution : Prop := sorry
-- True
theorem putnam_1999_a1
: putnam_1999_a1_solution ↔ ∃ f g h : Polynomial ℝ, ∀ x : ℝ, |f.eval x| - |g.eval x| + h.eval x = if x < -1 then -1 else (if (x ≤ 0) then 3 * x + 2 else -2 * x + 2) :=
sorry | Find polynomials $f(x)$,$g(x)$, and $h(x)$, if they exist, such that for all $x$, \[|f(x)|-|g(x)|+h(x) = \begin{cases} -1 & \mbox{if $x<-1$} \\3x+2 & \mbox{if $-1 \leq x \leq 0$} \\-2x+2 & \mbox{if $x>0$.}\end{cases}\]? | Show that the answer is such functions do exist. | ['algebra'] | null | theory putnam_1999_a1 imports
Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
(* Note: The actual problem asks to "find" such polynomials as well - but the solution does not give a set of all possible solutions *)
(* So we would need to do the analysis ourselves, the following formalization should work. *)
d... |
putnam_1999_a2 | theorem putnam_1999_a2
(p : Polynomial ℝ)
(hp : ∀ x : ℝ, p.eval x ≥ 0)
: ∃ k : ℕ, ∃ f : Fin k → Polynomial ℝ, k > 0 ∧
∀ x : ℝ, p.eval x = ∑ j : Fin k, ((f j).eval x) ^ 2 :=
sorry | Let $p(x)$ be a polynomial that is nonnegative for all real $x$. Prove that for some $k$, there are polynomials $f_1(x),\dots,f_k(x$) such that \[p(x) = \sum_{j=1}^k (f_j(x))^2.\] | null | ['algebra'] | null | theory putnam_1999_a2 imports Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
theorem putnam_1999_a2:
fixes p :: "real poly"
assumes hpos : "\<forall>x. poly p x \<ge> 0"
shows "\<exists>S :: real poly set . \<forall>x. finite S \<and> poly p x = (\<Sum>s \<in> S. (poly s x)^2)"
sorry
end
|
putnam_1999_a3 | theorem putnam_1999_a3
(f : ℝ → ℝ := fun x => 1/(1 - 2 * x - x^2))
(a : ℕ → ℝ)
(hf : ∃ ε > 0, ∀ x ∈ ball 0 ε, Tendsto (λ n => ∑ i in Finset.range n, (a n) * x^n) atTop (𝓝 (f x)))
: ∀ n : ℕ, ∃ m : ℕ, (a n)^2 + (a (n + 1))^2 = a m :=
sorry | Consider the power series expansion \[\frac{1}{1-2x-x^2} = \sum_{n=0}^\infty a_n x^n.\] Prove that, for each integer $n\geq 0$, there is an integer $m$ such that \[a_n^2 + a_{n+1}^2 = a_m .\] | null | ['algebra'] | null | theory putnam_1999_a3 imports
Complex_Main
"HOL-Analysis.Elementary_Metric_Spaces"
begin
theorem putnam_1999_a3:
fixes f :: "real \<Rightarrow> real"
and a :: "nat \<Rightarrow> real"
defines "f \<equiv> \<lambda> x. 1 / (1 - 2 * x - x ^ 2)"
assumes hf: "\<exists> \<epsilon> > 0. \<forall> x \<in> ball 0 \<eps... |
putnam_1999_a4 | abbrev putnam_1999_a4_solution : ℝ := sorry
-- 9/32
theorem putnam_1999_a4
: Tendsto (fun i => ∑ m in Finset.range i, ∑' n : ℕ, (((m + 1)^2*(n+1))/(3^(m + 1) * ((n+1)*3^(m + 1) + (m + 1)*3^(n+1))) : ℝ)) atTop (𝓝 putnam_1999_a4_solution) :=
sorry | Sum the series \[\sum_{m=1}^\infty \sum_{n=1}^\infty \frac{m^2 n}{3^m(n3^m+m3^n)}.\] | Show that the solution is 9/32. | ['number_theory'] | Section putnam_1999_a4.
Require Import Reals Coquelicot.Coquelicot.
Definition putnam_1999_a4_solution := 1.
Theorem putnam_1999_a4:
let f (m n: nat) := INR ((m + 1) ^ 2 * n) / INR (3 ^ m * (n * 3 ^ m + m * 3 ^ n)) in
let fn (n: nat) := Lim_seq (fun mInc => sum_n (fun m => f m n) mInc) in
Lim_seq (fun nInc... | theory putnam_1999_a4 imports
Complex_Main
begin
definition putnam_1999_a4_solution :: real where "putnam_1999_a4_solution \<equiv> undefined"
(* 9 / 32 *)
theorem putnam_1999_a4:
shows "(\<Sum> m :: nat. \<Sum> n :: nat. (m + 1) ^ 2 * (n + 1) / (3 ^ (m + 1) * ((n + 1) * 3 ^ (m + 1) + (m + 1) * 3 ^ (n + 1)))) = putn... |
putnam_1999_a5 | theorem putnam_1999_a5
: ∃ C : ℝ, ∀ p : Polynomial ℝ, p.degree = 1999 → ‖p.eval 0‖ ≤ C * ∫ x in (-1)..1, ‖p.eval x‖ :=
sorry | Prove that there is a constant $C$ such that, if $p(x)$ is a polynomial of degree 1999, then \[|p(0)|\leq C \int_{-1}^1 |p(x)|\,dx.\] | null | ['analysis'] | Section putnam_1999_a5.
Require Import Reals Coquelicot.Coquelicot.
Theorem putnam_1999_a5:
let p (a: nat -> R) (x: R) := sum_n (fun i => a i * x ^ i) 2000 in
forall (a: nat -> R), exists (c: R),
Rabs (p a 0) <= c * RInt (fun x => Rabs (p a x)) (-1) 1.
Proof. Admitted.
End putnam_1999_a5. | theory putnam_1999_a5 imports
Complex_Main
"HOL-Computational_Algebra.Polynomial"
"HOL-Analysis.Interval_Integral"
begin
theorem putnam_1999_a5:
shows "\<exists> C :: real. \<forall> p :: real poly. degree p = 1999 \<longrightarrow> \<bar>poly p 0\<bar> \<le> C * (interval_lebesgue_integral lebesgue (-1) 1 (\<lambda... |
putnam_1999_a6 | theorem putnam_1999_a6
(a : ℤ → ℝ)
(ha1 : a 1 = 1)
(ha2 : a 2 = 2)
(ha3 : a 3 = 24)
(hange4 : ∀ n : ℕ, n ≥ 4 → a n = (6 * (a (n - 1))^2 * (a (n - 3)) - 8 * (a (n - 1)) * (a (n - 2))^2)/(a (n - 2) * a (n - 3)))
: ∀ n, n ≥ 1 → (∃ k : ℤ, a n = k * n) :=
sorry | The sequence $(a_n)_{n\geq 1}$ is defined by $a_1=1, a_2=2, a_3=24,$ and, for $n\geq 4$, \[a_n = \frac{6a_{n-1}^2a_{n-3} - 8a_{n-1}a_{n-2}^2}{a_{n-2}a_{n-3}}.\] Show that, for all n, $a_n$ is an integer multiple of $n$. | null | ['algebra'] | Section putnam_1999_a6.
Require Import Reals Coquelicot.Coquelicot.
Theorem putnam_1999_a6:
let fix a (n: nat) :=
match n with
| O => 1
| S O => 2
| S (S O) => 24
| S (S ((S n'') as n') as n) => (6 * a n ^ 2 * a n'' - 8 * a n * a n' ^ 2) / (a n' * a n'')
end in
fora... | theory putnam_1999_a6 imports
Complex_Main
begin
theorem putnam_1999_a6:
fixes a :: "nat \<Rightarrow> real"
assumes ha1: "a 1 = 1"
and ha2: "a 2 = 2"
and ha3: "a 3 = 24"
and hange4: "\<forall> n :: nat. n \<ge> 4 \<longrightarrow> a n = (6 * (a (n - 1)) ^ 2 * (a (n - 3)) - 8 * (a (n - 1)) * (a (n - 2)) ^ 2)... |
putnam_1999_b2 | theorem putnam_1999_b2
(P Q : Polynomial ℂ)
(hQ : Q.natDegree = 2)
(hP : ∀ x : ℂ, P.eval x = (Q.eval x) * (Polynomial.derivative^[2] P).eval x)
: (∃ x1 x2 : ℂ, x1 ≠ x2 ∧ P.eval x1 = 0 ∧ P.eval x2 = 0) → (∃ f : Fin (P.natDegree) → ℂ, (∀ i j : Fin (P.natDegree), i ≠ j → f i ≠ f j) ∧ (∀ i : Fin (P.natDegree), P.eval (f i)... | Let $P(x)$ be a polynomial of degree $n$ such that $P(x)=Q(x)P''(x)$, where $Q(x)$ is a quadratic polynomial and $P''(x)$ is the second derivative of $P(x)$. Show that if $P(x)$ has at least two distinct roots then it must have $n$ distinct roots. | null | ['analysis'] | Section putnam_1999_b2.
Require Import List Reals Coquelicot.Coquelicot.
Theorem putnam_1999_b2:
forall (a1 a2: nat -> R) (n: nat),
let p (x: R) := sum_n (fun i => a1 i * x ^ i) n in
let q (x: R) := sum_n (fun i => a2 i * x ^ i) 2 in
forall (x: R), p x = q x * (Derive_n (fun x => p x) 2) x /\
exist... | theory putnam_1999_b2 imports
Complex_Main
"HOL-Computational_Algebra.Polynomial"
begin
theorem putnam_1999_b2:
fixes P Q :: "complex poly"
assumes hQ: "degree Q = 2"
assumes hP: "\<forall> x :: complex. poly P x = poly Q x * poly ((pderiv^^2) P) x"
shows "(\<exists> x1 x2 :: complex. x1 \<noteq> x2 \<and> pol... |
Subsets and Splits
Linear Algebra Train Data
Retrieves all entries from the train dataset that have 'linear_algebra' in their tags, providing a basic filtered view of the data.