1 Introduction

Even though general relativity is a very well-tested theory, there is a strong motivation to modify general relativity at large scale. This is because to explain the accelerating cosmic expansion in general relativity, a cosmological constant has to be included [1,2,3,4,5,6]. Even though the existence of such a cosmological constant is predicted from quantum field theories, quantum field theories predict a cosmological constant which is \(10^{120}\) times larger than the observed value of the cosmological constant. This has motivated the study of modified theories of gravity, and the Scalar–Tensor theories are such a modification of general relativity which could explain accelerating cosmic expansion [7, 8]. However, these theories in general contain higher derivative terms in the action, and such higher derivative terms gives rise to Ostrogradsky ghost degree of freedom. These in turn cause instabilities in the theory called Ostrogradsky instabilities. It is possible to avoid Ostrogradsky ghosts by using a theory with galilean symmetry [9,10,11,12]. Even though this galilean theory also contains higher derivative terms in the action, the galilean symmetry ensures that the field equations are only second-order differential equations. Thus, the galilean symmetry ensures that the Ostrogradski ghost instabilities are avoided in these theories. In the decoupling limit, this theory contains a higher-order derivative interaction known as the cubic galilean. It is possible to construct a theory with quartic and quintic Galileon [13]. It is necessary to add couplings of the scalar to curvature tensors, away from the decoupling limit. This way the Horndeski theory is obtained, and field equations for both the scalar field and the metric are again second-order differential equations [14, 15]. So, Horndeski theory is also free from Ostrogradsky ghosts, and it does not contain the Ostrogradsky instabilities associated with these ghosts.

This Horndeski formalism is a general formalism and it can be used to analyze a non-minimal coupling of other fields to the metric. Thus, it is possible to analyze a Horndeski coupling of the metric to a vector field [16, 17]. In this formalism, the vector field is again coupled to the metric using a non-minimal coupling. Furthermore, the field equations for this vector field are again second-order field equations. Thus, the Ostrogradsky ghost terms are avoided even for the Horndeski coupling of a vector field to the metric. As we will be interested in applying such a vector–tensor-Horndeski theory to astrophysics, we will assume such a vector field to be a fundamental field in nature, which is done by increasing the field content of general relativity, and it is not the usual electromagnetic field. This is important as astrophysical objects are neutral and do not have an electric charge. So, the electromagnetic field cannot have a direct effect on the physics of such astrophysical objects. Furthermore, it is well known that the gravity couples to the electromagnetic field in the usual way, and there is no reason for it to couple to the physical electromagnetic field in a non-minimal way in any astrophysical object. However, if we assume that there exists an astrophysical vector field, which has negligible effect on small scale, then it is possible that such an astrophysical vector field can couple to the metric in a non-minimal way. This coupling of such an astrophysical vector field can have non-trivial effects on the astrophysical phenomena. So, in this paper, we will analyze the effect of such a non-minimal coupling of an astrophysical vector field on the physics of a compact star.

It may be noted that such fundamental vector fields have been proposed as a solution to various different physical problems, and have also been used to explain many interesting astrophysical phenomena. Just like the scalar fields, the vector field have also been used to explain cosmic expansion [18, 19], and even the naturalness problem [20, 21]. It may be noted that in his case the vector–tensor theories produce many non-trivial phenomenological effects which cannot be produced in the scalar–tensor theories [22,23,24,25]. It has been observed that anomalies exist in the alignment of the low multipoles of the CMB [26, 27] and the hemispherical asymmetry [28]. Such anomalies suggest that there might be a preferential direction in the universe, and this can be explained using such a vector field. Furthermore, such fundamental vector fields have also been used to study inflation [29, 30]. The occurrence of higher derivative terms can produce Ostrogradski ghost instability in such vector–tensor theories. However, such Ostrogradski ghost instability can be avoided by using the Horndeski formalism. Thus, it is interesting to study a vector–tensor-Horndeski theory. It may be noted that there are other interesting motivation to introduce such vector fields. This is because there exists a discrepancy between the predicted and observed dynamics of galaxies  [31,32,33], and it has been proposed that the discrepancy can be resolved by increasing the field content of general relativity [34,35,36,37,38,39]. The field content of this modified theory of gravity contains such a vector field. It may be noted that this theory agrees with the predictions made by the modified newtonian dynamics [40, 41].

As general relativity contains a vector field, it has been observed that astrophysical black holes in this modification of gravity can mathematically resemble a Reissner–Nordstrom solution [42, 43]. However, the charge of this vector field is generated from the mass and not an electromagnetic source [42, 43]. As the astrophysical objects are not charged, and so any coupling of metric to an electromagnetic field cannot be applied to study such astrophysical objects. However, as this additional vector field is produced from mass and not electric charge [42, 43], it is possible that such a field can have direct effect on astrophysical phenomena. Furthermore, in this theory, there is a certain amount of freedom to choose the action for vector field, and it has been demonstrated that coupling the metric to a non-linear vector field can turn a black hole into a gray hole [44]. As it has been demonstrated that different form of the vector field action can produce different physical results, it is interesting to investigate other forms of the coupling of vector field to metric. Furthermore, as this vector field occur in the field content of general relativity, it will also be interesting to investigate the astrophysical application of such a theory. So, in this paper, we will use the Horndeski formalism to couple a vector field to the metric, and we use this vector–tensor-Horndeski theory to analyze a compact star.

2 Vector–tensor-Horndeski theory

In this section, we will analyze the main features of a vector–tensor-Horndeski theory. It has been proposed that by increasing the field content of general relativity certain astrophysical phenomena can be explained [34,35,36,37,38,39]. Furthermore, for compact stars this would deform astrophysical solutions, and these deformed solutions would resemble a charged black hole solution [42, 43]. It is physically important to point out that the vector field introduced here is not the usual electromagnetic field, but an astrophysical vector field and it has negligible effect at small scale. However, it is expected to change the astrophysical dynamics at larger scale. In this section, we will use the Horndeski formalism to non-minimally couple such a vector field to the metric. Thus, we first introduce an astrophysical vector field \(A_\mu \) with the field tensor \(F_{\mu \nu }=\nabla _{\nu }A_{\mu }-\nabla _{\mu }A_{\nu }\). We denote the source for such a vector field \(J^{\nu }\). Now the energy-momentum tensor for this astrophysical vector field can be written as \(T_{\mu \nu }=\frac{1}{4\pi }\big (F_{\mu }^{\alpha }F_{\nu \alpha }-\frac{1}{4}g_{\mu \nu }F^{\alpha \beta }F_{\alpha \beta }\big )\), and we will also denote the energy-momentum tensor for other fields in the theory by \(T_{\mu \nu }^M\). There is a conserved charge associated with this vector field, as we can write a divergence free current \(\nabla _{\nu }J^{\nu }=0\). Now using the Horndeski formalism [16, 17], we couple this astrophysical vector field to the metric as

$$\begin{aligned}&G_{\mu \nu }= 8\pi G(T_{\mu \nu }+\kappa U_{\mu \nu }+T_{\mu \nu }^M), \nonumber \\&\nabla _{\mu }F^{\mu \nu }+\frac{\kappa }{2}\nabla _{\alpha }F_{\beta \gamma }\mathcal {R}^{\nu \alpha \beta \gamma }=4\pi J^{\nu } \end{aligned}$$
(1)

where \(U^{\mu \nu }\) is given by

$$\begin{aligned}&U^{\mu \nu }=\frac{1}{8\pi }(F_{\alpha \beta }F^{\beta }_{\gamma }\mathcal {R} ^{\mu \alpha \nu \gamma } +\nabla ^{\beta }\mathcal {F}^{\mu \alpha }\nabla _{\alpha }\mathcal {F}^{\nu }_{\beta }). \end{aligned}$$
(2)

It may be noted that if \(\kappa = 0\), this theory reduced to the usual vector–tensor theory. However, we would like to analyze this modified vector–tensor-Horndeski theory. The dual tensors can be defined as \(\mathcal {R}^{\alpha \beta }_{\mu \nu }= \eta ^{\alpha \beta \gamma \delta }\eta _{\mu \nu \epsilon \zeta }R^{\epsilon \zeta }_{\gamma \delta }/4 \) and \(\mathcal {F}^{\alpha \beta }= \eta ^{\alpha \beta \gamma \delta }F_{\gamma \delta }/2\), where \(\eta ^{\alpha \beta }_{\gamma \delta }= \delta ^{[\alpha \beta ]}_{[\gamma \delta ]}/ 4!\) is total asymmetric Levi-Civita tensor. Thus, we can write the Lagrangian for this vector–tensor-Horndeski theory as

$$\begin{aligned}&\mathcal {L}=-\frac{R}{16\pi G}+F^{\alpha \beta }F_{\alpha \beta }+\frac{\kappa }{2}F_{\alpha \beta }F^{\gamma \delta }\mathcal {R}^{\alpha \beta }_{\gamma \delta }. \end{aligned}$$
(3)

This Lagrangian has a non-trivial coupling between the astrophysical vector field and the metric, which was not present in other vector–tensor theories of gravity [34,35,36,37,38,39].

The static spherically symmetric solutions for a vector field has been studied using the Horndeski formalism [16, 17]. We will apply this solution to analyze a compact star in this theory, because even though physically, this vector field is an astrophysical vector field, mathematically, this solution will resemble the static spherically symmetric solutions for a Horndeski vector field [16, 17]. However, unlike the electromagnetic fields which cannot have a direct effect on compact stars, this vector field can change the behavior of compact stars. Now for this Horndeski astrophysical vector field \(A_{\mu }\), we have \(J_{\mu }\mathrm{d}x^{\mu }=j(r)\mathrm{d}r\), and for isotropic matter fields, we can take a perfect fluid with \(T^{\mu (M)}_{\nu }=(\rho ,-p-p,-p)\). The static spherically symmetric metric for a compact star can be written in the Schwarzschild-Droste coordinates \(x^{\mu }=(t,r,\varphi ,\theta )\). Furthermore, for this astrophysical vector field, we write \(F_{\mu \nu }\mathrm{d}x^{\mu }\otimes \mathrm{d}x^{\nu }=f(r) g_{tt}g_{rr}(\mathrm{d}t\otimes \mathrm{d}r-\mathrm{d}r\otimes \mathrm{d}t)\). Here we choose the units, such that \(c=1\). Now the metric for this solution can be written as

$$\begin{aligned} \mathrm{d}s^2= & {} \mathrm{e}^{2\psi (r)}\mathrm{d}t\otimes \mathrm{d}t-\mathrm{e}^{2\phi (r)}\mathrm{d}r\otimes \mathrm{d}r-r^2\mathrm{d}\theta \otimes \mathrm{d}\theta \nonumber \\&-r^2\sin ^2\theta \mathrm{d}\varphi \otimes \mathrm{d}\varphi . \end{aligned}$$
(4)

The equation of motion for this solution can be written as

$$\begin{aligned}&\mathrm{e}^{-2\phi }\left( \frac{2\phi '}{r}+\frac{\mathrm{e}^{2\phi }-1}{r^2}\right) =f^2+\frac{\kappa f^2}{r^2}(\mathrm{e}^{-2\phi }-1)\nonumber \\&\quad +\,8\pi G \rho , \end{aligned}$$
(5)
$$\begin{aligned}&\mathrm{e}^{-2\phi }\left( \frac{2\psi '}{r}+\frac{1-\mathrm{e}^{2\phi }}{r^2}\right) =-f^2-\frac{\kappa f^2}{r^2}(3\mathrm{e}^{-2\phi }-1)\nonumber \\&\quad +8\pi G p\end{aligned}$$
(6)
$$\begin{aligned}&\mathrm{e}^{-2\phi }\left( \psi ''-\phi '\psi '+\psi '^2+\frac{\psi '-\phi '}{r}\right) =f^2+\,8\pi G p\nonumber \\&\quad +\frac{\kappa f \mathrm{e}^{-2\phi }}{r} (f(\phi '-\psi ')-2f')\end{aligned}$$
(7)
$$\begin{aligned}&f'+\frac{2f}{r}-\frac{\kappa }{r^2}(f'(1-\mathrm{e}^{-2\phi })+2f\phi '\mathrm{e}^{-2\phi })=4\pi j(r).\nonumber \\ \end{aligned}$$
(8)

We can write the hydrostatic equation for matter sector as \(\nabla _{\mu }T^{\mu (M)}_{\nu }=0\) for \(\nu =r\), and thus we obtain \( p'+\psi '(p+\rho )=0.\) Now we can write Eqs. (58) in terms of thermodynamic parameters, and this can be done by redefine the metric function \(\phi \) in terms of a mass function M(r) as

$$\begin{aligned} \mathrm{e}^{-2\phi }=1-\frac{2GM}{r}. \end{aligned}$$
(9)

So, we can obtain the differential change in mass \(\mathrm{d}M\), which is the mass stored in a layer with thickness \(\mathrm{d}r\) as

$$\begin{aligned} \frac{G \mathrm{d}M}{\mathrm{d}r}=\frac{1}{2}[1-\mathrm{e}^{-2\phi }(1-2r\phi ')], \end{aligned}$$
(10)

where M is the mass of the compact object. Now make the equations dimensionless by expressed them in terms of \(\{\frac{\mathrm{d}p}{\mathrm{d}r},\frac{\mathrm{d}M}{\mathrm{d}r},\rho ,p\}\), and by using \(M\rightarrow m M_{\odot }\), \(r\rightarrow r_{g} r\), \(\rho \rightarrow \rho M_{\odot }/r_{g}^3\), \(p\rightarrow p M_{\odot }/r_{g}^3\) and \(R\rightarrow R/r_g^2\). Here \(r_{g}=G_NM_{\odot }=1.47473\,\mathrm{km}\), \(M_\odot \) is the mass of the Sun, and

$$\begin{aligned} \frac{\mathrm{d}\phi }{\mathrm{d}r}=\frac{m}{r^2}\frac{1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}}{\frac{2m}{r}-1}. \end{aligned}$$
(11)

Thus, we obtain

$$\begin{aligned}&\frac{2m}{r^3}\left( 1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}\right) -\frac{2m}{r^3} +r_g^2f^2-\frac{2m\kappa f^2}{r^3}=8\pi \rho ,\end{aligned}$$
(12)
$$\begin{aligned}&\frac{2p'}{r(p+\rho )}\left( 1-\frac{2m}{r}\right) +\frac{2m}{r^3}-r_g^2f^2-\frac{2\kappa f^2}{ r^2}\left( 1-\frac{3m}{r}\right) \nonumber \\&\quad =8\pi p\end{aligned}$$
(13)
$$\begin{aligned}&\left( \frac{p'}{p+\rho }\right) '-\frac{m}{r^2}\frac{1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}}{\frac{2m}{r}-1}\frac{p'}{p+\rho }-\left( \frac{p'}{p+\rho }\right) ^2\nonumber \\&\quad +\frac{p'}{r(p+\rho )}+\frac{m}{r^3}\frac{1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}}{\frac{2m}{r}-1}+\frac{f^2 r_g^2}{1-\frac{2m}{r}}\end{aligned}$$
(14)
$$\begin{aligned}&\quad \nonumber +\frac{\kappa f }{r}\left( f\left( \frac{m}{r^2}\frac{1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}}{\frac{2m}{r}-1}+\frac{p'}{p+\rho }\right) -2f'\right) =\frac{8\pi p}{1-\frac{2m}{r}}\nonumber \\&f'+\frac{2f}{r}-\frac{\kappa r_g ^{-2}}{r^2}\left( \frac{2mf'}{r}-\frac{2mf}{r^2}\left( 1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}\right) \right) \nonumber \\&\quad =4\pi r_gj(r). \end{aligned}$$
(15)

We will analyze a compact start by solving Eqs. (1215). Furthermore, we will also use the equation of state \(p=p(\rho )\) and a specific form of j(r) to obtain such solutions. The function m(r) is important in analyzing the geometric mass inside a sphere of radius r. This is because we can use Eq. (10), and write

$$\begin{aligned}&m'(r)=\frac{1}{2}[r(1-\mathrm{e}^{-2\phi })]'. \end{aligned}$$
(16)

Furthermore, from Eq. (5), we obtain

$$\begin{aligned}&m'(r)=4\pi r^2\rho -r^2f^2\left[ 1+\frac{\kappa }{r^2}(\mathrm{e}^{-2\phi }-1)\right] . \end{aligned}$$
(17)

It may be noted in the absence of the Horndeski field, \(f=0\), that Eq. (17) reduces to the usual form \(m'(r)=4\pi r^2\rho \) in general relativity. Now by integrating Eq. (17), we obtain

$$\begin{aligned}&m(R)\equiv M=\int _{0}^{R} \left( 4\pi r^2\rho -r^2f^2\left[ 1+\frac{\kappa }{r^2}(\mathrm{e}^{-2\phi }-1)\right] \right) \mathrm{d}r.\nonumber \\ \end{aligned}$$
(18)

Now, using this result, we can obtain

$$\begin{aligned}&\frac{2p'}{r(p+\rho )}(1-\frac{2m}{r})+\frac{2m}{r^3}+\left[ \frac{8\pi \rho +\frac{2m}{r^3}\left( 1-\frac{r}{m}\frac{\mathrm{d}m}{\mathrm{d}r}\right) -\frac{2m}{r^3}}{r_g^2-\frac{2m\kappa }{r^3}}\right] \nonumber \\&\quad \times \left( r_g^2+\frac{2\kappa }{ r^2}\left( 1-\frac{3m}{r}\right) \right) =8\pi p. \end{aligned}$$
(19)

Now the equation of state for this system can be written as \(p=p(\rho )\). It is possible to integrate this equation of state to obtain the behavior of this system in this vector–tensor-Horndeski theory. The boundary conditions used for analyzing this system in this vector–tensor-Horndeski theory are similar to those used in the Einstein gravity, \(m(0)=0,\rho (0)=\rho _c,\) and \( p(r_0)=0\). So, the radius of the compact star can be taken to be \(r_0\), such that the pressure vanishes. Now we can analyze compact stars using this formalism. In astrophysics, the term compact star is used to collectively refer to white dwarfs, neutron stars, and black holes. They are described by Tolman–Oppenheimer–Volkoff equations [45, 46]. In this section, we will analyze the effect of the Horndeski astrophysical vector field on the physics of such compact stars.

3 The gravitational binding energy

The gravitational binding energy of a system is the minimum energy that must be added to that system for it to stop being a gravitationally bound system. It is important to analyze the gravitational binding energy of compact stars, such as the neutron star, and such an analysis has been done using general relativity [47,48,49]. So, in this section, we shall analyze the effect of the astrophysical Horndeski field on the gravitational binding energy of a compact star. Thus, using the definition of the mass function (18), the total mass of the matter distribution of this system can be represented by

$$\begin{aligned} m_\mathrm{ADM}=4\pi \int _{o}^{\infty }\mathrm{d}r \rho (r)r^2+\Delta m_\mathrm{ADM}. \end{aligned}$$
(20)

This mass is the Arnowitt–Deser–Misner (ADM) mass and in the Horndeski-vector–tensor theory. It may be noted that \(\Delta m_\mathrm{ADM}\) is the corrections to the usual ADM mass produced by the Horndeski vector field,

$$\begin{aligned} \Delta m_\mathrm{ADM}=-\int _{0}^{\infty } \left( r^2f^2\left[ 1+\frac{\kappa }{r^2}(\mathrm{e}^{-2\phi }-1)\right] \right) \mathrm{d}r. \end{aligned}$$
(21)

Now we can define the density inside a proper volume element \(\sqrt{-g}\mathrm{d}^3x\) as the proper mass,

$$\begin{aligned} M_{pr}=4\pi \int _{0}^{\infty }\mathrm{d}r \rho (r) \mathrm{e}^{\phi (r)}r^2. \end{aligned}$$
(22)

We interpret the difference between the proper (22) and the total mass (18) as the gravitational binding energy

$$\begin{aligned} E_b=M_{pr}-m>0. \end{aligned}$$
(23)

In general relativity, due to the absence of vector or Horndeski fields, \(f=0\) and \(\Delta m_\mathrm{ADM}=0\). However, as we have a non-minimal coupling to the Horndeski field, the ADM mass is corrected by a finite \(\Delta m_\mathrm{ADM}\ne 0\).

To analyze the effect of the astrophysical vector field on compact stars, we need to solve the modified Tolman–Oppenheimer–Volkoff equation, Eq. (19). However, to solve this equation, we need to use the equation of state for the interior structure of the star. It is possible to write this equation of state using the central density, \(\rho (r=0)=\rho _c\), as a free parameter. Thus, we can obtain the mass and radius of a star by fixing the central density. This will correspond to choosing a single point in the mass–radius diagram for the star. As this system is described by a single parameter, we can obtain the full mass–radius curve of the star by varying \(\rho _c\). It is possible to study the inner structure of the compact stars, such as the neutron stars [50]. This is because it possible to use microscopic many-body simulations to numerically analyze equation of state for such compact stars. The equation of state for compact stars can be obtained using a mean-field theoretical description of such a system [51,52,53]. In fact, it is possible to describe the equation of state for a neutron star using the nucleon–nucleon interaction. The equation of state for such a star is is a polytrope equation of state [50],

$$\begin{aligned} p=k\rho ^{\gamma }. \end{aligned}$$
(24)

The value of k can be taken to be \(k\approx 2.0\times 10^5 \frac{{cm}^5}{gs2}\) when \(\gamma = 2\) [54]. We can now use this polytrope equation of state to analyze the effect of Horndeski field on a neutron star.

We have used an adaptive step-size Runge–Kutta method for analyzing a non-linear-integro-differential equation [55, 56]. This is because the modified Tolman–Oppenheimer–Volkoff equation is a non-linear-integro-differential equation. In Fig. 2, blue line represents the vector–tensor-Horndeski theory for \(\kappa =0.01\). It predicts the existence of a typical neutron star with mass around \(2M_{\odot }\), and a radius around 10–15 km. Thus, this case is not physical. In fact, this case can also be used to set a bound on the strength of the coupling of this astrophysical vector field to general relativity. In Fig. 3, the black line represents the standard general relativity, \(\kappa =0\). The mass–radius diagram corresponding to this case is given in Figs. 1, 2, 3 and 4. In Fig. 1, the red line represents the vector–tensor-Horndeski theory with \(\kappa = 0.05\). It does not predict the existence of a typical neutron star with mass around \(2M_{\odot }\), and with a radius around 10–15 km. It may be noted that, for \(\kappa < 0\), the numerical evaluation does not converge. Furthermore, a stable stellar configurations does not exist for this case, as the hydrostatic equilibrium equations are unstable. The mass–radius profile for a weakly coupled vector–tensor-Horndeski theory (\(\kappa = 10^{-3}\)) is plotted in Fig. 4. We observed that this profile around the maximum with mass is similar to the profile obtained in the general relativity. However, for large radius, equilibrium configurations in the vector–tensor-Horndeski theory are more massive than in general relativity.

Fig. 1
figure 1

Mass–radius contours for a pure neutron star (with interactions) using Prakash Method. Here Horndeski’s coupling is \(\kappa =0.05\)

Fig. 2
figure 2

Mass–radius contours for a pure neutron star (with interactions) using Prakash Method. Here Horndeski’s coupling is \(\kappa =0.01\)

Fig. 3
figure 3

Mass–radius contour in the absence of Horndeski’s field, when general relativity is dominated, \(\kappa =0\)

Fig. 4
figure 4

Mass–radius contour when Horndeski’s field is weakly coupled, \(\kappa =0.001\)

4 Density profile

It is possible to analyze a compact star to be represented by a constant density. It may be noted that the compact stars with constant density have been analyzed in general relativity [57] (see [58] for a comprehensive review). In general relativity the Tolman–Oppenheimer–Volkoff equation admits an analytical solution, and this is obtained by imposing \(p(r = r_0) = 0\). Here the central pressure \(p_c = p(r = 0)\) predicted by general relativity becomes infinite for the critical mass \(M_{cr}=4/9 m_{pl}^2 r_0\) [59]. So, it is possible for stars with \(M> M_{cr}\) to indicate a deviation from general relativity [60]. Thus, it is interesting to analyze the effect of a Horndeski vector field for such a system. We can first analyze a uniform mass density, called a top-hat density profile, inside the star,

$$\begin{aligned} \rho = \left\{ {\begin{array}{{ll}} {\rho 0}&{}\quad {r< {r_0}}\\ 0&{}\quad {{r_0} < r} \end{array}} \right. . \end{aligned}$$
(25)

Here we shall now analyze such a system using modified vector–tensor-Horndeski theory. Now for this model and for simplicity, we also choose \(j(r)=0\). So, the unknown functions for this system are \(\{m(r),f(r)\}\), and the metric function is \(\psi =\psi _0\). The exact solution for the vector–tensor-Horndeski theory, for this system can be written as

$$\begin{aligned}&m( r ) =\frac{4}{3}\,\pi \,\rho \,{r}^{3}+\,{\frac{2\pi \,\rho \,{r_{{g}}}^{2}{r}^{5}}{15 \kappa }}+O ( {r}^{6} ). \end{aligned}$$
(26)

Now using Eqs. (26) and (9), we obtain

$$\begin{aligned}&\phi ( r ) =-\frac{1}{2}\ln \left( 1+\frac{8}{3}\,\pi \,\rho \,{r}^{2}-{\frac{4}{15}}\,{\frac{\pi \, \rho \,{r}^{4}{{ r_g}}^{2}}{\kappa }}+O ( {r}^{5} ) \right) .\nonumber \\ \end{aligned}$$
(27)

The metric of this compact star can be written as

$$\begin{aligned}&\mathrm{d}s^2= \mathrm{e}^{2\psi _0}\mathrm{d}t\otimes \mathrm{d}t-r^2\mathrm{d}\theta \otimes \mathrm{d}\theta -r^2\sin ^2\theta \mathrm{d}\varphi \otimes \mathrm{d}\varphi \nonumber \\&-\frac{ \mathrm{d}r\otimes \mathrm{d}r}{1+\frac{8}{3}\,\pi \,\rho \,{r}^{2} -{\frac{4}{15}}\,{\frac{\pi \, \rho \,{r}^{4}{{ rg}}^{2}}{\kappa }}+O ( {r}^{5})}. \end{aligned}$$
(28)

Now using this mass profile, we can integrate Eq. (15), and obtain

$$\begin{aligned}&f ( r ) =f_{{0}}+O ( ( r-R ) ^{2} )\nonumber \\&\quad +{\frac{ ( 30\,f_{{0}}{r_{{g}}}^{2}- 80\,\pi \,\rho \,f_{{0}}\kappa -16\,\pi \,\rho \,f_{{0}}{r_{{g}}}^{2}{R}^ {2} ) ( r-R ) }{-15\,R{r_{{g}}}^{2}+40\,\pi \,\rho \, R\kappa +4\,\pi \,\rho \,{R}^{3}{r_{{g}}}^{2}}}.\nonumber \\ \end{aligned}$$
(29)

Here we have assumed that this astrophysical vector field satisfies the following initial condition on the surface of the star: \(r=R\), \( f(R)=f_0. \) As the original function is corrected by \(\kappa \) dependent terms, it can be argued that such corrections are produced by the Horndeski vector field. As such a coupling between gravity and Horndeski vector field is constrained by experimental data, it is possible to use the astrophysical data to constrain such a coupling.

We analyzed a compact star with a constant density. However, for real stars, we expect that the density to be a function of r. So, it is interesting to analyze various different functional dependence of m(r), and analyze the effect of the Horndeski vector field on a system described by such functions. This is important to demonstrate that the dependence of the system on Horndeski vector field is not a special feature of a system with a constant density. Now we can take a simple function m(r) of r, such as \(m(r)=M_0 \ln (r)\), to demonstrate that the Horndeski vector field effects the systems in which the density is not a constant. Now for such a system, we obtain

$$\begin{aligned}&f(r)=f_{{0}}+O ( ( r-R) ^{2}) \nonumber \\&\quad +\,{\frac{2f_{{0}} ( {R}^{3}{r_{{g}}}^{2}+\kappa \,M_{{0}}\ln ( R ) -\kappa \,M_{{0}} ) ( r-R ) }{R ( -{R}^{3}{r_{{g}}}^{2}+2\,\kappa \,M_{{0}}\ln ( R ) ) }}. \end{aligned}$$
(30)

The mass density of this system can be obtained from Eq. (12), and it is given by

$$\begin{aligned}&\rho (r)= {\frac{{f_{{0}}}^{2} \Sigma (-{r_{{g}}}^{2}{r}^{3}+2\,m\kappa ) }{8{r}^{3}{R}^{2} ( -{R}^{3}{r_{{g}}}^{2}+2\, \kappa \,M_{{0}}\ln ( R ) ) ^{2}\pi }} \end{aligned}$$
(31)

where we have defined \(\Sigma \) as

$$\begin{aligned} \Sigma ^{1/2}= & {} -3\,{R}^{4}{r_{{g}}}^{2}+2\,{R}^{3}{ r_{{g}}}^{2}r+2\,\kappa \,M_{{0}}\ln ( R ) r\nonumber \\&-2\,\kappa \,M_{ {0}}r+2\,\kappa \,M_{{0}}R. \end{aligned}$$
(32)

The pressure for this system can also be obtained, and it is given by

$$\begin{aligned} p(r)= & {} {\frac{X\,\rho \, ( r-R ) }{R ( -{r_{{g}}}^{2} {R}^{3}+2\,M_{{0}}\ln ( R ) \kappa ) ( -R+2\,M _{{0}}\ln ( R ) ) }}\nonumber \\&+O ( ( r-R ) ^ {2} ) \end{aligned}$$
(33)

where we have defined X as

$$\begin{aligned} X= & {} -M_{{0}}\ln ( R ) {r_{{g}}}^{2}{R}^{3}+2\,{M_{{0 }}}^{2} ( \ln ( R ) ) ^{2}\kappa \nonumber \\&-4\,\pi \,\rho \,{R}^{6}{r_{{g}}}^{2}-8\,\pi \,\rho \,{R}^{4}\kappa +24\,\pi \,\rho \,{R }^{3}M_{{0}}\ln ( R ) \kappa \nonumber \\&+M_{{0}}{r_{{g}}}^{2}{R}^{3} +2 \,M_{{0}}\kappa \,R-6\,{M_{{0}}}^{2}\ln ( R ) \kappa . \end{aligned}$$
(34)

Thus, the pressure of this system is affected by the Horndeski vector field. This is because the pressure of this system is corrected by terms proportional to \(\kappa \), and so this system is affected by the Horndeski vector field.

It may be noted that it is possible to take other functions describing m(r), and analyze the pressure of the compact stars using those functions. This procedure can be repeated for those functions. It is expected that the pressure in such systems will also depend on the Horndeski vector field. So, for example, we can take another form of the function \(m(r)=M_0r\ln (r)+M_1r+M_2r^2\), and demonstrate that the system described by this function will also be affected by the Horndeski vector field. Thus, using this function, we obtain

$$\begin{aligned}&f ( r ) =f_{{0}} +O ( ( r-R ) ^{2})\nonumber \\&\quad - \left( {\frac{2f_{{0}}}{R}}+\frac{2\,\kappa }{{R}^{4}{r_{{g}}}^{2}} \, ( M_{{0}}R\ln ( R ) +M_{{2}}{R}^{2}+M_{{1}}R )A \right) \nonumber \\&\quad \times ( r-R ), \end{aligned}$$
(35)

where

$$\begin{aligned} A= \frac{f_{{0}}\left( 1-{\frac{R ( 2\,M_{{2}}R+M_{{1}}+M_{{0}}+M_{{0}}\ln ( R ) ) }{M_{{0}}R\ln ( R ) +M_{{2}}{R}^{2} +M_{{ 1}}R}} \right) }{ \left( 1-2\,{\frac{\kappa \, \left( M_{{0 }}R\ln ( R ) +M_{{2}}{R}^{2}+M_{{1}}R \right) }{{R}^{3}{r_ {{g}}}^{2}}} \right) }. \end{aligned}$$
(36)

We observe that this system is again corrected by terms proportional to \(\kappa \), and so the physics of compact starts is affected by the Horndeski vector field. This function can be used to obtain the mass density and pressure of the compact star. As the original function was corrected by the Horndeski vector field, the mass density and pressure of the compact star in this theory would again depend on the Horndeski vector field. These results can be compared with experimental data, and bounds on the existence of such an astrophysical vector field can thus be obtained. Thus, we have analyzed compact stars in a vector–tensor-Horndeski theory, and observed that the dynamics of this system is corrected by terms which are proportional to the coupling constant of the Horndeski field.

4.1 Astrophysical monopole

It may be noted that as we are using an astrophysical vector field, it is possible that such a vector field will also contain monopoles. Furthermore, as this vector field will have a negligible effect at small distance, we cannot rule out the existence of such monopoles in this vector field. These monopoles can affect the astrophysical phenomena, and have a direct effect on the physics of compact stars. Thus, if we assume a monopole with charge Q is located at \(r=0\), then we can write \(j(r)={Q}/{r^2}\). The exact solution for this system can now be written as

$$\begin{aligned}&f ( r ) =f_{{0}}\end{aligned}$$
(37)
$$\begin{aligned}&+ \left( {\frac{30\,f_{{0}}{r_{{g}}}^{2}-80\,\pi \,\rho \,f_{{0 }}\kappa -16\,\pi \,\rho \,f_{{0}}{r_{{g}}}^{2}{R}^{2}}{-15\,R{r_{{g}}}^ {2}+40\,\pi \,\rho \,R\kappa +4\,\pi \,\rho \,{R}^{3}{r_{{g}}}^{2}}}+{ \frac{4\pi \,r_{{g}}Q}{{R}^{2}}} \right) \nonumber \\&\times ( r-R ) +O ( ( r-R ) ^{2} ). \end{aligned}$$
(38)

As the constant density solutions have been studied in general relativity [57], it is interesting to analyze different limits of such solutions. It is possible to take a constant density solution, \(\rho (r)=\rho _0 \) with \(j(r)=0\), and to analyze the effect of the Horndeski vector field using \(f(r)={f_0}/{r}\), where \(f_0\) is a constant. Now using this form of f(r), we can obtain

$$\begin{aligned}&m ( r ) = {\frac{{r_{{g}}}^{2}{r}^{3}}{2\kappa }}+c{r}^{ 2}. \end{aligned}$$
(39)

Now using this mass profile we can integrate Eq. (19), and obtain the pressure as

$$\begin{aligned} p ( r )= & {} {\frac{\rho \,\Delta \, }{2Rc\kappa \, ( - \kappa +2\,Rc\kappa +{R}^{2}{r_{{g}}}^{2} ) }} ( r-R)\nonumber \\&+\,O ( ( r- R ) ^{2} ) \end{aligned}$$
(40)

where we have defined \(\Delta \) as

$$\begin{aligned} \Delta= & {} -12\,{R}^{2}c\kappa \,{r_{{g}}}^{2}+8\,\pi \,\rho \,\kappa \,{R}^{3}{r_{{ g}}}^{2}+24\,\pi \,\rho \,{\kappa }^{2}{R}^{2}c \nonumber \\&-10\,R{c}^{2}{\kappa }^{2} -8\,\pi \,\rho \,{\kappa }^{2}R-3\,{R}^{3}{r_{{g}}}^{4}+4\,c{\kappa }^{2}\nonumber \\&+\,3\,R{r_{{g}}}^{2}\kappa . \end{aligned}$$
(41)

So, the existence of astrophysical monopole from Horndeski vector field can correct the pressure of a compact star. Thus, astrophysical monopoles can have interesting effects on the physics of compact stars in a Horndeski-vector–tensor theory of gravity. As the monopoles have not been detected in the electromagnetic vector field, there are strong constraints of including the effects of such monopoles in physical systems. However, the Horndeski vector field is different from electromagnetic vector field, so the constraint on the electromagnetic vector field from the absence of electromagnetic monopoles do not apply to such Horndeski vector fields, and hence it is possible that such vector fields change the physics of compact stars.

5 Conclusion

In this paper, we have analyzed a theory of modified gravity. In this theory, the field content of general relativity was increased to include an astrophysical vector field. We have used the Horndeski formalism to non-minimally couple this astrophysical vector field to the metric. As we have used the Horndeski formalism, this theory did not contain any Ostrogradsky ghost degree of freedom. We would analyze a compact star using this vector–tensor-Horndeski theory. Thus, we analyzed the effect of such a Horndeski vector field on the gravitational binding energy. We used a polytrope equation of state for analyzing a neutron star in Horndeski-vector–tensor theory of gravity. We analyzed this system using an adaptive step-size Runge–Kutta method [56]. We also analyzed various different cases for this system, and obtained the mass density and pressure for the compact stars corresponding to those cases. It was demonstrated that the Horndeski changed the physics of this system for these different cases. It would be interesting to compare the results of this paper to experimental data, and thus obtain bounds on the vector–tensor-Horndeski theory. Finally, we proposed that it is possible for a monopole to exist in such a modified theory of gravity. As no monopole has been detected in the electromagnetic field, there are strong constraints on the existence of monopoles in such a theory. However, the Horndeski vector field was not constrained by the constraint on the electromagnetic vector field, and so we analyzed the effects of an astrophysical monopole on the compact stars. It was demonstrated that such an astrophysical vector field would change the pressure of the compact star.

It may be noted that it is possible to analyze compact stars with an anisotropy. In fact, multipole moments for compact stars with anisotropic pressure have been studied [61]. The compact stars with anisotropy have been studied using a modified Tolman–Oppenheimer–Volkoff equation [62]. It has been observed that the pressure anisotropy can effect the surface tension of these stars. This is because the anisotropy decreases the value of the surface tension. It would be interesting to introduce such an anisotropy using a vector field. Furthermore, this vector field can be coupled non-minimally to the metric using the Horndeski formalism. It would be interesting to analyze the phenomenological effects of such a model. The vector fields have been used to modify general relativity, and it has been possible to use this modified theory of gravity to obtain the correct dynamics of galaxies without the need for dark matter [34,35,36,37,38,39]. It would be interesting to analyze the dynamics of galaxies using a Horndeski vector field. It might be possible to obtain the correct dynamics of galaxies by suitable modifying such a theory, and possibly by adding other fields to it. It would also be interesting to analyze the effects of such a theory on inflation. This is because vector fields have been used to study inflation [29, 30], and it would be interesting to repeat this calculation using the Horndeski formalism.

It is possible to make observations on a neutron star, and these observations can be compared with the predictions of the vector–tensor-Horndeski theory. This can be used to both verify the existence of a Horndeski vector field, if such effects are detected. However, if such effects are not detected then it can be used to set bounds on the strength of the coupling of such an astrophysical vector field to general relativity. It may be noted that as the \(\kappa = 0.05\) does not predict the existence of a neutron star with a typical mass and radius, so this case does not fit the experimental data. Thus, this case is not physical. In fact, this case also establish a bound on the strength of coupling parameter of the Horndeski vector field to general relativity. It may be noted that this coupling does change the behavior of mass–radius diagram. Such a mass–radius diagram of a neutron star can be observed, and the observations can be compared with this analysis. This can be used to test the existence of such a Horndeski astrophysical vector field, and also to establish a bound on the strength of the coupling of such a field. It may be noted that it is possible to obtain such experimental data for neutron stars using gravitational lensing [63, 64]. However, it is also important to analyze the effect of the Horndeski vector field on the gravitational lensing for such an analysis. It is possible to use the burst oscillations in the X-ray flux to obtain the observational behavior of mass–radius of a neutron star [65]. It is also possible to use quiescent neutron stars to make such observations on a neutron star [66]. It would be interesting to analyze the effect of the Horndeski vector field on neutron stars using such data.

It would be interesting to analyze other effects of this Horndeski vector field which can be observed using compact stars. The accretion in the Reissner–Nordstrom spacetime has already been studied [67]. It was observed that the electromagnetic field can have interesting effect on such an accretion around a compact star. In fact, the effect of a monopole on the accretion has also been studied [68]. As the astrophysical objects are not changed, such systems cannot be physically realized. However, in this paper, we have proposed that a Horndeski astrophysical vector field can couple to general relativity, and the bounds on the strength of such a coupling can be obtained from observations. Such an astrophysical vector field will also change the accretion around compact stars. It would be interesting to analyze the accretion in this vector–tensor-Horndeski theory. It would also be interesting to compare the result thus obtained to observations, and test the vector–tensor-Horndeski theory.