/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 1116 *References:* - [erdosproblems.com/1116](https://www.erdosproblems.com/1116) - [Ha74] Hayman, W. K., *Research problems in function theory: new problems*. Proceedings of the Symposium on Complex Analysis (Canterbury, 1973), London Math. Soc. Lecture Note Ser. 12 (1974), 155--180. - [To76] Toppila, Sakari, *On the counting function for the $a$-values of a meromorphic function*. Ann. Acad. Sci. Fenn. Ser. A I Math. 2 (1976), 565--572. [PDF](https://www.acadsci.fi/mathematica/Vol02/vol02pp565-572.pdf) - [Go78] Gol'dberg, A. A., *Counting functions of sequences of $a$-points for entire functions*. Sibirsk. Mat. Zh. 19 (1978), 28--36, 236. - [HaLi18] Hayman, W. K. and Lingham, E. F., *Research problems in function theory*. [arXiv:1809.07200](https://arxiv.org/abs/1809.07200) (2018). -/ @[expose] public section namespace Erdos1116 /-- $n(r,a)$ for $f$: the number of roots of $f(z)=a$ in the open disc $\lvert z\rvertR$ with $n(r,b)>0$ and $n(r,a)>M\,n(r,b)$. In particular, $f$ takes the value $b$, so the ratio is never $x/0$. -/ def UnboundedCountRatio (f : ℂ → ℂ) (a b : ℂ) : Prop := ∀ M : ℕ, ∀ R : ℝ, ∃ r : ℝ, R < r ∧ 0 < aPointCount f r b ∧ M * aPointCount f r b < aPointCount f r a set_option linter.style.formal_proof_palomar false in /-- For a meromorphic function $f$ let $n(r,a)$ count the number of roots of $f(z)=a$ in the disc $\lvert z\rvert