Skip to content

Commit

Permalink
docs(data/polynomial/basic): Remove commutative from doc-module (#13144)
Browse files Browse the repository at this point in the history
  • Loading branch information
adomani committed Apr 3, 2022
1 parent 4f14d4d commit d6731a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/data/polynomial/basic.lean
Expand Up @@ -30,8 +30,10 @@ the polynomials. For instance,
## Implementation
Polynomials are defined using `add_monoid_algebra R ℕ`, where `R` is a commutative semiring, but
through a structure to make them irreducible from the point of view of the kernel. Most operations
Polynomials are defined using `add_monoid_algebra R ℕ`, where `R` is a semiring.
The variable `X` commutes with every polynomial `p`: lemma `X_mul` proves the identity
`X * p = `p * X`. The relationship to `add_monoid_algebra R ℕ` is through a structure
to make polynomials irreducible from the point of view of the kernel. Most operations
are irreducible since Lean can not compute anyway with `add_monoid_algebra`. There are two
exceptions that we make semireducible:
* The zero polynomial, so that its coefficients are definitionally equal to `0`.
Expand Down

0 comments on commit d6731a4

Please sign in to comment.