Density of integral points in the Betti moduli of quasi-projective varieties Simone Coccia and Daniel Litt Abstract . Let Y Y be a smooth quasi-projective complex variety equipped with a simple normal crossings compactification. We show that integral points are potentially dense in the (relative) character varieties parametrizing SL 2 \SL_{2} -local systems on Y Y with fixed algebraic integer traces along the boundary components. The proof proceeds by using work of Corlette-Simpson to reduce to the case of Riemann surfaces, where we produce an integral point with Zariski-dense orbit under the mapping class group. 1. Introduction 1.1. Conjecture and main result Let Y be a smooth complex variety equipped with a smooth projective simple normal crossings compactification \overline{Y} , with D=\overline{Y}\setminus Y . Given a commutative ring R and an affine algebraic group G/R , the G -representation variety \operatorname{Hom}(\pi_{1}(Y),G) is the affine R -scheme whose S -points for an R -algebra S are \operatorname{Hom}(\pi_{1}(Y),G)(S):=\operatorname{Hom}(\pi_{1}(Y),G(S)). The G -character variety of Y is the (categorical) quotient X_{G}(Y):=\operatorname{Hom}(\pi_{1}(Y),G)/G, where G acts by conjugation. For each component D_{i} of D , i=1,\cdots,n , fix a small loop \gamma_{i} around D_{i} and an R -point C_{i} in the adjoint quotient (G/_{\text{ad}}G)(R) . There is a natural map p_{D}:X_{G}(Y)\to(G/_{\text{ad}}G)^{n} induced by the map \rho\mapsto(\rho(\gamma_{i}))_{i=1,\cdots,n}. Setting \underline{C}=(C_{i})_{i=1,\cdots,n} we define the relative character variety X_{G,\underline{C}}(Y):=p_{D}^{-1}(\underline{C}). For example, if G=\SL_{2} , X_{G,\underline{C}}(Y) parametrizes conjugacy classes of representations \rho of \pi_{1}(Y) into \SL_{2} with \operatorname{tr}(\rho(\gamma_{i})) fixed. The goal of this paper is to provide some evidence for the following conjecture. Conjecture 1.1.1 . Let G be a Chevalley group over \mathbb{Z} , K a number field, and \mathscr{O}_{K} the ring of integers of K . Fix \underline{C}\in(G/_{\text{ad}}G)(\mathscr{O}_{K})^{n} . Then integral points are potentially Zariski-dense in the K -scheme X_{G,\underline{C}}(Y)_{K}. That is, there exists a finite extension L/K such that the Zariski-closure of the \mathscr{O}_{L} -points of X_{G,\underline{C}}(Y) contains X_{G,\underline{C}}(Y)_{K}. Recall that here a Chevalley group is a smooth affine group scheme over \mathbb{Z} with connected reductive fibers, admitting a fiberwise maximal \mathbb{Z} -torus; for example, \SL_{n,\mathbb{Z}},\PGL_{n,\mathbb{Z}} , \operatorname{Sp}_{2n,\mathbb{Z}} are Chevalley. Some version of this conjecture has been considered by a number of people; for example see [ Lit24 , Question 5.4.3(2)] . In this paper we verify 1.1.1 for G=\SL_{2},\PGL_{2} : Theorem 1.1.2 . Let G=\SL_{2,\mathbb{Z}} or \PGL_{2,\mathbb{Z}} . Fix a number field K and \underline{C}\in(G/_{\text{ad}}G)(\mathscr{O}_{K})^{n}. Then integral points are potentially dense in X_{G,\underline{C}}(Y). The proof proceeds by reduction to the case of curves, relying on Corlette-Simpson’s and Loray-Pereira-Touzet’s classification of rank 2 local systems on quasi-projective varieties [ CS08 , LPT16 ] . We handle the case where Y is a curve (say, of genus g with n\geq 0 punctures) by constructing, for every \underline{C} , an integral representation whose orbit under the pure mapping class group of a surface of genus g with n punctures is Zariski-dense in X_{G,\underline{C}}(Y) . As the action of the mapping class group preserves integrality, this suffices. Our results on Zariski-density of integral points in (relative) character varieties of surface groups are Theorem 5.0.4 and Theorem 6.0.1 . In particular, we show that if K is the field of definition of \underline{C} , then there exists a degree 4 extension L/K such that \mathscr{O}_{L} -points are Zariski-dense in the relative \SL_{2} -character variety of a curve of genus g with n punctures; see 5.0.5 . Some such field extension is necessary; see 5.0.6 . 1.2. Motivation and related work The primary antecedent to 1.1.1 is Simpson’s conjecture on integrality of rigid local systems [ Sim92 , p. 9] , which is precisely the statement that integral points are Zariski-dense in 0 -dimensional components of X_{G,\underline{C}}(Y) , at least when Y is projective. Even this case and its quasi-projective variant is open, though beautiful work of Esnault-Groechenig (in the case G=GL_{n} ) [ EG18 ] and Klevdal-Patrikis (for general G ) [ KP22 ] prove that reduced isolated points of X_{G,\underline{C}}(Y) are integral, for \underline{C} quasi-unipotent. De Jong-Esnault [ DJE24 ] show that, if non-empty, X_{G}(Y) has a \overline{\mathbb{Z}_{\ell}} -point for every \ell (and much more); this would evidently be a consequence of 1.1.1 . Under mild hypotheses they show X_{G}(Y) has a \overline{\mathbb{Z}} -point. All of these results rely on the existence of \ell -adic companions , due to Lafforgue [ Laf02 ] in dimension one and Drinfeld [ Dri12 ] in general, ultimately relying on Lafforgue’s work on the Langlands program for function fields over finite fields. Why might one believe 1.1.1 ? Aside from the fact that it generalizes Simpson’s conjecture to positive-dimensional components of X_{G,\underline{C}}(Y) , it is also motivated by a conjecture of Campana [ Cam11 , Conjecture 13.23 ] predicting which varieties should have a potentially Zariski-dense set of S -integral points. One particular instance of such conjectures is that log Calabi-Yau varieties 1 1 1 A variety Z is log Calabi-Yau if it admits a normal projective compactification X with reduced boundary divisor D such that K_{X}+D\sim 0 . admit an integral model with a Zariski-dense set of integral points (see [ Cam11 , Théorème 7.7 ] ). An expectation attributed to Kontsevich-Soibelman is that in many cases character varieties are “cluster varieties”, hence log Calabi-Yau (see the discussion after Conjecture 5 of [ KNPS15 ] ). Campana’s conjecture then predicts that they should have a Zariski dense set of integral points. Whang [ Wha20b , Theorem 1.1] has proven that relative \SL_{2} -character varieties of surfaces are log Calabi-Yau, so that our Theorem 5.0.4 answers positively Campana’s conjecture for such varieties. We remark that our result is stronger than the expectation of Campana’s conjecture, as we prove potential density of integral points rather than S -integral ones. Our results on Zariski-density of integral points for surface groups are closely related to the study of mapping class group dynamics on (relative) character varieties; indeed, we prove density by finding integral points with Zariski-dense mapping class group orbit. We rely on the study of the geometry of character varieties from [ Wha20a ] . Recently Golsefidy-Tamam [ AG ] (see also [ GT25 ] for a summary of results) have closely studied Zariski-density of mapping class group orbits in character varieties of surfaces; we expect we could have used their results for our purposes as well, though we have opted for a more self-contained exposition. In general, dynamics of mapping class groups on character varieties has been studied from a number of points of view by Goldman [ Gol05 , GX09 ] , Previte-Xia [ PX00 , PX02 ] , and others, including the second-named author and collaborators [ LLL23 , LL24 ] . Arithmetic aspects of \SL_{2} -character varieties of surfaces have recently been studied in the work of several authors. For instance, strong approximation results for surfaces of Markoff type (which are relative character varieties of the projective line with four punctures) have been established in the work of Bourgain-Gamburd-Sarnak [ BGS16 ] and Chen [ Che24 ] (see also [ Mar25 ] for a more elementary approach to part of Chen’s work). Ghosh and Sarnak [ GS22 ] investigated the integral Hasse principle for a family of Markoff cubic surfaces, showing (among various things) that almost all surfaces admitting a \mathbb{Z}_{p} solution at all primes contain a Zariski dense set of integral points. Whang [ Wha20a , Wha20c ] obtained a structure theorem for integral points on relative \SL_{2} -character varieties of surfaces by means of mapping class group descent, and applied this to the effective determination of integral points on curves in these varieties. The second-named author will use the potential-density results proven here for some applications to the Ekedahl–Shepherd-Barron–Taylor conjecture for isomonodromy foliations on relative moduli of flat connections, in upcoming work with Yeuk Hay Joshua Lam, building on [ LL25 ] . From this point of view the potential density studied here is a “non-abelian” analogue of the integral structure on singular cohomology. See [ Lit24 , §5] for some philosophical discussion along these lines. 1.3. Acknowledgments To be added after referee process is complete. 2. Notation We will use the following notation: • \Sigma_{g,n} is a smooth, orientable (topological) surface of genus g with n punctures. • \Gamma_{g,n} is the pure mapping class group of \Sigma_{g,n} , i.e. the component group of the group of orientation-preserving homeomorphisms of \Sigma_{g,n} that fix each puncture pointwise, equipped with the compact-open topology. • Given a simple closed curve a in \Sigma_{g,n} , \tau_{a} denotes the Dehn twist along a , viewed as an element of the mapping class group of \Sigma_{g,n} ; • for a set of simple closed curves \mathcal{A}=\{a_{i}\}_{i\in\mathcal{I}} in \Sigma_{g,n} , we denote by \Gamma_{\mathcal{A}} the subgroup of the mapping class group of \Sigma_{g,n} generated by \{\tau_{a}\,|\,a\in\mathcal{A}\} ; • \mu_{\infty}\subset\overline{\mathbb{Q}} is the set of roots of unity, and E:=2\Re(\mu_{\infty}) is the set of real numbers of the form \zeta+\zeta^{-1} , for \zeta\in\mu_{\infty} . 3. Dynamics on relative character varieties In this section we will collect some results regarding the dynamics of mapping class group actions on relative \SL_{2} -character varieties of surface groups. Except for 3.1.10 , the material of this section is mostly recalled from [ Wha20a ] . Ultimately we will apply these results to prove Theorem 1.1.2 in the case of algebraic curves in § 5 (for \SL_{2} ) and § 6 (for \PGL_{2} ). We will explain how to deduce Theorem 1.1.2 from this case in § 7 . Throughout this section we set E\subset\overline{\mathbb{Q}} to be the set E:=2\Re(\mu_{\infty}) , i.e. the set of real numbers of the form \zeta+\zeta^{-1} for \zeta a root of unity. 3.1. Geometry of relative character varieties Let \Sigma_{g,n} be an orientable topological surface of genus g , with n punctures. Set X_{g,n}:=X_{\SL_{2}}(\Sigma_{g,n}) to be the \SL_{2} -character variety of \pi_{1}(\Sigma_{g,n}) . The adjoint quotient of SL_{2,\mathbb{Z}},(SL_{2,\mathbb{Z}}/_{\text{ad}}SL_{2,\mathbb{Z}}) is naturally isomorphic to the affine line over \mathbb{Z} via the trace map. We set k=(k_{1},\cdots,k_{n})\in\mathbb{A}^{n}(\overline{\mathbb{Z}}) to be a tuple of algebraic integers and set X_{g,n,k} to be the relative character variety of \Sigma_{g,n} , parametrizing \SL_{2} -representations of \pi_{1}(\Sigma_{g,n}) with trace k_{i} about the i -th puncture of \Sigma_{g,n} . Let \mathcal{P}=a_{1}\cup\cdots\cup a_{3g-3+n} be a pants decomposition of \Sigma_{g,n} , i.e. a collection of 3g-3+n simple closed curves in \Sigma_{g,n} whose complement \Sigma\setminus\mathcal{P} is homeomorphic to a disjoint union of copies of \Sigma_{0,3} . This induces a map \tr_{\mathcal{P}}\colon X_{g,n,k}\to\mathbb{A}^{3g-3+n} given by the traces \tr_{a_{i}} along the paths a_{i} of \mathcal{P} . For t=(t_{1},\cdots,t_{3g-3+n})\in\mathbb{A}^{3g-3+n}(\overline{\mathbb{Q}}) , we denote X^{\mathcal{P}}_{k,t}\coloneqq\tr_{\mathcal{P}}^{-1}(t) . Then the subgroup \Gamma_{\mathcal{P}} of the mapping class group \Gamma_{g,n} of \Sigma_{g,n} generated by Dehn twists \tau_{a_{i}} about the paths a_{i} in \mathcal{P} is a free abelian subgroup of the mapping class group whose action on X_{g,n} (via outer automorphisms of \pi_{1}(\Sigma_{g,n}) ) preserves X^{\mathcal{P}}_{k,t} . 3.1.1. Character varieties of \Sigma_{1,1} and \Sigma_{0,4} We first give a description of the relative character varieties of \Sigma_{1,1} and \Sigma_{0,4} , which turn out to be affine cubic surfaces of Markoff type. We refer to [ Wha20a , § 2.3 ] for more details. We first deal with \Sigma_{1,1} . Let (\alpha,\beta,\gamma) be an optimal sequence of generators (see [ Wha20a , §2A1] ) for \pi_{1}(\Sigma_{1,1}) , where \gamma is a loop around the puncture. The map (\tr_{\alpha},\tr_{\beta},\tr_{\alpha\beta})\colon X_{1,1}\to\mathbb{A}^{3} is an isomorphism. We have the identity: \tr_{\gamma}=\tr_{\alpha}^{2}+\tr_{\beta}^{2}+\tr_{\alpha\beta}^{2}-\tr_{\alpha}\tr_{\beta}\tr_{\alpha\beta}-2. Then, writing (x,y,z)=(\tr_{\alpha},\tr_{\beta},\tr_{\alpha\beta}) , the relative character variety X_{1,1,k} is defined by the cubic equation x^{2}+y^{2}+z^{2}-xyz-2=k. Let us now deal with \Sigma_{0,4} . Let \gamma_{1},\gamma_{2},\gamma_{3},\gamma_{4} be an optimal sequence of generators, where each \gamma_{i} is a loop around the corresponding puncture. Let k=(k_{1},k_{2},k_{3},k_{4})\in\mathbb{A}^{4}(\mathbb{C}) and set (x,y,z)=(\tr_{\gamma_{1}\gamma_{2}},\tr_{\gamma_{2}\gamma_{3}},\tr_{\gamma_{1}\gamma_{3}}) . Then X_{0,4,k} is defined by the cubic equation: x^{2}+y^{2}+z^{2}+xyz=Ax+By+Cz+D where \begin{cases}A=k_{1}k_{2}+k_{3}k_{4}\\ B=k_{1}k_{4}+k_{2}k_{3}\\ C=k_{1}k_{3}+k_{2}k_{4}\end{cases}\quad\text{and}\quad D=4-\sum_{i=1}^{4}k_{i}^{2}-\prod_{i=1}^{4}k_{i}. In both cases we have the following: Lemma 3.1.2 . Let t\in\mathbb{C} and let X=X_{1,1,k} (resp. X=X_{0,4,k} ). Let \pi_{y}\colon X\to\mathbb{A}^{1} be the projection map \pi_{y}(x,y,z)=y , which coincides with the trace map \tr_{\beta} (resp. \tr_{\gamma_{2}\gamma_{3}} ). Then the restriction of \pi_{y} to the curve x=t is dominant. We also collect here the following facts: Proposition 3.1.3 . We have that: • the character variety of the torus X_{1,0} is defined by x^{2}+y^{2}+z^{2}-xyz-4=0 ; • there is a single \SL_{2} -representation of \pi_{1}(\Sigma_{1,1}) up to conjugacy with monodromy -I at the puncture, and it corresponds to the point (0,0,0) of the Markoff surface X_{1,1,-2}\colon x^{2}+y^{2}+z^{2}-xyz=0 . Proof. See [ MnMO24 , Theorem 6.3 ] and [ LMnN13 , Section 4.2 ] . ∎ 3.1.4. Dynamics of relative character varieties Definition 3.1.5 . Let \mathcal{P} be a pants decomposition of \Sigma=\Sigma_{g,n} , k\in\mathbb{A}^{n} and t\in\mathbb{A}^{3g-3+n} . We say that X^{\mathcal{P}}_{k,t} is perfect if • for all a_{i}\in\mathcal{P} , we have \tr_{a_{i}}(X^{\mathcal{P}}_{k,t})\neq\pm 2 and • for each [\rho] in X_{k,t}^{\mathcal{P}}(\mathbb{C}) , its restriction to each component of {\Sigma\setminus\mathcal{P}} is irreducible, or (g,n,k)=(1,1,2) . Remark 3.1.6 . Note that both conditions above are really only conditions on t . For the first condition this is clear; for the second, it follows as an \SL_{2} -local system on \Sigma_{0,3} is determined up to semisimplification by its three boundary traces. In particular (see [ Wha20a , Lemma 3.3] ) it is irreducible unless the three boundary traces x,y,z satisfy x^{2}+y^{2}+z^{2}-xyz=4. Note that the set of t such that X_{k,t}^{\mathcal{P}} is not perfect is a proper Zariski-closed subset of \mathbb{A}^{3g-3+n} . Let X^{\mathcal{P}}_{k,t} be a perfect fiber. Fix (\lambda_{1},\dots,\lambda_{3g-3+n})\in(\overline{\mathbb{Q}}^{\times})^{3g-3+n} such that \lambda_{i}+\lambda_{i}^{-1}=t_{i} . We denote by T_{z_{i}}\colon\mathbb{G}_{m}^{3g-3+n}\to\mathbb{G}_{m}^{3g-3+n} the map given by multiplication of the i -th coordinate by \lambda_{i} . We recall the following result from [ Wha20a , Proposition 4.3 ] : Proposition 3.1.7 (Whang) . If X^{\mathcal{P}}_{k,t} be a perfect fiber, then there is a morphism F\colon\mathbb{G}_{m}^{3g-3+n}\to X^{\mathcal{P}}_{k,t} defined over \overline{\mathbb{Q}} satisfying the following: (1) at the level of \overline{\mathbb{Q}} -points, F is surjective with finite fibers, (2) the action of T_{z_{i}} on \mathbb{G}_{m}^{3g-3+n} lifts the action of the Dehn twist \tau_{a_{i}} on X^{\mathcal{P}}_{k,t} . Recall that E=\{\lambda+\lambda^{-1}\,|\,\lambda\in\mu_{\infty}\} , where \mu_{\infty} is the set of all roots of unity. Notice that, if K is a number field, then E\cap K is a finite set. Lemma 3.1.8 . Let \mathcal{P} be a pants decomposition of \Sigma and let p\in X be a point contained in a perfect fiber X^{\mathcal{P}}_{k,t} of \tr_{\mathcal{P}} . If t\in(\mathbb{A}^{1}(\overline{\mathbb{Q}})\setminus E)^{3g-3+n} , then \Gamma_{\mathcal{P}}\cdot p is Zariski dense in X^{\mathcal{P}}_{k,t} . Proof. Since the monodromy along a_{i} has infinite order (by the assumption that no t_{i} lies in E ) and \tr(a_{i})\neq\pm 2 , the eigenvalues of the monodromy along a_{i} must have infinite multiplicative order. By 3.1.7 , the orbit of any point of \mathbb{G}_{m}^{3g-3+n} under the \langle T_{z_{i}}\rangle_{i=1,\cdots,3g-3+n} -action lifting the \Gamma_{\mathcal{P}} -action on X_{k,t}^{\mathcal{P}} is Zariski dense. The claim follows from the surjectivity of \mathbb{G}_{m}^{3g-3+n}(\overline{\mathbb{Q}})\to X^{\mathcal{P}}_{k,t}(\overline{\mathbb{Q}}) . ∎ Definition 3.1.9 . Given a pants decomposition \mathcal{P} of \Sigma , we say that [\rho]\in X_{g,n,k}(\overline{\mathbb{Q}}) is \mathcal{P} - good if t\coloneqq\tr_{\mathcal{P}}([\rho])\in(\mathbb{A}^{1}(\overline{\mathbb{Q}})\setminus E)^{3g-3+n} and X^{\mathcal{P}}_{k,t} is a perfect fiber. The following proposition will be our main tool for showing pure mapping class group orbits are Zariski-dense in relative character varieties. Proposition 3.1.10 . Let \mathcal{P} be a pants decomposition and let p\in X_{g,n,k}(\overline{\mathbb{Q}}) be a \mathcal{P} -good point. Then \Gamma_{g,n}\cdot p is Zariski dense in X_{g,n,k,\overline{\mathbb{Q}}} . Proof. Let K be a number field containing the fields of definition of p and X_{g,n,k} . In particular, we have that \Gamma_{g,n}\cdot p\subseteq X_{g,n,k}(K) . Let \mathcal{P}=a_{1}\cup\cdots\cup a_{3g-3+n} be a pants decomposition of \Sigma_{g,n} . It is sufficient to prove that \tr_{\mathcal{P}}(\Gamma_{g,n}\cdot p) is Zariski dense in \mathbb{A}^{3g-3+n} . Suppose this is the case. The set of t\in\mathbb{A}^{3g-3+n} such that X^{\mathcal{P}}_{k,t} is not perfect is a proper Zariski closed subset of \mathbb{A}^{3g-3+n} (see 3.1.6 ), and, since E\cap K is finite, the same is true for the set of t\in\mathbb{A}^{3g-3+n} such that at least one of the coordinates of t lies in E\cap K . Thus, if \tr_{\mathcal{P}}(\Gamma_{g,n}\cdot p) is Zariski dense in \mathbb{A}^{3g-3+n} , \tr_{\mathcal{P}}(\Gamma_{g,n}\cdot p) would contain a Zariski dense set of t\in(\mathbb{A}^{1}\setminus E)^{3g-3+n} for which X^{\mathcal{P}}_{k,t} is perfect, so the desired Zariski-density statement for X_{g,n,k,\overline{\mathbb{Q}}} would follow from 3.1.8 . We now show that \tr_{\mathcal{P}}(\Gamma_{g,n}\cdot p) is Zariski dense in \mathbb{A}^{3g-3+n} . Let \Sigma_{i} be the surface of type (g^{\prime},n^{\prime})=(0,4) or (1,1) obtained by gluing the components of \Sigma\setminus\mathcal{P} bounded by a_{i} along a_{i} . We have a natural restriction map X_{k,t}^{\mathcal{P}}(\Sigma)\to X_{g^{\prime},n^{\prime},k_{i}^{\prime}}(\Sigma_{i}) , where k_{i}^{\prime} is the vector of traces naturally induced on the boundary of \Sigma_{i} . Moreover, the restriction of p belongs to X_{g^{\prime},n^{\prime},k_{i}^{\prime}}(\Sigma_{i}) and is \{a_{i}\} -good with respect to the pants decomposition \{a_{i}\} of \Sigma_{i} . Evidently X_{g^{\prime},n^{\prime},k_{i}^{\prime}}(\Sigma_{i}) is defined over K . Let b_{i} be a simple essential curve in \Sigma_{i} such that i(a_{i},b_{i})=1 if \Sigma_{i} is of type (1,1) and such that i(a_{i},b_{i})=2 if \Sigma_{i} is of type (0,4) , where i(a,b) denotes the intersection number, as in Figure 1 . Recall that, for a set of simple closed curves \mathcal{C} , we denote by \Gamma_{\mathcal{C}} the subgroup of the mapping class group generated by \{\tau_{a}\,|\,a\in\mathcal{C}\} , the Dehn twists about curves in \mathcal{C} . Moreover, we denote by \tr_{\mathcal{C}}\colon X_{g,n,k}\to\mathbb{A}^{\mathcal{C}} the map given by the traces along all a\in\mathcal{C} . a_{i} b_{i} a_{i} b_{i} Figure 1. Curves as in the proof of 3.1.10 We claim that \tr_{\mathcal{P}}(\Gamma_{a_{1},b_{1},\dots,a_{3g-3+n},b_{3g-3+n}}\cdot p) is Zariski dense in \mathbb{A}^{3g-3+n} . We will show by induction that \tr_{a_{1},\dots,a_{m}}(\Gamma_{a_{1},b_{1},\dots,a_{m},b_{m}}\cdot p) is Zariski dense in \mathbb{A}^{m} for m=1,\dots,3g-3+n . Let us first deal with the base case m=1 . Applying 3.1.8 to p , X_{g^{\prime},n^{\prime},k_{1}^{\prime}}(\Sigma_{1}) and the pants decomposition of \Sigma_{1} induced by a_{1} , we obtain that \Gamma_{a_{1}}\cdot p is infinite. It follows from 3.1.2 that \tr_{b_{1}}(\Gamma_{a_{1}}\cdot p) is infinite and, since \tr_{b_{1}}(\Gamma_{a_{1}}\cdot p)\subset K , we have that \tr_{b_{1}}(\Gamma_{a_{1}}\cdot p)\setminus E is infinite. Pick any point p^{\prime}\in\Gamma_{a_{1}}\cdot p such that \tr_{b_{1}}(p^{\prime})\notin E and p^{\prime} lies in a perfect fiber for \tr_{b_{1}} (there are only finitely many exceptions, due to 3.1.6 ). By 3.1.8 applied to p^{\prime} , X_{g^{\prime},n^{\prime},k_{1}^{\prime}}(\Sigma_{1}) and the pants decomposition of \Sigma_{1} induced by b_{1} , we obtain that \Gamma_{b_{1}}\cdot p^{\prime} is infinite, and so \tr_{a_{1}}(\Gamma_{b_{1}}\cdot p^{\prime}) is infinite by 3.1.2 . Thus, we have showed that \tr_{a_{1}}(\Gamma_{a_{1},b_{1}}\cdot p) is infinite. We now deal with the induction step. Assume that \tr_{a_{1},\dots,a_{m}}(\Gamma_{a_{1},b_{1},\dots,a_{m},b_{m}}\cdot p) is Zariski dense in \mathbb{A}^{m} . Let \mathcal{S} be the set of p^{\prime}\in\Gamma_{a_{1},b_{1},\dots,a_{m},b_{m}}\cdot p such that the restriction of p^{\prime} to \Sigma_{m+1} is \{a_{m+1}\} -good. Pick any point p^{\prime}\in\mathcal{S} . The same reasoning of the previous paragraph shows that \tr_{a_{m+1}}(\Gamma_{a_{m+1},b_{m+1}}\cdot p^{\prime}) is infinite. Since a_{m+1} does not intersect a_{i} and b_{i} for all i\neq m+1 , we have that \tr_{a_{m+1}}(p^{\prime})=\tr_{a_{m+1}}(p) . It follows by 3.1.6 that \tr_{a_{1},\dots,a_{m}}(\mathcal{S}) is Zariski dense in \mathbb{A}^{m} . Using again that a_{m+1} and b_{m+1} do not intersect a_{i} and b_{i} for all i\neq m+1 , we also have that \tr_{a_{1},\dots,a_{m}}(\Gamma_{a_{m+1},b_{m+1}}\cdot p^{\prime})=\tr_{a_{1},\dots,a_{m}}(p^{\prime}) . Then \tr_{a_{1},\dots,a_{m+1}}(\Gamma_{a_{m+1},b_{m+1}}\cdot\mathcal{S}) is Zariski dense in \mathbb{A}^{m+1} , and therefore also \tr_{a_{1},\dots,a_{m+1}}(\Gamma_{a_{1},b_{1},\dots,a_{m+1},b_{m+1}}\cdot p) is Zariski dense in \mathbb{A}^{m+1} . ∎ 4. Construction of integral representations In this section we will construct certain integral local systems on \Sigma_{g,n} whose mapping class group orbit is Zariski-dense in the appropriate relative character variety—essentially, integral \mathcal{P} -good points in the terminology of 3.1.9 . We will do so by gluing local systems on subsurfaces. We first introduce a class of integral matrices \mathcal{M}_{K} such that local systems with peripheral monodromy in \mathcal{M}_{K} are especially well-suited for such gluing. Definition 4.0.1 . Let K be a number field with ring of integers \mathcal{O}_{K} . We define \mathcal{M}_{K}\subset\SL_{2}(\mathcal{O}_{K}) to be the set of matrices \mathcal{M}_{K}=\left\{\begin{pmatrix}a&u^{-1}(ad-1)\\ u&d\\ \end{pmatrix}\,\Big|\,u\in\mathcal{O}_{K}^{\times},\,a,d\in\mathcal{O}_{K}\right\}. Remark 4.0.2 . \mathcal{M}_{K} is closed under inversion. 4.1. Surfaces of genus 0 Lemma 4.1.1 . Let k_{1},k_{2}\in\mathcal{O}_{K} and let A\in\mathcal{M}_{K} . Then there exists a quadratic extension L of K and matrices M_{1},M_{2}\in\SL_{2}(\mathcal{O}_{L}) such that \tr M_{i}=k_{i} and M_{2}=AM_{1} . Proof. Set A=\begin{pmatrix}a&b\\ c&d\\ \end{pmatrix},M_{1}=\begin{pmatrix}x&y\\ z&w\\ \end{pmatrix} so that our problem is equivalent to solving the following system \begin{cases}ax+bz+cy+dw=k_{2}\\ x+w=k_{1}\\ xw-yz=1\\ \end{cases} for x,y,z,w\in\overline{\mathbb{Z}} . This is equivalent to solving \begin{cases}(a-d)x+bz+cy=k_{2}-dk_{1}\\ x^{2}-k_{1}x+yz+1=0\\ \end{cases} with x,y,z\in\overline{\mathbb{Z}} . Since A\in\mathcal{M}_{K} , we have c\in\mathcal{O}_{K}^{\times} , so the first equation gives y=c^{-1}(k_{2}-dk_{1})-c^{-1}bz-c^{-1}(a-d)x. Substituting this expression for y into the second equation, we get a monic quadratic equation in x with coefficients in \mathcal{O}_{K}[z] . In particular, for any z\in\mathcal{O}_{K} , there exists a quadratic extension L of K and x\in\mathcal{O}_{L} solving the equation. This concludes the proof. ∎ Corollary 4.1.2 . Let k_{1},k_{2}\in\mathcal{O}_{K} and let A\in\mathcal{M}_{K} such that (4.1) (\tr A)^{2}+k_{1}^{2}+k_{2}^{2}-k_{1}k_{2}\tr A-2\neq 2. Then there exists a quadratic extension L of K and a representation \rho\colon\pi_{1}(\Sigma_{0,3})\to\SL_{2}(\mathcal{O}_{L}) with monodromy A along one puncture and trace k_{1} and k_{2} along the two other punctures, such that \rho\otimes L is absolutely irreducible. Proof. The existence of a representation with the desired local monodromy and traces follows immediately from 4.1.1 ; irreducibility follows from [ Wha20a , Lemma 3.3 ] . ∎ Lemma 4.1.3 . Assume \mathcal{O}_{K}^{\times} is infinite. Fix k\in\mathcal{O}_{K} and A\in\mathcal{M}_{K} . Then there exists infinitely many pairs of matrices (B,M)\in\mathcal{M}_{K}\times\SL_{2}(\mathcal{O}_{K}) such that ABM=I , \tr M=k , \tr B\notin E and the traces of A,B and M satisfy ( 4.1 ). Moreover, there are infinitely many values of \tr B as B varies among the above solutions. Proof. Since M=(AB)^{-1} , we need to find B\in\mathcal{M}_{K} such that \tr AB=k . Assume that A=\begin{pmatrix}a&u^{-1}(ad-1)\\ u&d\end{pmatrix} . Pick any v\in\mathcal{O}_{K}^{\times} and let B=\begin{pmatrix}x&v^{-1}(xw-1)\\ v&w\end{pmatrix} with \begin{cases}x=s^{-1}k-u^{-1}vd+s^{-1}(u^{-1}v+uv^{-1})\\ w=u^{-1}v(s-a)\\ \end{cases} for a suitable s\in\mathcal{O}_{K}^{\times} that we will choose so that the required conditions on \tr B will be satisfied. One can verify that the above choice of B gives \tr AB=k . Using the above expressions for x and w one sees immediately that both \tr B=x+w and (\tr A)^{2}+(\tr B)^{2}+k^{2}-k\tr A\tr B-4 are non-constant rational functions in K(s) . In particular, for all but finitely many s\in\mathcal{O}_{K}^{\times} , the condition of ( 4.1 ) is satisfied and we have \tr B\notin E , proving the claim. ∎ Proposition 4.1.4 . Let K be a number field, k=(k_{1},\dots,k_{n})\in(\mathcal{O}_{K})^{n} , M\in\mathcal{M}_{K} , n\geq 3 . Assume \mathcal{O}_{K}^{\times} is infinite. There exists a pants decomposition \mathcal{P} of \Sigma=\Sigma_{0,n+1} , a quadratic extension L of K and a \mathcal{P} -good integral representation \rho\colon\pi_{1}(\Sigma)\to\SL_{2}(\mathcal{O}_{L}) such that • the trace of the monodromy at the i -th puncture is k_{i} for i=1,\dots,n , • the monodromy at the (n+1) -st puncture is M . Proof. Pick a simple loop \gamma in \Sigma that separates the n+1 -st and the n -th puncture from the rest. This gives a decomposition \Sigma_{0,n+1}=\Sigma_{1}\cup\Sigma_{2} where \Sigma_{1} is a pair of pants. Using 4.1.3 we obtain an irreducible \SL_{2}(\mathcal{O}_{K}) -representation on \Sigma_{1} with monodromy of trace k_{n} along the n -th puncture, monodromy M along the n+1 -th puncture and monodromy M^{\prime}\in\mathcal{M}_{K} along \gamma , with \tr M^{\prime}\notin E . Moreover, when n=3 , we choose M^{\prime} so that \tr M^{\prime} , k_{1} and k_{2} satisfy the condition of ( 4.1 ). We will argue by induction on n . If n=3 , \Sigma_{2} is a pair of pants, and using 4.1.2 we find a quadratic extension L of K and an irreducible \mathcal{O}_{L} -representation on \Sigma_{2} with monodromy M^{\prime} along the puncture corresponding to \gamma . We may then glue along \gamma the two representations we constructed on \Sigma_{1} and \Sigma_{2} , thereby obtaining an \mathcal{O}_{L} representation on \Sigma_{0,4} satisfying the sought conditions. If n\geq 4 , by the inductive hypothesis there exists a quadratic extension L of K and an \mathcal{O}_{L} -representation on \Sigma_{2} satisfying the conditions of 4.1.4 with monodromy M^{\prime} along the puncture corresponding to \gamma . We may then glue along \gamma the representations on \Sigma_{1} and \Sigma_{2} , thereby obtaining a representation on \Sigma_{0,n+1} satisfying the sought conditions. ∎ 4.2. Surfaces of positive genus Lemma 4.2.1 . Assume \mathcal{O}_{K}^{\times} is infinite. Let M\in\mathcal{M}_{K} . Then there exists a pants decomposition \mathcal{P} of \Sigma_{1,2} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma_{1,2})\to\SL_{2}(\mathcal{O}_{K}) such that the monodromies along the first and second puncture are M and M^{-1} , respectively. Proof. \alpha \beta \gamma_{1} \gamma_{2} \delta Figure 2. Generators of the fundamental group of a two-holed torus We consider generators \alpha,\beta,\gamma_{1},\gamma_{2} of \pi_{1}(\Sigma_{1,2}) as in Figure 2 , and we consider the pants decomposition \mathcal{P} given by the paths \alpha and \delta . The only relations in the fundamental group are \alpha\beta\alpha^{-1}\beta^{-1}\gamma_{1}\gamma_{2}=1 and \delta=\gamma_{2}\alpha . A representation \rho as in the statement has to satisfy \rho(\gamma_{1})=M and \rho(\gamma_{2})=M^{-1} , so that a \mathcal{P} -good \rho is completely determined by A\coloneqq\rho(\alpha) and B\coloneqq\rho(\beta) , with the following conditions: • A,B\in\SL_{2}(\mathcal{O}_{K}) and ABA^{-1}B^{-1}=I ; • \tr A,\tr M^{-1}A\notin E ; • The condition of ( 4.1 ) holds for \tr A,\tr(M^{-1}A) and \tr M . As an immediate consequence of the infinitude of \mathcal{O}_{K}^{\times} , we have that there exists infinitely many matrices A=\begin{pmatrix}\lambda&t\\ 0&\lambda^{-1}\end{pmatrix} with \lambda\in\mathcal{O}_{K}^{\times} and t\in\mathcal{O}_{K} such that \tr A,\tr M^{-1}A\notin E and the condition of ( 4.1 ) holds for \tr A,\tr(M^{-1}A) and \tr M . This last condition follows from the fact that ( 4.1 ) corresponds to the representation being irreducible when restricted to the pair of pants, which means that A,M,M^{-1}A have no common fixed point when viewed as linear automorphisms of \mathbb{P}^{1} : the fixed points of A are [1:0] and [t:\lambda^{-1}-\lambda] , so that suitably picking \lambda and t they are never fixed points of M (we are using that the bottom left entry of M is a unit, since M\in\mathcal{M}_{K} ). Finally, picking any B\in\SL_{2}(\mathcal{O}_{K}) commuting with A , we see that the resulting representation satisfies the sought properties. ∎ To construct integral representations on a once-punctured torus, we introduce a subset of \mathcal{M}_{K} . Definition 4.2.2 . Let \mathcal{N}_{K}\subset\SL_{2}(\mathcal{O}_{K}) be the set of matrices \mathcal{N}_{K}=\left\{\left[\begin{pmatrix}a&u^{-1}(a-1)\\ u&1\\ \end{pmatrix},\begin{pmatrix}v&0\\ 0&v^{-1}\\ \end{pmatrix}\right]\,\Big|\,u,v,v-v^{-1}\in\mathcal{O}_{K}^{\times},\,v\notin\mu_{\infty},\,a\in\mathcal{O}_{K}\right\} Remark 4.2.3 . \mathcal{N}_{K} is closed under inversion. Remark 4.2.4 . As long as \mathcal{O}_{K} contains a unit v\in\mathcal{O}_{K}^{\times}\setminus\mu_{\infty} such that v-v^{-1} is also a unit, then \mathcal{N}_{K} is infinite. For instance, it is sufficient that \sqrt{5}\in K , so that \frac{1+\sqrt{5}}{2}\in\mathcal{O}_{K}^{\times} . Remark 4.2.5 . For \lambda\in\mathcal{O}_{K}^{\times} we have \left[\begin{pmatrix}a\lambda&u^{-1}(a-1)\lambda^{-1}\\ u\lambda&\lambda^{-1}\\ \end{pmatrix},\begin{pmatrix}v&0\\ 0&v^{-1}\\ \end{pmatrix}\right]=\left[\begin{pmatrix}a&u^{-1}(a-1)\\ u&1\\ \end{pmatrix},\begin{pmatrix}v&0\\ 0&v^{-1}\\ \end{pmatrix}\right] In particular, if \mathcal{O}_{K}^{\times} is infinite, for any M\in\mathcal{N}_{K} the set \left\{\tr A\,\Big|\,\left[A,\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]=M\right\} is infinite. Remark 4.2.6 . The matrices of \mathcal{N}_{K} are of the form M=\begin{pmatrix}a(1-v^{-2})+v^{-2}&u^{-1}a(a-1)(1-v^{2})\\[5.0pt] u(1-v^{-2})&a(1-v^{2})+v^{2}\end{pmatrix} so that \mathcal{N}_{K}\subset\mathcal{M}_{K} . We also have (4.2) \tr M=-a(v-v^{-1})^{2}+v^{2}+v^{-2} so that, since -(v-v^{-1})^{2} is a unit, for any k\in\mathcal{O}_{K} there exists a matrix M\in\mathcal{N}_{K} with \tr M=k . The following result is a consequence of the definition of \mathcal{N}_{K} : Lemma 4.2.7 . For any C\in\mathcal{N}_{K} there exists a pants decomposition \mathcal{P} of \Sigma_{1,1} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma_{1,1})\to\SL_{2}(\mathcal{O}_{K}) with monodromy C along the puncture. Proof. The fundamental group of \Sigma_{1,1} is generated by paths \alpha,\beta,\gamma with the condition [\alpha,\beta]\gamma=1 , where \gamma is the path going around the puncture. By 4.2.5 , there exists A,B\in\SL_{2}(\mathcal{O}_{K}) such that [A,B]=C , \tr A\notin E and (\tr A)^{2}\neq 2+\tr C . Let \mathcal{P}=\{\beta\} and consider the representation \rho\colon\pi_{1}(\Sigma_{1,1})\to\SL_{2}(\mathcal{O}_{K}) defined by \rho(\alpha)=B , \rho(\beta)=A and \rho(\gamma)=C . We claim that \rho is \mathcal{P} -good. If \tr C=2 , we are done by 3.1.5 (since we are in the (g,n,k)=(1,1,2) case) and the fact that \tr A\notin E . If \tr C\neq 2 , we should check that ( 4.1 ) is satisfied by \tr A,\tr A,\tr C . Indeed ( 4.1 ) can be rewritten as ((\tr A)^{2}-(2+\tr C))(2-\tr C)\neq 0, which is true by the hypotheses on \tr A and \tr C . ∎ We may now construct integral \mathcal{P} -good representations on surfaces with one puncture: Proposition 4.2.8 . Let K be a number field, g\geq 1 and M\in\mathcal{N}_{K} such that \tr M\notin E . Assume that \mathcal{O}_{K}^{\times} is infinite. There exists a pants decomposition \mathcal{P} of \Sigma=\Sigma_{g,1} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma)\to\SL_{2}(\mathcal{O}_{K}) with monodromy M at the puncture. Proof. We proceed by induction on g . When g=1 , this is 4.2.7 . If g>1 , consider a separating path \gamma cutting \Sigma into two surfaces \Sigma_{1} and \Sigma_{2} , where \Sigma_{1} is a surface of type (1,2) containing the puncture of \Sigma (and with the other puncture along \gamma ), and \Sigma_{2} is of type (g-1,1) with a puncture along \gamma . By 4.2.1 there exists an integral representation of \pi_{1}(\Sigma_{1}) with monodromy M along the puncture of \Sigma and monodromy M^{-1} along \gamma , and satisfying the conditions of 4.2.8 . Since M^{-1}\in\mathcal{N}_{K} , by the induction hypothesis there exists an integral representation on \Sigma_{2} satisfying the conditions of 4.2.8 , and with monodromy M^{-1} along \gamma . We may then glue the two representation and obtain the sought integral representation on \Sigma . ∎ 4.2.8 does not cover the case where the trace of the monodromy at the puncture belongs to E . In order to treat this case, we need the following: Lemma 4.2.9 . Let k\in\mathcal{O}_{K}\cap E and let A\in\mathcal{M}_{K} with \tr A\notin E . Assume that there exists v\in\mathcal{O}_{K}^{\times}\setminus\mu_{\infty} for which v-v^{-1}\in\mathcal{O}_{K}^{\times} . Then there exists a quadratic extension L of K and matrices M\in\SL_{2}(\mathcal{O}_{L}) and B\in\mathcal{N}_{L} such that ABM=I , \tr M=k , \tr B\notin E and the traces of A,B and M satisfy the condition of ( 4.1 ). Proof. We argue as in 4.1.3 . Let A=\begin{pmatrix}x&y\\ z&w\end{pmatrix}\in\mathcal{M}_{K} , so that z\in\mathcal{O}_{K}^{\times} . We will choose L and B\in\mathcal{N}_{L} of the form B=\begin{pmatrix}a(1-v^{-2})+v^{-2}&u^{-1}a(a-1)(1-v^{2})\\[5.0pt] u(1-v^{-2})&a(1-v^{2})+v^{2}\end{pmatrix}. Our aim is to pick a\in\mathcal{O}_{L} and u\in\mathcal{O}_{L}^{\times} so that \tr AB=k , where L is a suitable quadratic extension of K . The equation \tr AB=k is (4.3) x(a(1-v^{-2})+v^{-2})+yu(1-v^{-2})+zu^{-1}a(a-1)(1-v^{2})+w(a(1-v^{2})+v^{2})=k After dividing by z(1-v^{2})u^{-1} (which is a unit), this becomes a monic quadratic equation in a with \mathcal{O}_{K} -integral coefficients. Therefore, for any u\in\mathcal{O}_{K}^{\times} , there exists a quadratic extension L of K and a\in\mathcal{O}_{L} that solves ( 4.3 ). Moreover, we claim that the coefficients of this quadratic equation are non-constant polynomials in u . Indeed if this was not the case, one would have that \begin{cases}x+w=xv^{-2}+wv^{2}\\ x+w=k\\ \end{cases} which would imply that \tr A=k\in E , contradicting the hypotheses. In particular, as u varies in \mathcal{O}_{K}^{\times} , the a ’s solving ( 4.3 ) vary in an infinite set. In order to complete the proof, we just need to show that by choosing a suitable u\in\mathcal{O}_{K}^{\times} we can ensure that \tr B\notin E and that the traces of A,B and M satisfy ( 4.1 ). We claim that only for finitely many such u ’s we have \tr B\in E . Indeed, if a solves ( 4.3 ), then [\mathbb{Q}(a):\mathbb{Q}]\leq 2[K:\mathbb{Q}] and, if \tr B\in E , then from ( 4.2 ) one deduces that the Weil height h(a) is bounded, so Northcott’s theorem implies that there are only finitely many choices of u with \tr B\in E . Similarly, substituting the traces of A,B and M in ( 4.1 ), one finds a quadratic equation in a with constant coefficients, so for all but (at most) two values of a , the condition of ( 4.1 ) is satisfied. The statement follows by picking any u\in\mathcal{O}_{K}^{\times} such that the corresponding a does not belong to the finite set where the two conditions are not satisfied. ∎ Proposition 4.2.10 . Fix k\in\mathcal{O}_{K}\cap E and M\in\mathcal{M}_{K} with \tr M\notin E . Assume that there exists v\in\mathcal{O}_{K}^{\times}\setminus\mu_{\infty} for which v-v^{-1}\in\mathcal{O}_{K}^{\times} . Then there exists a quadratic extension L of K , a pants decomposition \mathcal{P} of \Sigma_{1,2} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma_{1,2})\to\SL_{2}(\mathcal{O}_{L}) such that the monodromy along one puncture is M and the monodromy along the other puncture has trace k . Proof. Take a separating path \gamma around the two punctures of \Sigma_{1,2} , so that \gamma cuts \Sigma_{1,2} into surfaces \Sigma_{1} and \Sigma_{2} of type (0,3) and (1,1) , respectively, so that the puncture of \Sigma_{2} corresponds to \gamma . By 4.2.9 , there exists a quadratic extension L of K and an irreducible \SL_{2}(\mathcal{O}_{L}) -local system \rho_{1} on \Sigma_{1} , such that the monodromy of \rho_{1} along the puncture corresponding to \gamma is a matrix N\in\mathcal{N}_{L} with \tr N\notin E , and at another puncture the monodromy is M , and at the last puncture it has trace k . By 4.2.7 , there exists a pants decomposition \mathcal{P}^{\prime} of \Sigma_{2} and a \mathcal{P}^{\prime} -good \SL_{2}(\mathcal{O}_{L}) -local system \rho_{2} on \Sigma_{2} with monodromy N along the puncture. Let \mathcal{P}\coloneqq\{\gamma\}\cup\mathcal{P}^{\prime} be a pants decomposition of \Sigma_{1,2} . Then, gluing \rho_{1} and \rho_{2} , we obtain a \mathcal{P} -good \SL_{2}(\mathcal{O}_{L}) -representation on \Sigma_{1,2} satisfying the sought conditions. ∎ 5. Proof of potential density In this section we prove potential density of integral points on relative \SL_{2} -character varieties of surface groups. We first construct integral \mathcal{P} -good representations in general: Proposition 5.0.1 . Let \Sigma be a surface of type (g,n) with 3g-3+n>0 , K be number field and k=(k_{1},\dots,k_{n})\in(\mathcal{O}_{K})^{n} . Assume that there exists v\in\mathcal{O}_{K}^{\times}\setminus\mu_{\infty} for which v-v^{-1}\in\mathcal{O}_{K}^{\times} . Then there exists a quadratic extension L of K , a pants decomposition \mathcal{P} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma)\to\SL_{2}(\mathcal{O}_{L}) such that [\rho]\in X_{g,n,k}(\mathcal{O}_{L}) . Proof. Recall that the hypothesis on K implies that \mathcal{N}_{K} and \mathcal{O}_{K}^{\times} are infinite. We will distinguish various cases depending on the values of n and g . If n=0 , then g\geq 2 . Take a separating path \gamma cutting \Sigma into two surfaces \Sigma_{1} and \Sigma_{2} , where \Sigma_{1} is a surface of type (1,1) with a puncture along \gamma and \Sigma_{2} is of type (g-1,1) with a puncture along \gamma . Pick M\in\mathcal{N}_{K} with \tr M\notin E (this always exists by 4.2.6 ); by 4.2.8 there exist good integral representations on \Sigma_{1} and \Sigma_{2} with monodromy M along \gamma , so that the claim follows by gluing. If n=1 and g=1 , by 4.2.6 there exists M\in\mathcal{N}_{K} such that \tr M=k , and the claim follows from 4.2.7 . If n=1 , g>1 and k\notin E , then the same reasoning works by using 4.2.8 . Instead, if k\in E , we pick M\in\mathcal{N} with \tr M\notin E and we consider a separating path \gamma cutting \Sigma into two surfaces \Sigma_{1} and \Sigma_{2} , where \Sigma_{1} is a surface of type (1,2) containing the puncture of \Sigma (and with the other puncture along \gamma ), and \Sigma_{2} is of type (g-1,1) with a puncture along \gamma . Applying 4.2.10 to \Sigma_{1} and 4.2.8 to \Sigma_{2} , and possibly taking a quadratic extension of K , we find good integral representations with monodromy M along \gamma , and the claim follows by gluing. If n=2 , then g>0 , so that we can take a separating path \gamma cutting \Sigma into two surfaces \Sigma_{1} and \Sigma_{2} , where \Sigma_{1} is a pair of pants containing the two punctures of \Sigma (and with the other puncture along \gamma ), and \Sigma_{2} is of type (g,1) with a puncture along \gamma . Pick any M\in\mathcal{N}_{K} such that \tr M , k_{1} and k_{2} satisfy ( 4.1 ) and \tr M\notin E . The claim then follows applying 4.1.2 and 4.2.8 and gluing the constructed representations with monodromy M along \gamma . If n\geq 3 and g=0 , then n\geq 4 . Pick M\in\mathcal{M}_{K} such that \tr M=k_{n} : applying 4.1.4 we find a good integral representation satisfying the sought-after trace conditions at the punctures, possibly defined over a quadratic extension of K . If n\geq 3 and g>0 , take a separating path \gamma cutting \Sigma into two surfaces \Sigma_{1} and \Sigma_{2} , where \Sigma_{1} is of type (0,n+1) and contains all the n punctures of \Sigma (and with the other puncture along \gamma ), and \Sigma_{2} is of type (g,1) with a puncture along \gamma . Pick any M\in\mathcal{N}_{K} with \tr M\notin E . The claim follows by applying 4.1.4 and 4.2.8 and gluing the constructed representations with monodromy M along \gamma . ∎ Combining 5.0.1 and 3.1.10 we obtain: Theorem 5.0.2 . Let \Sigma be a surface of type (g,n) with 3g-3+n>0 , K be number field, and k=(k_{1},\dots,k_{n})\in(\mathcal{O}_{K})^{n} . There exists p\in X_{g,n,k}(\overline{\mathbb{Z}}) such that \Gamma_{g,n}\cdot p is Zariski dense in X_{g,n,k,\overline{\mathbb{Q}}} . Before establishing Theorem 1.1.2 for relative \SL_{2} -character varieties of surfaces, we separately treat the following special case: Lemma 5.0.3 . The surface X\colon x^{2}+y^{2}+z^{2}-xyz-4=0 contains a Zariski dense set of \mathbb{Z} -points. Proof. The automorphism \tau_{x}(x,y,z)=(x,z,xz-y) of X fixes x and acts on \begin{pmatrix}y\\ z\end{pmatrix} as the matrix \begin{pmatrix}0&1\\ -1&x\\ \end{pmatrix} . Whenever x\notin E , we have that \begin{pmatrix}0&1\\ -1&x\\ \end{pmatrix}^{n}-\begin{pmatrix}1&0\\ 0&1\\ \end{pmatrix} is invertible, which implies that (x,0,0) is the only point of \mathbb{A}^{3} with finite \tau_{x} -orbit and first coordinate equal to x . It follows that, for all n\in\mathbb{Z} , the point (n,n,2) has a Zariski dense \tau_{x} -orbit in the curve x=n , proving the claim. ∎ We can finally prove the following: Theorem 5.0.4 . Let \Sigma_{g,n} be an orientable surface of genus g with n punctures. Let k\in\overline{\mathbb{Z}}^{n} be an n -tuple of algebraic integers. There exists a number field K such that X_{g,n,k}(\mathcal{O}_{K}) is Zariski dense. Proof. When 3g-3+n>0 the result follows from Theorem 5.0.2 . If 3g-3+n\leq 0 and g=0 , then the relative character variety is a point (see e.g. 3.1.6 ), so the claim is trivial. If 3g-3+n\leq 0 and g=1 , then n=0 : by 3.1.3 X_{SL_{2}}(\Sigma_{1,0}) is just the (full) character variety of a torus, that is x^{2}+y^{2}+z^{2}-xyz-4=0 , so we conclude by 5.0.3 . ∎ Remark 5.0.5 . Unwinding the proof, one can check that if K=\mathbb{Q}(k_{1},\cdots,k_{n}) is the number field generated by the coordinates of k\in\overline{\mathbb{Z}}^{n} , then there exists a degree 4 (in fact biquadratic) extension L of K such that \mathscr{O}_{L} -points are Zariski-dense in X_{g,n,k,\overline{\mathbb{Q}}} . Remark 5.0.6 . Some extension is necessary; indeed, consider the variety x^{2}+y^{2}+z^{2}-xyz=3, which is a relative character variety of \Sigma_{1,1} , by § 3.1.1 . Working mod 3 , we see that any \mathbb{Z} -point of this variety must have x=y=z=0\bmod 3 . But then x^{2}+y^{2}+z^{2}-xyz is divisible by 9 , and hence cannot equal 3 . Thus this relative character variety has no \mathbb{Z} -points. 6. \PGL_{2} -character varieties Let \Sigma=\Sigma_{g,n} be an orientable surface of genus g with n punctures. The \PGL_{2} -representation variety \Hom(\pi_{1}(\Sigma),\PGL_{2}) is the affine scheme representing the functor A\mapsto\Hom(\pi_{1}(\Sigma),\PGL_{2}(A)). The \PGL_{2} -character variety X_{\PGL_{2}}(\Sigma) is the (categorical) quotient \Hom(\pi_{1}(\Sigma),\PGL_{2})/\PGL_{2} under the action of \PGL_{2} by conjugation. The regular function \frac{\tr^{2}}{\det} descends from \operatorname{GL}_{2} to \PGL_{2} . Hence for each a\in\pi_{1}(\Sigma) there is a regular function f_{a}\coloneqq\frac{\tr_{a}^{2}}{\det_{a}}\colon\Hom(\pi_{1}(\Sigma),\PGL_{2})\to\mathbb{A}^{1} given by \rho\mapsto\frac{\tr(\rho(a))^{2}}{\det(\rho(a))} , which descend to a regular function f_{a}\colon X_{\PGL_{2}}(\Sigma)\to\mathbb{A}^{1} . There is a natural morphism f_{\partial\Sigma}\colon X_{\PGL_{2}}(\Sigma)\to\mathbb{A}^{n} sending p\in X_{\PGL_{2}}(\Sigma) to the n -tuple of f_{a}(p) ’s as a varies along the n boundary components of \Sigma . For k\in\mathbb{A}^{n} , we denote by X_{\PGL_{2},k}(\Sigma)\coloneqq f_{\partial\Sigma}^{-1}(k) the relative \PGL_{2} -character variety of \Sigma . The goal of this section is to prove the following: Theorem 6.0.1 . Let \Sigma be a surface of type (g,n) and k\in\mathbb{A}^{n}(\overline{\mathbb{Z}}) . Then there exists a number field K such that X_{\PGL_{2},k}(\Sigma)(\mathcal{O}_{K}) is Zariski dense. We will do so by reducing the statement to the potential density of integral points on certain \SL_{2} -character varieties. 6.1. Reduction to potential density on \SL_{2} -character varieties Given k=(k_{1},\dots,k_{n})\in\mathbb{A}^{n}(\overline{\mathbb{Q}}) , we let \sqrt{k}_{+}=(\sqrt{k_{1}},\dots,\sqrt{k_{n-1}},\sqrt{k_{n}}) and \sqrt{k}_{-}=(\sqrt{k_{1}},\dots,\sqrt{k_{n-1}},-\sqrt{k_{n}}) for a fixed choice of square roots. There are natural morphisms X_{\SL_{2},\sqrt{k}_{+}}(\Sigma)\to X_{\PGL_{2},k}(\Sigma) and X_{\SL_{2},\sqrt{k}_{-}}(\Sigma)\to X_{\PGL_{2},k}(\Sigma) . We have the following: Proposition 6.1.1 . Let \Sigma be a surface of type (g,n) with n>0 and let k\in\mathbb{A}^{n}(\overline{\mathbb{Q}}) . Then each point of X_{\PGL_{2},k}(\Sigma)(\overline{\mathbb{Q}}) lifts to either X_{\SL_{2},\sqrt{k}_{+}}(\Sigma)(\overline{\mathbb{Q}}) or X_{\SL_{2},\sqrt{k}_{-}}(\Sigma)(\overline{\mathbb{Q}}) . Proof. Consider a standard presentation \pi_{1}(\Sigma)=\langle\alpha_{1},\beta_{1},\dots,\alpha_{g},\beta_{g},\gamma_{1},\dots,\gamma_{n}\,|\,[\alpha_{1},\beta_{1}]\cdots[\alpha_{g},\beta_{g}]\gamma_{1}\cdots\gamma_{n}=1\rangle of the fundamental group of \Sigma . Let p\in X_{\PGL_{2},k}(\Sigma)(\overline{\mathbb{Q}}) and let \rho\in\Hom(\pi_{1}(\Sigma),\PGL_{2}(\overline{\mathbb{Q}})) be a lift of p to the representation variety. Choose \widetilde{\rho}(\alpha_{i}),\widetilde{\rho}(\beta_{i}),\widetilde{\rho}(\gamma_{i})\in\SL_{2}(\overline{\mathbb{Q}}) lifting \rho(\alpha_{i}),\rho(\beta_{i}),\rho(\gamma_{i}) such that \tr\widetilde{\rho}(\gamma_{i})=\sqrt{k_{i}} for i=1,\dots,n . In particular, we have that [\widetilde{\rho}(\alpha_{1}),\widetilde{\rho}(\beta_{1})]\cdots[\widetilde{\rho}(\alpha_{g}),\widetilde{\rho}(\beta_{g})]\widetilde{\rho}(\gamma_{1})\cdots\widetilde{\rho}(\gamma_{n})=\pm I, where I denotes the identity matrix. If the right hand side is +I , then [\widetilde{\rho}] provides a lift of p to X_{\SL_{2},\sqrt{k}_{+}}(\Sigma)(\overline{\mathbb{Q}}) . Otherwise, consider the \SL_{2} -representation \widetilde{\rho}_{-} which agrees with \widetilde{\rho} on all generators of \pi_{1}(\Sigma) except \gamma_{n} , where instead \widetilde{\rho}_{-}(\gamma_{n})\coloneqq-\widetilde{\rho}(\gamma_{n}) . Then [\widetilde{\rho}_{-}] provides a lift of p to X_{\SL_{2},\sqrt{k}_{-}}(\Sigma)(\overline{\mathbb{Q}}) . ∎ Corollary 6.1.2 . The map X_{\SL_{2},\sqrt{k}_{+}}(\Sigma)\sqcup X_{\SL_{2},\sqrt{k}_{-}}(\Sigma)\to X_{\PGL_{2},k}(\Sigma) is dominant. In order to obtain a statement analogous to the above in the non-punctured case, we need to introduce the moduli space of \SL_{2} -local systems on a once-punctured surface with monodromy -I at the puncture. Let \Sigma be a surface of type (g,1) and consider a standard presentation of its fundamental group \pi_{1}(\Sigma)=\langle\alpha_{1},\beta_{1},\dots,\alpha_{g},\beta_{g},\gamma\,|\,[\alpha_{1},\beta_{1}]\cdots[\alpha_{g},\beta_{g}]\gamma=1\rangle where \gamma is a loop around the puncture. Let \Hom(\pi_{1}(\Sigma),\SL_{2})_{-I} be the scheme representing the functor A\mapsto\{\rho\in\Hom(\pi_{1}(\Sigma),\SL_{2}(A))\,|\,\rho(\gamma)=-I\}. and let X_{g,-I}\coloneqq\Hom(\pi_{1}(\Sigma),\SL_{2})_{-I}/\SL_{2} be the categorical quotient under the action of \SL_{2} by conjugation. We have the following analogue of 6.1.1 : Proposition 6.1.3 . Let \Sigma be a surface of type (g,0) with g\geq 1 . Then each point of X_{\PGL_{2}}(\Sigma)(\overline{\mathbb{Q}}) lifts to either X_{\SL_{2}}(\Sigma)(\overline{\mathbb{Q}}) or X_{g,-I}(\overline{\mathbb{Q}}) . Proof. Analogous to 6.1.1 . ∎ Corollary 6.1.4 . The map X_{\SL_{2}}(\Sigma)\sqcup X_{g,-I}\to X_{\PGL_{2}}(\Sigma) is dominant. The goal of the incoming sections is to prove the following: Theorem 6.1.5 . There exists a number field K for which X_{g,-I}(\mathcal{O}_{K}) is Zariski dense. As a corollary of Theorem 6.1.5 and Theorem 5.0.4 , we can now obtain Theorem 6.0.1 . Proof of Theorem 6.0.1 , assuming Theorem 6.1.5 . The statement follows from 6.1.2 and Theorem 5.0.4 if n>0 , and from 6.1.4 and Theorem 6.1.5 if n=0 . ∎ 6.2. Dynamics on X_{g,-I} Let \Sigma be a surface of type (g,1) with g\geq 2 and let \mathcal{P} be a pants decomposition of \Sigma . The pair of pants containing the puncture of \Sigma will have two more punctures corresponding to paths of \mathcal{P} , which we denote by \gamma and \delta . Let us fix an enumeration \mathcal{P}=\{a_{1},\dots,a_{3g-3},a_{3g-3+1}\} , where a_{3g-3}=\gamma and a_{3g-3+1}=\delta . We consider the modified trace map \tr_{\mathcal{P},-I}\colon X_{g,-I}\to\mathbb{A}^{3g-3} that sends a point of X_{g,-I} to the traces along all paths of \mathcal{P} except \delta . For t\in\mathbb{A}^{3g-3} , we denote X^{\mathcal{P}}_{t,-I}\coloneqq\tr_{\mathcal{P},-I}^{-1}(t) . Let (-)|_{\Sigma\setminus\mathcal{P}}\colon X_{g,-I}\to X(\Sigma_{1})\times\cdots\times X(\Sigma_{2g-2}) be the morphism induced by the immersion \Sigma\setminus\mathcal{P}\to\Sigma , where the product on the right hand side is taken over all the pair of pants associated to \mathcal{P} , with the exception of the pair of pants containing the puncture of \Sigma . Clearly (-)|_{\Sigma\setminus\mathcal{P}} is constant along each fiber X^{\mathcal{P}}_{t,-I} . Definition 6.2.1 . We say that X^{\mathcal{P}}_{t,-I} is perfect if • for all a_{i}\in\mathcal{P} , we have \tr_{a_{i}}(X^{\mathcal{P}}_{t,-I})\neq\pm 2 and • g=1 or, for each [\rho] in X^{\mathcal{P}}_{t,-I}(\mathbb{C}) , its restriction to each component of {\Sigma\setminus\mathcal{P}} is irreducible, with the exception of the component containing the puncture of \Sigma . Let X^{\mathcal{P}}_{t,-I} be a perfect fiber. Notice that the action of \Gamma_{\mathcal{P}} preserves X^{\mathcal{P}}_{t,-I} . Fix (\lambda_{1},\dots,\lambda_{3g-3})\in(\overline{\mathbb{Q}}^{\times})^{3g-3} such that \lambda_{i}+\lambda_{i}^{-1}=t_{i} . We denote by T_{z_{i}}\colon\mathbb{G}_{m}^{3g-3}\to\mathbb{G}_{m}^{3g-3} the multiplication of the i -th coordinate by \lambda_{i} . Proposition 6.2.2 . If X^{\mathcal{P}}_{t,-I} be a perfect fiber, then there is a morphism F\colon\mathbb{G}_{m}^{3g-3}\to X^{\mathcal{P}}_{t,-I} defined over \overline{\mathbb{Q}} satisfying the following: (1) at the level of \overline{\mathbb{Q}} -points, F is surjective with finite fibers, (2) the action of T_{z_{i}} on \mathbb{G}_{m}^{3g-3} lifts the action of the Dehn twist \tau_{a_{i}} on X^{\mathcal{P}}_{t,-I} . Proof. We refer the reader to the proof of [ Wha20a , Proposition 4.3 ] , as the argument is the same, with the only difference that in our case one obtains a morphism from \mathbb{G}_{m}^{3g-3} to X^{\mathcal{P}}_{t,-I} , rather than from \mathbb{G}_{m}^{3g-3+1} as in [ Wha20a , Proposition 4.3 ] . This is due to the fact that the restriction of a representation \rho\in\Hom(\pi_{1}(\Sigma),\SL_{2})_{-I}(\overline{\mathbb{Q}}) to the pair of pants containing the puncture of \Sigma is uniquely determined by \rho(\gamma) , since \rho(\delta)=-\rho(\gamma)^{-1} as the monodromy at the puncture is -I . ∎ Definition 6.2.3 . Let \mathcal{P} be a pants decomposition of \Sigma , p\in X_{g,-I} and t\coloneqq\tr_{\mathcal{P},-I}(p) . We say that p is \mathcal{P} -good if X^{\mathcal{P}}_{t,-I} is perfect and, for any a\in\mathcal{P}\setminus\{\gamma\cup\delta\} , we have \tr_{a}(X^{\mathcal{P}}_{t,-I})\notin E . Let \Gamma_{-I} be the subgroup of the mapping class group of \Sigma which is the identity on \gamma and \delta . In particular \Gamma_{-I} preserves the fibers of \tr_{\gamma} . We have the following: Proposition 6.2.4 . Let \mathcal{P} be a pants decomposition and let p\in X_{g,-I}(\overline{\mathbb{Q}}) be a \mathcal{P} -good point. Then \Gamma_{-I}\cdot p is Zariski dense in \tr_{\gamma}^{-1}(\tr_{\gamma}(p)) . Proof. The proof is the same as 3.1.10 , except that we only use Dehn twists along paths that do not intersect \gamma and \delta . ∎ In light of the previous proposition, in order to prove Theorem 6.1.5 it is sufficient to find a number field K and a pants decomposition \mathcal{P} of \Sigma for which there exists infinitely many \mathcal{P} -good points p\in X_{g,-I}(\mathcal{O}_{K}) with distinct traces along \gamma . We will construct these points in the next section. 6.3. Construction of an integral representation We introduce a class of matrices that will play the same role as the class \mathcal{N}_{K} used in § 4 . Definition 6.3.1 . Let K be a finite extension of \mathbb{Q}(i) . We define \mathcal{L}_{K}\subset\SL_{2}(\mathcal{O}_{K}) as the set of matrices \displaystyle\mathcal{L}_{K} \displaystyle=\left\{\begin{pmatrix}ad+bc&2ab\\ 2cd&ad+bc\\ \end{pmatrix}\,\Big|\,a,b,c,d\in\mathcal{O}_{K},ad-bc=1,cd\neq 0\right\} \displaystyle=\left\{\left[\begin{pmatrix}a&b\\ c&d\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]\,\Big|\,a,b,c,d\in\mathcal{O}_{K},ad-bc=1,cd\neq 0\right\} Remark 6.3.2 . For \lambda\in\mathcal{O}_{K}^{\times} we have \left[\begin{pmatrix}a\lambda&b\lambda^{-1}\\ c\lambda&d\lambda^{-1}\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]=\left[\begin{pmatrix}a&b\\ c&d\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]. In particular, if \mathcal{O}_{K}^{\times} is infinite, for any M\in\mathcal{L}_{K} the set \left\{\tr A\,\Big|\,\left[A,\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]=M\right\} is infinite. Remark 6.3.3 . If M\in\mathcal{L}_{K} then M^{-1}\in\mathcal{L}_{K} and -M\in\mathcal{L}_{K} . Indeed \left[\begin{pmatrix}a&b\\ c&d\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]^{-1}=\left[\begin{pmatrix}-a&b\\ c&-d\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right] and -\left[\begin{pmatrix}a&b\\ c&d\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right]=\left[\begin{pmatrix}-b&a\\ -d&c\\ \end{pmatrix},\begin{pmatrix}i&0\\ 0&-i\\ \end{pmatrix}\right] The class of matrices \mathcal{L}_{K} satisfies similar properties as \mathcal{N}_{K} . Specifically, we have the following: Lemma 6.3.4 . Assume \mathcal{O}_{K}^{\times} is infinite. Let M\in\mathcal{L}_{K} . Then there exists a pants decomposition \mathcal{P} of \Sigma_{1,2} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma_{1,2})\to\SL_{2}(\mathcal{O}_{K}) such that the monodromies along the first and second puncture are M and M^{-1} , respectively. Proof. The proof is the same as 4.2.1 , and crucially uses that the bottom left entry of M is non-zero. ∎ Lemma 6.3.5 . Assume \mathcal{O}_{K}^{\times} is infinite. For any M\in\mathcal{L}_{K} there exists a pants decomposition \mathcal{P} of \Sigma_{1,1} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma_{1,1})\to\SL_{2}(\mathcal{O}_{K}) with monodromy M along the puncture. Proof. This is an immediate consequence of 6.3.2 . ∎ Proposition 6.3.6 . Let K be a number field, g\geq 1 and M\in\mathcal{L}_{K} such that \tr M\notin E . Assume that \mathcal{O}_{K}^{\times} is infinite. There exists a pants decomposition \mathcal{P} of \Sigma=\Sigma_{g,1} and a \mathcal{P} -good representation \rho\colon\pi_{1}(\Sigma)\to\SL_{2}(\mathcal{O}_{K}) with monodromy M at the puncture. Proof. The proof is analogous to 4.2.8 and crucially uses that \mathcal{L}_{K} is closed under inversion. ∎ \gamma \delta Figure 3. A pants decomposition as in the proof of 6.3.7 We may now prove the main result of this section: Proposition 6.3.7 . Let K be a number field such that \mathcal{O}_{K}^{\times} is infinite. Let g\geq 2 , \Sigma a surface of type (g,1) , \mathcal{P} the pants decomposition of Figure 3 and M\in\mathcal{L}_{K} such that \tr M\notin E . There exists a \mathcal{P} -good \SL_{2}(\mathcal{O}_{K}) -representation with monodromy -I along the puncture and monodromy M along \gamma . Proof. Consider separating paths \gamma and \delta as in Figure 3 that cut \Sigma into the following three surfaces: (1) \Sigma_{1} of type (g-1,1) with a puncture along \gamma , (2) \Sigma_{2} of type (0,3) , where the punctures correspond to \gamma , \delta and the puncture of \Sigma , (3) \Sigma_{3} of type (1,1) , with a puncture along \delta . By 6.3.6 , there exists a pants decomposition \mathcal{P}_{1} of \Sigma_{1} and a \mathcal{P}_{1} -good \SL_{2}(\mathcal{O}_{K}) -representation \rho_{1} on \Sigma_{1} with monodromy M along \gamma . Since -M^{-1}\in\mathcal{L}_{K} (see 6.3.3 ), by 6.3.5 there exists a pants decomposition \mathcal{P}_{3} of \Sigma_{3} and a \mathcal{P}_{3} -good \SL_{2}(\mathcal{O}_{K}) -representation \rho_{3} on \Sigma_{3} with monodromy -M^{-1} along \delta . Finally, consider the \SL_{2}(\mathcal{O}_{K}) -representation \rho_{2} on \Sigma_{2} with monodromy M along \gamma , -M^{-1} along \delta and -I at the puncture. Let \mathcal{P}=\mathcal{P}_{1}\cup\{\gamma\}\cup\{\delta\}\cup\mathcal{P}_{3} . Since \rho_{1},\rho_{2} and \rho_{3} agree on \gamma and \delta , we may glue them and find the sought \mathcal{P} -good \SL_{2}(\mathcal{O}_{K}) -representation \rho on \Sigma with monodromy -I along the puncture and monodromy M along \gamma . ∎ Proof of Theorem 6.1.5 . If g=1 the claim is trivial since X_{1,-I} is a single point, as it corresponds to the point (0,0,0) of the Markov surface x^{2}+y^{2}+z^{2}-xyz=0 (see 3.1.3 ). If g>1 , enlarge K so that \mathcal{O}_{K}^{\times} is infinite and consider a subset \{M_{n}\}_{n\geq 1}\subset\mathcal{L}_{K} such that \tr M_{n}\notin E for all n and the set \{\tr M_{n}\}_{n\geq 1} is infinite. By 6.3.7 and 6.2.4 , for each n the fiber \tr_{\gamma}^{-1}(\tr M_{n}) of \tr_{\gamma}\colon X_{g,-I}\to\mathbb{A}^{1} contains a Zariski dense set of \mathcal{O}_{K} -points. The claim follows from the infinitude of \{\tr M_{n}\}_{n\geq 1} . ∎ 7. Proof of Theorem 1.1.2 We now begin preparations for the proof of Theorem 1.1.2 , on potential density of integral points in relative character varieties of smooth quasi-projective varieties Y with \dim Y>1 . We will require a few preparatory lemmas. 7.1. Relative character varieties and morphisms let Y be a smooth complex variety equipped with a projective simple normal crossings compactification \overline{Y} , with boundary divisor D=\cup_{i=1}^{n}D_{i} . Let G be \SL_{2,\mathbb{Z}} or \PGL_{2,\mathbb{Z}} , K a number field, and \underline{C}=(C_{1},\cdots,C_{n})\in(G/_{\text{ad}}G)(\mathscr{O}_{K})^{n} . Recall that we are studying X_{G,\underline{C}}(Y) , the relative character variety parametrizing representations with fixed traces along D_{i} , defined as in the introduction. Remark 7.1.1 . A priori X_{G,\underline{C}}(Y) depends on the compactification \overline{Y} , but in fact this is not the case—further blow-ups add additional components D_{j}^{\prime} to D but their boundary data is already determined by \underline{C} (as a small loop around the exceptional divisor is a product of commuting loops about the strict transforms of the components of D it meets). Given two simple normal crossings compactifications of Y , we may thus dominate them by a third to compare relative character varieties. We leave verifying the details to the reader; we will in what follows freely replace \overline{Y} with a blowup. Lemma 7.1.2 . Let Z be an orbicurve, i.e. a smooth Deligne-Mumford curve containing a scheme as a dense open subset. With notation as above, let [\rho]\in X_{G,\underline{C}}(Y) be a point and f:Y\to Z be a morphism with connected fibers so that \rho factors through the induced map \pi_{1}(Y)\to\pi_{1}(Z) (i.e. \rho “factors through an orbicurve” in the language of [ CS08 ] ). Then there exists \underline{C}^{\prime}\in(G/_{\text{ad}}G)(\mathscr{O}_{K})^{m} , for appropriate m , so that [\rho] is in the image of the induced map f^{*}:X_{G,\underline{C}^{\prime}}(Z)\to X_{G,\underline{C}}(Y). Proof. That there exists some \underline{C}^{\prime} such that [\rho] is in the image of f^{*}:X_{G,\underline{C}^{\prime}}(Z)\to X_{G,\underline{C}}(Y) is clear by the assumption that \rho factors through an orbicurve; all that needs to be checked is that we may take \underline{C}^{\prime}\in(G/_{\text{ad}}G)(\mathscr{O}_{K})^{m} , i.e. that it is integral. After replacing \overline{Y} by a blowup, we may assume f extends to a map \overline{f}:\overline{Y}\to\overline{Z}, where \overline{Z} is a smooth proper orbicurve containing Z . Let E=\overline{Z}\setminus Z . Now each component D_{i} of D=\overline{Y}\setminus Y either (1) dominates \overline{Z} , (2) maps to a point of Z , or (3) maps to a point of E . In the first two cases, we have that C_{i} is the class of the identity in (G/_{\text{ad}}G)(\mathscr{O}_{K})^{m} . In the last case, a small loop around \overline{f}(D_{i}) has some multiple lifting to a small loop around D_{i} . Hence we may take C^{\prime}_{i} to be such that some integer power of it is in C_{i} , whence it is in (G/_{\text{ad}}G)(\mathscr{O}_{K}) as desired. ∎ 7.2. Non-Zariski dense representations We start by recalling the classification of maximal-Zariski closed subgroups of \SL_{2,\mathbb{C}} , resp. PGL_{2,\mathbb{C}} . Any such is either finite, a Borel (conjugate to the subgroup of matrices of the form \begin{pmatrix}a&b\\ 0&c\end{pmatrix}, where the a,b,c\in\mathbb{C} and ac=1 ) or the normalizer of a maximal torus (conjugate to the subgroup of matrices of the form \begin{pmatrix}a&0\\ 0&b\end{pmatrix}\text{ or }\begin{pmatrix}0&c\\ d&0\end{pmatrix} with ab=1 , resp. cd=-1 ). We first observe that integral points are potentially dense in the subset of X_{G,\underline{C}}(Y) consisting of representations that may be conjugated into one of these maximal Zariski-closed subgroups. Lemma 7.2.1 . Let Y be a smooth complex variety equipped with a smooth projective simple normal crossings compactification \overline{Y} , with D=\overline{Y}\setminus Y , and D=\cup_{i=1}^{n}D_{i} the irreducible components of D . Let G=\PGL_{2,\mathbb{Z}} or G=\SL_{2,\mathbb{Z}} and fix a tuple of points \underline{C}=(C_{1},\cdots,C_{n})\in(G/_{\text{ad}}G)^{n}(\mathscr{O}_{K}) for some number field K . Let Z\subset X_{G,\underline{C}}(Y)_{\overline{\mathbb{Q}}} be the closed subscheme consisting of representations whose image is not Zariski-dense. There exists a number field K^{\prime}\supset K such that Z(\mathscr{O}_{K^{\prime}}) is Zariski-dense in Z . Proof. Let Z_{i} be an irreducible component of Z , and \eta_{i} the generic point of Z_{i} . Let \overline{\kappa(\eta_{i})} be an algebraic closure of the residue field of \eta_{i} , and \rho_{i}:\pi_{1}(Y)\to G(\overline{\kappa(\eta_{i})}) the corresponding representation. There are three cases: (1) \rho_{i} has finite image: in this case, \rho_{i} is already defined over the ring of integers of some number field and hence is Zariski-dense in Z_{i} , which is a point. (2) \rho_{i} has image contained in a Borel. In this case the same is true for all [\rho] in Z_{i} . Each such \rho is S -equivalent to a representation factoring through a maximal torus T of G , i.e. it corresponds to the same point of the character variety as such a representation. Any representation of \pi_{1}(Y) into T factors through \pi_{1}(Y)^{\text{ab}} , a finitely-generated Abelian group, say \mathbb{Z}^{r}\oplus F with F finite. The set of such is isomorphic to T^{r}\times F^{\vee} , where F^{\vee}=\text{Hom}(F,T) . Let X_{T,\underline{C}}(Y) be the preimage of X_{G,\underline{C}}(Y) in X_{T}(Y) , under the map induced by T\hookrightarrow G . The local monodromy condition is affine-linear on T^{r}\times F^{\vee} , whence X_{T,\underline{C}}(Y) is a component of a torsor for a torus T^{\prime} times a finite group W . But any such admits a potentially dense set of integral points—simply enlarge K so it splits this torsor, and so that integral points are dense in T^{\prime}\times W ; to obtain potential density of integral points, adjoin enough roots of unity to split W , enlarge K to split T , and further enlarge it to have infinite unit group. (3) \rho_{i} has image contained in the normalizer of a maximal torus, D . Note that D has identity component a maximal torus T , and D/T has order 2 , acting on T by inversion; D evidently splits as T\rtimes\{\pm 1\} . Let \psi:\pi_{1}(Y)\overset{\rho_{i}}{\longrightarrow}D(\overline{\kappa(\eta_{i})})\to D/T(\overline{\kappa(\eta_{i})})=\{\pm 1\} be the composition of \rho_{i} with the natural quotient map D\to D/T . Let \tilde{Y} be the étale double cover of Y corresponding to the kernel of \psi . For any [\rho] in Z_{i} , \rho|_{\pi_{1}(\tilde{Y})} factors through T ; denote by \tilde{\rho} this (one-dimensional) representation \pi_{1}(\tilde{Y})\to T . Now for G=\SL_{2} , we have \rho=\text{Ind}_{\pi_{1}(\tilde{Y})}^{\pi_{1}(Y)}\tilde{\rho} . Hence potential density of integral points follows as in point (2) above—it suffices to prove density for representations \pi_{1}(\tilde{Y})\to T , which we did above (replacing Y with \tilde{Y} ). For G=\PGL_{2} , \rho=\mathbb{P}\text{Ind}_{\pi_{1}(\tilde{Y})}^{\pi_{1}(Y)}\tilde{\rho} , and the same argument suffices. ∎ 7.3. Lifting from \PGL_{2} to \SL_{2} Lemma 7.3.1 . Let \Gamma be a finitely-generated group, K a number field, and K^{\prime} the compositum of all degree 2 extensions of K ramified only over the prime 2 . Let \rho:\Gamma\to\PGL_{2}(\mathscr{O}_{K}) be a representation. Suppose there exists \rho^{\prime}:\Gamma\to\SL_{2}(\mathbb{C}) such that the composition \Gamma\overset{\rho^{\prime}}{\longrightarrow}\SL_{2}(\mathbb{C})\to\PGL_{2}(\mathbb{C}) agrees with \Gamma\overset{\rho}{\longrightarrow}\PGL_{2}(\mathscr{O}_{K})\to\PGL_{2}(\mathbb{C}). Then \rho lifts (up to conjugacy) to a representation \Gamma\to\SL_{2}(\mathscr{O}_{K^{\prime}}) . Proof. Choose generators \gamma_{1},\cdots,\gamma_{n} of \Gamma . For each i , \rho(\gamma_{i}) lifts to \SL_{2}(\mathscr{O}_{K^{\prime}}) , as \SL_{2,\mathbb{Z}}\to\PGL_{2,\mathbb{Z}} is finite flat of degree 2 , and étale away from the prime 2 . The obstruction to choosing such lifts such that one obtains an honest representation of \pi_{1}(Y) lies in H^{2}(\pi_{1}(Y),\{\pm 1\}) , but it vanishes by the assumption of the existence of \rho^{\prime} . ∎ 7.4. The proof Proof of Theorem 1.1.2 . As in the introduction, let Y be a smooth complex variety equipped with a smooth projective simple normal crossings compactification \overline{Y} , with D=\overline{Y}\setminus Y , and D=\cup_{i=1}^{n}D_{i} the irreducible components of D . Let G=\PGL_{2,\mathbb{Z}} or G=\SL_{2,\mathbb{Z}} and fix points \underline{C}=(C_{1},\cdots,C_{n})\in(G/_{\text{ad}}G)^{n}(\mathscr{O}_{K}) . We will show that there exists an extension K^{\prime} of K such that \mathscr{O}_{K^{\prime}} -points are Zariski-dense in X_{G,\underline{C}}(Y) . We first do this in the case G=\PGL_{2,\mathbb{Z}} . Let W\subset X_{G,\underline{C}}(Y)_{\overline{\mathbb{Q}}} be an irreducible component. Let \eta be the generic point of W and \rho:\pi_{1}(Y)\to\PGL_{2}(\overline{\kappa(\eta)}) the corresponding representation. If \rho is not Zariski-dense in \PGL_{2} , then integral points are dense in W by 7.2.1 . We may thus assume \rho has Zariski-dense image. Case 1: W is zero-dimensional and \underline{C} is quasi-unipotent. In this case, W=\{[\rho]\} , which is integral by [ CS08 , Theorem 7.3] . Case 2: W is positive-dimensional or \underline{C} is not quasi-unipotent. In this case, \rho factors through a map Y\to Z , with Z a orbicurve, by [ CS08 , Theorem 1] in the case W is positive-dimensional and \underline{C} is quasi-unipotent, and by [ LPT16 , Theorem A] in the case \underline{C} is not quasi-unipotent. By Stein factorization we may assume this map has connected fibers. The point [\rho] is in the image of the induced map X_{G,\underline{C}^{\prime}}(Z)\to X_{G,\underline{C}}(Y) for appropriate \underline{C}^{\prime} , by 7.1.2 . But there exists K^{\prime} such that \mathscr{O}_{K^{\prime}} -points are Zariski-dense in X_{G,\underline{C}^{\prime}}(Z) by Theorem 6.0.1 (here we use that relative character varieties of orbicurves are disjoint unions of relative character varieties of surface groups). Thus [\rho] is in the Zariski-closure of the \mathscr{O}_{K^{\prime}} -points of W ; as [\rho] is itself Zariski-dense in W , the proof is complete. We now consider the case G^{\prime}=\SL_{2,\mathbb{Z}} ; we still write G=\PGL_{2,\mathbb{Z}} . Let \underline{C}^{\prime}\in(G^{\prime}/_{\text{ad}}G^{\prime})^{n}(\mathscr{O}_{K}) be a tuple, and \underline{C} its image in (G/_{\text{ad}}G)^{n}(\mathscr{O}_{K}) , and consider the map X_{G^{\prime},\underline{C}^{\prime}}(Y)\to X_{G,\underline{C}}(Y) . Let W^{\prime} be an irreducible component of X_{G^{\prime},\underline{C}^{\prime}}(Y)_{\overline{\mathbb{Q}}} and [\rho] its generic point. Again if \rho is not Zariski-dense in \SL_{2} , then integral points are dense in W^{\prime} by 7.2.1 . If [\rho] is Zariski-dense, consider the image W of W^{\prime} in X_{G,\underline{C}}(Y) . W is an irreducible component of X_{G,\underline{C}}(Y) , so we have by the previous paragraph that \mathscr{O}_{K^{\prime}} -points are dense in W for some K^{\prime} . After replacing K^{\prime} by a finite extension as in 7.3.1 , all these points lift to W^{\prime} , as the same is true for \rho (here we use that the cohomological obstruction to lifting is constant on connected components). As W^{\prime}\to W is finite (by e.g. [ Cot24 , Theorem 1.1] ) we thus have that [\rho] is in the closure of the \mathscr{O}_{K^{\prime}} -points of W^{\prime} , and the proof is complete. ∎