name
stringlengths
14
14
rocq_statement
stringlengths
175
1.42k
lean_statement
stringlengths
280
1.24k
putnam_1966_b6
From mathcomp Require Import all_ssreflect ssrnum ssralg. From mathcomp Require Import reals exp sequences derive topology normedtype. From mathcomp Require Import classical_sets cardinality. Import numFieldNormedType.Exports. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Ope...
import Mathlib open Topology Filter /-- Prove that any solution $y(x)$ to the differential equation $y'' + e^{x}y = 0$ remains bounded as $x$ goes to $+\infty$. -/ theorem putnam_1966_b6 (y : ℝ β†’ ℝ) (hy : Differentiable ℝ y ∧ Differentiable ℝ (deriv y)) (diffeq : deriv (deriv y) + Real.exp * y = 0) : βˆƒ r s N : ℝ, βˆ€ x...
putnam_1994_b4
Require Import Nat List Reals Coquelicot.Coquelicot. Import ListNotations. Theorem putnam_1994_b4 (gcdn := fix gcd_n (args : list nat) : nat := match args with | nil => 0%nat | h :: args' => gcd h (gcd_n args') end) (Mmultn := fix Mmult_n {T : Ring} {n : nat} (A : matrix n n) (p : ...
import Mathlib open Filter Topology /-- For $n \geq 1$, let $d_n$ be the greatest common divisor of the entries of $A^n-I$, where $A=\begin{pmatrix} 3 & 2 \\ 4 & 3 \end{pmatrix}$ and $I=\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$. Show that $\lim_{n \to \infty} d_n=\infty$. -/ theorem putnam_1994_b4 (matgcd : Matri...
putnam_1967_a3
From mathcomp Require Import all_ssreflect all_algebra. From mathcomp Require Import reals normedtype. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Variable R : realType. Definition putnam_1967_a3_solution : nat := 5. Theorem putnam_1967_a3 (pform...
import Mathlib open Polynomial abbrev putnam_1967_a3_solution : β„• := sorry -- 5 /-- Consider polynomial forms $ax^2-bx+c$ with integer coefficients which have two distinct zeros in the open interval $0<x<1$. Exhibit with a proof the least positive integer value of $a$ for which such a polynomial exists. -/ theorem pu...
putnam_1988_b2
Require Import Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1988_b2_solution := True. Theorem putnam_1988_b2 : (forall (a: R), a >= 0 -> forall (x: R), pow (x + 1) 2 >= a * (a + 1) -> pow x 2 >= a * (a - 1)) <-> putnam_1988_b2_solution. Proof. Admitted.
import Mathlib open Set Filter Topology abbrev putnam_1988_b2_solution : Prop := sorry -- True /-- Prove or disprove: If $x$ and $y$ are real numbers with $y \geq 0$ and $y(y+1) \leq (x+1)^2$, then $y(y-1) \leq x^2$. -/ theorem putnam_1988_b2 : (βˆ€ x y : ℝ, (y β‰₯ 0 ∧ y * (y + 1) ≀ (x + 1) ^ 2) β†’ (y * (y - 1) ≀ x ^ 2)) ...
putnam_1986_a3
Require Import Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1986_a3_solution := PI / 2. Theorem putnam_1986_a3 (cot : R -> R) (fcot : cot = fun t => cos t / sin t) (arccot : R -> R) (harccot : forall t : R, t >= 0 -> 0 < arccot t <= PI / 2 /\ cot (arccot t) = t) : Series (fun n => ar...
import Mathlib open Real noncomputable abbrev putnam_1986_a3_solution : ℝ := sorry -- Real.pi / 2 /-- Evaluate $\sum_{n=0}^\infty \mathrm{Arccot}(n^2+n+1)$, where $\mathrm{Arccot}\,t$ for $t \geq 0$ denotes the number $\theta$ in the interval $0 < \theta \leq \pi/2$ with $\cot \theta = t$. -/ theorem putnam_1986_a3 ...
putnam_2004_b5
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals sequences topology normedtype exp. From mathcomp Require Import classical_sets. Import numFieldNormedType.Exports. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. L...
import Mathlib open Nat Topology Filter abbrev putnam_2004_b5_solution : ℝ := sorry -- 2 / Real.exp 1 /-- Evaluate $\lim_{x \to 1^-} \prod_{n=0}^\infty \left(\frac{1+x^{n+1}}{1+x^n}\right)^{x^n}$. -/ theorem putnam_2004_b5 (xprod : ℝ β†’ ℝ) (hxprod : βˆ€ x ∈ Set.Ioo 0 1, Tendsto (fun N ↦ ∏ n ∈ Finset.range ...
putnam_1965_a5
Require Import Nat Finite_sets. From mathcomp Require Import fintype perm. Definition putnam_1965_a5_solution : nat -> nat := (fun n : nat => 2 ^ (n - 1)). Theorem putnam_1965_a5 : forall n : nat, n > 0 -> cardinal {perm 'I_n} (fun p : {perm 'I_n} => forall m : 'I_n, m > 0 -> exists k : 'I_n, k < m /\ (nat_of_ord (...
import Mathlib open EuclideanGeometry Topology Filter Complex abbrev putnam_1965_a5_solution : β„• β†’ β„• := sorry -- fun n => 2^(n - 1) /-- How many orderings of the integers from $1$ to $n$ satisfy the condition that, for every integer $i$ except the first, there exists some earlier integer in the ordering which differs...
putnam_1982_b5
Require Import Reals Coquelicot.Coquelicot. Open Scope R. Theorem putnam_1982_b5 (F := fix f (n: nat) (x: R) := match n with | O => exp 1 | S n' => ln x / ln (f n' x) end) : forall (x: R), x > Rpower (exp 1) (exp 1) -> ex_finite_lim_seq (fun n => F n x) /\ let g (x: R) := ...
import Mathlib open Set Function Filter Topology Polynomial Real /-- 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...
putnam_2023_a1
From mathcomp Require Import all_ssreflect ssrnum ssralg. From mathcomp Require Import reals trigo normedtype derive topology sequences. From mathcomp Require Import classical_sets. Import numFieldNormedType.Exports. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ri...
import Mathlib open Nat abbrev putnam_2023_a1_solution : β„• := sorry -- 18 /-- 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$. -/ theorem putnam_2023_a1 (f : β„• β†’ ℝ β†’ ℝ) (hf : βˆ€ n > 0, f n = fun x : ℝ => ∏ i ∈ Finset.Icc 1 n,...
putnam_2003_b6
Require Import Reals Coquelicot.Coquelicot. Theorem putnam_2003_b6 (f : R -> R) (hf : continuity f) : 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.
import Mathlib open MvPolynomial Set Nat /-- 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. \] -/ theorem putnam_2003_b6 (f : ℝ β†’ ℝ) (hf : Continuous f) : (∫ x in (0 : ℝ)..1, (∫ y in (0 : ℝ)..1, |f x ...
putnam_1979_a3
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals sequences. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Variable R : realType. Definition putnam_1979_a3_solution : (R*R)%type -> Prop := fun '(a, b) => exists ...
import Mathlib abbrev putnam_1979_a3_solution : (ℝ Γ— ℝ) β†’ Prop := sorry -- fun (a, b) => βˆƒ m : β„€, a = m ∧ b = m /-- Let $x_1, x_2, x_3, \dots$ be a sequence of nonzero real numbers such that $$x_n = \frac{x_{n-2}x_{n-1}}{2x_{n-2}-x_{n-1}}$$ for all $n \ge 3$. For which real values of $x_1$ and $x_2$ does $x_n$ attain ...
putnam_1965_b4
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals normedtype sequences topology. From mathcomp Require Import classical_sets. Import numFieldNormedType.Exports. Import Order.TTheory GRing.Theory Num.Theory. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit ...
import Mathlib open EuclideanGeometry Topology Filter Complex noncomputable abbrev putnam_1965_b4_solution : ((((ℝ β†’ ℝ) β†’ (ℝ β†’ ℝ)) Γ— ((ℝ β†’ ℝ) β†’ (ℝ β†’ ℝ))) Γ— ((Set ℝ) Γ— (ℝ β†’ ℝ))) := sorry -- ((fun h : ℝ β†’ ℝ => h + (fun x : ℝ => x), fun h : ℝ β†’ ℝ => h + (fun _ : ℝ => 1)), ({x : ℝ | x β‰₯ 0}, Real.sqrt)) /-- Let $$f(x, n) ...
putnam_1986_a1
Require Import Reals Ensembles Coquelicot.Coquelicot. Open Scope R. Definition putnam_1986_a1_solution := 18. Theorem putnam_1986_a1 (f : R -> R := fun x => pow x 3 - 3 * x) (T : Ensemble R := fun x => pow x 4 + 36 <= 13 * pow x 2) : (forall x : R, In R T x -> putnam_1986_a1_solution >= f x) /\ (exists ...
import Mathlib abbrev putnam_1986_a1_solution : ℝ := sorry -- 18 /-- Find, with explanation, the maximum value of $f(x)=x^3-3x$ on the set of all real numbers $x$ satisfying $x^4+36 \leq 13x^2$. -/ theorem putnam_1986_a1 (S : Set ℝ) (f : ℝ β†’ ℝ) (hS : S = {x : ℝ | x ^ 4 + 36 ≀ 13 * x ^ 2}) (hf : f = fun x ↦...
putnam_1966_b2
From mathcomp Require Import all_ssreflect all_algebra. From mathcomp Require Import classical_sets. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Local Open Scope classical_set_scope. Theorem putnam_1966_b2 (S : int -> set int := fun n => [set i |...
import Mathlib /-- Prove that, for any ten consecutive integers, at least one is relatively prime to all of the others. -/ theorem putnam_1966_b2 (S : β„€ β†’ Set β„€) (hS : S = fun n : β„€ => {n, n + 1, n + 2, n + 3, n + 4, n + 5, n + 6, n + 7, n + 8, n + 9}) : βˆ€ n : β„€, n > 0 β†’ (βˆƒ k ∈ S n, βˆ€ m ∈ S n, k β‰  m β†’ IsCoprime m k) :...
putnam_1985_a5
Require Import Nat Reals List Coquelicot.Coquelicot. Open Scope nat_scope. Definition putnam_1985_a5_solution (n : nat) := n = 3 \/ n = 4 \/ n = 7 \/ n = 8. Theorem putnam_1985_a5 (F : nat -> R -> R := fun n x => fold_right Rmult 1%R (map (fun i : nat => cos (INR i * x)) (seq 1 n))) : forall (n: nat), 1 <= n <=...
import Mathlib open Set Filter Topology Real abbrev putnam_1985_a5_solution : Set β„• := sorry -- {3, 4, 7, 8} /-- Let $I_m = \int_0^{2\pi} \cos(x)\cos(2x)\cdots \cos(mx)\,dx$. For which integers $m$, $1 \leq m \leq 10$ is $I_m \neq 0$? -/ theorem putnam_1985_a5 (I : β„• β†’ ℝ) (hI : I = fun (m : β„•) ↦ ∫ x in (0)..(...
putnam_1983_a6
Require Import Reals Coquelicot.Coquelicot. Definition putnam_1983_a6_solution := 2 / 9. Theorem putnam_1983_a6 (F : R -> R := fun a => (a ^ 4 / exp (a ^ 3)) * RInt (fun x => RInt (fun y => exp (x ^ 3 + y ^ 3)) 0 (a - x)) 0 a) : filterlim F (Rbar_locally p_infty) (locally putnam_1983_a6_solution). Proof. Admitt...
import Mathlib open Nat Filter Topology Real noncomputable abbrev putnam_1983_a6_solution : ℝ := sorry -- 2 / 9 /-- 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$. -/ theorem putnam_1983_a6 (F : ℝ β†’ ℝ) (hF : F = fun a ...
putnam_1997_a5
Require Import Nat Ensembles Finite_sets List Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1997_a5_solution := True. Theorem putnam_1997_a5 (E: Ensemble (list nat) := fun l => length l = 10%nat /\ (forall i : nat, lt i 10 -> gt (nth i l 0%nat) 0) /\ sum_n (fun i => 1/ INR (nth i l 0%nat)) 9 = 1) ...
import Mathlib open Filter Topology abbrev putnam_1997_a5_solution : Prop := sorry -- True /-- Let $N_n$ denote the number of ordered $n$-tuples of positive integers $(a_1,a_2,\ldots,a_n)$ such that $1/a_1 + 1/a_2 +\ldots + 1/a_n=1$. Determine whether $N_{10}$ is even or odd. -/ theorem putnam_1997_a5 (N : (n : β„•+) ...
putnam_2003_a3
Require Import Reals Coquelicot.Coquelicot. Definition putnam_2003_a3_solution := 2 * sqrt 2 - 1. Theorem putnam_2003_a3 (f : R -> R := fun x => Rabs (sin x + cos x + tan x + 1 / tan x + 1 / cos x + 1 / sin x)) : (exists x : R, f x = putnam_2003_a3_solution) /\ (forall x : R, f x >= putnam_2003_a3_solution). P...
import Mathlib open Set noncomputable abbrev putnam_2003_a3_solution : ℝ := sorry -- 2 * Real.sqrt 2 - 1 /-- Find the minimum value of $|\sin x+\cos x+\tan x+\cot x+\sec x+\csc x|$ for real numbers $x$. -/ theorem putnam_2003_a3 (f : ℝ β†’ ℝ) (hf : βˆ€ x : ℝ, f x = |Real.sin x + Real.cos x + Real.tan x + 1 / Real...
putnam_1991_b4
Require Import Nat Reals ZArith Znumtheory Binomial Coquelicot.Coquelicot. Theorem putnam_1991_b4 (p: nat) (hp : odd p = true /\ prime (Z.of_nat p)) (expr : R := sum_n (fun j => Binomial.C p j * Binomial.C (p + j) j) p) : (floor expr) mod (Z.pow (Z.of_nat p) 2) = Z.add (Z.pow 2 (Z.of_nat p)) 1. Proof. ...
import Mathlib open Filter Topology /-- Suppose $p$ is an odd prime. Prove that $\sum_{j=0}^p \binom{p}{j}\binom{p+j}{j} \equiv 2^p+1 \pmod{p^2}$. -/ theorem putnam_1991_b4 (p : β„•) (podd : Odd p) (pprime : Prime p) : (βˆ‘ j : Fin (p + 1), (p.choose j) * ((p + j).choose j)) ≑ (2 ^ p + 1) [MOD (p ^ 2)] := sorry
putnam_1972_b5
From GeoCoq Require Import Main.Tarski_dev.Ch16_coordinates_with_functions. Context `{T3D:Tarski_3D}. Theorem putnam_1972_b5 (A B C D : Tpoint) (hnonplanar : ~Coplanar A B C D) (hangles : Ang A B C = Ang C D A /\ Ang B C D = Ang D A B) : (Cong A B C D /\ Cong B C D A). Proof. Admitted.
import Mathlib open EuclideanGeometry Set Metric /-- Let $ABCD$ be a skew (non-planar) quadrilateral. Prove that if $\angle ABC = \angle CDA$ and $\angle BCD = \angle DAB$, then $AB = CD$ and $AD = BC$. -/ theorem putnam_1972_b5 (A B C D : EuclideanSpace ℝ (Fin 3)) (hnonplanar : Β¬Coplanar ℝ {A, B, C, D}) (hangles : ∠...
putnam_2022_b2
Require Import Ensembles Finite_sets Reals. Require Import GeoCoq.Main.Tarski_dev.Ch16_coordinates_with_functions. Context `{T2D:Tarski_2D} `{TE:@Tarski_euclidean Tn TnEQD}. Definition vect3:= (F * F * F)%type. Definition cross_prod (v w : vect3) := let '(v1, v2, v3) := v in let '(w1, w2, w3) := w in (SubF (MulF v...
import Mathlib open Polynomial abbrev putnam_2022_b2_solution : Set β„• := sorry -- {1, 7} /-- Let $\times$ represent the cross product in $\mathbb{R}^3$. For what positive integers $n$ does there exist a set $S \subset \mathbb{R}^3$ with exactly $n$ elements such that $S=\{v \times w:v,w \in S\}$? -/ theorem putnam_20...
putnam_1962_b5
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Open Scope ring_scope. Variable R : realType. Theorem putnam_1962_b5 (n : nat) (ng1 : gt n 1) (sumf : nat -> R := fun N => \sum_(1 ...
import Mathlib open MeasureTheory /-- Prove that for every integer $n$ greater than 1: \[ \frac{3n+1}{2n+2} < \left( \frac{1}{n} \right)^n + \left(\frac{2}{n} \right)^n + \cdots + \left(\frac{n}{n} \right)^n < 2. \] -/ theorem putnam_1962_b5 (n : β„€) (ng1 : n > 1) : (3 * (n : ℝ) + 1) / (2 * n + 2) < βˆ‘ i : Finset.Icc 1...
putnam_1998_b4
Require Import Nat ZArith Reals Coquelicot.Coquelicot. Definition putnam_1998_b4_solution : nat -> nat -> Prop := (fun m n : nat => forall m2 n2 : nat, (m mod (2 ^ m2) = 0%nat /\ m mod (2 ^ (m2 + 1)) <> 0%nat /\ n mod (2 ^ n2) = 0%nat /\ n mod (2 ^ n2 + 1) <> 0%nat) -> m2 <> n2). Theorem putnam_1998_b4 (hsum : nat ...
import Mathlib open Set Function Metric abbrev putnam_1998_b4_solution : Set (β„• Γ— β„•) := sorry -- {nm | let ⟨n,m⟩ := nm; multiplicity 2 n β‰  multiplicity 2 m} /-- Find necessary and sufficient conditions on positive integers $m$ and $n$ so that \[\sum_{i=0}^{mn-1} (-1)^{\lfloor i/m \rfloor +\lfloor i/n\rfloor}=0.\] -/ ...
putnam_2011_b6
Require Import Nat List Factorial Ensembles Finite_sets Reals Znumtheory ZArith Coquelicot.Coquelicot. Open Scope nat_scope. Theorem putnam_2011_b6 (p: nat) (hp : prime (Z.of_nat p) /\ odd p = true) : exists (E: Ensemble nat), (forall (n: nat), E n -> lt n p) /\ cardinal nat E ((p + 1) / 2) /\ forall (...
import Mathlib open Topology Filter Matrix Set /-- Let $p$ be an odd prime. Show that for at least $(p+1)/2$ values of $n$ in $\{0,1,2,\dots,p-1\}$, \[ \sum_{k=0}^{p-1} k! n^k \qquad \mbox{is not divisible by $p$.} \] -/ theorem putnam_2011_b6 (p : β„•) (hp : Odd p ∧ Nat.Prime p) : {n ∈ Finset.range p | Β¬ p ∣ βˆ‘ k : Fin...
putnam_1974_b6
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import classical_sets cardinality. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope nat_scope. Local Open Scope classical_set_scope. Local Open Scope card_scope. Definition putnam_1974_b6_s...
import Mathlib open Set Nat Polynomial Filter Topology abbrev putnam_1974_b6_solution : (β„• Γ— β„• Γ— β„•) := sorry -- ((2^1000 - 1)/3, (2^1000 - 1)/3, 1 + (2^1000 - 1)/3) /-- For a set with $1000$ elements, how many subsets are there whose candinality is respectively $\equiv 0 \bmod 3, \equiv 1 \bmod 3, \equiv 2 \bmod 3$? ...
putnam_1967_a6
From mathcomp Require Import all_ssreflect all_algebra fintype seq ssrbool. From mathcomp Require Import reals normedtype. From mathcomp Require Import classical_sets cardinality. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Local Open Scope classical_...
import Mathlib open Nat Topology Filter abbrev putnam_1967_a6_solution : β„• := sorry -- 8 /-- Given real numbers $\{a_i\}$ and $\{b_i\}$, ($i=1,2,3,4$), such that $a_1b_2-a_2b_1 \neq 0$. Consider the set of all solutions $(x_1,x_2,x_3,x_4)$ of the simultaneous equations $a_1x_1+a_2x_2+a_3x_3+a_4x_4=0$ and $b_1x_1+b_2x...
putnam_1986_a2
Require Import Nat. Definition putnam_1986_a2_solution := 3. Theorem putnam_1986_a2 : (10 ^ (20000) / (10 ^ (100) + 3)) mod 10 = putnam_1986_a2_solution. Proof. Admitted.
import Mathlib abbrev putnam_1986_a2_solution : β„• := sorry -- 3 /-- What is the units (i.e., rightmost) digit of \[ \left\lfloor \frac{10^{20000}}{10^{100}+3}\right\rfloor ? \] -/ theorem putnam_1986_a2 : (Nat.floor ((10 ^ 20000 : ℝ) / (10 ^ 100 + 3)) % 10 = putnam_1986_a2_solution) := sorry
putnam_2010_b5
Require Import Reals Coquelicot.Coquelicot. Definition putnam_2010_b5_solution := False. Theorem putnam_2010_b5 : (exists (f: R -> R), forall (x y: R), (x < y -> f x < f y) /\ ex_derive f x /\ Derive f x = f (f x)) <-> putnam_2010_b5_solution. Proof. Admitted.
import Mathlib open Filter Topology Set abbrev putnam_2010_b5_solution : Prop := sorry -- False /-- Is there a strictly increasing function $f: \mathbb{R} \to \mathbb{R}$ such that $f'(x) = f(f(x))$ for all $x$? -/ theorem putnam_2010_b5 : (βˆƒ f : ℝ β†’ ℝ, StrictMono f ∧ Differentiable ℝ f ∧ (βˆ€ x : ℝ, deriv f x = f (f...
putnam_1963_a2
From mathcomp Require Import all_algebra all_ssreflect. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope nat_scope. Theorem putnam_1963_a2 (f : nat -> nat) (hfpos : forall n : nat, 0 < f n) (hfinc : forall i j : nat, 0 < i -> i < j -> f i < f j) (hf2 ...
import Mathlib open Topology Filter /-- Let $\{f(n)\}$ be a strictly increasing sequence of positive integers such that $f(2)=2$ and $f(mn)=f(m)f(n)$ for every relatively prime pair of positive integers $m$ and $n$ (the greatest common divisor of $m$ and $n$ is equal to $1$). Prove that $f(n)=n$ for every positive in...
putnam_2009_b6
Require Import List ZArith Coquelicot.Coquelicot. Open Scope Z. Theorem putnam_2009_b6 : forall (n: Z), n > 0 -> exists (a: list Z), length a = 2010%nat /\ nth 0 a 0 = 0 /\ nth 2009 a 0 = n /\ forall (i: nat), and (le 1 i) (le i 2009) -> (exists (j: nat), lt j i /\ (exists (k: Z), k >= 0 /\ nth i a 0 = nth j a ...
import Mathlib open Topology MvPolynomial Filter Set Metric /-- Prove that for every positive integer $n$, there is a sequence of integers $a_0, a_1, \dots, a_{2009}$ with $a_0 = 0$ and $a_{2009} = n$ such that each term after $a_0$ is either an earlier term plus $2^k$ for some nonnegative integer $k$, or of the form...
putnam_1982_a6
Require Import Nat Reals Coquelicot.Coquelicot. Open Scope R. Definition putnam_1982_a6_solution := False. Theorem putnam_1982_a6 (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 i - i)) * Rabs (a i)) = 0 -> ex...
import Mathlib open Set Function Filter Topology Polynomial Real abbrev putnam_1982_a6_solution : Prop := sorry -- False /-- 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{enumer...
putnam_1985_a6
From mathcomp Require Import all_ssreflect all_algebra. From mathcomp Require Import reals. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Open Scope ring_scope. Variable R : realType. Definition putnam_1985_a6_solution : {poly R} := 6 * 'X ^ 2 + 5 * 'X + 1. Theorem putnam_1985_a6 ...
import Mathlib open Set Filter Topology Real Polynomial noncomputable abbrev putnam_1985_a6_solution : Polynomial ℝ := sorry -- 6 * X ^ 2 + 5 * X + 1 /-- If $p(x)= a_0 + a_1 x + \cdots + a_m x^m$ is a polynomial with real coefficients $a_i$, then set \[ \Gamma(p(x)) = a_0^2 + a_1^2 + \cdots + a_m^2. \] Let $F(x) = 3x...
putnam_2020_b6
Require Import Reals. From Coquelicot Require Import Coquelicot Hierarchy Rcomplements. Open Scope R. Theorem putnam_2020_b6 (A : nat -> R := fun k => (-1)^(Z.to_nat (floor (INR k * (sqrt 2 - 1))))) (B : nat -> R := fun n => sum_n_m A 1 n) : forall (n: nat), B n >= 0. Proof. Admitted.
import Mathlib open Filter Topology Set /-- Let $n$ be a positive integer. Prove that $\sum_{k=1}^n(-1)^{\lfloor k(\sqrt{2}-1) \rfloor} \geq 0$. -/ theorem putnam_2020_b6 (n : β„•) (npos : n > 0) : βˆ‘ k ∈ Finset.Icc 1 n, ((-1) ^ Int.floor (k * (Real.sqrt 2 - 1)) : ℝ) β‰₯ 0 := sorry
putnam_1976_a6
From mathcomp Require Import all_ssreflect ssrnum ssralg. From mathcomp Require Import reals derive classical_sets normedtype topology boolp. Import numFieldNormedType.Exports. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Local Open Scope classical_set...
import Mathlib open Polynomial /-- Suppose that $f : \mathbb{R} \to \mathbb{R}$ is a twice continuously differentiable function such that $|f(x)| \le 1$ for all real $x$ and $(f(0))^2 + (f'(0))^2 = 4$. Prove that $f(y) + f''(y) = 0$ for some real number $y$. -/ theorem putnam_1976_a6 (f : ℝ β†’ ℝ) (hfdiff : ContDiff ℝ ...
putnam_1993_b5
Require Import ZArith Reals Coquelicot.Coquelicot. From mathcomp Require Import fintype. Theorem putnam_1993_b5 (pdists : ('I_4 -> (R * R)) -> Prop) (hpdists : forall p : 'I_4 -> (R * R), pdists p = (forall i j : 'I_4, i <> j -> (exists k : Z, IZR k = norm (fst (p i) - fst (p j), (snd (p i) - snd (p j))) /\ Z.o...
import Mathlib /-- Show there do not exist four points in the Euclidean plane such that the pairwise distances between the points are all odd integers. -/ theorem putnam_1993_b5: Β¬βˆƒ p : Fin 4 β†’ (EuclideanSpace ℝ (Fin 2)), βˆ€ i j, i β‰  j β†’ (βˆƒ n : β„€, dist (p i) (p j) = n ∧ Odd n) := sorry
putnam_1992_a2
Require Import Reals Binomial Factorial Coquelicot.Coquelicot. Open Scope R. Definition putnam_1992_a2_solution := 1992. Theorem putnam_1992_a2 (C : R -> R := fun a => (Derive_n (fun x => Rpower (1 + x) a) 1992) 0 / INR (fact 1992)) : RInt (fun y => C (-y - 1) * sum_n_m (fun k => 1 / (y + INR k)) 1 1992) 0 1 = ...
import Mathlib open Topology Filter abbrev putnam_1992_a2_solution : ℝ := sorry -- 1992 /-- Define $C(\alpha)$ to be the coefficient of $x^{1992}$ in the power series about $x=0$ of $(1 + x)^\alpha$. Evaluate \[ \int_0^1 \left( C(-y-1) \sum_{k=1}^{1992} \frac{1}{y+k} \right)\,dy. \] -/ theorem putnam_1992_a2 (C : ℝ β†’...
putnam_2014_a5
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals. From mathcomp Require Import complex. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Variable R : realType. Theorem putnam_2014_a5 (P : nat -> {poly R[i]} :=...
import Mathlib open Topology Filter Nat /-- Let \[ P_n(x) = 1 + 2 x + 3 x^2 + \cdots + n x^{n-1}.\] Prove that the polynomials $P_j(x)$ and $P_k(x)$ are relatively prime for all positive integers $j$ and $k$ with $j \neq k$. -/ theorem putnam_2014_a5 (P : β„• β†’ Polynomial β„‚) (hP : βˆ€ n, P n = βˆ‘ i ∈ Finset.Icc 1 n, i * ...
putnam_2012_a2
Require Import ssreflect. Theorem putnam_2012_a2 (S : Type) (op : S -> S -> S) (is_comm : (S -> S -> S) -> Prop := fun op => forall (x y : S), op x y = op y x) (is_assc : (S -> S -> S) -> Prop := fun op => forall (x y z : S), op x (op y z) = op (op x y) z) (hop : is_comm op /\ is_assc op) (hS : ...
import Mathlib open Matrix /-- Let $*$ be a commutative and associative binary operation on a set $S$. Assume that for every $x$ and $y$ in $S$, there exists $z$ in $S$ such that $x*z=y$. (This $z$ may depend on $x$ and $y$.) Show that if $a,b,c$ are in $S$ and $a*c=b*c$, then $a=b$. -/ theorem putnam_2012_a2 (S : Ty...
putnam_1975_b6
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals sequences exp. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Variable R : realType. Theorem putnam_1975_b6 (s : R ^nat := fun n => \sum_(1 <= i < n.+1) (1 / ...
import Mathlib open Polynomial Real Complex Matrix Filter Topology Multiset /-- Show that if $s_n = 1 + \frac{1}{2} + \frac{1}{3} + \dots + 1/n, then $n(n+1)^{1/n} < n + s_n$ whenever $n > 1$ and $(n-1)n^{-1/(n-1)} < n - s_n$ whenever $n > 2$. -/ theorem putnam_1975_b6 (s : β„• β†’ ℝ) (hs : s = fun (n : β„•) => βˆ‘ i ∈ Finse...
putnam_1990_b5
From mathcomp Require Import all_algebra all_ssreflect. From mathcomp Require Import reals sequences topology normedtype. From mathcomp Require Import classical_sets cardinality. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Local Open Scope classical_s...
import Mathlib open Filter Polynomial Topology Nat abbrev putnam_1990_b5_solution : Prop := sorry -- True /-- 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? -/ theorem pu...
putnam_2000_a6
From mathcomp Require Import all_algebra all_ssreflect. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Local Open Scope ring_scope. Theorem putnam_2000_a6 (f : {poly int}) (a : nat -> int) (ha0 : a 0%nat = 0) (ha : forall n : nat, a (n.+1) = f.[a n]) : (exists m...
import Mathlib open Topology Filter /-- Let $f(x)$ be a polynomial with integer coefficients. Define a sequence $a_0,a_1,\ldots$ of integers such that $a_0=0$ and $a_{n+1}=f(a_n)$ for all $n\geq 0$. Prove that if there exists a positive integer $m$ for which $a_m=0$ then either $a_1=0$ or $a_2=0$. -/ theorem putnam_2...