#39826 feat(Analysis): field of meromorphic functions
In plain words
Defines MeromorphicFun, written : meromorphic functions modulo equality off a discrete set (the filter codiscreteWithin U). Each class has a canonical representative, the normal form toMeromorphicNFOn (used as the FunLike coercion), and a well-defined order orderAt x at accumulation points of . The quotient is an additive group and -module, a commutative -algebra when the target is a normed field , and a field when is nontrivial and preconnected (an instance for in a preconnected space). The derivative is a -linear map and a Derivation, with the product, power, inverse and quotient rules. Supporting lemmas go into NormalForm.lean (the value of the normal form at depends only on the germ on a punctured neighbourhood) and Order.lean (a meromorphic function on a preconnected set that is not a.e. zero has an inverse off a discrete set).
Notation for all sections: is a nontrivially normed field, are normed -spaces, is a nontrivially normed field that is a normed -algebra, , and is a normed ring acting boundedly on and commuting with . "" means equality on off a discrete set (=ᶠ[codiscreteWithin U]). " is good" means and is an accumulation point of .
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
PR description
AI usage disclosure: used Aristotle to verify the correctness of a few lemma, but the proof have been rewritten
Things I have learned while experimenting with this
- The current definition
MeromorphicOn f Udirectly wrapsMeromorphicAt, which checks the punctured neighborhood of each point, even if that neighborhood is outsideU. This is different fromAnalyticOn, which strictly checks withinU. - As a consequence, the behavior of
MeromorphicOnon isolated points is interesting. Consider "U = union of a few isolated points". Meromorphic functions with the same value on the isolated point can have different orders, because they can have different punctured neighborhood that's outside of U. Similarly, the normal form toMeromorphicNFAt are also different because it is computed based on the punctured neighborhood as well. - This makes the documented equivalence relation
=ᶠ[codiscreteWithin U]questionable. All functions with such "U = isolated points" are equivalent, but they emit different normal forms and orders, making them ill-defined / non-unique / non-canonical on the equivalent class. - But perhaps this doesn't matter because in practice we only consider
IsOpen U, which excludes such isolated points. In these cases, the equivalence relation is well-behaved and canonical normal form / order / etc for equivalent classes are restored. We just need to add "the point we are checking must be an accumulation point" hypothesis whenever we use the normal form - If we actually care about isolated points, I can see two ways to fix it
- change the definition MeromorphicOn to only care about neighborhoods within U. Not sure if this will lead to other problems
- change the equivalence relation to
∀x ∈ U, f =ᶠ[𝓝[≠] x] g. This makes the equivalent classes more fine-grained, but might make it more cumbersome to use
Conversation on GitHub 7
PR summary 4caf28981c
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
| Mathlib.Analysis.Meromorphic.Field (new file)|1924|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ MeromorphicAt.exists_analytic_and_toMeromorphicNFAt_eventuallyEq
+ MeromorphicFun
+ MeromorphicFun.setoid
+ algebraMap_def
+ apply_eq
+ apply_eq_self
+ coeFn_add
+ coeFn_algebraMap
+ coeFn_comp
+ coeFn_comp₂
+ coeFn_deriv
+ coeFn_div
+ coeFn_eq_self
+ coeFn_eq_toMeromorphicNFOn
+ coeFn_inv
+ coeFn_mk_eventuallyEq
+ coeFn_mul
+ coeFn_neg
+ coeFn_one
+ coeFn_pow
+ coeFn_smul
+ coeFn_sub
+ coeFn_zero
+ coeFn_zpow
+ comp
+ comp_mk
+ comp₂
+ comp₂_mk
+ deriv
+ deriv_algebraMap
+ deriv_div
+ deriv_inv
+ deriv_mk
+ deriv_mul
+ deriv_natCast
+ deriv_one
+ deriv_pow
+ deriv_zpow
+ derivation
+ derivation_apply
+ div_zero
+ ext
+ field
+ ind
+ instance : Add (𝕜 →ℳ[U] E)
+ instance : AddCommGroup (𝕜 →ℳ[U] E)
+ instance : Algebra R (𝕜 →ℳ[U] 𝕜')
+ instance : CommRing (𝕜 →ℳ[U] 𝕜')
+ instance : Div (𝕜 →ℳ[U] 𝕜')
+ instance : DivInvOneMonoid (𝕜 →ℳ[U] 𝕜')
+ instance : FunLike (𝕜 →ℳ[U] E) 𝕜 E
+ instance : Inv (𝕜 →ℳ[U] 𝕜')
+ instance : Module R (𝕜 →ℳ[U] E)
+ instance : Mul (𝕜 →ℳ[U] 𝕜')
+ instance : NPow (𝕜 →ℳ[U] 𝕜')
+ instance : NSMul (𝕜 →ℳ[U] E)
+ instance : Neg (𝕜 →ℳ[U] E)
+ instance : SMul R (𝕜 →ℳ[U] E)
+ instance : Sub (𝕜 →ℳ[U] E)
+ instance : ZPow (𝕜 →ℳ[U] 𝕜')
+ instance : ZSMul (𝕜 →ℳ[U] E)
+ instance : Zero (𝕜 →ℳ[U] E)
+ instance [One E] : AddCommGroupWithOne (𝕜 →ℳ[U] E)
+ instance [PreconnectedSpace 𝕜] : Field (𝕜 →ℳ 𝕜')
+ inv_mk
+ inv_zero
+ lift
+ lift_mk
+ lift₂
+ lift₂_mk
+ meromorphicNFOn_coeFn
+ meromorphicOn_coeFn
+ meromorphicOn_out
+ meromorphicOrderAt_eq_top_of_isPreconnected
+ meromorphic_coeFn
+ mk
+ mk_add_mk
+ mk_coeFn
+ mk_div_mk
+ mk_eq_mk
+ mk_mul_mk
+ mk_out
+ mk_pow
+ mk_sub_mk
+ mk_zpow
+ mul_inv_eventuallyEq
+ mul_inv_evnetuallyEq_of_meromorphicOrderAt_ne_top
+ natCast_eq
+ neg_mk
+ one_def
+ orderAt
+ orderAt_add
+ orderAt_add_eq_left_of_lt
+ orderAt_add_eq_right_of_lt
+ orderAt_add_of_ne
+ orderAt_deriv
+ orderAt_div
+ orderAt_eq_meromorphicOrder_coeFn
+ orderAt_eq_meromorphicOrder_coeFn_univ
+ orderAt_eq_zero_iff
+ orderAt_eq_zero_iff_univ
+ orderAt_inv
+ orderAt_mk
+ orderAt_mk_univ
+ orderAt_mul
+ orderAt_natCast
+ orderAt_neg
+ orderAt_nonneg_iff_analyticAt
+ orderAt_nonneg_iff_analyticAt_univ
+ orderAt_of_notMem
+ orderAt_of_not_accPt
+ orderAt_of_not_mem_and_accPt
+ orderAt_one
+ orderAt_pow
+ orderAt_zero
+ orderAt_zpow
+ out
+ out_mk_eventuallyEq
+ smul_mk
+ toMeromorphicNFAt_congr
+ toMeromorphicNFAt_of_meromorphicOrderAt_ne_zero
+ toNF
+ toNF_mk_eventuallyEq
+ zero_def
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
<details><summary>
Declarations diff (Lean)
</summary>
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
4caf289).
- +130 new declarations
- −0 removed declarations
+MeromorphicAt.exists_analytic_and_toMeromorphicNFAt_eventuallyEq
+MeromorphicFun
+MeromorphicFun.algebraMap_def
+MeromorphicFun.apply_eq
+MeromorphicFun.apply_eq_self
+MeromorphicFun.coeFn_add
+MeromorphicFun.coeFn_algebraMap
+MeromorphicFun.coeFn_comp
+MeromorphicFun.coeFn_comp₂
+MeromorphicFun.coeFn_deriv
+MeromorphicFun.coeFn_div
+MeromorphicFun.coeFn_eq_self
+MeromorphicFun.coeFn_eq_toMeromorphicNFOn
+MeromorphicFun.coeFn_inv
+MeromorphicFun.coeFn_mk_eventuallyEq
+MeromorphicFun.coeFn_mul
+MeromorphicFun.coeFn_neg
+MeromorphicFun.coeFn_one
+MeromorphicFun.coeFn_pow
+MeromorphicFun.coeFn_smul
+MeromorphicFun.coeFn_sub
+MeromorphicFun.coeFn_zero
+MeromorphicFun.coeFn_zpow
+MeromorphicFun.comp
+MeromorphicFun.comp_mk
+MeromorphicFun.comp₂
+MeromorphicFun.comp₂_mk
+MeromorphicFun.deriv
+MeromorphicFun.deriv.congr_simp
+MeromorphicFun.deriv_algebraMap
+MeromorphicFun.deriv_div
+MeromorphicFun.deriv_inv
+MeromorphicFun.deriv_mk
+MeromorphicFun.deriv_mul
+MeromorphicFun.deriv_natCast
+MeromorphicFun.deriv_one
+MeromorphicFun.deriv_pow
+MeromorphicFun.deriv_zpow
+MeromorphicFun.derivation
+MeromorphicFun.derivation.congr_simp
+MeromorphicFun.derivation_apply
+MeromorphicFun.div_zero
+MeromorphicFun.ext
+MeromorphicFun.ext_iff
+MeromorphicFun.field
+MeromorphicFun.ind
+MeromorphicFun.instAdd
+MeromorphicFun.instAddCommGroup
+MeromorphicFun.instAddCommGroupWithOneOfOne
+MeromorphicFun.instAlgebra
+MeromorphicFun.instCommRing
+MeromorphicFun.instDiv
+MeromorphicFun.instDivInvOneMonoid
+MeromorphicFun.instFieldUnivOfPreconnectedSpace
+MeromorphicFun.instFunLike
+MeromorphicFun.instInv
+MeromorphicFun.instModule
+MeromorphicFun.instMul
+MeromorphicFun.instNPow
+MeromorphicFun.instNSMul
+MeromorphicFun.instNeg
+MeromorphicFun.instSMul
+MeromorphicFun.instSub
+MeromorphicFun.instZPow
+MeromorphicFun.instZSMul
+MeromorphicFun.instZero
+MeromorphicFun.inv_mk
+MeromorphicFun.inv_zero
+MeromorphicFun.lift
+MeromorphicFun.lift.congr_simp
+MeromorphicFun.lift_mk
+MeromorphicFun.lift₂
+MeromorphicFun.lift₂_mk
+MeromorphicFun.meromorphicNFOn_coeFn
+MeromorphicFun.meromorphicOn_coeFn
+MeromorphicFun.meromorphicOn_out
+MeromorphicFun.meromorphic_coeFn
+MeromorphicFun.mk
+MeromorphicFun.mk.congr_simp
+MeromorphicFun.mk_add_mk
+MeromorphicFun.mk_coeFn
+MeromorphicFun.mk_div_mk
+MeromorphicFun.mk_eq_mk
+MeromorphicFun.mk_mul_mk
+MeromorphicFun.mk_out
+MeromorphicFun.mk_pow
+MeromorphicFun.mk_sub_mk
+MeromorphicFun.mk_zpow
+MeromorphicFun.natCast_eq
+MeromorphicFun.neg_mk
+MeromorphicFun.one_def
+MeromorphicFun.orderAt
+MeromorphicFun.orderAt_add
+MeromorphicFun.orderAt_add_eq_left_of_lt
+MeromorphicFun.orderAt_add_eq_right_of_lt
+MeromorphicFun.orderAt_add_of_ne
+MeromorphicFun.orderAt_deriv
+MeromorphicFun.orderAt_div
+MeromorphicFun.orderAt_eq_meromorphicOrder_coeFn
+MeromorphicFun.orderAt_eq_meromorphicOrder_coeFn_univ
+MeromorphicFun.orderAt_eq_zero_iff
+MeromorphicFun.orderAt_eq_zero_iff_univ
+MeromorphicFun.orderAt_inv
+MeromorphicFun.orderAt_mk
+MeromorphicFun.orderAt_mk_univ
+MeromorphicFun.orderAt_mul
+MeromorphicFun.orderAt_natCast
+MeromorphicFun.orderAt_neg
+MeromorphicFun.orderAt_nonneg_iff_analyticAt
+MeromorphicFun.orderAt_nonneg_iff_analyticAt_univ
+MeromorphicFun.orderAt_of_notMem
+MeromorphicFun.orderAt_of_not_accPt
+MeromorphicFun.orderAt_of_not_mem_and_accPt
+MeromorphicFun.orderAt_one
+MeromorphicFun.orderAt_pow
+MeromorphicFun.orderAt_zero
+MeromorphicFun.orderAt_zpow
+MeromorphicFun.out
+MeromorphicFun.out_mk_eventuallyEq
+MeromorphicFun.setoid
+MeromorphicFun.smul_mk
+MeromorphicFun.toNF
+MeromorphicFun.zero_def
+MeromorphicOn.meromorphicOrderAt_eq_top_of_isPreconnected
+MeromorphicOn.mul_inv_eventuallyEq
+mul_inv_evnetuallyEq_of_meromorphicOrderAt_ne_top
+toMeromorphicNFAt_congr
+toMeromorphicNFAt_of_meromorphicOrderAt_ne_zero
+«term_→ℳ[_]_»
+«term_→ℳ_»
</details>
No changes to strong technical debt.
<details><summary>Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)</summary>
|Current number|Change|Type (weak)| |-:|:-:|:-| |5014|1|exposed public sections| </details>
Current commit 4caf28981c Reference commit 4851ebd9bf
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
This pull request has conflicts, please merge master and resolve them.
To me it seems like that we should add APIs for MeromorphicWithinAt (similar to ContinuousWithinAt, DifferentiableWithinAt, ContDiffWithinAt, AnalyticWithinAt), and then use MeromorphicWithinAt to change the definition of MeromorphicOn.
To me it seems like that we should add APIs for MeromorphicWithinAt (similar to ContinuousWithinAt, DifferentiableWithinAt, ContDiffWithinAt, AnalyticWithinAt), and then use MeromorphicWithinAt to change the definition of MeromorphicOn.
Indeed. The question I have for this approach is whether it is worth it to duplicate API for another slightly different definition. Is there interesting math concerning functions meromorphic only on half of the neighborhood of a point? Or we would always want to extend such function to the full neighborhood, and the MeromorphicWithinAt property is never interesting?
This pull request has conflicts, please merge master and resolve them.
This PR/issue depends on:
- ~~leanprover-community/mathlib4#39828~~
- ~~leanprover-community/mathlib4#39831~~
- ~~leanprover-community/mathlib4#39833~~
- ~~leanprover-community/mathlib4#39843~~
- ~~leanprover-community/mathlib4#41092~~
- ~~leanprover-community/mathlib4#41093~~
By Dependent Issues (🤖). Happy coding!
I marked this as please-adopt as I am unlikely to work on this in short term and I don't want to block anyone who might want to get this in
Mathlib.lean +1 −0
public import Mathlib.Analysis.Meromorphic.BasicMathlib/Analysis/Meromorphic/Field.lean +879 −0 new file
Mathlib/Analysis/Meromorphic/NormalForm.lean +43 −0
lemma MeromorphicAt.eqOn_compl_singleton_toMeromorphicNFAt (hf : MeromorphicAt fMathlib/Analysis/Meromorphic/Order.lean +31 −0
theorem meromorphicOrderAt_add_of_netheorem meromorphicOrderAt_ne_top_of_isPreconnected (hf : MeromorphicOn f U) {y