Stalinism was a development of Leninism, and while Stalin avoided using the term "Marxism-Leninism-Stalinism", he allowed others to do so. Following Lenin's death, Stalin contributed to the theoretical debates within the Communist Party, namely by developing the idea of "Socialism in One Country". This concept was intricately linked to factional struggles within the party, particularly against Trotsky. He first developed the idea in December 1924 and elaborated upon in his writings of 1925–26. Stalin's doctrine held that socialism could be completed in Russia but that its final victory there could not be guaranteed because of the threat from capitalist intervention. For this reason, he retained the Leninist view that world revolution was still a necessity to ensure the ultimate victory of socialism. Although retaining the Marxist belief that the state would wither away as socialism transformed into pure communism, he believed that the Soviet state would remain until the final defeat of international capitalism. This concept synthesised Marxist and Leninist ideas with nationalist ideals, and served to discredit Trotsky—who promoted the idea of "permanent revolution"—by presenting the latter as a defeatist with little faith in Russian workers' abilities to construct socialism.