Skip to content

hivert/fpseries

Repository files navigation

Formal Power Series

Nix CI for bundle rocq-9.0-mc2.5.0 Nix CI for bundle rocq-9.1-mc2.5.0 Nix CI for bundle rocq-9.1-mcmaster

Formal power series in Mathematical Components.

The goal of this project is to formalize the notion of Formal Power Series. I've mainly in view application to enumerative and algebraic combinatorics. They are two different formalizations:

1 - An axiom free formalization of truncated formal power series (i.e. polynomials mod $X^n$). It is largely based on the work of Cyril Cohen et al. on Newton Sums.

https://github.com/math-comp/newtonsums

The main difference is that they assumed the base ring to be a field whereas I tried to use the more general base ring (or even semi-ring) setting to formalize the different properties.

2 - Formal Power Series using classical axioms. These are defined as the inverse limit of the truncated power series allowing to transfer easily result between the two settings.

The main results are

  • formula for the multiplicative inverse of a series both in a commutative and non-commutative setting;
  • geometric series;
  • formal derivative and primitive (commutative and non-commutative);
  • composition of power series (assuming the inner one has zero constant coefficient);
  • Lagrange inversion formulas (Lagrange-Bürmann theorem);
  • exponential, logarithm, powering and square root series.

All those results are proved both for truncated and non-truncated series.

Application to combinatorics

To test the framework I provide 6 proofs of the formula for Catalan numbers. I'm using the following 3 different strategies together with truncated and non-truncated series:

1 - prove the algebraic equation $F = 1 + X F^2$ and extract the coefficients using square root and generalized Newton's binomial formula;

2 - Start again from the algebraic equation, extract the coefficients using Lagrange inversion formula;

3 - Transform the algebraic equation into the holonomic differential equation $(1 - 2X) F + (1 - 4X) X F' = 1$ which give the recursion $(n+2) C_{n+1} = (4n + 2) C_n$ and solve it.

Presentation

The slide of a talk at Mathematical Components - 10 years after the Odd Order Theorem.

Authors

  • Florent Hivert

The code for truncated power series (files auxresults.v and tfps.v) is partly copied from

https://github.com/Barbichu/newtonsums

by

  • Cyril Cohen
  • Boris Djalal

Dependencies

All these files are still largely experimental.

To compile it I'm using the following opam packages:

rocq-hierarchy-builder     1.9.1
rocq-mathcomp-ssreflect    2.5.0
rocq-mathcomp-algebra      2.5.0
rocq-mathcomp-multinomials 2.5.0
rocq-mathcomp-classical    1.14.0

About

Formal power series in mathomp

Topics

Resources

License

Stars

3 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors