Skip to content

Commit eefea68

Browse files
Merge pull request #193 from trishullab/george
optParam and notational improvements.
2 parents 39d0377 + a36551e commit eefea68

File tree

233 files changed

+712
-438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+712
-438
lines changed

lean4/src/putnam_1962_a2.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ open MeasureTheory
66
abbrev putnam_1962_a2_solution : Set (ℝ → ℝ) := sorry
77
-- {f : ℝ → ℝ | ∃ a c : ℝ, a > 0 ∧ f = fun x => a / (1 - c * x)^2}
88
theorem putnam_1962_a2
9-
(hf : ℝ → (ℝ → ℝ) → Prop := fun (e : ℝ) (f : ℝ → ℝ) => ∀ x ∈ Set.Ioo 0 e, (⨍ v in Set.Icc 0 x, f v) = Real.sqrt ((f 0) * (f x)))
10-
(hfinf : (ℝ → ℝ) → Prop := fun (f : ℝ → ℝ) => ∀ x > 0, (⨍ v in Set.Icc 0 x, f v) = Real.sqrt ((f 0) * (f x)))
9+
(hf : ℝ → (ℝ → ℝ) → Prop)
10+
(hf_def : hf = fun (e : ℝ) (f : ℝ → ℝ) => ∀ x ∈ Set.Ioo 0 e, (⨍ v in Set.Icc 0 x, f v) = Real.sqrt ((f 0) * (f x)))
11+
(hfinf : (ℝ → ℝ) → Prop)
12+
(hfinf_def : hfinf = fun (f : ℝ → ℝ) => ∀ x > 0, (⨍ v in Set.Icc 0 x, f v) = Real.sqrt ((f 0) * (f x)))
1113
: (∀ f : ℝ → ℝ, (hfinf f → ∃ g ∈ putnam_1962_a2_solution, ∀ x ≥ 0, g x = f x) ∧
1214
∀ e > 0, hf e f → ∃ g ∈ putnam_1962_a2_solution, ∀ x ∈ Set.Ico 0 e, g x = f x) ∧
1315
∀ f ∈ putnam_1962_a2_solution, hfinf f ∨ (∃ e > 0, hf e f) :=

lean4/src/putnam_1962_a4.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Mathlib
22
open BigOperators
33

4-
open MeasureTheory
5-
64
theorem putnam_1962_a4
75
(f : ℝ → ℝ)
86
(a b : ℝ)

lean4/src/putnam_1962_a5.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Mathlib
22
open BigOperators
33

4-
open MeasureTheory
5-
64
abbrev putnam_1962_a5_solution : ℕ → ℕ := sorry
75
-- fun n : ℕ => n * (n + 1) * 2^(n - 2)
86
theorem putnam_1962_a5

lean4/src/putnam_1962_a6.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Mathlib
22
open BigOperators
33

4-
open MeasureTheory
5-
64
theorem putnam_1962_a6
75
(S : Set ℚ)
86
(hSadd : ∀ a ∈ S, ∀ b ∈ S, a + b ∈ S)

lean4/src/putnam_1962_b1.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Mathlib
22
open BigOperators
33

4-
open MeasureTheory
5-
64
theorem putnam_1962_b1
75
(p : ℕ → ℝ → ℝ)
86
(x y : ℝ)

lean4/src/putnam_1962_b6.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Mathlib
22
open BigOperators
33

4-
open MeasureTheory
4+
open MeasureTheory Real
55

66
theorem putnam_1962_b6
7-
(π : ℝ := Real.pi)
87
(n : ℕ)
98
(a b : ℕ → ℝ)
109
(xs : Set ℝ)
11-
(f : ℝ → ℝ := fun x : ℝ => ∑ k in Finset.Icc 0 n, ((a k) * Real.sin (k * x) + (b k) * Real.cos (k * x)))
10+
(f : ℝ → ℝ)
11+
(hf : f = fun x : ℝ => ∑ k in Finset.Icc 0 n, ((a k) * Real.sin (k * x) + (b k) * Real.cos (k * x)))
1212
(hf1 : ∀ x ∈ Set.Icc 0 (2 * π), |f x| ≤ 1)
1313
(hxs : xs.ncard = 2 * n ∧ xs ⊆ Set.Ico 0 (2 * π))
1414
(hfxs : ∀ x ∈ xs, |f x| = 1)

lean4/src/putnam_1963_a3.lean

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ noncomputable abbrev putnam_1963_a3_solution : (ℝ → ℝ) → ℕ → ℝ →
88
theorem putnam_1963_a3
99
(n : ℕ)
1010
(f : ℝ → ℝ)
11-
(P : ℕ → (ℝ → ℝ) → (ℝ → ℝ))
12-
(δ : (ℝ → ℝ) → (ℝ → ℝ) := fun g : ℝ → ℝ ↦ (fun x : ℝ ↦ x) * deriv g)
13-
(D : ℕ → (ℝ → ℝ) → (ℝ → ℝ) := fun (m : ℕ) (g : ℝ → ℝ) ↦ δ g - (fun x : ℝ ↦ (m : ℝ)) * g)
14-
(y : ℝ → ℝ := fun x : ℝ ↦ ∫ t in Set.Ioo 1 x, putnam_1963_a3_solution f n x t)
11+
(P D : ℕ → (ℝ → ℝ) → (ℝ → ℝ))
12+
(δ : (ℝ → ℝ) → (ℝ → ℝ))
13+
(hδ : δ = fun g : ℝ → ℝ ↦ (fun x : ℝ ↦ x) * deriv g)
14+
(hD : D = fun (m : ℕ) (g : ℝ → ℝ) ↦ δ g - (fun x : ℝ ↦ (m : ℝ)) * g)
15+
(y : ℝ → ℝ)
16+
(hy : y = fun x : ℝ ↦ ∫ t in Set.Ioo 1 x, putnam_1963_a3_solution f n x t)
1517
(hn : n ≥ 1)
1618
(hf : Continuous f)
1719
(hP : P 0 y = y ∧ ∀ m ∈ Finset.range n, P (m + 1) y = D (n - 1 - m) (P m y))

lean4/src/putnam_1963_a4.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ open BigOperators
44
open Topology Filter
55

66
theorem putnam_1963_a4
7-
(apos : (ℕ → ℝ) → Prop := fun a => ∀ n, a n > 0)
8-
(f : (ℕ → ℝ) → ℕ → ℝ := fun a n => n * (((1 + a (n+1)) / (a n)) - 1))
7+
(apos : (ℕ → ℝ) → Prop)
8+
(hapos : apos = fun a => ∀ n, a n > 0)
9+
(f : (ℕ → ℝ) → ℕ → ℝ)
10+
(hf : f = fun (a : ℕ → ℝ) n => n * (((1 + a (n+1)) / (a n)) - 1))
911
: (∀ a, apos a → limsup (f a) atTop ≥ 1) ∧ (¬∃ c > 1, ∀ a, apos a → limsup (f a) atTop ≥ c) :=
1012
sorry

lean4/src/putnam_1963_a6.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ open Topology Filter
66
theorem putnam_1963_a6
77
(F1 F2 U V A B C D P Q : EuclideanSpace ℝ (Fin 2))
88
(r : ℝ)
9-
(E : Set (Fin 2 → ℝ) := {H : EuclideanSpace ℝ (Fin 2) | dist F1 H + dist F2 H = r})
10-
(M : EuclideanSpace ℝ (Fin 2) := midpoint ℝ U V)
9+
(E : Set (EuclideanSpace ℝ (Fin 2)))
10+
(hE : E = {H : EuclideanSpace ℝ (Fin 2) | dist F1 H + dist F2 H = r})
11+
(M : EuclideanSpace ℝ (Fin 2))
12+
(hM : M = midpoint ℝ U V)
1113
(hr : r > dist F1 F2)
1214
(hUV : U ∈ E ∧ V ∈ E ∧ U ≠ V)
1315
(hAB : A ∈ E ∧ B ∈ E ∧ A ≠ B)

lean4/src/putnam_1963_b2.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open Topology Filter Polynomial
66
abbrev putnam_1963_b2_solution : Prop := sorry
77
-- True
88
theorem putnam_1963_b2
9-
(S : Set ℝ := {2 ^ m * 3 ^ n | (m : ℤ) (n : ℤ)})
10-
(P : Set ℝ := Set.Ioi 0)
11-
: closure S ⊇ P ↔ putnam_1963_b2_solution :=
9+
(S : Set ℝ)
10+
(hS : S = {2 ^ m * 3 ^ n | (m : ℤ) (n : ℤ)})
11+
: closure S ⊇ Set.Ioi (0 : ℝ) ↔ putnam_1963_b2_solution :=
1212
sorry

0 commit comments

Comments
 (0)