Violations of the weak cosmic censorship conjecture in the higher dimensional f(R) black holes with pressure

We adopt the energy momentum relation of charged particles to study the thermodynamics laws and weak cosmic censorship conjecture of D-dimensional f(R) AdS black holes in different phase spaces by considering charged particle absorption. In the normal phase space, it turns out that the laws of thermodynamic and the weak cosmic censorship conjecture are valid. In the extended phase space, though the first law of thermodynamics is valid, the second law of thermodynamics is invalid. More interestingly, the weak cosmic censorship conjecture is shown to be violated only in higher-dimensional near-extremal f(R) AdS black holes. In addition, the magnitudes of the violations for both the second law and weak cosmic censorship conjecture are dependent on the charge Q, constant scalar curvature f′(R0)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$f'(R_0)$$\end{document}, AdS radius l, dimension parameters p, and their variations.


Introduction
The event horizon is indispensable for a black hole, since not only both the temperature and entropy are related to it, but also the singularity of the black hole should be completely obscured by the event horizon. If the singularity of the black hole exposed or the event horizon is destroyed, the bare singularity will destroy the causal relationship in the spacetime. In order to avoid the occurrence of this phenomenon, Penrose proposed the weak cosmic censorship conjecture [1,2], which supposed that the singularity of the black hole was always hidden by the event horizon. Though the weak cosmic censorship conjecture seems to be reasonable, there is no general method to prove the correctness of this conjecture so far. Hence, it is necessary to test the validity of this conjecture for different types of black holes. An alternative a e-mail: kjhe94@163.com b e-mail: gplipys@yeah.net c e-mail: huxinyun@126.com (corresponding author) thought procedure was developed by Wald to test the stability of event horizons of black holes interacting with test particles or fields [3]. Based on this idea, it was found that the particle with sufficient charge and angular momentum would not be absorbed by the extremal Kerr-Newman black hole. In other words, the event horizon of the extremal Kerr-Newman black hole could not be destroyed by the particle, and the weak cosmic censorship conjecture is still valid. Then, this result was also generalised to scalar field [4,5]. Nevertheless, Hubeny pointed out that the near-extremal Reissner-Nordström black hole would be overcharged by absorbing the particle, thereby, the weak cosmic censorship conjecture would be invalid [6]. Similarly, the near-extremal Kerr black hole could be overspun, and the event horizon was also unstable [7,8]. Later, when the back-reaction and self-force effects were taken into account [6,[9][10][11][12], the conjecture was found to be valid for the near-extremal Reissner-Nordström black hole and the near-extremal Kerr black hole. Hence, the check of the weak cosmic censorship remains one of the most essential open topics in classical general relativity. At present, there have been a lot of studies concentrating on the weak cosmic censorship conjecture in different spacetime .
Recently, Ref. [42] stated that the laws of thermodynamics and weak cosmic censorship conjecture can be tested when the charged particle dropped into the black hole. Based on his work, the first law of thermodynamics of higher-dimensional Reissner-Nordström black hole was found to be valid under charged particle absorption. Furthermore, they found that the extremal black hole kept the initial state and was not overcharged. Therefore, it was claimed that the weak cosmic censorship conjecture was valid in the extended phase space. However, one can see that the second law of thermodynamics is not valid under the absorption which would only be seen in the case considering the pressure and volume term. The cosmological constant is a parameter which plays an important role in determining the asymptotic topology of a black hole spacetime, and it set to be a constant value in the action of Einstein gravity. In fact, imposing the cosmological constant as a dynamical variable is prevails now. In this case, thermodynamics was studied more widely in the expended phase spaces where the cosmological constant is identified as thermodynamic pressure [43], and its conjugate is found to be thermodynamic volume [44][45][46]. Soon after, the laws of thermodynamics and weak cosmic censorship conjecture were checked in the Born-Infeld AdS black holes and phantom Reissner-Nordström black holes [29,31] in the different phase spaces. Differently from the study in Ref. [42], they did not employ any approximation, and found that extremal black holes change into non-extremal black holes for the absorbed particle. Similarly, they also found the violation of the second law of thermodynamics in the expended phase spaces.
Among the researches mentioned above, the weak cosmic censorship conjecture of higher-dimensional f (R) black holes under charged particle absorption has not yet been reported. As well as known, the f (R) gravity as a highly valued model of modified general relativity is very important, it may provide a feasible explanation for the accelerated expansion of the universe [47][48][49][50][51][52][53][54][55][56][57][58][59]. When one considers f (R) theory as a modification of general relativity, it is fairly essential to study the features of black holes in this theory, and the thermodynamics of the black hole is also an essential subject in the theory of gravity. In view of this, various investigations have been discussed with respected to the thermodynamics in the f (R) spacetimes [60][61][62][63][64][65][66]. In these studies, they found that the laws of thermodynamics of f (R) black hole were accurate. Motivated by these facts, our aim is to promote the work of Ref. [42] to the higher-dimensional f (R) AdS black hole, where a more accurate calculation is presented. We will use the test particle model to study the thermodynamic laws and weak cosmic censorship conjecture of the higher-dimensional f (R) black holes. What's more, we will also explore whether f (R) gravity parameters will affect the second law and weak cosmic censorship conjecture. As a result, we find that the first law is still valid in different phase spaces, and the extremal black holes are still extremal after an absorption of the external particle. However, the second law is violated in the extended phase space though it is valid in the normal phase space. More importantly, we also find that the weak cosmic censorship conjecture is valid under the case of without pressure, while for the case with pressure, the weak cosmic censorship conjecture is violable, depending on f (R 0 ) gravitational parameters.
The remainder of this article is organized as follows. In Sect. 2, we introduce higher-dimensional f (R) AdS black holes and its first law of thermodynamics. In Sect. 3, the motion of charged particle in higher-dimensional f (R) AdS black holes is investigated. In Sect. 4, the laws of thermodynamics of higher-dimensional f (R) AdS black holes are checked in the different phase spaces. In Sect. 5, the valid-ity of the weak cosmic censorship conjecture in different phase spaces are checked with a more accurately examine. In Sect. 6, we briefly summarize our results. In this paper, we will set G = c = 1.

A brief review on the higher-dimensional f (R) black holes
Except for the simple and general Lagrangian model, f (R) gravity also take into account arbitrary function of Ricci scalar. However, the standard Maxwell energy-momentum tensor is not traceless in higher dimensions. Hence, it is important to find that the higher-dimensional black hole solutions in R + f (R) gravity coupled to standard Maxwell field. In general, the conformally invariant Maxwell action in arbitrary dimensions is given by [67] in which p is a positive integer, i.e, p ∈ N. F μν = ∂ μ A ν − ∂ ν A μ is the electromagnetic tensor, where A μ stands for the electromagnetic potential. It can be evidenced that the energy momentum tensor is traceless when D = 4 p. In the special case p = 1, the above equation is reduced to the standard Maxwell action. Therefore, the action of R + f (R) gravity in D-dimensional spacetime coupled to a conformally invariant Maxwell field reads where f (R) is an arbitrary function of scalar curvature R. Then, D-dimensional black hole metric is described as follow [60] and It is important to note that the above black hole solutions hold for the dimensions which are multiples of four, since the assumption of traceless energy-momentum tensor is crucial for deriving an accurate solution of the black hole in the gravitational force of f (R) coupled to the matter field. Hence, the solution exist only for D = 4 p dimensions. In order to have a real solution we should follow the restriction D = 4 p, i.e., D = 4, 8, 12, . . . , which means that p should be only a positive integer [60]. In accordance with Ref. [60], the above solution is asymptotically AdS when R 0 = −D(D − 1)/l 2 . In addition, the parameters m and q are integration constants which are related to the mass M and electric charge Q, and we have [60] As one can see from Eq. (4), the solution is ill-defined for f (R 0 ) = −1. In the other hands, there would be inner and outer horizons and an extreme black hole or naked singularity due to different choices of parameters when 1 + f (R 0 ) > 0. However, for the case 1 + f (R 0 ) < 0, the conserved quantities such as mass would be negative, making this case nonphysical, thus this is not a physical case and we do not consider this situation [60,62]. At the outer event horizon r = r h , the Hawking temperature T h , entropy S h , and electric potential h are obtained as [62] T h = 1 4π where D−2 denotes the volume of the unit (D − 2)-sphere. Therefore, the first law of thermodynamics at the cosmological horizon is expressed as [62] In the extended thermodynamic phase space, the cosmological constant is identified as the thermodynamic pressure while its conjugate quantity is regarded as the thermodynamic volume. The pressure is defined as The expression of the cosmological constant in the D- , where l is the radius of the AdS space. Therefore, the relation between and R 0 is R 0 = 2D D−2 , which can be reduced to the relation R 0 = 4 when D = 4. Based on Eqs. (4), (5) and (11), one can derive Due to the effect of f (R) gravity, the expression of Eq. (12) includeds an extra factor 1+ f (R 0 ). What is more, these thermodynamic quantities obeys the first law of thermodynamics in the extended phase space, which is [62] And, the following Smarr relation is also satisfied In the extended phase space, the mass of black holes should be interpreted as enthalpy. The relation among the enthalpy, internal energy and pressure is where U h is internal energy. Hence, the change of the mass makes re-balance not only for the horizon and electric charge, but also the AdS radius in PV h term.

Charged particle absorption in higher dimensional charged f (R) black holes
In this section, we are going to consider the dynamic behavior of the charged particle which is near the event horizon, and we focus on the dynamic behavior of a charged particle swallowed by the black hole and its energy-momentum relationship. In this process, we are mainly consider the scalar particle, and the motion of scattered particles satisfy the Hamilton-Jacobi equation of curved spacetime, which is and where m b and e are the rest mass and charge of the particle respectively, p μ is the momentum of the particle, and I is the Hamilton action of the particle. Taking into account the symmetries of the spacetime, the Hamilton action of the moving particle can be separated into in which the conserved quantities ω and L are energy and angular momentum of particle, which are assumed from the translation symmetries of the metric in Eq. (3), and they are conserved quantities of spacetime in the gravitational system. In addition, I r (r ) and I θ i (θ i ) are the radial-directional component and θ -directional component of the action respectively. Owing to D-dimensional solution, the black hole includes a D − 2-dimensional sphere D−2 , and the angular momentum L corresponding to the translation symmetry of the last angle coordinate of D−2 . Then, the (D − 2)dimensional sphere can be written as To solve the Hamilton-Jacobi equation, we can use the contravariant metric of the black hole, with help of Eq. (3), we obtain Substituting above equations into Eq. (16), the Hamilton-Jacobi equation can be re-expressed as We can separate Eq. (21) by introducing a variable R. Therefore, the radial and angular components are The radial-and θ -directional equations are sufficient to obtain the relation between energy and electric charge of the particle. In addition, we are interested only in the location at the horizon. Concretely, we pay attention to the radial momentum of the particle, that is, we consider angular moment L is a constant depending on the trajectory of the particle. Furthermore, we obtain the radial momentum As R is eliminated, near the event horizon where W (r ) → 0, the above equation is reduced to Here, Eq. (25) is the relation between conserved quantities and momenta for a given radial location r h . For a special case ω = h e, the energy of the black hole does not change.
However, for the case ω < h e, the energy of the black hole flows out the horizon, which leads to the superradiation occurs [33]. Therefore, it is stressed that a positive sign should be endowed in front of p r h in order to assure a positive time direction, which means we should chose ω ≥ h e [68]. Hence, in the positive direction of time, the energy and momentum of the particle are positive.

Thermodynamic of the higher dimensional f (R) black holes under charged particle absorption
Black holes can be viewed as thermodynamic systems since they do not only have temperature and entropy, but also energy and chemical potential. In Refs. [60,62], thermodynamics of higher-dimensional f (R) AdS black holes in different phase spaces have been reported. In this section, we would like to generalize those research to the thermodynamics under charged particle absorption. Absorbing a charged particle, the higher dimensional charged f (R) black hole is varied by the same quantity as that of the particle, and the variations of the black hole energy and charge can be calculated. Subsequently, we can further study the validity of the laws of thermodynamics in different phase spaces under the particle absorption.

Thermodynamics in the normal phase space
In the process of absorption, the energy and electric charge of a particle are equal to the change of internal energy and charge of the black hole. In the normal phase space, the mass was interpreted as internal energy, that is Using this relation, the energy momentum relation in Eq. (25) can be expressed as Obviously, we need find the variation of entropy in order to rewrite Eq. (27) to the first law of thermodynamics. Therefore, in accordance with Eq. (8), as the charged particle is absorbed by the black hole, the variation of entropy can be written as where dr h is the variation of event horizon of the black hole. The event horizon changes as it absorbs a particle, and this give rise to a change of W (r ). Thus, the change of dW h satisfy In the normal phase space, the cosmological constant is fixed. The initial state of black hole is represented by and Combining Eqs. (27) and (29), d M and d Q will be removed, and we can get dr h directly where In addition, we chose D = 4 p, i.e, D = 4, 8, 12, . . ., as we mentioned already. Therefore, we will consider D = 4 p in what follows. Incorporating Eqs. (7) and (34), we get We further discuss the thermodynamics of black hole. From Eqs. (7), (9) and (34), we have Obviously, one can see that as the charged particle dropped into a higher dimensional charged f (R) black hole, the first law of thermodynamics is valid in the normal phase space. That is, Eq. (36) has evidenced that the coincidence between the variation of D-dimensional f (R) black hole and the first law of thermodynamics under the charged particle absorption.
Since the absorption is an irreversible process, the entropy of final state should be greater than initial state of the black hole. In other words, the variation of entropy should satisfy d S h > 0 under the charged particle absorption. Therefore, we will check the validity of the second law of thermodynamics by Eq. (34).
For the extremal black holes, we find the variation of the entropy is divergent. The divergence of the variation of entropy is meaningless. Therefore, we mainly focus on the case of near-extremal black holes, and study the variation of entropy numerically in the restrictions which are D = 4 p and 1 + f (R 0 ) > 0. It is worth noting that the meaningful critical specific volume exist only when p is odd, it means p = 4, 8, 12, . . . Here, we set Q = 1.5 and  Tables 1, 2, and 3.
From these tables, the value of extremal mass changed with the value of f (R 0 ). It can be seen that as the value of f (R 0 ) increases, the extremal mass and d S h increases too, but the value of r h decreases. In addition, the event horizon of the black hole increases with the variation of mass for the same f (R 0 ), but the value of d S h decreases. Fortunately, the results show that when the mass is greater than the    In order to make our result clearer and more visible, we also can obtain the relation between d S h and r h under the condition −1 < f (R 0 ) for different values of p, which shown in Fig. 1. It shows clearly that the value of d S h decreases with the variation of r h , but there is always d S h > 0. This result is consistent with the result of the above tables. So, the second law of thermodynamics is valid for D-dimensional f (R) charged black hole (near-or non-extremal case ) in the normal phase space.

Thermodynamics in the extended phase space
In the extended phase space, since we are going to discuss the thermodynamics of the black hole by introducing the pressure, the mass should be interpreted as enthalpy rather than internal energy. In addition, other thermodynamic quantities can be obtained through thermodynamic identities. In other words, we should use Eq. (15), that is Therefore, based on the energy conservation and charge conservation, the energy relation of Eq. (25) becomes Then, we can obtain Equation (39) is different from that in the normal phase space where the increase of energy is related to the mass of the black hole. Similarly, the event horizon and function W (h) will change due to the charged particle absorption. The variation of horizon radius can be obtained from the variation of metric function W (M, Q, l, r h ). So, the dW h is, and Substituting Eqs. (39) into (40), we get where From Eq. (42), the variations of entropy and volume can be expressed as and With the help of Eqs. (7), (11), (46) and (47), we can get the following relation   and We can prove that the above physical quantities satisfy the first law of thermodynamics. That is, which is consistent with Eq. (13). Therefore, the first law of thermodynamics in the higher-dimensional charged f (R) black hole is well recovered when a charged particle is absorbed. The satisfaction of the first law of thermodynamics does not mean that the second law is also satisfied, especially in the extended phase space. Hence, we will investigate the second law of thermodynamics of the higher-dimensional charged f (R) black hole by use Eq. (46) in the extended phase space. For the extremal black holes, the variation of entropy takes on the form  Tables 4, 5, and 6. From these tables, we find that the variation of entropy is more sophisticated, and the value of d S h is not a simple monotonic relationship such as that in the normal phase space, there is always a divergent point. Although the value of d S h decrease as the mass increase, the value of d S h have positive and negative regions. When the mass approaches to extremal mass, the value of d S h is negative, which means that the second law of thermodynamics is invalid for the nearextremal f (R) black hole. In the other hands, when the mass is larger than the extremal mass, the change of entropy is positive, therefore, this result supports the second law of thermodynamics for the non-extremal f (R) black hole. In addition, the result demonstrates that the location of the divergence point is different when the value of f (R 0 ) is changed, that is, there is a great connection between the divergence point and the value of f (R 0 ). When the value of f (R 0 ) increased, the later the divergent point appears. The relation between d S h , r h and f (R 0 ) can be plotted while p is change, which is shown in Fig. 2.
From these figures, we find that there is always a phase transition point which divides d S h into positive and negative regions, this result is consistent with the conclusion of the above tables. Furthermore, the result shows that d S h is negative when the event horizon radius is smaller than the phase  transition point. Therefore, we can also conclude that the second law of thermodynamics is not valid in the extended phase space for the near-extremal black hole under charged particle absorption. Obviously, the result also shows that the magnitudes of the violation for the second law of thermodynamics is related to the parameters l, p, Q, f (R 0 ), d−2 .

The weak cosmic censorship conjecture of the higher dimensional f (R) black holes
In this section, we investigate the validity of the weak cosmic censorship conjecture for the higher-dimensional f (R) black hole, and we intend to explore what the final state is as the charged particle is absorbed by the higher-dimensional charged f (R) black hole in different phase spaces. As the extremal black hole is in a state in which its mass has the maximum charge, it is feasible to overcharge the black hole by adding the charged particle. In the other words, the event horizon will disappear, which makes the singularity of the black hole exposed in the spacetime. Hence, we should check whether there is an event horizon at the final state of the black hole. For the black hole, the metric function W (r ) has a minimum point W (r min ). And, there at least is a positive real root for the equation W (r min ) = 0, the final states still black hole and the weak cosmic censorship conjecture still holds. Otherwise, the weak cosmic censorship conjecture is invalid. So, near the locations of the minimum value r min , the following relations are satisfied The minimum value of the function W (r ) is δ. For the case of extremal black hole δ = 0, and the location of the event horizon is coincident with that of the minimum value of the function W (r min ). For the case of near-extremal black hole, δ is a very small negative value. When charged particle dropped into the black hole, the change of the conserved quantities of the black hole can be written as W (M + d M, Q + d Q, l + dl). Correspondingly, the position of the minimum point of function W (r min ) and event horizon change into r min → r min + dr min , r h → r h + dr h respectively. Then, there is also a shift for the value of W (r min ), which is denoted as dW min . At the new lowest point , we have ∂ r W | r =r min +dr min = W min + dW min = 0.
5.1 Weak cosmic censorship conjecture in the normal phase space In the normal phase space, we will study the change of W (r min ) as charged particle absorbed. At r min +dr min , with the help of condition W min = 0 in Eq. (53), we have a relation dW min = 0, which implying In addition, at the new minimum point, W (r min + dr min ) can be expressed as where For the extremal black hole, W min = δ = 0 and the temperature is zero T h = 0. Substituting Eqs. (27) into (56), we can get This implies that W min + dW min = 0, which means that the final state of the extremal black hole still an extremal black hole with the new mass and charge when particle absorbed. Hence, the existence of the event horizon ensures that the singularity is not naked in this black hole, and the weak cosmic censorship conjecture is valid. For the near-extremal black hole, we have where 0 < 1, and the minimum value δ is a very small negative value with respect to . Then, the Eq. (27) is rewritten in terms of and r min , which is Substituting Eqs. (59) into (56), and consider the condition D = 4 p, p ∈ N, we can obtain Then, for the near-extremal black hole, the Eq. (55) becomes For the special case where = 0 in Eq. (61), we can have W (r min + dr min ) = 0. Interestingly, this result is consistent with the result of the extremal case. Hence, Eq. (57) is further confirmed. However, we still does not estimate the value magnitudes between |δ | and O( ) 2 , when the value of δ was not zero. Therefore, for the near-extremal black hole, we can not simply ignore the contribution of O( ) 2 to Eq. (61) since δ is also a small quantity, so we need a more precise calculation. To the second order, we find Hence, we can get Similarly, to the second order, dW min can be expanded as where It is easy to find that the relation between δ and O( ) 2 . For simplicity, we redefine In order to make the results gain an intuitive understanding, the result of Eq. (66) is plotted, which is shown in Fig. 3. Fortunately, for different values of p, there is always W N < 0 in Fig. 3. In other words, the result shows that W (r min + dr min ) = δ +O( ) 2 < 0, which means the weak cosmic censorship conjecture for the near-extremal higher dimensional charged f (R) black hole is valid under charged particles absorption in the normal phase space.

Weak cosmic censorship conjecture in the extended phase space
In the expended phase space, l is a variable which leads to the conserved quantity such as mass M, charge Q, and AdS radius l will transform into (M + d M, Q + d Q, l + dl) as a charged particle swallowed by the black hole. Therefore, according Eq. (53), we can also get In addition, at the new minimum point, we obtain and In accordance with Eq. (70), we also get W min +dW min = 0. It shows clearly that there is not any change in W (r min + dr min ) for the extremal black holes so that the black hole has horizon after the absorption in the extended phase space. Therefore, the weak cosmic censorship conjecture is valid for the extremal higher-dimensional charged f (R) black holes. It is interesting to note that this conclusion has not different with that in the normal phase space, the black hole keeps its configuration after the absorption. Hence, the extremal black hole still extremal black hole with the contribution of pressure, that is, the particle with sufficient momentum and charge would not overcharge extremal higher-dimensional f (R) black hole in the extended phase space. Similarly, for the near-extremal black hole, we also utilize r h = r min + , we can expand Eq. (54) at r min , which leads to where Using Eqs. (71) and (69), we have (1 + f (R 0 )) r min 16D dr min In addition, For the extremal black hole, we have W (r h ) = 0. Hence, we can get and where With the help of Eqs. (73), (74) and (75), and the condition D = 4 p, p ∈ N. We finally get In the extended phase space, the minimum value of the nearextremal black hole is Obviously, when we considered the condition δ → 0, → 0 for Eq. (78), we can get the expression W min + dW min = 0, which is reduced to the extremal case in Eq. (70). For the nearextremal black hole, to determine the final states precisely, we also perform higher-order expansion, which is where In this case, we can use Eqs. (63) and (79) to define Now, in order to visually represent the positive and negative conditions of W E , we plot Fig. 4 for different values of p. In these figures, we find that the result is nothing but interesting. When p = 1, which means the four dimensions f (R) black hole, there is no parameter f (R 0 ) in the final result of W E . It can be seen clearly that there is always W E < 0, which is shown in Fig. 4a. Nevertheless, for the case of p > 1, that is, higher dimensional f (R) black holes, the parameter f (R 0 ) makes a contribution to the final result W E which leads to W E may be positive in the final state, which is shown in Fig. 4b, c. In this case, there is not a horizon to cover the singularity and the weak cosmic censorship conjecture is violated in the extended phase space. In addition, our result demonstrate that the magnitudes of the violation is different for the value of parameter f (R 0 ), p, dr min . In general terms, the configuration of W E is different for different values of these parameters, and the magnitudes of the violation is also related to those of the parameters.

Discussion and conclusions
In this paper, we obtained the energy-momentum relation as the charged particle dropped into the higher dimensional charged f (R) black holes by using the Hamilton-Jacobi equation. Based on this relationship, we have verified the thermodynamic laws of black holes under charged particle absorption. In addition, we further examined the validity of the weak cosmic censorship conjecture in the higherdimensional f (R) AdS black holes.
In the normal phase space, we found that the first law of thermodynamics was valid when the charged particle dropped into the higher-dimensional f (R) AdS black holes. Additionally, for the second law of thermodynamics, the result shows that the variation of the entropy always increased whether it is extremal or non-extremal black holes, which means the second law of thermodynamics is valid in the normal phase space. According to a more accurate calculate of the shift of the metric function W (r min ) under charged particle absorption, the result shows that the final configuration of the black hole does not change, when the extremal f (R) black hole absorbed the charged particle. In other words, the extremal higher-dimensional f (R) AdS black holes can not be overcharged in the course of the absorption, and the event horizon of the black hole still holds. In addition, for the case of near-extremal black hole, the minimum value is still negative under charged particle absorption. That is, in both cases, the weak cosmic censorship conjecture are all valid.
In the extended phase space, when the cosmological parameter is identified as a variable which is interpreted as a pressure, the results of thermodynamic laws and weak cosmic censorship conjecture are fairly different from that obtained in the normal phase space. In this case, we find that the first law of thermodynamics is valid under charged particle absorption. However, the results show that the second law of thermodynamics is invalid for extremal and near-extremal black holes. The thermodynamic properties of a black hole, such as the Hawking temperature, Bekenstein-Hawking entropy, and thermodynamic potentials, are all defined on its horizon, especially, the horizon area of the black hole is proportional to the Bekenstein-Hawking entropy, which means the thermodynamics of a black hole are strongly dependent on the stability of its horizon. Studying the stability of the horizon is necessary for the validity of the weak cosmic censorship conjecture, and this conjecture was originally proposed for a stable horizon to prevent the breakdown of the causality at a naked singularity. Thus, we need to further prove the validity of the conjecture when the second law appears to be violated with the pressure term. Therefore, we judged the existences of the event horizon by evaluating the minimum value of the function W (r ). In this paper, our results show that the function W (r ) does not also change for the extremal black hole. That is, extremal higher-dimensional f (R) AdS black holes can not be destroyed in the course of the absorption process, and the weak cosmic censorship conjecture is still valid in the extended phase space. Interestingly, for the near-extremal higher-dimensional f (R) black holes, the shift of the minimum value is quite different from that in the case without the pressure term. Different with Ref. [42], the effect of the second-order small O( 2 ) to the final result is presented in our calculation, where the figures of the relation between δ and O( 2 ) is plotted. In this case, the result shows that there is still W (r min + dr min ) < 0 in the case of p = 1, where the parameter f (R) does not makes a contribution to W (r min + dr min ). That is, the weak cosmic censorship conjecture is valid in the 4-dimensional near-extremal f (R) black holes. However, for the higherdimensional f (R) AdS black hole where p > 1, our results show that W (r min + dr min ) > 0, and we find that parameter f (R) makes a contribution to W (r min + dr min ). It is worth noting that this result is quite different from that without parameters f (R) in the final state. In other words, the weak cosmic censorship conjecture may be invalid when the charged particle dropped into the higher-dimensional near-extremal f (R) black holes. In a conclusion, it implies that the violations of the cosmic censorship conjecture depending on the parameter f (R 0 ), and the magnitudes of those violations are relevant to those of the parameters. Therefore, the parameter f (R 0 ) plays a very important role, and its effect to the weak cosmic censorship conjecture cannot be neglected.

Data Availability Statement
This manuscript has associated data in a data repository. [Author's comment: I confirm that our all associated data can be found in the text of our article, which is in the open, and there has no other data.] Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. Funded by SCOAP 3 .