RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Sums of residues at simple real poles

Lib.General.Algebra.ResidueSums.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

This file computes sums of residues of rational functions whose denominator has simple real roots. Let p = nodal univ x be the monic polynomial with the distinct roots x i. The residue of F / p at x i is F (x i) / p' (x i). This file also determines the sign of p' (x i) when the roots are ordered.

Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.

Rest of upstream introduction

Rest of upstream introduction

Main definitions and results

  • New.DiscreteSeries.sum_eval_div_eval_derivative_nodal and sum_eval_div_sub_mul_eval_derivative_nodal: two sums of residues at simple poles.
  • New.DiscreteSeries.eval_derivative_nodal: the derivative of nodal univ x, the monic polynomial with roots x j, at the root x i is the product of the x i - x j over j ≠ i.

Relation to the literature

The residue sums rest on Lagrange interpolation.

Pinned source lines

Declarations

Import route to Main

Lib.General.Algebra.ResidueSums → New.Appendix.DiscreteSeries.StationaryPosition (pinned import) → New.Appendix.DiscreteSeries.PositionGroup (pinned import) → New.Determinant.AuxiliaryForms.DeepLevelVanishing (pinned import) → New.Determinant.AuxiliaryForms.FirstPath (pinned import) → New.Determinant.AuxiliaryForms.SpanningForms (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)

X Reddit Email LinkedIn