1 Introduction

The Einstein–Gauss–Bonnet (EGB) theory is a particular generalization of general relativity (GR), where a Gauss–Bonnet (GB) term constituted of higher curvature terms is introduced to GR. One main feature of such theory is that the GB term becomes a topological invariant when the spacetime dimension equals to four. Therefore, no contribution from the GB term could be found in the field equations. However, recent researches on the EGB theory showed that there are nontrivial effects from the GB term by introducing the redefinition \(\alpha \rightarrow \alpha /(D-4)\) and taking the limit \(D\rightarrow 4\) [1,2,3]. The resultant theory is now dubbed as the novel four-dimensional (4D) EGB theory. Some related investigations can be found in Refs. [4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]. Indeed, when one investigates nontrivial effects in the novel 4D EGB gravity, the above approach requires one to start from a higher-dimensional version and to take the \(D\rightarrow 4\) limit. However, the authors in Ref. [22] pointed out that the 4D EGB gravity does not generally admit an intrinsically four-dimensional definition since, for a generic metic, the Bianchi identity is not satisfied when \(D=4\).Footnote 1 To prevent the discontinuity of the Lanczos-Bach tensor and to satisfy the Bianchi identity in the redefinition \(\alpha \rightarrow \alpha /(D-4)\) and limit \(D\rightarrow 4\), only the solutions that make the Bianchi identity on-shell are allowed. Thus generally speaking, the theory only makes sense on some selected highly-symmetric spacetimes, such as the static spherically symmetric spacetime and FLRW spacetime, but it is ill-defined in four dimensions with the dimensional regularization procedure, such as the homogeneous but anisotropic Bianchi type I spacetime, whose evolution was found to be dependent on the choice of the symmetry between the extra nonphysical dimensions and the physical spatial dimensions [23].

To address this issue, some regularized 4D EGB theories were constructed [9, 15, 24,25,26]. The regularization procedure is not unique.Footnote 2 One mechanism is to introduce an extra GB term constructed by a conformal metric [15, 24]. The resultant gravity has an extra scalar degree of freedom which helps us to obtain the full field equations in four dimensions. Another mechanism to obtain a well-defined 4D version of the EGB theory was introduced in Refs. [9, 25, 26]. Therein, the Kaluza–Klein dimensional reduction of the D-dimensional EGB theory on a \((D-4)\)-dimensional maximally symmetric space was used. Indeed, both these mechanisms could give the same regularized 4D EGB theory [21, 24] which belongs to the Horndeski theory [9]. Obviously, the regularized 4D EGB theory is dramatically different from the original one. And it will never recover the novel 4D EGB theory unless the extra scalar degree of freedom is “missing” [21]. Nevertheless, there is an interesting feature between these two theories.

As was pointed out in Ref. [24] that the extra GB term constructed by the conformal metric vanishes on-shell. Thus the on-shell action of the regularized 4D EGB theory recovers the action of the novel 4D EGB theory. Besides, the trace of the field equations has the same form as the one in the novel 4D EGB theory [21, 24]. Thus the novel 4D EGB theory may have a hidden scalar degree of freedom. This feature indicates that the novel 4D EGB theory and its regularized counterpart may give the same contributions on the 4D local dynamics. One then is required to check the equivalence of the solutions of the metric and matter fields between these two theories. Mathematically, it is to test whether the solutions in the novel 4D EGB theory satisfy the on-shell condition in the regularized 4D EGB theory. The equivalence of the solutions between two theories has been proved in the static spherically symmetric spacetime [9, 19]. However, such equivalence is broken down in the Taub-NUT metric and the rotating black hole metrics constructed by the Newmann–Janis algorithm [15]. So it indicates that solutions obtained in the novel 4D EGB theory may be different from the ones in the regularized 4D EGB theory in a more complicated spacetime than spherically symmetric one. Thus, it is important to check whether it holds true for other kinds of the spacetime beyond spherical symmetry.

In this paper, we will test the on-shell condition in a particular kind of static cylindrically symmetric spacetime, which is less symmetric than the static spherically symmetric spacetime. We will show that the on-shell condition holds in the regularized 4D EGB gravity and the cylindrically symmetric solution solves both the two theories simultaneously. Further, as a specific example of the cylindrically symmetric metric, we consider a cosmic string. Then, we will solve the higher-dimensional EGB theory, and obtain three sets of cosmic string solutions in the novel 4D EGB theory in the limit \(D\rightarrow 4\) after the redefinition \(\alpha \rightarrow \alpha /(D-4)\).Footnote 3 The on-shell conditions of its regularized counterpart will also be checked again with the three cosmic string solutions. Our result shows that the novel 4D EGB also makes sense on the cylindrically symmetric spacetime.

As a byproduct of this paper, we also investigate the nontrivial effects of the GB term on the cosmic strings. It is well known that topological defects could arise during phase transitions when spontaneous symmetry breaking happens [29]. In the early Universe, these defects are the so-called cosmic strings [30]. The string tension is an important property, since it is related to the energy scale of the associated phase transition. The tension is usually parameterized by \(G_{4}\,\rho \), where \(G_{4}\) is the four-dimensional Newton’s gravitational constant and \(\rho \) the energy density of the string. Our result reveals the nontrivial effects from the GB term on the string mass density. It may then help us to understand how the novel 4D EGB theory and its regularized counterpart modify the energy scale of the associated phase transition.

This paper is arranged as follows. In Sect. 2, the equivalence of the two theories has been proved in a particular kind of static cylindrically symmetric spacetime. In Sect. 3, as some specific examples, three sets of cosmic string solutions are given and string mass density is discussed. A brief conclusion is given in Sect. 4.

2 Equivalence of the original and regularized EGB theories

2.1 Field equations of the novel 4D EGB theory

The action of the D-dimensional EGB gravity is

$$\begin{aligned} S=\frac{1}{2\kappa ^{2}}\int d^{D}x\sqrt{-g}\big (R+\alpha {\mathcal {G}}\big )+S_{m}, \end{aligned}$$
(1)

where \(\kappa ^{2}=8\pi G_{D}\) with \(G_{D}\) the D-dimensional Newton’s gravitational constant, which will be set to \(2\kappa ^{2}=1\) for later convenience, \(\alpha \) is the GB coupling constant, and \(S_{m}\) is the matter action. Note that the cosmological term has been included in the matter part. The GB term \({\mathcal {G}}\) is defined as

$$\begin{aligned} {\mathcal {G}}=R^{2}-4R_{KL}R^{KL}+R^{KLPQ}R_{KLPQ}. \end{aligned}$$
(2)

The field equations are given by

$$\begin{aligned} R_{MN}-\frac{1}{2}g_{MN}R+{\mathcal {G}}_{MN}=\frac{1}{2} T_{MN}, \end{aligned}$$
(3)

where \(T_{MN}\equiv -\frac{2}{\sqrt{-g}}\frac{\delta S_{m}}{\delta g^{MN}}\) is the energy-momentum tensor and \({\mathcal {G}}_{MN}\) a tensor carrying the contributions from the GB term:

$$\begin{aligned} {\mathcal {G}}_{MN}\equiv & {} \alpha \Big [2RR_{MN}-4R^{K}_{~M}R_{KN}+2g_{MK}R^{KLPQ}R_{PQNL}\nonumber \\&-4\,g_{MK}g_{NL}R^{KPLQ}R_{QP}-\frac{1}{2}g_{MN}{\mathcal {G}}\Big ]. \end{aligned}$$
(4)

For the case of \(D=4\), the GB term (2) is a topological invariant, and thus it does not affect the Einstein’s equations. While it gives nontrivial contributions when the dimension of spacetime is larger than four. Remarkably, many nontrivial effects from the GB term in four dimensions were revealed by redefining the GB coupling constant as \(\alpha \rightarrow \alpha /(D-4)\) and taking the limit \(D\rightarrow 4\) (for detail see e.g. Refs. [1,2,3]). In what follows, we will show how this method works for the case of a cosmic string and then investigate contributions of the GB term on the spacetime geometry and characteristics of the cosmic string.

After the theory proposed by Kaluza and Klein [31,32,33], some recent higher-dimensional theories assume that our Universe is a four-dimensional manifold \({\mathcal {M}}_{4}\) embedded in a higher-dimensional spacetime (see e.g. Refs. [34,35,36,37]). Ordinary particles and interactions introduced in the Standard Model of particle physics are confined on \({\mathcal {M}}_{4}\), while gravity could propagate through the bulk. For a five-dimensional spacetime, \({\mathcal {M}}_{4}\) is called as a brane, while it is named as a string in six dimensions. By analogy with the latter case, one could use a cylindrically symmetric metric to construct a string-like slice \({\mathcal {M}}_{d}\) in a D-dimensional spacetime with \(D=d+2\ge 3\):

$$\begin{aligned} ds^{2}_{D}=F(r,\theta )h_{\mu \nu }dx^{\mu }dx^{\nu }+g_{rr}dr^{2}+g_{\theta \theta }dx^{\theta }x^{\theta }, \end{aligned}$$
(5)

where \(h_{\mu \nu }\) is the induced metric on the manifold \({\mathcal {M}}_{d}\). For the cosmic string solutions in higher-dimensional spacetime, one could see Refs. [38,39,40,41] as examples. For the usual 4D cosmic string in the early Universe, one could obtain the corresponding metric by fixing the dimension of the manifold \({\mathcal {M}}_{d}\) to \(d=2\).

In this paper, we will start from a D-dimensional static cylindrically symmetric spacetime with the metric ansatz given by

$$\begin{aligned} ds^{2}_{D}=H(r)\eta _{\mu \nu }dx^{\mu }dx^{\nu }+dr^{2}+W(r)^{2}d\theta ^{2}, \end{aligned}$$
(6)

where \(\eta _{\mu \nu }\) is the induced metric of a \((D-2)\)-dimensional Minkowski manifold with \(\mu ,\nu =0,1,2,3,5,\ldots ,D-2\). When \(D=6\), r and \(\theta \) become the extra spatial dimensions and our Universe can be viewed as a four-dimensional Minkowski string embedded in a six-dimensional spacetime with H(r) the warped factor of the string. When \(D>6\), the dimensions denoted by \(x^{i}\) (\(i = 5,6,\ldots ,D-2\)) should be compactified in this braneworld model.Footnote 4 When \(D=4\), the metric (6) could be expressed in the cylindrical coordinates \((t,z,r,\theta )\):

$$\begin{aligned} ds^{2}_{4}=-H(r)dt^{2}+H(r)dz^{2}+dr^{2}+W(r)^{2}d\theta ^{2}, \end{aligned}$$
(7)

where z and r are the axial coordinate parallel to the string and the radial distance, respectively. The string is located at \(r=0\). The angular coordinate \(\theta \) is in the range \(0\le \theta \le 2\pi \).

By taking into account the metric (6), one could obtain the connection and Riemann tensor as follows:

$$\begin{aligned} \varGamma ^{K}_{~MN}= & {} \delta ^{K}_{~~\theta }\,\delta ^{r}_{(M}\,\delta ^{\theta }_{~N)}\nonumber \\&\times \frac{2W'}{W}+\delta ^{K}_{~~\beta }\,\delta ^{r}_{(M}\,\delta ^{\beta }_{~N)}\frac{H'}{H}\nonumber \\&-\delta ^{\theta }_{~M}\,\delta ^{K}_{~~r}\,\delta ^{\theta }_{~N}WW'-\delta ^{\alpha }_{~M}\,\delta ^{K}_{~~r}\,\delta ^{\beta }_{~N}\eta _{\alpha \beta }\frac{H'}{2},\end{aligned}$$
(8)
$$\begin{aligned} R^{K}_{~LMN}= & {} \delta ^{K}_{~~\theta }\,\delta ^{r}_{~L}\,\delta ^{r}_{[M}\delta ^{\theta }_{~N]}\nonumber \\&\times \frac{2W''}{W}+2\delta ^{K}_{~~r}\,\delta ^{\theta }_{~L}\,\delta ^{\theta }_{[M}\,\delta ^{r}_{~N]}WW''\nonumber \\&+2\,\delta ^{K}_{~~\alpha }\,\delta ^{r}_{~L}\,\delta ^{r}_{[M}\,\delta ^{\alpha }_{~N]}\left[ \frac{H''}{2H}-\left( \frac{H'}{2H}\right) ^{2}\right] \nonumber \\&+2\,\delta ^{K}_{~~r}\,\delta ^{\beta }_{~L}\,\delta ^{\alpha }_{[M}\,\delta ^{r}_{~N]}\eta _{\alpha \beta }\nonumber \\&\times \left[ \frac{H''}{2H}-\left( \frac{H'}{2H}\right) ^{2}\right] H\nonumber \\&+\delta ^{K}_{~~\alpha }\,\delta ^{\theta }_{~L}\,\delta ^{\theta }_{[M}\,\delta ^{\alpha }_{~N]}\frac{WW'H'}{H} \nonumber \\&-\delta ^{K}_{\theta }\,\delta ^{\beta }_{~L}\,\delta ^{\theta }_{[M}\,\delta ^{\alpha }_{~N]}\eta _{\alpha \beta }\nonumber \\&\times \frac{W'H'}{W}+\delta ^{K}_{~~\rho }\,\delta ^{\beta }_{~L}\,\delta ^{\alpha }_{[M}\,\delta ^{\rho }_{~N]}\eta _{\alpha \beta }\frac{(H')^{2}}{2H}, \end{aligned}$$
(9)
$$\begin{aligned} R_{PQNL}= & {} 2\delta ^{\theta }_{~P}\delta ^{r}_{~Q}\delta ^{r}_{[N}\delta ^{\theta }_{~L]}WW''\nonumber \\&+2\delta ^{r}_{~P}\delta ^{\theta }_{~Q}\delta ^{\theta }_{[N}\delta ^{r}_{~L]}WW''\nonumber \\&+\delta ^{\beta }_{~P}\,\delta ^{r}_{~Q}\,\delta ^{r}_{[N}\delta ^{\alpha }_{~L]}\eta _{\alpha \beta }\frac{H}{2}\left[ \frac{2H''}{H}-\left( \frac{H'}{H}\right) ^{2}\right] \nonumber \\&+\delta ^{r}_{~P}\,\delta ^{\beta }_{~Q}\,\delta ^{\alpha }_{[N}\delta ^{r}_{~L]}\eta _{\alpha \beta }\nonumber \\&\times \frac{H}{2}\left[ \frac{2H''}{H}-\left( \frac{H'}{H}\right) ^{2}\right] \nonumber \\&+\delta ^{\beta }_{~P}\,\delta ^{\theta }_{~Q}\,\delta ^{\theta }_{[N}\delta ^{\alpha }_{~L]}\eta _{\alpha \beta }WW'H'\nonumber \\&+\delta ^{\sigma }_{~P}\,\delta ^{\beta }_{~Q}\,\delta ^{\alpha }_{[N}\delta ^{\rho }_{~L]}\eta _{\rho \sigma }\eta _{\alpha \beta }\frac{(H')^{2}}{2}\nonumber \\&-\delta ^{\theta }_{~P}\,\delta ^{\beta }_{Q}\,\delta ^{\theta }_{[N}\delta ^{\alpha }_{~L]}\eta _{\alpha \beta }WW'H', \end{aligned}$$
(10)
$$\begin{aligned} R_{NL}= & {} \delta ^{r}_{~N}\,\delta ^{r}_{~L} \times \Big [\frac{D-2}{4}\left( \frac{H'}{H}\right) ^{2}\nonumber \\&-\frac{D-2}{2}\frac{H''}{H}-\frac{W''}{W}\Big ]\nonumber \\&-\delta ^{\alpha }_{~N}\,\delta ^{\beta }_{~L}\eta _{\alpha \beta }\frac{1}{2}\Big [\frac{D-4}{2}\frac{(H')^{2}}{H}+\frac{W'H'}{W}+H''\Big ]\nonumber \\&-\delta ^{\theta }_{~N}\,\delta ^{\theta }_{~L}W\Big [\frac{D-2}{2}\frac{W'H'}{H}+W''\Big ], \end{aligned}$$
(11)

where the prime denotes the derivative with respect to the coordinate r. The round or square bracket in subscript represents the symmetrization or antisymmetrization of the indices. A straightforward calculation gives the nonvanishing components of the gravitational field equations:

$$\begin{aligned} (\mu ,\nu ): \frac{T_{tt}}{H}=\,&\frac{\alpha _{2,3,4}}{D-2}\frac{H'}{H}\nonumber \\&\times \Bigg [ \frac{ (D-10)(D-5) }{8} \left( \frac{H'}{H}\right) ^{3} \nonumber \\&+(D-7)\left( \frac{H'}{H}\right) ^{2}\frac{W'}{W}+(D-5)\frac{H'}{H}\frac{H''}{H}\nonumber \\&+2\frac{H'}{H}\frac{W''}{W}+4\frac{H''}{H}\frac{W'}{W}\Bigg ]\nonumber \\&-(D-3)\Bigg [\frac{D-6}{4}\left( \frac{H'}{H}\right) ^{2} +\frac{H'}{H}\frac{W'}{W} .\nonumber \\&+\frac{H''}{H} +\frac{2}{D-3}\frac{W''}{W}\Bigg ], \end{aligned}$$
(12a)
$$\begin{aligned} (r,r): T_{rr}=\,&\alpha _{2,3,4} \left( \frac{H'}{H}\right) ^{3} \left[ -\frac{(D-5) }{8} \frac{H'}{H}-\frac{W'}{W}\right] \nonumber \\&+(D-2)\frac{H'}{H}\left[ \frac{D-3}{4}\frac{H'}{H}+\frac{W'}{W}\right] , \end{aligned}$$
(12b)
$$\begin{aligned} (\theta ,\theta ): \frac{T_{\theta \theta }}{W^2}=\,&- \alpha _{2,3,4}\left( \frac{H'}{H}\right) ^{2} \left[ \frac{(D-9)}{8} \left( \frac{H'}{H}\right) ^{2}+\frac{H''}{H}\right] \nonumber \\&+(D-2)\left[ \frac{D-5}{4}\left( \frac{H'}{H}\right) ^{2}+\frac{H''}{H}\right] , \end{aligned}$$
(12c)

where

$$\begin{aligned} \alpha _{2,3,4}=(D-2)(D-3)(D-4)\alpha /2. \end{aligned}$$
(13)

The contributions of the GB term labeled with coupling constant \(\alpha \) in each component of the gravitational field equations appear with a factor \((D-4)\). This is a general feature of the D-dimensional EGB theory (one could check it with Eq. (8) in Ref. [3]). Therefore, no contribution of the GB term could be found in the 4D EGB theory. While, by introducing the redefinition \(\alpha \rightarrow \alpha /(D-4)\) [3], all such factors \((D-4)\) in the gravitational field equations are canceled. In the limit \(D\rightarrow 4\), the resultant field equations read

$$\begin{aligned} (\mu ,\nu ):~\frac{T_{tt}}{H}= & {} \frac{\alpha }{2}\frac{H'}{H}\left[ \frac{ 3 }{4} \left( \frac{H'}{H}\right) ^{3}\right. -3\left( \frac{H'}{H}\right) ^{2}\frac{W'}{W}-\frac{H'}{H}\frac{H''}{H} \nonumber \\&\left. +2\frac{H'}{H}\frac{W''}{W}+4\frac{H''}{H}\frac{W'}{W}\right] +\frac{1}{2}\left( \frac{H'}{H}\right) ^{2}\nonumber \\&-\frac{H'}{H}\frac{W'}{W}-\frac{H''}{H} -2\frac{W''}{W}, \end{aligned}$$
(14a)
$$\begin{aligned} (r,r):~ T_{rr}= & {} \alpha \left( \frac{H'}{H}\right) ^{3} \left[ \frac{H'}{8H} -\frac{W'}{W}\right] +\frac{1}{2}\left( \frac{H'}{H}\right) ^{2} \nonumber \\&+2\frac{H'}{H}\frac{W'}{W}, \end{aligned}$$
(14b)
$$\begin{aligned} (\theta ,\theta ):~\frac{T_{\theta \theta }}{W^2}= & {} \alpha \left( \frac{H'}{H}\right) ^{2} \left[ \frac{5}{8} \left( \frac{H'}{H}\right) ^{2}-\frac{H''}{H}\right] \nonumber \\&-\frac{1}{2}\left( \frac{H'}{H}\right) ^{2}+2\frac{H''}{H}. \end{aligned}$$
(14c)

Thus the theory has well-defined field equations in \(D\rightarrow 4\) limit for the static cylindrically symmetric spacetime. Obviously, nontrivial contribution from the GB term appears in the four-dimensional field equations (14).

2.2 Field equations of the regularized 4D EGB theory

Although the well-defined field equations in \(D\rightarrow 4\) limit for the particular kind of static cylindrically symmetric spacetime (6) can be obtained after the redefinition \(\alpha \rightarrow \alpha /(D-4)\), generally, the 4D EGB gravity would admit neither an intrinsically four-dimensional definition nor well-defined four-dimensional field equations [22, 24]. To address this problem, a regularized 4D EGB theory was constructed [15, 24]. The main mechanism of such theory is to introduce an extra GB term constructed from the conformal metric,

$$\begin{aligned} {\tilde{g}}_{MN}=e^{2\psi (r)}g_{MN}, \end{aligned}$$
(15)

to cancel the original GB term. The resultant gravitational part of the action contains an Einstein–Hilbert term and some extra terms involving \(\psi (r)\):

$$\begin{aligned} S_{g}= & {} \int d^{4}x\sqrt{-g}\Big [R+\alpha \big (4G^{MN}\nabla _{M}\psi \nabla _{N}\psi -\psi \,{\mathcal {G}}\nonumber \\&+4\Box \psi \nabla _{K}\psi \nabla ^{K}\psi +2\nabla _{K}\psi \nabla _{L}\psi \nabla ^{K}\psi \nabla ^{L}\psi \big )\Big ], \end{aligned}$$
(16)

The field equations of this theory were already obtained in Refs. [15, 24]. It is worth to note that the extra GB term vanishes when the scalar field \(\psi \) is on-shell. In other words, the on-shell action of the regularized 4D EGB theory equals to the one of the original novel 4D EGB theory. And when the system is on-shell, one could investigate the novel 4D EGB theory through the field equations of the regularized one. A natural question then arises as to check whether the spacetime geometry given in the novel 4D EGB theory satisfies the on-shell condition of the regularized 4D EGB theory. For a spherically symmetric spacetime, the equivalence of the actions in the regularized 4D EGB theory and in the original one has been proved (see e.g. Refs. [9, 19]). In this section, we will use our cosmic string solutions to test whether the actions of these two theories are still equivalent when the symmetry of spacetime is beyond the spherical symmetry. Our result supports that the regularized 4D EGB theory is equivalent to the original one in a specific cylindrically symmetric spacetime. Particularly, we also prove the equivalence in a more general case. To give a short conclusion here, we shall say that when the metric ansatz follows our assumption (7), the novel 4D EGB theory and its regularized counterpart are equivalent.

The gravitational field equations of the regularized 4D EGB theory are

$$\begin{aligned} G_{MN}=\alpha {\mathcal {H}}_{MN}+\frac{1}{2}T_{MN}, \end{aligned}$$
(17)

where \(G_{MN}\) is the Einstein tensor and \({\mathcal {H}}_{MN}\) is given by [24]

$$\begin{aligned} {\mathcal {H}}_{MN}= & {} 2R\left( \nabla _\mu \nabla _\nu \psi -\nabla _\mu \psi \nabla _\nu \psi \right) \nonumber \\&+2G_{\mu \nu }\left[ (\nabla \psi )^2-2\Box \psi \right] \nonumber \\&+4G_{\nu \alpha }\left( \nabla ^\alpha \nabla _\mu \psi -\nabla ^\alpha \psi \nabla _\mu \psi \right) \nonumber \\&+4G_{\mu \alpha }\left( \nabla ^\alpha \nabla _\nu \psi -\nabla ^\alpha \psi \nabla _\nu \psi \right) \nonumber \\&+4R_{\mu \alpha \nu \beta }\left( \nabla ^\beta \nabla ^\alpha \psi -\nabla ^\alpha \psi \nabla ^\beta \psi \right) \nonumber \\&+4\nabla _\alpha \nabla _\nu \psi \left( \nabla ^\alpha \psi \nabla _\mu \psi -\nabla ^\alpha \nabla _\mu \psi \right) \nonumber \\&+4\nabla _\alpha \nabla _\mu \psi \nabla ^\alpha \psi \nabla _\nu \psi \nonumber \\&+4\Box \psi \nabla _\nu \nabla _\mu \psi -4\nabla _\mu \psi \nabla _\nu \psi \left[ (\nabla \psi )^2+\Box \psi \right] ^2\nonumber \\&-g_{\mu \nu }\Big \{2R\left[ \Box \psi -(\nabla \psi )^2\right] \nonumber \\&+4G^{\alpha \beta }\left( \nabla _\beta \nabla _\alpha \psi -\nabla _\alpha \psi \nabla _\beta \psi \right) \nonumber \\&+2(\Box \psi )^2-(\nabla \psi )^4\nonumber \\&+2\nabla _\beta \nabla _\alpha \psi \left( 2\nabla ^\alpha \psi \nabla ^\beta \psi -\nabla ^\beta \nabla ^\alpha \psi \right) \Big \}. \end{aligned}$$
(18)

The field equation of the scalar field \(\psi \) reads:

$$\begin{aligned} \frac{1}{8}{\mathcal {G}}= & {} R^{KL}\nabla _{K}\psi \nabla _{L}\psi \nonumber \\&-G^{KL}\nabla _{K}\nabla _{L}\psi -\Box \psi \nabla _{K}\psi \nabla ^{K}\psi \nonumber \\&+\nabla _{K}\nabla _{L}\psi \nabla ^{K}\nabla ^{L}\psi \nonumber \\&-(\Box \psi )^{2}-2\nabla _{K}\psi \nabla _{L}\psi \nabla ^{K}\nabla ^{L}\psi . \end{aligned}$$
(19)

With the cylindrical coordinates (7), a straightforward calculation gives the following nonvanishing components of the gravitational field equations:

$$\begin{aligned} \frac{T_{tt}}{H}= & {} \frac{1}{2}\left( \frac{H'}{H}\right) ^{2}-\frac{H''}{H}-\frac{2W''}{W}-\frac{H'}{H}\frac{W'}{W}\nonumber \\&\left. +\frac{2 H' }{H}\frac{W''}{W}-\left( \frac{H'}{H}\right) ^2\frac{ W'}{W}\right] \varphi \nonumber \\&-\alpha \left[ \frac{2 H''}{H}+\frac{2 H'}{H }\frac{W'}{W}-\left( \frac{H'}{H}\right) ^2+\frac{4 W''}{W}\right] \varphi ^{2}\nonumber \\&+2 \alpha \varphi ^4-4\alpha \bigg [2 \varphi ^2+ \Big (\frac{H'}{H}+\frac{2 W'}{W}\Big )\varphi +\frac{H'}{H }\frac{W'}{W}\bigg ]\varphi ',\nonumber \\ \end{aligned}$$
(20a)
$$\begin{aligned} T_{rr}= & {} \frac{2 H' }{ W}\frac{4 W'}{ W}+\frac{1}{2}\left( \frac{H'}{H}\right) ^2+6 \alpha \left( \frac{H'}{H}\right) ^2 \frac{ W'}{W}\varphi \nonumber \\&+3 \alpha \left( \frac{H'}{H}+\frac{4 W'}{W}\right) \frac{ H'}{H} \varphi ^{2}+8\alpha \left( \frac{H'}{H}+\frac{W'}{W}\right) \varphi ^{3}\nonumber \\&+6\alpha \varphi ^{4}, \end{aligned}$$
(20b)
$$\begin{aligned} \frac{T_{\theta \theta }}{W^2}= & {} \frac{2 H''}{H}-\frac{1}{2}\left( \frac{H'}{H}\right) ^2-2\alpha \bigg [\Big (\frac{H'}{H}\Big )^2-\frac{2 H''}{H}\bigg ]\frac{H'}{H}\varphi \nonumber \\&-\alpha \bigg [\left( \frac{H'}{H}\right) ^2-\frac{4 H''}{H}\bigg ]\varphi ^{2}-2\alpha \varphi ^{4}\nonumber \\&+2\alpha \bigg [4\varphi ^{2}+4\frac{H'}{H}\varphi +\left( \frac{H'}{H}\right) ^2\bigg ]\varphi ',\nonumber \\&\end{aligned}$$
(20c)

where \(\varphi \) is defined as \(\varphi \equiv \psi '(r)\). For a given cylindrical solution in the novel 4D EGB theory, the above equations correspond to three constraints on the scalar field \(\varphi \). The equivalence of the novel 4D EGB theory and its regularized counterpart then requires that the resultant constraints should meet with the on-shell condition (19).

2.3 Equivalence of the two theories

As we have mentioned before, if the on-shell action of the regularized 4D EGB theory equals to the one of the novel 4D EGB theory in a static cylindrically symmetric spacetime (7), both of them will give the same solutions. From Eq. (19), we find that the on-shell condition does not involve the matter content. Thus it is convenient to eliminate the matter part in the gravitational field equations (20) with Eq. (14). The resultant field equations read

$$\begin{aligned} 0= & {} \left[ \left( \frac{3}{4}\frac{H'}{H}+\frac{W'}{W} \right) \frac{H'}{H}-\frac{H''}{H}+2\frac{W''}{W}+\left( \frac{ H'}{H}-\varphi \right) \varphi -2 \varphi '\right] X\nonumber \\&+2\frac{W'}{W}X'+(2\varphi X )', \end{aligned}$$
(21a)
$$\begin{aligned} 0= & {} \left( \frac{2 W'}{W}-\frac{H'}{4 H}+\frac{3 \varphi }{2}\right) X^{3/2}, \end{aligned}$$
(21b)
$$\begin{aligned} 0= & {} \bigg [\frac{5}{4} \left( \frac{H'}{H}\right) ^2-\frac{2 H''}{H}-\left( \frac{ H'}{H}-\varphi \right) \varphi -4 \varphi '\bigg ]X, \end{aligned}$$
(21c)

with

$$\begin{aligned} X=\Big (\frac{H'}{H}+2 \varphi \Big )^{2}. \end{aligned}$$
(22)

One could check that the above field equations (21) are identities when X equals to zero. From the definition (22), we know that it requires the scalar field to satisfy

$$\begin{aligned} \varphi =-\frac{H'}{2H}. \end{aligned}$$
(23)

On the other hand, the on-shell condition (19) could be expressed as follows:

$$\begin{aligned} 0= & {} \Big (2 \varphi +\frac{H'}{H}\Big )\bigg \{\frac{2 H'' }{H }\frac{ W'}{W}+\frac{H'}{H}\frac{W''}{W}-\left( \frac{H'}{H}\right) ^3\nonumber \\&+\bigg [\frac{H''}{H}+\frac{3 H' }{H }+\frac{W'}{W}-\left( \frac{H'}{H}\right) ^2+\frac{2 W''}{W}+6\bigg ]\varphi \nonumber \\&\times 2\Big (\frac{H'}{H}+\frac{W'}{W}\Big )\varphi ^{2}+\Big (\frac{H'}{H}+\frac{4 W'}{W}\Big )\varphi '^{2}\bigg \}. \end{aligned}$$
(24)

Obviously, the above scalar field equation is an identity when the scalar field \(\varphi \) satisfies the relation (23). Indeed, a straightforward proof could be given by substituting this expression into the field equations (20) to eliminate \(\varphi \). One could check that the resultant field equations just recover the ones (14) of the novel 4D EGB theory. Thus, we can conclude that the two 4D EGB theories are equivalent in the static cylindrically symmetric spacetime (7). In other words, solutions of the static cylindrically symmetric metric (7) of the novel 4D EGB theory are also solutions of the regularized one.

3 Cosmic string solutions

As a specific example of the static cylindrically symmetric metic (6), we consider the cylindrical cosmic string. Cosmic strings have various astrophysical phenomena [43,44,45,46,47,48,49,50,51,52,53,54]. For example, the formation of a network of cosmic strings is expected to generate gravitational waves with a large amplitude [43,44,45,46]. Cosmic strings could affect the cosmic microwave background photons and therefore give rise to distinctive signatures on the cosmic microwave background [47,48,49,50]. They could also bend the light curves that result in gravitational lensings (see e.g. Refs. [51,52,53,54]). Other researches can be found in Refs. [55,56,57,58].

An important property of a cosmic string is its tension. As is well known, the cosmic string is a kind of topological defect in the early Universe [30], while topological defects usually arise during phase transitions when spontaneous symmetry breaking happens. Their formations require a sufficient high temperature \(T>T_{c}=\sqrt{6}\eta \) with \(T_{c}\) the critical temperature in the second phase transition and \(\eta \) the energy breaking scale [29]. Thus the string tension is related to the energy scale of the associated phase transitions. According to the astrophysical phenomena of cosmic strings, the string tension could be constrained by the observations. The cosmic microwave background data from the Planck Satellite constrains the tension of the Nambo-Goto string to \(G_{4}\,\rho \lesssim 10^{-7}\) [59]. While the LIGO and Virgo collaboration has limited the tension of the Nambu-Goto string as \(G_{4}\,\rho <2\times 10^{-14}\) [60, 61].

In the novel 4D EGB theory, the above constrains will change when the GB term contributes a nontrivial effect to the string mass density. In this section, we will give three sets of solutions and show such nontrivial effects from the GB term. We will then test the on-shell condition of the regularized 4D EGB theory with these solutions. The result shows that they are also the string solutions of the regularized 4D EGB theory, and hence supports the conclusion obtained in the last section. Thus the nontrivial effects found in this section may help us to understand how the novel 4D EGB theory and its regularized counterpart affect the energy scale of the phase transition.

For a cosmic string, we consider the following matter action of a scalar field:

$$\begin{aligned} S_{m}=\int d^{D}x\sqrt{-g}\left[ -\frac{1}{2}g^{KL}\nabla _{K}\phi (r)\nabla _{L}\phi (r)-V(\phi )\right] , \end{aligned}$$
(25)

for which the energy-momentum tensor is given by

$$\begin{aligned} T_{MN} =\nabla _{M}\phi \nabla _{N}\phi -\frac{1}{2}g_{MN}\nabla ^{L}\phi \nabla _{L}\phi -g_{MN}V(\phi ). \end{aligned}$$
(26)

The metric ansatz for the cosmic string in D-dimensional spacetime is given by (6), with which the independent equations can be simplified to

$$\begin{aligned} 0= & {} {\alpha _{2,3,4}}\frac{H'}{H} \Bigg [ (D-8)\left( \frac{H'}{H}\right) ^{3} -{2(D-7)}\Big (\frac{H'}{H}\Big )^{2}\frac{W'}{W}\nonumber \\&+6\frac{H'}{H}\frac{H''}{H} -4\frac{H'}{H}\frac{W''}{W} -8\frac{H''}{H}\frac{W'}{W} \Bigg ] \nonumber \\&-(D-2) \Bigg [ 2\frac{H''}{H}+(D-4)\left( \frac{H'}{H}\right) ^{2} \nonumber \\&-4\frac{W''}{W} -2(D-3)\frac{H'}{H}\frac{W'}{W} \Bigg ] , \end{aligned}$$
(27a)
$$\begin{aligned} \phi '^{2}= & {} \alpha _{2,3,4}\left( \frac{H'}{H}\right) ^{2} \Bigg [ \frac{H''}{H}-\frac{1}{2}\left( \frac{H'}{H}\right) ^{2} -\frac{H'}{H}\frac{W'}{W} \Bigg ]\nonumber \\&-(D-2) \Bigg [\frac{H''}{H}- \frac{1}{2}\left( \frac{H'}{H}\right) ^{2} -\frac{H'}{H}\frac{W'}{W} \Bigg ] , \end{aligned}$$
(27b)
$$\begin{aligned} 2V= & {} \alpha _{2,3,4} \left( \frac{H'}{H}\right) ^{2}\Bigg [ \frac{H''}{H}+ \frac{D-7}{4}\left( \frac{H'}{H}\right) ^{2}+\frac{H'}{H}\frac{W'}{W} \Bigg ]\nonumber \\&-(D-2) \Bigg [\frac{H''}{H}+\frac{D-4}{2}\left( \frac{H'}{H}\right) ^{2} +\frac{H'}{H}\frac{W'}{W}\Bigg ]. \end{aligned}$$
(27c)

We now have three independent field equations while with four functions, H, W, \(\phi \), and V. Therefore, if one of the functions is fixed, we can determine the solution of the other functions. On the other hand, we find that Eq. (27a) gives a constraint between the functions H and W, with which H could be expressed as a function of W and vise versa. By analyzing Eqs. (27b) and (27c), we could further solve the rest quantities \(\phi \) and V as functions of either H or W. Indeed, Eq. (27a) is a second-order linear differential equation for W:

$$\begin{aligned} W''=\frac{A_{1}}{A_{2}}\frac{H'}{H}W'+\frac{B}{A_{2}}W, \end{aligned}$$
(28)

where

$$\begin{aligned} A_{1}= & {} \frac{D-3}{2 }-\alpha _{3,4}\left[ \frac{D-7}{4} \left( \frac{H'}{H}\right) ^2+\frac{ H''}{H}\right] ,\nonumber \\ \end{aligned}$$
(29a)
$$\begin{aligned} A_{2}= & {} \frac{\alpha _{3,4}}{2} \left( \frac{H'}{H}\right) ^2-1\,, \end{aligned}$$
(29b)
$$\begin{aligned} B= & {} \frac{\alpha _{3,4}}{4}\left( \frac{H'}{H}\right) ^{2}\left[ \frac{D-8}{2}\left( \frac{H'}{H}\right) ^{2}+3\frac{H''}{H}\right] \nonumber \\&-\frac{1}{2} \left[ \frac{H''}{H} +\frac{D-4}{2}\left( \frac{H'}{H}\right) ^{2}\right] , \end{aligned}$$
(29c)

with \(\alpha _{3,4}= (D-3)(D-4)\alpha \). Obviously, Eq. (27a) and therefore Eqs. (27b) and (27c) can be solved by assuming some specific forms of H. In the following, we will give three sets of string solutions in a D-dimensional spacetime. Besides, we will introduce the redefinition \(\alpha \rightarrow \alpha /(D-4)\) in each set of our solutions, such that the nontrivial contributions of the GB term on the characters of the cosmic strings may appear in the limit \(D\rightarrow 4\). Note that the spacetime dimension in our solutions is not fixed. Thus our solutions are also useful to construct braneworld models.

3.1 \(H(r)=e^{-kr}\)

We first assume that the metric component H obeys

$$\begin{aligned} H=e^{-kr}, \end{aligned}$$
(30)

where k is a positive parameter. As shown in the previous context, the solution of W could be obtained by taking into account the field equation (28):

$$\begin{aligned} W=e^{- k r/2}+C_{1} e^{(D-2) k r/2}, \end{aligned}$$
(31)

where \(C_{1}\) is an integration constant. Indeed, from Eq. (28) we will get two integration constants in the solution of W. The first one is the factor of the first term on the r.h.s. of Eq. (31), and the second one is the factor of the second term. With the consideration that the boundary of the spacetime could be maximally symmetric we assume that the first integration constant is nonvanishing, while do not constrain the second one. Obviously, the first integration constant could be absorbed into \(\theta \) with the second one changing to \(C_{1}\). Again, here and after, the GB coupling constant will be redefined as \(\alpha \rightarrow \alpha /(D-4)\) in order to give a nontrivial contribution from the GB term in the limit \(D\rightarrow 4\).

Having the expressions of H and W, one finds that Eqs. (27b) and (27c) become the linear equations of \(\phi '^{2}\) and V, respectively. Then the solutions of \(\phi '\) and V are obtained as

$$\begin{aligned} \phi '= & {} \frac{k(D - 1) C_{2} }{4 }\sqrt{\frac{\varTheta (r)-1}{\varTheta (r)}}, \end{aligned}$$
(32)
$$\begin{aligned} V= & {} -\frac{(D - 2) (D - 1) k^2-C_{3}}{4 \varTheta (r)} - \frac{C_{3}}{8} \frac{\varTheta (r)-1}{\varTheta (r)}, ~~~~ \end{aligned}$$
(33)

where

$$\begin{aligned} \varTheta (r)= & {} C_{1}\, e^{(D-1)k r/2}+1\,, \end{aligned}$$
(34a)
$$\begin{aligned} C_{2}= & {} 2 \sqrt{\frac{D-2}{D-1 } \big [\alpha (D-3) k^2-2\big ]}, \end{aligned}$$
(34b)
$$\begin{aligned} C_{3}= & {} \alpha (D-3) (D-2) (D-1) k^4/2. \end{aligned}$$
(34c)

By integrating Eq. (32), we then get the solution of the scalar field:

$$\begin{aligned} \phi =C_2 \tanh ^{-1}\big (\sqrt{(\varTheta -1)/\varTheta }\big )\,. \end{aligned}$$
(35)

From the definition (34b34c), we find that the constant \(C_{2}\) becomes a complex when the GB coupling constant satisfies \(1/\alpha >(D-3) k^2/2\). Thus there is a constraint for this set of solution. Obviously, a real scalar field solution also requires the integration constant \(C_{1}\) to be positive. From the above solution, we could express the scalar potential with respect to the scalar field as follows:

$$\begin{aligned} V(\phi )= & {} -\frac{(D - 2) (D - 1) k^2 - C_{3}}{4}\text {sech}^{2}(\phi /C_{2})\nonumber \\&-\frac{C_{3}}{8}\text {tanh}^{2}(\phi /C_{2}). \end{aligned}$$
(36)

The energy density of the scalar field is then given as

$$\begin{aligned} \rho (r)= & {} -g^{00}T_{00}-\rho _{0}. \end{aligned}$$
(37)

Here \(\rho _{0}\) is the vacuum energy density of the cosmological constant term included in the scalar potential V, and it is given by

$$\begin{aligned} \rho _{0}=\frac{C_2^2 (D-1)^2 k^2}{64} -\frac{(D-1) (D-2) k^2}{8}, \end{aligned}$$
(38)

which contains the contribution of the GB term labeled by the coupling constant \(\alpha \). Then it is interesting that the energy density of the scalar field is turned out to be zero:

$$\begin{aligned} \rho (r)=0. \end{aligned}$$
(39)

By taking into account the metric components and the trace of the Ricci curvature (11), we have the following curvature scalar

$$\begin{aligned} R(r)= -\frac{D-1}{\varTheta }\frac{k^2}{2}-\frac{(D-1) (D-2)}{4} k^2, \end{aligned}$$
(40)

which approaches to \(-(D-1) (D-2) k^2/4\) for \(C_1\ne 0\) on the boundary and equals to \(-D(D-1) k^2/4\) for \(C_1= 0\). The non-vanishing components of the Ricci tensor read

$$\begin{aligned} R_{\mu \nu }= & {} -\frac{D-1}{\varTheta }\frac{k^2}{4}g_{\mu \nu }\,, \end{aligned}$$
(41a)
$$\begin{aligned} R_{rr}= & {} \left( \frac{D-3}{\varTheta }-D+2 \right) \frac{(D-1)k^{2}}{4}g_{rr}, \end{aligned}$$
(41b)
$$\begin{aligned} R_{\theta \theta }= & {} -\frac{(D-1) k^2}{4\varTheta }g_{\theta \theta }\,. \end{aligned}$$
(41c)

If \(C_1=0\), the above Ricci tensor reduces to \(R_{MN}=-\frac{(D-1)k^2}{4}g_{MN}\), so it describes an \(\text {AdS}_{D}\) spacetime. However, if \(C_1\ne 0\), the curvature tensor does not describe an asymptotically maximally symmetric spacetime (see the right-hand side of the expression (41) in the limit \(r\rightarrow \infty \)). The behavior of the metric components and the curvature scalar are shown in Fig. 1. Moreover, the scalar field and the scalar potential are described in Fig. 2. As we have mentioned before, we have a constraint between the GB coupling constant and the parameter k: \(\alpha \ge 2/\big [(D-3)k^{2}\big ]\). Thus, the first solution could not recover the one in GR by taking the limit \(\alpha \rightarrow 0\).

Fig. 1
figure 1

Plots of the metric components (30)–(31), and the curvature scalar (40) in the limit \(D\rightarrow 4\) for the first solution. a The metric component H(r). b The metric component W(r). c The curvature scalar R(r). The parameters are set to \(k=1\) and \(C_{1}=-1/(1-\alpha /2)\)

Fig. 2
figure 2

The scalar field (35) and the scalar potential, (33) or (36), in the limit \(D\rightarrow 4\) for the first solution. a The scalar field \(\phi (r)\). b The scalar potential V(r). c The scalar potential \(V(\phi )\) as a function of the scalar field. The parameters are set to \(k=1\) and \(C_{1}=-1/(1-\alpha /2)\)

3.2 \(H(r)=\text {sech}^{\beta }(kr)\)

In this section, we assume that the metric component H is

$$\begin{aligned} H=\text {sech}^{\beta }(kr), \end{aligned}$$
(42)

where \(\beta \) is an arbitrary parameter and k a positive parameter. With the field equation (27a), the solution of the variable W is

$$\begin{aligned} W=\text {sech}^{\beta /2}(kr). \end{aligned}$$
(43)

By substituting the above expressions into the field equations (27b) and (27c), we obtain the first derivative of the scalar field and the scalar potential:

$$\begin{aligned} \phi '= & {} k \sqrt{\beta (D-2)}\sqrt{\chi _{1}(r)}\,\text {sech}(k r) , \end{aligned}$$
(44)
$$\begin{aligned} V= & {} \frac{ \beta (D-2) k^2 }{8}\big [4-\chi _{2}(r)\tanh ^2(k r)\big ], \end{aligned}$$
(45)

where

$$\begin{aligned} \chi _{1}(r)= & {} 1-\frac{\alpha \beta ^2 (D-3) k^2}{2} \tanh ^2(k r), \end{aligned}$$
(46a)
$$\begin{aligned} \chi _{2}(r)= & {} \beta (D - 1) (\chi _{1} + 1) + 4 \chi _{1} + 2 \alpha \beta ^2 (D - 3) k^2.~~~~\nonumber \\ \end{aligned}$$
(46b)

With the expression of \(\phi '\) (44) and the definition of \(\chi _{1}\) (46a), we find that a real scalar field requires the parameter \(\beta \) to satisfy \(0\le \beta \le 1/\sqrt{\alpha (D-3)k^{2}/2}\) for the case \(\alpha \ne 0\), and \(\beta \ge 0\) for the case \(\alpha =0\). The scalar field could be obtained by integrating the expression (44):

$$\begin{aligned} \phi =k \sqrt{\beta (D-2)}\int \sqrt{\chi _{1}}\,\text {sech}(k r) dr\,. \end{aligned}$$
(47)

Note that the result of the above integration is complicated, so we are not going to show it here. Nevertheless, we find that the expression of the scalar field could be simplified with some specific choices of the parameters D, k, \(\alpha \), and \(\beta \). Thus, we give the following two forms of the scalar field as illustrations:

$$\begin{aligned} \phi _{1}= & {} 2^{3/4} \tan ^{-1} \big [\tanh (k r/2)\big ], \end{aligned}$$
(48a)
$$\begin{aligned} \phi _{2}= & {} \frac{1}{2^{7/4}}\sqrt{\frac{\text {sech}^2(k r) + 7}{7 \cosh (2 k r) + 9}} \Bigg \{ \sinh (k r) \sqrt{7 \cosh (2 k r) + 9}\nonumber \\&+4 i \cosh (k r) \bigg [E\left( i k r\Big |\frac{7}{8}\right) -F\left( i k r\Big |\frac{7}{8}\right) \bigg ]\Bigg \}, \end{aligned}$$
(48b)

where \(F\big (ik r|7/8\big )\) and \(E\big (i kr|7/8\big )\) are the elliptic integrals of the first and second kinds, respectively. Here, we have set the parameters to \(D=4\), \(\beta =1/2\), and \(\alpha =0\) for (48a) and \(\alpha =1/k^{2}\) for (48b).

Recalling the expressions (44) and (45), the energy density of the scalar field is then written as

$$\begin{aligned} \rho (r)= & {} \frac{\beta (D - 2) k^2 \big [ ( -\beta + \beta D + 8)\chi _1 + C_{4}\big ]}{8}\text {sech}^2(k r)\nonumber \\&-\frac{ C_4 \beta (D {-} 2) k^2}{8} {-} \frac{\beta ^2 (D {-} 2) (D {-} 1) k^2}{8} {-} \rho _{0}\,, \end{aligned}$$
(49)

where the vacuum energy density \(\rho _{0}\) is given by the minimum of the scalar potential \(V_{0}\) and

$$\begin{aligned} C_{4}=\beta (D-1) \left[ 1-\frac{\alpha \beta ^2 (D-3) k^2}{2}\right] . \end{aligned}$$
(50)

Recalling the expression of the scalar potential (45), we know that the first and second derivatives of the scalar potential are respectively

$$\begin{aligned} V'= & {} -\frac{(D-2) k^3 \left( C_5 \chi _1 + 2 C_4\right) }{2 (D-1)}\tanh (k r) \text {sech}^2(k r),~~~~ \end{aligned}$$
(51)
$$\begin{aligned} V''= & {} \frac{\beta (D-2) k^4}{2} (2 C_6 + \chi _1 \chi _3) \text {sech}^4(k r), \end{aligned}$$
(52)

with

$$\begin{aligned} C_{5}= & {} -\beta (D - 1) \big [\beta (D - 1) + 4\big ], \end{aligned}$$
(53a)
$$\begin{aligned} C_{6}= & {} \beta \left[ D - 1 - \frac{(D - 3) \alpha \beta k^2}{2}\right] + 7, \end{aligned}$$
(53b)
$$\begin{aligned} \chi _{3}(r)= & {} \big [\beta (D - 1) + 2\big ] \cosh (2 k r) - 18 - 4 \beta (D - 1).\nonumber \\ \end{aligned}$$
(53c)

The expression (51) shows two extrema of the scalar potential at \(r=0\) and at infinity. By taking into account the expression (52), we find that the scalar potential has a maximum at \(r=0\) and a minimum \(V_{0}\) at infinity. Thus, the vacuum energy density is

$$\begin{aligned} \rho _{0}=V_{0}=-\frac{\beta (D-2)k^{2}}{8}\left[ \beta (D-1)+C_4\right] . \end{aligned}$$
(54)

Again, we find that the contribution of the GB term, which is labeled by the GB coupling constant \(\alpha \), appears in the vacuum energy density.

To investigate the property of the spacetime with the existence of the cosmic string, we shall calculate the curvature tensor and its products. The curvature scalar is

$$\begin{aligned} R(r)= & {} -\frac{\beta k^2}{4}\big [D\chi _{4}(r)-2(D-2)\big ] \text {sech}^2(k r), \end{aligned}$$
(55)

with

$$\begin{aligned} \chi _{4}(r)=\beta (D-1) \sinh ^2(k r)-2. \end{aligned}$$
(56)

Note that the curvature scalar approximates to \(-\beta ^2 (D-1) D k^2/4\) on the boundary. With the expression (11) and the metric solution, we show the nonvanishing components of the Ricci tensor as follows:

$$\begin{aligned} R_{\mu \nu }= & {} -\frac{\beta k^2}{4}\chi _{4}\,\text {sech}^{2}(k r)g_{\mu \nu }\,, \end{aligned}$$
(57a)
$$\begin{aligned} R_{rr}= & {} -\frac{\beta k^2}{4} \big [\chi _{4}-2(D-2)\big ]\text {sech}^2(k r)\,g_{rr}\,, \end{aligned}$$
(57b)
$$\begin{aligned} R_{\theta \theta }= & {} -\frac{\beta k^2}{4} \chi _{4}\,\text {sech}^{2}(k r)\,g_{\theta \theta }\,. \end{aligned}$$
(57c)

One could check that the Ricci tensor approximates to

$$\begin{aligned} R_{MN}|_{r\rightarrow \infty }=-\frac{\beta ^2 (D-1) k^2}{4} g_{MN}\Big |_{r\rightarrow \infty } \end{aligned}$$
(58)

on the boundary. Thus, the solution gives an asymptotically \(\text {AdS}_{D}\) spacetime.

Fig. 3
figure 3

The metric components (42)–(43), and the curvature scalar (55) in the limit \(D\rightarrow 4\). a The metric component H(r). b The solution of W(r). c The curvature scalar R(r). The parameter k is fixed to \(k=1\)

The behavior of the metric components and the curvature scalar are plotted in Fig. 3.

Fig. 4
figure 4

The scalar field (47) and the scalar potential (45) at the limit \(D\rightarrow 4\). a The scalar field \(\phi (r)\) and b the scalar potential for different values of the parameter \(\beta \) and \(\alpha =1\). c The scalar field and d the scalar potential for different values of the GB coupling constant and \(\beta =1/2\). The parameter k is fixed to \(k=1\)

Obviously, all these quantities are smooth in the r direction. Thus our solution obtained in this section gives a regular spacetime. Curves with different values of the parameter \(\beta \) are plotted aiming to denote effects from the scalar field. Comparing Fig. 3 with Fig. 4a, b, we directly show how the scalar field gives contribution to the spacetime geometry. We then fix the parameter \(\beta \) and vary the coupling constant to reveal that the contributions of the GB term in field equations behave like an effective matter content. Figure 4c, d indicate that the same spacetime geometry might result from different scalar field solutions with different values of the GB coupling constant. As one can check, the regularity of the spacetime geometry around the scalar field also holds when the EGB theory recovers GR (e.g. \(\alpha \rightarrow 0\)).

Fig. 5
figure 5

The energy density (49) of the scalar field in the \(D\rightarrow 4\) limit. a The energy density for different values of the parameter \(\beta \) and \(\alpha =1\). b The energy density for different values of the GB coupling constant and \(\beta =1/2\). For both cases, we set the parameter k to unit

The energy density of the scalar field is shown in Fig. 5, from which one can find a smooth distribution of the energy density along the coordinate r. It indicates that the cosmic string has a width \(\sim 1/k\) in r direction and locates around the z axis. Besides, Fig. 5a also shows an energy density increasing with the parameter \(\beta \). It is natural to understand the dependency since a vacuum results in a Minkowski spacetime (e.g. \(\beta \rightarrow 0\) when \(\rho (0)\rightarrow 0\)). Figure 5b also supports that the spacetime geometry is affected by both the matter field and the GB term. All these results indicate that the EGB theory deviates from GR in the limit \(D\rightarrow 4\) with the redefinition \(\alpha \rightarrow \alpha /(D-4)\).

Up to now, we have obtained the solution of the metric components, (42) and (43), which describe the geometry around the cosmic string. We have also calculated the energy density (49) of the cosmic string. Another important property of the cosmic string is its mass per unit length along its axis. Now we analyze how the mass density of the cosmic string changes with respect to the GB coupling constant and the spacetime dimension. It may help us to understand the effects from the GB term and higher dimensions on the energy scale of the phase transition that arises cosmic strings. Since the metric has an axial symmetry, we use a piece of the cosmic string, which has a coordinate distance \(z_{2}-z_{1}\) from one end of the string to the other, to define its mass density:

$$\begin{aligned} m(r)= & {} \int ^{2\pi }_{0} \int ^{\infty }_{0} \int ^{z_{2}}_{z_{1}} \rho (r')W(r')\nonumber \\&\quad \times \sqrt{H(r')}{\mathcal {V}}(r')\,d\theta dr'dz\ell (r)^{-1}, \end{aligned}$$
(59)

where \({\mathcal {V}}\) is the volume of the rest \((D-4)\)-dimensional space defined as

$$\begin{aligned} {\mathcal {V}}(r')=\int _{{\mathcal {V}}} H(r')^{\frac{D-4}{2}} d^{D-4}x, \end{aligned}$$
(60)

and the proper length \(\ell (r)\) of the string is measured by

$$\begin{aligned} \ell (r)=\int ^{z_{2}}_{z_{1}}\sqrt{H(r)}\,dz, \end{aligned}$$
(61)

where r is the coordinate distance from the observer to the axis z. As we have mentioned before the energy density (49) of the string indicates that the string has a width (see Fig. 5). Thus, for the sake of simplification, we assume that \(\ell (0)\) is the proper length of the piece of the string we choose. Accordingly, the mass per unit length of the cosmic string is

$$\begin{aligned} m_{0}= & {} m(0) = \int ^{2\pi }_{0} \int ^{\infty }_{0} \rho (r')W(r')\sqrt{ \frac{H(r')}{H(0)}}{\mathcal {V}}(r')\,d\theta dr'.\nonumber \\&\end{aligned}$$
(62)

In Table 1, we list the values of the string mass density for different sets of parameters. It is easy to find that the GB term contributes to the gravity in the \(D\rightarrow 4\) limit, and the string mass density decreases with it. An important feature is that the number of dimension dilutes the contribution of string mass on the spacetime geometry, by comparing the profile with different dimensions in Table 1. As one can see, for the same solution of the metric components H and W (with fixed \(\beta \)), a larger mass density of the comic string is required when the spacetime dimension increases. Thus, for the same mass density of the cosmic string, when the number of the spacetime dimension increases, the parameter \(\beta \) decreases. In other words, the gravitational radius of the cosmic string decreases when the spacetime dimension increases (see Fig. 3c).

Table 1 The mass density (62) of the cosmic string for different values of the GB coupling constant \(\alpha \) and string thickness. We choose \(\alpha =0\), \(\alpha =1\), and \(\alpha =3\) in order to reveal the contributions of the GB term on the spacetime geometry. The mass densities with different values of the parameter \(\beta \) reflect the contribution of the string mass to the spacetime geometry. The parameter D is respectively set to \(D\rightarrow 4\), \(D=5\), and \(D=6\) to show the variation of the string mass density in different dimensions. In each set, the parameter k is fixed to unit
Fig. 6
figure 6

The metric components (63)–(64) and the curvature scalar (70). a The metric component H(r), b the solution of W(r), and c the curvature scalar R(r) with \(\alpha =1\). d The metric component H(r), e the solution of W(r), and f the curvature scalar R(r) with \(\sigma =1/4\). The sketch describes the spacetime geometry in the \(D\rightarrow 4\) limit

3.3 \(H(r)=(r+\sqrt{D-3}\sqrt{2\alpha }\,\sigma /2)^{\sigma }\)

In this section, we give another set of the comic string solution. As usual, we will first give an assumption of the metric component H. As was pointed out in Refs. [20, 38,39,40,41, 62,63,64], for a cosmic string spacetime, the metric component could have a form of \(\sigma \)th power of the coordinate r when GR is recovered. Thus, we assume

$$\begin{aligned} H=(r+\sqrt{D-3}\sqrt{2\alpha }\,\sigma /2)^{\sigma }, \end{aligned}$$
(63)

where \(\sigma \) is a positive parameter. By taking into account the field Eq. (27a), we can obtain the expression of the metric component W:

$$\begin{aligned} W=(r+\sqrt{D-3}\sqrt{2\alpha }\,\sigma /2)^{\sigma /2}. \end{aligned}$$
(64)

Note that both metric components (63) and (64) contain the GB coupling constant, therefore we could obtain the corresponding metric components in GR by taking the \(\alpha \rightarrow 0\) limit. Recalling the other nonvanishing components of the field equations, Eqs. (27b) and (27c), we then get the following expressions of the first derivative of the scalar field and the scalar potential

$$\begin{aligned} \phi '= & {} \sqrt{\sigma }(2C_{7})^{1/4}\sqrt{\varsigma _{2}}\,\varsigma _{3}\,\varsigma _{1}^{-2}, \end{aligned}$$
(65)
$$\begin{aligned} V= & {} \frac{(D - 1) \sigma - 4}{16(D - 2)}\frac{C_{7}\,\sigma }{\varsigma _{1}^{4}} - \frac{ (D - 1) \sigma - 2}{4}\frac{(D - 2) \sigma }{\varsigma _{1}^{2}},~~~~\nonumber \\ \end{aligned}$$
(66)

where

$$\begin{aligned} \varsigma _{1}(r)= & {} r+\sqrt{D-3}\sqrt{2\alpha }\,\sigma /2, \end{aligned}$$
(67a)
$$\begin{aligned} \varsigma _{2}(r)= & {} r+ \sqrt{D-3}\sqrt{2\alpha } \, \sigma , \end{aligned}$$
(67b)
$$\begin{aligned} \varsigma _{3}(r)= & {} \sqrt{D-2}(2C_{7})^{-1/4}\sqrt{r}, \end{aligned}$$
(67c)
$$\begin{aligned} C_{7}= & {} \alpha (D-3)(D-2)^{2}\sigma ^{2}. \end{aligned}$$
(67d)

By integrating the first derivative of the scalar field (65), we find the expression of the scalar field

$$\begin{aligned} \phi =\left( \frac{C_{7}}{\alpha }\right) ^{1/4} \left( 2 \sinh ^{-1}(\varsigma _{3} )-\sqrt{r} \sqrt{\varsigma _2}\,\varsigma _{1}^{-1}\right) . \end{aligned}$$
(68)

By taking into account the expressions (65) and (66), we then obtain the energy density of the scalar field

$$\begin{aligned} \rho (r)= & {} \frac{(D-1) \sigma -4}{16 (D-2)}\frac{C_{7}\,\sigma }{\varsigma _{1}^{4}}+ \sqrt{\frac{C_{7}}{2}}\frac{\sigma \,\varsigma _{2}\,\varsigma _{3}^{2}}{\varsigma _{1}^{4}}\nonumber \\&-\frac{(D-2) \sigma \big [(D-1) \sigma -2\big ]}{4\varsigma _{1}^{2}} \end{aligned}$$
(69)

with a vanishing vacuum energy density \(\rho _{0}=0\). Thus, this set of solution gives a vanishing effective cosmological constant. And no contribution from the GB term appears on the vacuum energy density of the scalar field.

We now investigate the property of the spacetime with the existence of the cosmic string. Taking the trace of the Ricci tensor (11), we get the curvature scalar as follows:

$$\begin{aligned} R(r)=-\frac{(D-1) (D \sigma -4)\sigma }{4 \varsigma _{1}^2}, \end{aligned}$$
(70)

which vanishes on the boundary. The nonvanishing components of the Ricci tensor are

$$\begin{aligned} R_{\mu \nu }= & {} \frac{2-(D-1) \sigma }{4\varsigma _1^{2}} \sigma \,g_{\mu \nu }\,, \end{aligned}$$
(71a)
$$\begin{aligned} R_{rr}= & {} -\frac{(D-1) (\sigma -2) \sigma }{4 \varsigma _{1}^2}g_{rr}\,, \end{aligned}$$
(71b)
$$\begin{aligned} R_{\theta \theta }= & {} \frac{2-(D-1) \sigma }{4 \varsigma _{1}^{2 }}\sigma \, g_{\theta \theta }\,. \end{aligned}$$
(71c)

One could check that the prefactors of the metric components \(g_{\mu \nu }\), \(g_{rr}\), and \(g_{\theta \theta }\) vanish on the boundary. Here and after, we will constrain the parameter \(\sigma \) to \(\sigma <2/(D-2)\), since, as we will discuss later, the mass density of the cosmic string diverges when the parameter \(\sigma \) violates this constraint. Then, by taking into account the value of the metric components in the limit \(r\rightarrow \infty \), we find that each component of the Ricci tensor vanishes on the boundary. The nonvanishing components of the Riemann curvature tensor (910) are calculated as

$$\begin{aligned} R^{\theta }_{~r\theta r}= & {} -\frac{(\sigma -2) \sigma }{4 \varsigma _1^2}, \end{aligned}$$
(72a)
$$\begin{aligned} R^{\theta }_{~\mu \theta \nu }= & {} -\frac{\sigma ^2}{4 \varsigma _1^{2-\sigma }} \eta _{\mu \nu }\,, \end{aligned}$$
(72b)
$$\begin{aligned} R^{r}_{~\theta \theta r}= & {} \frac{ (\sigma -2) \sigma }{4\varsigma _1^{2-\sigma }}, \end{aligned}$$
(72c)
$$\begin{aligned} R^{r}_{~\mu r\nu }= & {} -\frac{ (\sigma -2) \sigma }{4\varsigma _1^{2-\sigma }}\eta _{\mu \nu }\,, \end{aligned}$$
(72d)
$$\begin{aligned} R^{\mu }_{~\theta \theta \nu }= & {} \frac{\sigma ^2}{4\varsigma _1^{2-\sigma }} \delta ^{\mu }_{~\nu }\,, \end{aligned}$$
(72e)
$$\begin{aligned} R^{\gamma }_{~\mu \nu \lambda }= & {} \frac{\sigma ^2}{2\varsigma _1^{2-\sigma }}\eta _{\mu [\nu }\delta ^{\gamma }_{~\lambda ]}\,. \end{aligned}$$
(72f)

Again, with the constraint mentioned above, each component of the curvature tensor vanishes on the boundary. Therefore, the solution obtained in this section describes an asymptotically Minkowski spacetime.

From the metric components (63) and (64), it is clear that the parameter \(\sigma \), the spacetime dimension D, and the GB coupling constant affect the spacetime geometry. We then take the \(D\rightarrow 4\) limit and fix the coupling constant to show different spacetime geometries with respect to the parameter \(\sigma \) (see Fig. 6a–c). The contributions from the GB coupling constant are also shown in the diagram by fixing the parameter \(\sigma \) and taking the limit \(D\rightarrow 4\). Obviously, curves with a vanishing GB coupling constant correspond to the case of GR. Note that our solution shows that when the GB coupling constant vanishes, a singularity appears at \(r=0\) (see blue solid curves in Fig. 6d–f). However, for the case of a nonvanishing GB coupling constant, the contributions of the GB term on the field equations remove such singularity (see also Fig. 6d–f). These conclusions could be extended into a higher-dimensional version by varying the value of the spacetime dimension.

Fig. 7
figure 7

The scalar field (68) and the scalar potential (66) at the \(D\rightarrow 4\) limit. a The scalar field \(\phi (r)\) and b the scalar potential V(r) for different values of the parameter \(\sigma \) with \(\alpha =1\). c The scalar field \(\phi (r)\) and d the scalar potential V(r) for different values of the GB coupling constant with \(\sigma =1/4\)

The behaviors of the scalar field and the scalar potential are plotted in Fig. 7. From Fig. 7b, one finds that a potential barrier appears when the parameter \(\sigma \) decreases. Such barrier also arises when the GB coupling constant decreases (see Fig. 7d). Note that Fig. 7d shows a divergence of the scalar potential at z axis when the GB term vanishes. While the scalar field becomes finite at \(r=0\) when the GB term is switched on.

Fig. 8
figure 8

The string energy density (69) at the limit \(D\rightarrow 4\). a The string energy density for different spacetime geometries with \(\alpha =1\). b The string energy density for different GB coupling constants with \(\sigma =1/4\)

In Fig. 8, we sketch the energy density of the cosmic string in four-dimensional spacetime. For all the cases we choose, the energy density converges on the boundary. While it diverges at origin when the GB term vanishes. Thus, the energy density of the scalar field is convergent only when the GB coupling constant is nonvanishing. Figure 8 also reveals that the cosmic string obtained in this section has a width and locates near the z axis. Our results support that the GB term gives nontrivial effects on the cosmic string obtained in this section in the \(D\rightarrow 4\) limit by applying the redefinition \(\alpha \rightarrow \alpha /(D-4)\). In the following, we will show how the mass of the cosmic string obtained in this section affects the surrounding spacetime geometry, and how the gravitational radius of the cosmic string decreases with the increase of the spacetime dimension. The nontrivial effect of the GB term as an effective matter content is also shown.

Recalling the definition of the mass density of a cosmic string (62), the string mass density is given as follows:

$$\begin{aligned} m_{0}=\frac{ C_{8}C_{9}\,\pi }{\big (\sqrt{\alpha /2} \sqrt{D-3}\, \sigma \big )^{1- (D-3) \sigma /2}}, \end{aligned}$$
(73)

where

$$\begin{aligned} C_{8}= & {} (D-2) \sigma , \end{aligned}$$
(74a)
$$\begin{aligned} C_{9}= & {} \frac{(C_8-10) (D-1) \sigma +32}{ (C_8-6) (C_8-2)}. \end{aligned}$$
(74b)

Note that we have used the condition \(\sigma <2/(D-2)\) to avoid the divergence of the string mass density. Obviously, the string mass density is a function of the parameter \(\sigma \), the GB coupling constant \(\alpha \), and the spacetime dimension D. We further give the parametric diagram of the string mass density in Fig. 9, from which one finds that the mass density decreases with the increasing of \(\sigma \) or \(\alpha \). Each dashed curve in Fig. 9a labels the cosmic strings with the same mass density. It then indicates that the GB term contributes to the spacetime geometry as an effective matter content. The nontrivial effect from the GB term on the spacetime geometry is also shown through the dashed curves in Fig. 9b. Therein we use each of them to denote a series of solutions with the same string mass density. In Fig. 9b, each solid curve has the same value of \(\sqrt{D-3}\sqrt{\alpha /2}\,\sigma \). Thus each of them corresponds to the same expression of the metric components (see expressions (63) and (64)). These solid curves indicate that, for the same metric solution, the string mass density increases with the number of the spacetime dimension. In other words, when the spacetime dimension increases, the gravitational radius decreases for a given string mass.

Fig. 9
figure 9

Plots of the string mass density (73). a The String mass density \(m_{0}\) in the parameter space (\(\alpha \), \(\sigma \)) in the limit \(D\rightarrow 4\). b The string mass density \(m_{0}\) in the parameter space (\(\alpha \), D) with \(\sigma =1/10\). Each dashed curve has the same value of mass density. And each solid curve corresponds to the same metric solution

3.4 Equivalence of the two actions for 4D cosmic string solutions

In this section, we will give a short calculation to show that the three sets of solutions obtained in this section are indeed the solutions in the regularized 4D EGB theory. Our result also supports our proof given in the last section.

By taking into account our three sets of solutions, the gravitational field equations, Eqs. (20a), (20b), and (20c), can be rewritten as

$$\begin{aligned} \text {Case A:~}0= & {} (k - 2 \varphi )\big [(k - 2 \varphi )^2 (3 k + 2 \varphi ) - 32 (k + \varphi ) \varphi '\big ], \end{aligned}$$
(75a)
$$\begin{aligned} 0= & {} (k - 2 \varphi )\big [C_1 e^{\frac{3}{2} k r} (3 k + 2 \varphi ) + 2 \varphi - k\big ], \end{aligned}$$
(75b)
$$\begin{aligned} 0= & {} (k-2 \varphi )\big (3 k^2-4 k \varphi -4 \varphi ^2+16 \varphi '\big ); \end{aligned}$$
(75c)
$$\begin{aligned} \text {Case B:~} 0= & {} (\beta k \tanh (k r)-2 \varphi )\big [\beta k^2 \text {sech}^2(k r) (-3 \beta \nonumber \\&+3 \beta \cosh (2 k r)-16)-8 \beta k \varphi \tanh (k r)\nonumber \\&-8 \varphi ^2+32 \varphi '\big ], \end{aligned}$$
(75d)
$$\begin{aligned} 0= & {} \beta k \tanh (k r)-2 \varphi ; \end{aligned}$$
(75e)
$$\begin{aligned} \text {Case C:~} 0= & {} F_{1}(\varphi ,\varphi '), \end{aligned}$$
(75f)
$$\begin{aligned} 0= & {} F_{2}(\varphi ). \end{aligned}$$
(75g)

Here some redundant components of the field equations are not shown. Note that the functions \(F_{1}\) and \(F_{2}\) are complicated, so we are not going to show them here. On the other hand, the scalar field \(\varphi \) follows its own field equation (24). With the three sets of solutions obtained in this section, a branch of the corresponding scalar field solution is then given as follows:

$$\begin{aligned}&\text {Case A:}\;\; \varphi =\,-k/2, \end{aligned}$$
(76a)
$$\begin{aligned}&\text {Case B:}\;\; \varphi =\,-\beta k \tanh (k r)/2, \end{aligned}$$
(76b)
$$\begin{aligned}&\text {Case C:}\;\; \varphi =\,-\sigma (r+\sqrt{2\alpha }\,\sigma /2)^{-1}/2. \end{aligned}$$
(76c)

By substituting these scalar solutions into the gravitational field equations (75) respectively, it is true that they are satisfied automatically. Thus the cosmic string solutions obtained in the novel 4D EGB theory can also solve the regularized 4D EGB theory as we expected. In other words, the on-shell condition of the regularized 4D EGB theory is satisfied with our solutions which are obtained in the novel 4D EGB theory. It then supports that the two 4D EGB theories are equivalent to each other in the static cylindrically symmetric spacetime (7).

4 Conclusion

The recent studies on the novel 4D EGB theory showed that the GB term could contribute to the Einstein’s field equations by introducing a redefinition \(\alpha \rightarrow \alpha /(D-4)\) and taking the limit \(D\rightarrow 4\). It brings abundant novel features to many phenomena including but not limited to gravitational waves, black holes, and wormholes. However, the theory does not admit an intrinsically four-dimensional definition in general, and may only make sense in some selected highly-symmetric spacetimes, such as the static spherically symmetric spacetime and the FLRW spacetime [6, 15, 22]. Some regularization produces were then proposed to address these issues [9, 15, 24,25,26]. The on-shell action of the resultant regularized 4D EGB theory is expected to have the same form as the original theory. Thus these two theories maybe equivalent to each other, while the regularized version could bypass the above issues. However, such equivalence is symmetry-dependent. The equivalence was already proved in the static spherically symmetric spacetime [9, 19], while it was found to be broken down in the Taub-NUT metric and the rotating black hole metrics [15]. A main topic is then to test whether such equivalence holds in the other spacetime beyond spherical symmetry.

In this paper, we investigated the equivalence of these two theories in a static spacetime with lower symmetry (7) compared with the spherically symmetric spacetime. We started from a higher-dimensional version of the EGB theory and derived the higher-dimensional field equations. We then redefined the GB coupling constant \(\alpha \rightarrow \alpha /(D-4)\) and took the limit \(D\rightarrow 4\). Well-defined 4D field equations were obtained through this procedure. We further proved that, by eliminating the additional conformal scalar field with a branch of solution (23), the field equations of the two theories are exactly the same. So the static cylindrically symmetric metric (7) can solve both the two theories. It supports that the two theories are equivalent to each other in such spacetime.

As some specific examples, we then investigated D-dimensional cosmic strings in the novel EGB theory. Three sets of cosmic string solutions were found. The 4D cosmic string solutions were obtained by setting \(D\rightarrow 4\), and their mass densities were also discussed. Therein, we found that when the cosmic string gives an asymptotically Minkowski spacetime, the nonvanishing GB term could remove the singularity located at the z axis. We also showed that the GB term contributes nontrivial effect to the 4D cosmic string mass density. It is then expected that the GB term will affect the energy scale of the associate phase transition. It is worth to note that, in each set of our solution, the spacetime dimension D is not fixed. Since in a higher-dimensional spacetime with \(D\ge 6\), the topological deflect (cosmic string) corresponds to a \(d=(D-2)\)-dimensional slice \({\mathcal {M}}_{d}\) with our Universe being a flat brane \({\mathcal {M}}_{4}\) embedded inside it, our solutions are also useful to construct the braneworld model. Last, we used these solutions as some particular examples to support the equivalence of the novel 4D EGB theory and its regularized version in the static cylindrically symmetric spacetime (7).

Note that, throughout this paper, the metric (6) corresponds to a specific case of the static cylindrically symmetric spacetime. Though the equivalence of the two theories was proved under the \(D\rightarrow 4\) version of such spacetime, one is still required to test it in a more general case. Besides, our proof is only valid at the level of the background spacetime. No perturbations are involved in this paper. However, we know that the equivalence of these two theories is symmetry-dependent and that the perturbed spacetime is much less symmetric. Thus, if such equivalence breaks down in the general cylindrically symmetric spacetime, it is then expected to fail at the perturbation level even in our specific static cylindrically symmetric spacetime.