Skip to content

Commit

Permalink
chore(*): generalize tensor product to semirings (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
kckennylau committed Jul 14, 2020
1 parent 0410946 commit 58dde5b
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 195 deletions.
8 changes: 0 additions & 8 deletions src/data/polynomial.lean
Expand Up @@ -1877,14 +1877,6 @@ section comm_semiring
variables [comm_semiring R] {p q : polynomial R}

section aeval
instance algebra' (R : Type u) [comm_semiring R] (A : Type v) [semiring A] [algebra R A] :
algebra R (polynomial A) :=
{ smul := λ r p, algebra_map R A r • p,
commutes' := λ c p, ext $ λ n,
show (C (algebra_map R A c) * p).coeff n = (p * C (algebra_map R A c)).coeff n,
by rw [coeff_C_mul, coeff_mul_C, algebra.commutes],
smul_def' := λ c p, (C_mul' _ _).symm,
.. C.comp (algebra_map R A) }

variables (R) (A)

Expand Down

0 comments on commit 58dde5b

Please sign in to comment.