Skip to content

Commit

Permalink
chore(analysis/special_functions/log/basic): golf a proof (#14898)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Jun 22, 2022
1 parent 23918a5 commit 2a732ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/analysis/special_functions/log/basic.lean
Expand Up @@ -258,11 +258,10 @@ open_locale big_operators
lemma log_prod {α : Type*} (s : finset α) (f : α → ℝ) (hf : ∀ x ∈ s, f x ≠ 0):
log (∏ i in s, f i) = ∑ i in s, log (f i) :=
begin
classical,
induction s using finset.induction_on with a s ha ih,
induction s using finset.cons_induction_on with a s ha ih,
{ simp },
simp only [finset.mem_insert, forall_eq_or_imp] at hf,
simp [ha, ih hf.2, log_mul hf.1 (finset.prod_ne_zero_iff.2 hf.2)],
{ rw [finset.forall_mem_cons] at hf,
simp [ih hf.2, log_mul hf.1 (finset.prod_ne_zero_iff.2 hf.2)] }
end

lemma tendsto_pow_log_div_mul_add_at_top (a b : ℝ) (n : ℕ) (ha : a ≠ 0) :
Expand Down

0 comments on commit 2a732ed

Please sign in to comment.