1 Introduction

As we know, Einstein’s theory of gravity is one of the most important theories that led to a major breakthrough in particle physics and cosmology. From high energy point of view such theory is not suitable candidate for the describing universe. In that case, the researcher try to modified the theory of gravity in different approaches. On of the important approach proposed by Snyder [1, 2], which contains attractive properties and leads to modifications the renormalizability of the properties of relative quantum field theory [3,4,5,6,7,8,9,10,11,12,13,14]. Such approach related to noncommutative (NC) of space time coordinates [1, 2]. In the Snyder method, the NC parameter lead us to the short length cutoff. Given the above explanation and concepts about NC, we can say that the gravity will be very important in the scale of NC parameter. Gravity and its effects with the corresponding length have recently been considered by researchers. Also the deformed phase space scenarios can also be used to study the various features of universe. Therefore, we should also expect such corrections can be related to space-time in relation to effects of CMB spectrum [15,16,17,18,19,20,21,22]. So, in future these effects may be seen at cosmological observational data. The use of NC on inflation, power law inflation and CMB has been discussed by several researchers which can be referred to [23,24,25,26,27,28]. We note here, the subject of inflation is studied from different points of view and different types of models. Also it has been considered from different perspective such as slow-roll, ultra-slow-roll and constant roll. Recently, constant-roll inflation is determined by constant-roll conditions, i.e. \(\ddot{\phi }=\beta H {\dot{\phi }}\) which \(\beta \) is a constant parameter. Under constant-roll conditions, the equations are obtained with complete accuracy. Hence, many constant-roll inflation models can be consistent with observable data [29,30,31,32]. Recently, a lot of work has been done in this field. For example, the idea of constant-roll inflation can be extended to the teleparallel f(t) gravity [33,34,35,36]. Other types of inflation models and effective theories such as F(T) and F(Q) have been recently studied and its cosmological implications have been carefully investigated. On the other hand, some researchers employed the weak gravity conjecture for the investigation of different attributes of cosmology as inflation models, dark energy and the other implications. The weak gravity conjecture and the swampland program has been studied in many cosmological concepts, we see [37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58]. Given the above concepts, we want to investigate a constant-roll inflation model of homogeneous scalar field minimally coupled to gravity with NC . On the other hand, the study of a series of inflation models with form of anisotropy and will lead to the expansion of the universe. Such inflation models that are examined in supergravity the content which are called anisotropic inflation [59]. Various models of this type of inflation have been reviewed in literature [60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104]. In this paper, we examine inflation model with constant-roll conditions. By obtaining the exact solutions, we analyze the swampland criteria according to different values of NC parameter. Finally, we plot different figures according to the different values of the NC parameter. And also, we show the effect of such parameter on the corresponding model. Also, the relation of NC parameter and swampland condition lead us to consider some special values for the corresponding parameter \(\theta .\)

2 Non-commutativity of inflation model

First, we briefly introduce the inflation model and apply the NC to the particular type of inflation model. Applying this form and other NC frameworks, both at the classical and quantum level in cosmological settings, provides a rational for studding very important challenges in cosmology, such as the study of UV / IR mixing. It was called a means of describing physical phenomena at different distances, or in different energy regimes. This can be deduced very nice result from the use of NC quantum field theories [3, 4, 105,106,107,108,109,110,111,112]. Therefore, with respect to the characteristics of NC in cosmology can be a serious motivate to study many unknown phenomena and discover effective and promising solutions. In the present work we actually limit to the classical geometric framework, where the corresponding NC effects are obtained using conventional features and using Poisson brackets. Recently, different applications of NC on cosmology have been investigated and for the study of gravitational collapse of a homogeneous scalar field have been obtained elegance results [18, 20]. Before we are going to NC cosmological scenario, we first write the Lagrangian of scalar field \(\phi \) minimally coupled to gravity, so the corresponding Lagrangian is,

$$\begin{aligned} l=\sqrt{-g}\left[ \frac{1}{16\pi G} R-\frac{1}{2}g^{\mu \nu }\phi _{,\mu }\phi _{,\nu }-V(\phi )\right] \end{aligned}$$
(1)

In order to apply the NC to the above system, we prefer to write the Hamiltonian of the corresponding system. Here, we need to introduce background space-time which is described by the following spatially flat FLRW universe,

$$\begin{aligned} ds^{2}=-N^{2}dt^{2}+a^{2}(t)\left( dx^2+dy^2+dz^2\right) \end{aligned}$$
(2)

where t is cosmic time, x, y, z are the Cartesian coordinates, N(t) is a lapse function an a(t) is the scale factor. Now we use Eq. (2) and obtain the R, g and \(g^{\nu \mu }\), finally the known Lagrangian density of (1) becomes,

$$\begin{aligned} l=-\frac{3}{8\pi G}N^{-1}a{{\dot{a}}}^2+\frac{1}{2}N^{-1}a^3 {{\dot{\phi }}}^2-Na^3 V(\phi ) \end{aligned}$$
(3)

So, the Eq. (3) lead us to obtain the corresponding Hamiltonian of this model, which is given by [20]

$$\begin{aligned} \mathbf{H }=-\frac{2}{3}\pi GNa^{-1}P_{a}^{2}+\frac{1}{2}Na^{-3}P^{2}_{\phi }+Na^{3}V(\phi ) \end{aligned}$$
(4)

where \(\mathbf{H }\), \(P_{a}\) and \(P_{\phi }\) are Hamiltonian, momenta conjugates of scale factor and momenta conjugates of scalar field respectively. Also, here we take the comoving gauge where \(N-1\). The equation of motion correspond to the phase space coordinates \(\{a, \phi , p_{a}, p_{\phi }\}\)with respect to Eq. (1) we will have,

$$\begin{aligned} \begin{aligned} {\dot{a}}&=\{a,\mathbf{H }\}=-\frac{4\pi G}{3}a^{-1}P_{a}\\ {\dot{P}}_{a}&=\{P_{a},\mathbf{H }\}=-\frac{2G\pi }{3}a^{-2}P_{a}^{2}+\frac{3}{2}a^{-4}P_{\phi }^{2}\\&\quad -3a^{-2}P_{a}^{2}V(\phi )\\ {\dot{\phi }}&=\{\phi ,\mathbf{H }\}=a^{-3}P_{\phi }\\ {\dot{P}}_{\phi }&=\{P_{\phi },\mathbf{H }\}=-a^{3}V'(\phi )\\ \end{aligned} \end{aligned}$$
(5)

In order to study the cosmological stuff we have to write the following equations which is obtained by the above information,

$$\begin{aligned}&H^{2}=\frac{8\pi G}{3}\left[ \frac{1}{2}{\dot{\phi }}^{2}+V(\phi )\right] \equiv \frac{8\pi G}{3}\rho _{tot}, \end{aligned}$$
(6)
$$\begin{aligned}&2\frac{\ddot{a}}{a}+H^{2}=-8\pi G\left[ \frac{1}{2}{\dot{\phi }}^{2}-V(\phi )\right] \equiv -8\pi G p_{tot}, \end{aligned}$$
(7)

and

$$\begin{aligned} \ddot{\phi }+3H{\dot{\phi }}+V'(\phi )=0. \end{aligned}$$
(8)

where H is Hubble parameter.

Now we consider special of canonical non-commutativity and concentrate to the suitable deformation on classical phase space. This lead us to write the following equation,

$$\begin{aligned} \{P_{a}, P_{\phi }\}=\theta \phi ^3 \end{aligned}$$
(9)

where \(\theta \) is NC parameter and it has been assumed as a constant. Here, we note that if we take non-commutativity on the momenta, we will have modified scalar field and scale factor. But, if we take the non-commutativity to the field and scale factor, we will see any NC effect will be absent for a vanishing potential. The dynamical non-commutativity between momenta more interesting than the choice of first one. It means that when we take non-commutativity between momenta the effect of \(\theta \) parameter more than case of we take non-commutativity on the field and scale factor. So, all above explanation give us opportunity to take equation following modified equations of motion [20],

$$\begin{aligned} {\dot{P}}_{a}= & {} -\frac{2\pi G}{3}a^{-2}P_{a}^{2}+\frac{3}{2}a^{-4}P_{\phi }^{2}-3a^{2}V(\phi )\nonumber \\&+\theta (a^{-3}\phi ^{3}P_{\phi }), \end{aligned}$$
(10)

and

$$\begin{aligned} {\dot{P}}_{\phi }=-{a}^{3}V'(\phi )+\theta \left( \frac{4\pi G}{3}{a}^{-1}\phi ^{3}P_{a}\right) . \end{aligned}$$
(11)

As we see the Eq. (2) are not modified by considering any non-commutativity. But the modified Eq. (7) and (8) obtained by the following auxiliary formulas and Eq. (6),

$$\begin{aligned} \{P_{a},f(P_{a},P_{\phi })\}=\theta \phi ^{3}\frac{\partial f}{\partial P_{\phi }} \end{aligned}$$
(12)

and

$$\begin{aligned} \{P_{\phi },f(P_{a},P_{\phi })\}=-\theta \phi ^{3}\frac{\partial f}{\partial P_{a}} \end{aligned}$$
(13)

In case of \(\theta \rightarrow 0\), we have standard commutative equations of motion. So with respect to above concept, the equations of motion at NC framework can obtained by the following equations,

$$\begin{aligned} H^{2}= & {} \frac{8\pi G}{3}\left[ \frac{1}{2}{\dot{\phi }}^{2}+V(\phi )\right] \equiv \frac{8\pi G}{3}\rho _{tot}, \end{aligned}$$
(14)
$$\begin{aligned} 2\frac{\ddot{a}}{a}+H^{2}= & {} -8\pi G\left[ \frac{1}{2}{\dot{\phi }}^{2}-V(\phi )+\frac{\theta {\dot{\phi }}\phi ^{3}}{3a^{2}}\right] \nonumber \\\equiv & {} -8\pi G p_{tot}, \end{aligned}$$
(15)

and

$$\begin{aligned} \ddot{\phi }+3H{\dot{\phi }}+V'(\phi )+\theta H\left( \frac{\phi ^{3}}{a^{2}}\right) =0 \end{aligned}$$
(16)

where we consider \(8\pi G=1\). The energy density and pressure with respect to the scalar field for NC model are determined by \(\rho _{tot}\) and \(p_{tot}\). In that case the equation state depend to NC parameter \(\theta \) and we just keep \(\theta \) as lower order. Because such parameter is very short length with respect to any parameter in here. Also we note that in case of \(\theta =0\) we have usual cosmological equations as (6), (7) and (8).

3 Anisotropic constant-roll inflation

In this section, we will try to obtain exact solutions for the Hubble parameter, potential and the other important parameters which play an important roll for the explanation of inflation. Here, we study the constant-roll inflationary models in the presence of non-commutative geometry. So, we expect anisotropy of the expansion of universe due to existence of non-commutative space. As we know, the anisotropy in context of cosmology including inflationary model discussed from supergravity point of view. On the other hand, we shall make two crucial assumptions to have constant-roll conditions. First, we have to consider the first slow-roll index is very small during the inflation era. In the second step, we shall assume that although the first slow-roll index \(\epsilon _{1} \ll 1\), in that case the constant-roll condition holds true. So with respect to Eqs. (14) and (15), one can obtain,

$$\begin{aligned} 2\frac{\ddot{a}}{a}-2H^{2}=-{\dot{\phi }}^{2}-\frac{\theta \phi ^{3}{\dot{\phi }}}{3a^{2}} \end{aligned}$$
(17)

According to the definition of the Hubble parameter that means \(H\equiv \frac{{\dot{a}}}{a}\) and using the above equation we will have,

$$\begin{aligned} 2{\dot{H}}=-{\dot{\phi }}^{2}-\frac{\theta \phi ^{3}{\dot{\phi }}}{3a^{2}} \end{aligned}$$
(18)

Now, we use \({\dot{H}}=\frac{d H}{d \phi }{\dot{\phi }}\) and put to Eq. (18), one can rewrite following equation,

$$\begin{aligned} {\dot{\phi }}^{2}+2\frac{d H}{d \phi }{\dot{\phi }}+\frac{\theta \phi ^{3}{\dot{\phi }}}{3a^{2}}=0 \end{aligned}$$
(19)

We take derivative of \(\phi \) with respect to time, so we have,

$$\begin{aligned} \ddot{\phi }=-2\frac{d^{2}H}{d\phi ^{2}}{\dot{\phi }}-\frac{\theta \phi ^{2}{\dot{\phi }}}{a^{2}} \end{aligned}$$
(20)

Here, we take advantage from constant-roll condition as \(\ddot{\phi }=-(3+\alpha )H {\dot{\phi }}\) and put to Eq. (20), generally we will arrive at,

$$\begin{aligned} -(3+\alpha )H=-2\frac{d^{2}H}{d\phi ^{2}}-\frac{\theta \phi ^{2}}{a^{2}} \end{aligned}$$
(21)

Here, we assume \(\theta =0\), the Eq. (21) reduce to,

$$\begin{aligned} \frac{d^{2}H}{d\phi ^{2}}-\frac{3+\alpha }{2}H=0 \end{aligned}$$
(22)

So by solving the Eq. (22), one can obtain,

$$\begin{aligned} H=C_{1}\exp (\sqrt{\frac{3+\alpha }{2}}\phi )+C_{2}\exp \left( -\sqrt{\frac{3+\alpha }{2}}\phi \right) \end{aligned}$$
(23)

The Eq. (23) is special solution of H, because the effect of non-commutative parameter is cancel. So, according to special solution of (23), we give ansatz for the general solution of Eq. (21) with effect of non-commutative parameter on the system. So, the general ansatz for the solution of anisotropy inflation will be as,

$$\begin{aligned} H= & {} C_{1}\exp (\lambda (a,\theta )\sqrt{\frac{3+\alpha }{2}}\phi )+C_{2}\exp (-\lambda (a,\theta )\nonumber \\&\times \sqrt{\frac{3+\alpha }{2}}\phi ) \end{aligned}$$
(24)

By substituting this ansatz in equations of (19), (21) and performing a series of straightforward calculations, we obtain the parameter (\(\lambda \)) and then the Hubble parameter for the NC model. Therefore, we consider a series of special examples according to the boundary conditions and calculate the mentioned above values. Then we use the Hubble parameter and calculate the exact solution for the potential and other parameters of cosmological model.

4 Case 1

We consider a special cases of Hubble parameter as \(C_{1}=C_{2}=\frac{M}{2}\) which placed in Eq. (24). This gives two different values for \(\lambda \), hence two Hubble parameter is given by,

$$\begin{aligned} H_{1,2}= & {} M\cosh \left( \frac{1}{2}\phi \sqrt{3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}}\right) \nonumber \\ \end{aligned}$$
(25)

So the above concept of Hubble parameter lead us to have potential \(V(\phi )\) as,

$$\begin{aligned} x_{1}= & {} 3M\left( 1+\cosh \left( \frac{1}{2}\phi \sqrt{3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}}\right) \right) \nonumber \\ x_{2}= & {} (8\phi ^{2}\theta +a^{2}M(3+\alpha )(-2+\phi ^{2}(3+\alpha )) \nonumber \\&-a\sqrt{M}(3+\alpha )\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}})^{2} \nonumber \\ x_{3}= & {} (\sinh (\frac{1}{2}\phi \sqrt{3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}}))^{2} \nonumber \\ x_{4}= & {} a^{2}(8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}) \nonumber \\&\times \left( 3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}\right) \nonumber \\ V_{1,2}(\phi )= & {} \frac{1}{2}M\left( x_{1}-\frac{x_{2}\times x_{3}}{x_{4}}\right) \end{aligned}$$
(26)

also with respect to two Eqs. (24) and (18), one can obtain \({\dot{\phi }}\), as follows

$$\begin{aligned} x_{1}= & {} 3a\sqrt{M}(8\phi ^{2}\theta +a^{2}M(3+\alpha )(-2+\phi ^{2}(3+\alpha ))\nonumber \\&-a\sqrt{M}(3+\alpha )\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}) \nonumber \\ x_{2}= & {} \sinh \left( \frac{1}{2}\phi \sqrt{3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}}\right) \nonumber \\ x_{3}= & {} \sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}\nonumber \\&\times \sqrt{3+\alpha +\frac{2{\mp }\frac{\sqrt{8\phi ^{4}\theta +a^{2}M(-2+\phi ^{2}(3+\alpha ))^{2}}}{a\sqrt{M}}}{\phi ^{2}}}\nonumber \\ {\dot{\phi }}_{1,2}= & {} \frac{-\phi ^{3}\theta +\frac{x_{1}\times x_{2}}{x_{3}}}{3a^{2}} \end{aligned}$$
(27)

According to the above equation, we solve the above relation and obtain the \(\phi \) in terms of t. The scale factor and \(\alpha \) will be easily calculated according to the definition of the Hubble parameter, \(H=\frac{{\dot{a}}}{a}\). Next, we will consider another example.

Fig. 1
figure 1

The changes of swampland dS conjecture of \(V_{1}\) in term of \(\phi \) for case 1 with different values of \(\theta \) and \(\alpha \)

Fig. 2
figure 2

The changes of the swampland dS conjecture of \(V_{2}\) in term of \(\phi \) for case 1 with different values of \(\theta \) and \(\alpha \)

Fig. 3
figure 3

The behaviour of the swampland dS conjecture of \(V_{1}\) in term of \(\phi \) for case 2 with different values of \(\theta \) and \(\alpha \)

Fig. 4
figure 4

The behaviour of the swampland dS conjecture of \(V_{2}\) in term of \(\phi \) for case 2 with different values of \(\theta \) and \(\alpha \)

5 Case 2

Now we consider \(C_{1}=\frac{M}{2},C_{2}=-\frac{M}{2}\), so in this part, two different values for \(\lambda \) are obtained. Therefore, the values obtained for other parameters as H, \(V(\phi )\) and \({\dot{\phi }}\) have two different values as in the previous part, which are given by,

$$\begin{aligned} H_{1,2}=M\sinh \left( \frac{1}{2}{\mp }\frac{\sqrt{\frac{M(3+\alpha )^{2}(4\phi ^{2}\theta +a^{2}M(3+\alpha ))}{a^{2}}}}{2M(3+\alpha )^{\frac{3}{2}}}\right) \end{aligned}$$
(28)

So with respect to above concept the potential \(V(\phi )\) and \({\dot{\phi }}\) are calculated exactly like the previous part.

$$\begin{aligned} \begin{aligned} V_{1,2}(\phi )&=M\left( -\frac{8\phi ^{2}\theta ^{2}\left( \cosh \left( \frac{1}{2}{\mp }\frac{\sqrt{\frac{M(3+\alpha )^{2}(4\phi ^{2}\theta +a^{2}M(3+\alpha ))}{a^{2}}}}{2M(3+\alpha )^{\frac{3}{2}}}\right) \right) ^{2}}{a^{2}(3+\alpha )(4\phi ^{2}\theta a^{2}M(3+\alpha ))}\right. \\&\quad \left. +3M\left( \sinh \left( \frac{1}{2}{\mp }\frac{\sqrt{\frac{M(3+\alpha )^{2}\left( 4\phi ^{2}\theta +a^{2}M(3+\alpha )\right) }{a^{2}}}}{2M(3+\alpha )^{\frac{3}{2}}}\right) \right) ^{2}\right) \end{aligned} \end{aligned}$$
(29)

and

$$\begin{aligned} {\dot{\phi }}_{1,2}= & {} -\frac{\phi ^{3}\theta }{3a^{2}}\nonumber \\&+\frac{4M\phi \theta \sqrt{3+\alpha }\cosh \left( \frac{1}{2}{\mp }\frac{\sqrt{\frac{M(3+\alpha )^{2}(4\phi ^{2}\theta +a^{2}M(3+\alpha ))}{a^{2}}}}{2M(3+\alpha )^{\frac{3}{2}}}\right) }{a^{2}\sqrt{\frac{M(3+\alpha )^{2}(4\phi ^{2}\theta +a^{2}M(3+\alpha ))}{a^{2}}}}\nonumber \\ \end{aligned}$$
(30)

6 Swampland conjectures and anisotropy inflation model

In this section, by using exact solutions of potential which is obtained by constant-roll condition in presence of non-commutative space in previous section, we investigate the swampland dS conditions. Therefore, as stated in the literature, the swampland dS conditions are expressed in the following form [53, 54].

$$\begin{aligned} M_{pl}\frac{V'}{V}>c_{1}\quad \text {Case (I)}, \end{aligned}$$
(31)

and

$$\begin{aligned} M_{pl}^{2}\frac{V''}{V}<-c_{2} \quad \text {Case (II)} \end{aligned}$$
(32)

where \(c_{1}\) and \(c_{2}\) are constants of order unity. Now, by considering the swampland conditions as well as the exact solution of the potential from the constant-roll condition, we examine the rate of change these conditions with respect to the different values of the NC parameter. So for the (case I) as well as from Eqs. (26), (31) and (32), we will investigate the changes of the swampland condition according to the NC parameter. In those cases we have some figures.

As we can see in figures, we investigate the rate of change of each of two dS swampland conditions (I) and (II) with respect to the two different potential values which obtained by the constant-roll condition in Eq. (21) with considering different values of NC parameter. On the other hand, we consider two state. For \(\theta >0\), the rate of change is shown by figures (a) and (c) and for the negative values of \(\theta \), the rate of change is determined by figures (b) and (d). We also in Figs. 1 and 2 show the same change for the potential of (case I) in Eq. (26) . In here we also have same situation as a previous case for the \(\theta >0\) and \(\theta <0\) which is shown in Figs. 3 and 4. We note here, with respect to Eqs. (29), (31) and (32) one can show,

As you can see in the above figures, the areas consistent with the observable data for the two potentials (\(V_{1}\) ,\(V_{2}\)) has been specified given the acceptable values for \(c_{1}\) and \(c_{2}\) as well as the values for NC parameter. According to the above-mentioned issues, it can be noted that leaving the area where the swampland conditions are satisfied coincides by an improvement in the general relativity conditions. It can be very interesting because it makes possible to restore general relativity from theories that Einstein’s theory does not work (it means in strong energy regime). In the other hand, the history of the universe can be traced with curvatures which determined the transition from swampland to general relativity according to parameters such as scalar field or Ricci scalar.

7 Conclusions

In this paper, we studied a new perspective constant-roll inflation model in the presence of a NC parameter with a homogeneous scalar field minimally coupled to gravity. As we know, the specific NC inflation conditions presented new consequences. On the other hand, we used anisotropic conditions and we found new anisotropic constant-roll solutions with respect to NC parameter. Also, we plotted some figures with respect to the specific values of the corresponding parameter and the swampland criteria which was raised from the exact potential obtained from the constant-roll condition. Finally, we analyzed these results. It will be very interesting to study the scalar and tensor perturbations as well as the role of the NC parameter in calculating cosmological parameters such as tensor-to-scalar ratio, scalar spectrum index, we leave these calculations to future work.