Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data/padics): use prime typeclass
- Loading branch information
1 parent
e6a1bc3
commit 1562cc2
Showing
10 changed files
with
493 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/- | ||
Copyright (c) 2018 Robert Y. Lewis. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Author: Robert Y. Lewis | ||
Analytic facts about polynomials. | ||
-/ | ||
|
||
import analysis.topology.topological_structures data.polynomial | ||
|
||
lemma polynomial.continuous_eval {α} [comm_semiring α] [decidable_eq α] [topological_space α] | ||
[topological_semiring α] (p : polynomial α) : continuous (λ x, p.eval x) := | ||
begin | ||
apply p.induction, | ||
{ convert continuous_const, | ||
ext, show polynomial.eval x 0 = 0, from rfl }, | ||
{ intros a b f haf hb hcts, | ||
simp only [polynomial.eval_add], | ||
refine continuous_add _ hcts, | ||
have : ∀ x, finsupp.sum (finsupp.single a b) (λ (e : ℕ) (a : α), a * x ^ e) = b * x ^a, | ||
from λ x, finsupp.sum_single_index (by simp), | ||
convert continuous_mul _ _, | ||
{ ext, apply this }, | ||
{ apply_instance }, | ||
{ apply continuous_const }, | ||
{ apply continuous_pow }} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.