Skip to content

Commit

Permalink
Fix uses of optParam
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Oct 21, 2024
1 parent 258bbe8 commit fe8a301
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lean4/src/putnam_1970_a1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ theorem putnam_1970_a1
(f_def : f = fun x : ℝ => Real.exp (a*x) * Real.cos (b*x))
(p : ℕ → ℝ)
(hp : ∃ c : ℝ, c > 0 ∧ ∀ x ∈ ball 0 c, ∑' n : ℕ, (p n)*x^n = f x)
(S : Set ℕ := {n : ℕ | p n = 0})
(S : Set ℕ)
(S_def : S = {n : ℕ | p n = 0})
: S = ∅ ∨ ¬Finite S :=
sorry
3 changes: 2 additions & 1 deletion lean4/src/putnam_1982_a6.lean
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ $\lim_{n \rightarrow \infty}\sum_{k = 1}^{n} x_k = 1$.
Prove or disprove: these conditions imply that $$\lim_{n \rightarrow \infty} \sum_{k = 1}^{n} x_{b(k)} = 1.$$
-/
theorem putnam_1982_a6
(S : Set ℕ := Ici 1)
(S : Set ℕ)
(S_def : S = Ici 1)
(hb : (ℕ → ℕ) → Prop)
(hb_def : hb = fun b : ℕ → ℕ => BijOn b S S)
(hx : (ℕ → ℝ) → Prop)
Expand Down
3 changes: 2 additions & 1 deletion lean4/src/putnam_1998_a6.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ theorem putnam_1998_a6
(hint : ∀ i : Fin 2, ∃ a b c : ℤ, A i = a ∧ B i = b ∧ C i = c)
(htriangle : A ≠ B ∧ A ≠ C ∧ B ≠ C)
(harea : (dist A B + dist B C) ^ 2 < 8 * (MeasureTheory.volume (convexHull ℝ {A, B, C})).toReal + 1)
(threesquare : (EuclideanSpace ℝ (Fin 2)) → (EuclideanSpace ℝ (Fin 2)) → (EuclideanSpace ℝ (Fin 2)) → Prop := fun P Q R ↦ dist Q P = dist Q R ∧ Matrix.dotProduct (P - Q) (R - Q) = 0)
(threesquare : (EuclideanSpace ℝ (Fin 2)) → (EuclideanSpace ℝ (Fin 2)) → (EuclideanSpace ℝ (Fin 2)) → Prop)
(threesquare_def : threesquare = fun P Q R ↦ dist Q P = dist Q R ∧ Matrix.dotProduct (P - Q) (R - Q) = 0)
: (threesquare A B C ∨ threesquare B C A ∨ threesquare C A B) :=
sorry

0 comments on commit fe8a301

Please sign in to comment.