TL;DR. To provoke any AI to declare war on you: have closed borders to all AIs, have no resource trades with anyone, no defense pacts, and very little army in an area you want some AI to attack. Have some AI being much pushed by your own territory (culturally), and verify that this AI has no access to any non-claimed territory to expand into (including other continents if they're able to travel there). Then, put some workers right next to a border with that AI, have them do whatever, then go talk with that AI and make a deal to trade some resources. Hit "end turn" - and they'll declare war on you very next turn! _Probably_, that is. 
Details.
There may be two rational reasons to provoke AIs to declare war. 1st, to avoid permanent (never decaying) negative diplo modifier (was it -3?) for declaring war on them ourselves; 2nd, the Great Wall provides huge boost to Great General points, but only if fighting inside our own cultural borders - which is exactly what happens when AI declares war: it sends units into your territory.
There's this old thread back from 2012, asking how to provoke AIs to declare war: https://forums.civfanatics.com/threads/provoking-war.469242/ . People in that topic said some doubtfull stuff,
- much higher Power stat (above 130% or so of an AI who's being provoked) will make any AI never declare war. Not true: in my current Evergreen game, i had 3 AIs declaring wars on me, and in all 3 cases i had times higher Power stat than theirs.
- getting very negative Diplo stance helps increase the odds for an AI to declare war; they recommended making diplomatic demands to decrease it. Three problems with it: 1st, every demand made - creates as permanent diplo modifier as declaring war. It never fades away and goes bigger and bigger with every demand made. 2nd problem is, in certain circumstances, AIs will declare war no matter what is their attitude to us, anyway - and in certain others, they never will declare war even if extremely Furious (-20 and below); and 3rd, if they're angry, then they will not trade resources to us, which trading, curiously, in certain circumstances seems to provoke their declaration of war!
- deleting units to lower Power stat: bad idea, because apparently, it's not total Power stat (anymore?) which is a factor, but proximity of many strong enough troops to the area which an AI might want to invade.
- peaceful leaders like Gandhi won't attack if your Power is higher than 90% of theirs. Not true: in one of my games, i had exactly Gandhi declaring a war on me, totally unprovoked in any way - even while i had massively higher Power stat than his.
- using spies and get them caught by the AI to create ever-growing "your spy was caught" negative diplo modifier. Same three problems as with doing demands - all true for this one as well.
Now, to what i found in my current Evergreen game.
AIs seem to attack when they "think" that:
- there's a part of your empire which is "easy to grab" to get some profit and/or hurt you. This includes undefended workers near their border, a nearby city with not-so-strong (relative to thier army) defender(s), no other military units for several tiles around the area, and/or productive lands which their empire could much benefit from, if such lands would become theirs;
- it's good and desirable to break some kinds of trade agreements between them and you. Ones which, when cancelled by declaration of war, would result in reduction of your empire's growth / development potential. I suspect that they weigh this "indirect harm" (breaking such trade agreements) dealt to you - vs harm (if any much) they themselves would suffer, and if they see that breaking such a trade agreement is no significant problem for them, but clearly does some (if minor, but still substantial) harm to you - then they'll be more likely to declare war. Hillariously, such a consideration does NOT seem to have any effect when they consider any _offer_ to create such a trade agreement. Which is why creating such an agreement - may well become "the last straw" which makes AIs to stop being peaceful to you, and declare a war. %)
Now, three practical examples to the above, from my current Evergreen game.
1st, Mao declared war in 1310 AD when i culturally blockaded his entire 2-city empire. Right before, he was "Pleased" with me (-1 for border tensions, but +1 for years of peace and +3 for having same faith), yet this did not stop him. Note how there are multiple very productive (resources, improvements) tiles he'd immediatelly have available for his own cities if he'd capture Oporto and/or Evora - two high-culture cities which i intentionally designed to "squeeze" him culturally. Also, note how he's completely unable to sail anywhere (this is pre-Astronomy times, so only coastal sailing, but closed borders from me made his ships unable to go anywhere):
2nd, in 1911 AD, Churchill (and his former-colony, now vassal, Rangar) declared war on me very next turn after i made a resource trade deal with Churchill. I had no intention to provoke him, but merely wished to get couple resources useful for my corporations, which he had for trade; usually i don't trade resources at this stage due to diplomatic repercussions (other AIs' demands to stop trading with their "worst enemy") - but in this case, worst enemy of Churchill was above-mentioned Mao (who was by now reduced to a single-tile city-state and remained peaceful after that). So i didn't care if Mao would make any demands, and thus made this trade deal with Churchill. And it just happened that i had some workers near his border building farms on some flood plains, at the time.
End result? Very next turn after making that trade deal, Churchill declared war, which cancelled that trade deal, and he destroyed those workers - both things, you can see in the turn log on the screenshot. Also, note on the minimap that i encircled Churchill (white lands) from all sides; and, my Privateers remained successful in destroying his galleons and caravels, and did some lengthy blockades as well, which greatly slowed his development - but perhaps more importantly, prevented him expanding to anywhere else after he granted independence to his former colony in Australia. Which colony became his vassal Ragnar - sorta tan color on the minimap. And at the time, just 1 turn prior (1910 AD), Churchill was "Cautious" towards me. Meaning, once again, just like with Mao, this wasn't any "caused by bad attitude" declaration of war, too.
And 3rd, in 1938, after i've beaten both Churchil and Ragnar to single-city empires (i have reasons to keep them alive, if you wonder), and then had my main offensive force returned to mainland from Australia - Alexander declared war on me, too. But this time, so soon after that declaration of war from Churchill, i intentionally placed some workers near his border and intentionally made a resource trade deal - this time, it was fish and gold from Alexander, which once again were two resources useful for my corporations. And once again, very next turn this deal was made - Alexander declaring war on me, exactly like i hoped, this time, that he would. Because i had one more reason to wish to do war with Alexander (and not with quite stronger AI, at the time - Hammurabi (purple) with his vassal Germany (light-gray): Alexander has two Uranium resources within his territory, while Hammurabi got zero. And i'm going to prevent them AIs from getting any. That's why i wished to fight Alexander. And since i'm keeping every beaten AI alive, it matters to me whether they'd get any permanent negative-diplo modifiers, too.
Anyway, in 1937 AD (previous turn) - Alexander was "Cautious" to me just like Churchill was - even with exact same score of -2 total: +1 for years of peace, +1 for past events, -2 for different religion and -2 for border tensions. And by this point of the game, i've seen Alexander's caravels sailing all around the map, poking their noses this and that way, looking for a place to expand - but as you can see on the minimap, by 1938 AD there are no more non-claimed lands for Alexander to settle. Meaning, the only possible method to expand and grow, for Alexander, at this point - was to attack either me, or Hammurabi (his other neighbour - purple). But Hammurabi kept a LOT of units near Alexander's border (couple dozens or more every time i looked). So, that wasn't any easy target for Alexander. While this lone city of mine, with a single Mech Infantry defending, no other army anywhere close, and then some juicy workers instantly killable - was apparently very tempting.
Perhaps after we made that resource trade deal, Alexander's AI even concluded something like "hey look, this human guy wishes to trade, so he's probably not any warlord type and his huge army is just for show"? Maybe that's how it works?
Anyhow, however it is, this provocation method - proved to be quite hillariously working, yep. Hopefully, this method of provoking AIs to war - will help you enjoy all the peculiar little benefits i described above, in some of your games. Good luck! 

Details.
There may be two rational reasons to provoke AIs to declare war. 1st, to avoid permanent (never decaying) negative diplo modifier (was it -3?) for declaring war on them ourselves; 2nd, the Great Wall provides huge boost to Great General points, but only if fighting inside our own cultural borders - which is exactly what happens when AI declares war: it sends units into your territory.
There's this old thread back from 2012, asking how to provoke AIs to declare war: https://forums.civfanatics.com/threads/provoking-war.469242/ . People in that topic said some doubtfull stuff,
Spoiler including :
- much higher Power stat (above 130% or so of an AI who's being provoked) will make any AI never declare war. Not true: in my current Evergreen game, i had 3 AIs declaring wars on me, and in all 3 cases i had times higher Power stat than theirs.
- getting very negative Diplo stance helps increase the odds for an AI to declare war; they recommended making diplomatic demands to decrease it. Three problems with it: 1st, every demand made - creates as permanent diplo modifier as declaring war. It never fades away and goes bigger and bigger with every demand made. 2nd problem is, in certain circumstances, AIs will declare war no matter what is their attitude to us, anyway - and in certain others, they never will declare war even if extremely Furious (-20 and below); and 3rd, if they're angry, then they will not trade resources to us, which trading, curiously, in certain circumstances seems to provoke their declaration of war!
- deleting units to lower Power stat: bad idea, because apparently, it's not total Power stat (anymore?) which is a factor, but proximity of many strong enough troops to the area which an AI might want to invade.
- peaceful leaders like Gandhi won't attack if your Power is higher than 90% of theirs. Not true: in one of my games, i had exactly Gandhi declaring a war on me, totally unprovoked in any way - even while i had massively higher Power stat than his.
- using spies and get them caught by the AI to create ever-growing "your spy was caught" negative diplo modifier. Same three problems as with doing demands - all true for this one as well.
AIs seem to attack when they "think" that:
- there's a part of your empire which is "easy to grab" to get some profit and/or hurt you. This includes undefended workers near their border, a nearby city with not-so-strong (relative to thier army) defender(s), no other military units for several tiles around the area, and/or productive lands which their empire could much benefit from, if such lands would become theirs;
- it's good and desirable to break some kinds of trade agreements between them and you. Ones which, when cancelled by declaration of war, would result in reduction of your empire's growth / development potential. I suspect that they weigh this "indirect harm" (breaking such trade agreements) dealt to you - vs harm (if any much) they themselves would suffer, and if they see that breaking such a trade agreement is no significant problem for them, but clearly does some (if minor, but still substantial) harm to you - then they'll be more likely to declare war. Hillariously, such a consideration does NOT seem to have any effect when they consider any _offer_ to create such a trade agreement. Which is why creating such an agreement - may well become "the last straw" which makes AIs to stop being peaceful to you, and declare a war. %)
Now, three practical examples to the above, from my current Evergreen game.
1st, Mao declared war in 1310 AD when i culturally blockaded his entire 2-city empire. Right before, he was "Pleased" with me (-1 for border tensions, but +1 for years of peace and +3 for having same faith), yet this did not stop him. Note how there are multiple very productive (resources, improvements) tiles he'd immediatelly have available for his own cities if he'd capture Oporto and/or Evora - two high-culture cities which i intentionally designed to "squeeze" him culturally. Also, note how he's completely unable to sail anywhere (this is pre-Astronomy times, so only coastal sailing, but closed borders from me made his ships unable to go anywhere):
Spoiler :
End result? Very next turn after making that trade deal, Churchill declared war, which cancelled that trade deal, and he destroyed those workers - both things, you can see in the turn log on the screenshot. Also, note on the minimap that i encircled Churchill (white lands) from all sides; and, my Privateers remained successful in destroying his galleons and caravels, and did some lengthy blockades as well, which greatly slowed his development - but perhaps more importantly, prevented him expanding to anywhere else after he granted independence to his former colony in Australia. Which colony became his vassal Ragnar - sorta tan color on the minimap. And at the time, just 1 turn prior (1910 AD), Churchill was "Cautious" towards me. Meaning, once again, just like with Mao, this wasn't any "caused by bad attitude" declaration of war, too.
Spoiler :
Anyway, in 1937 AD (previous turn) - Alexander was "Cautious" to me just like Churchill was - even with exact same score of -2 total: +1 for years of peace, +1 for past events, -2 for different religion and -2 for border tensions. And by this point of the game, i've seen Alexander's caravels sailing all around the map, poking their noses this and that way, looking for a place to expand - but as you can see on the minimap, by 1938 AD there are no more non-claimed lands for Alexander to settle. Meaning, the only possible method to expand and grow, for Alexander, at this point - was to attack either me, or Hammurabi (his other neighbour - purple). But Hammurabi kept a LOT of units near Alexander's border (couple dozens or more every time i looked). So, that wasn't any easy target for Alexander. While this lone city of mine, with a single Mech Infantry defending, no other army anywhere close, and then some juicy workers instantly killable - was apparently very tempting.
Spoiler :
Perhaps after we made that resource trade deal, Alexander's AI even concluded something like "hey look, this human guy wishes to trade, so he's probably not any warlord type and his huge army is just for show"? Maybe that's how it works?

