Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(data/power_series): Add multivariate power series and prove basic API #1244

Merged
merged 46 commits into from
Jul 22, 2019

Conversation

jcommelin
Copy link
Member

formal power series

This file defines (multivariate) formal power series
and develops the basic properties of these objects.

A formal power series is to a polynomial like an infinite sum is to a finite sum.

We provide the natural inclusion from polynomials to power series.

trunc n φ truncates a power series to the polynomial
that has the same coefficients as φ, for all m ≤ n, and 0 otherwise.

If the constant coefficient of a formal power series is invertible,
then this formal power series is invertible.

Formal power series over a local ring form a local ring.

Implementation notes

In this file we define multivariate power series with coefficients in α as
mv_power_series σ α := (σ →₀ ℕ) → α
Unfortunately there is not yet enough API to show that they are the completion
of the ring of multivariate polynomials. However, we provide most of the infrastructure
that is needed to do this. Once I-adic completion (topological or algebraic) is available
it should not be hard to fill in the details.

Formal power series in one variable are defined as
power_series α := mv_power_series unit α
This allows us to port a lot of proofs and properties
from the multivariate case to the single variable case.
However, it means that power series are indexed by (unit →₀ ℕ),
which is of course canonically isomorphic to ℕ.
We then build some glue to treat power series as if they are indexed by ℕ.
Occasionally this leads to proofs that are uglier than expected.

@jcommelin jcommelin requested a review from a team as a code owner July 20, 2019 05:24
src/data/power_series.lean Outdated Show resolved Hide resolved
src/data/finsupp.lean Outdated Show resolved Hide resolved
src/data/finsupp.lean Outdated Show resolved Hide resolved
src/data/finsupp.lean Outdated Show resolved Hide resolved
src/data/power_series.lean Outdated Show resolved Hide resolved
src/data/power_series.lean Outdated Show resolved Hide resolved
src/data/power_series.lean Outdated Show resolved Hide resolved
src/data/power_series.lean Outdated Show resolved Hide resolved
src/data/power_series.lean Outdated Show resolved Hide resolved
@ChrisHughes24 ChrisHughes24 added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Jul 22, 2019
@mergify mergify bot merged commit fd91660 into master Jul 22, 2019
@mergify mergify bot deleted the power-series branch July 22, 2019 11:21
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…c API (leanprover-community#1244)

* First start on power_series

* Innocent changes

* Almost a comm_semiring

* Defined hom from mv_polynomial to mv_power_series; sorrys remain

* Attempt that seem to go nowhere

* Working on coeff_mul for polynomials

* Small progress

* Finish mv_polynomial.coeff_mul

* Cleaner proof of mv_polynomial.coeff_mul

* Fix build

* WIP

* Finish proof of mul_assoc

* WIP

* Golfing coeff_mul

* WIP

* Crazy wf is crazy

* mv_power_series over local ring is local

* WIP

* Add empty line

* wip

* wip

* WIP

* WIP

* WIP

* Add header comments

* WIP

* WIP

* Fix finsupp build

* Fix build, hopefully

* Fix build: ideals

* More docs

* Update src/data/power_series.lean

Fix typo.

* Fix build -- bump instance search depth

* Make changes according to some of the review comments

* Use 'formal' in the names

* Use 'protected' in more places, remove '@simp's

* Make 'inv_eq_zero' an iff

* Generalize to non-commutative scalars

* Move file

* Undo name change, back to 'power_series'

* spelling mistake

* spelling mistake
bors bot pushed a commit that referenced this pull request Dec 26, 2021
This moves all order instances about `finsupp` from `data.finsupp.basic` and `data.finsupp.lattice` to a new file `data.finsupp.order`.

I'm crediting
* Johan for #1216, #1244
* Aaron Anderson for #3335
bors bot pushed a commit that referenced this pull request Dec 27, 2021
This moves all order instances about `finsupp` from `data.finsupp.basic` and `data.finsupp.lattice` to a new file `data.finsupp.order`.

I'm crediting
* Johan for #1216, #1244
* Aaron Anderson for #3335
erdOne pushed a commit that referenced this pull request Jan 1, 2022
This moves all order instances about `finsupp` from `data.finsupp.basic` and `data.finsupp.lattice` to a new file `data.finsupp.order`.

I'm crediting
* Johan for #1216, #1244
* Aaron Anderson for #3335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants