Place the lima beans in a large pot and cover with about 2 quarts / 2 liters of water and a pinch of salt.
Bring to a boil, then reduce the heat to a gentle simmer.
Cook until the beans are tender but still hold their shape, typically 1 to 1.5 hours. Avoid letting them become mushy.
Drain the beans, reserving the flavorful cooking liquid for future soups or stews.
In a large, heavy-bottomed skillet or Dutch oven, heat the olive oil over medium heat.
Add the crushed garlic and rosemary, sautéing for 1-2 minutes until fragrant, being careful not to burn the garlic.
Pour in the tomato purée, chopped tomatoes, red wine, salt, lemon juice, and sugar.
Season generously with fresh-ground black pepper.
Bring the sauce to a simmer and cook, stirring occasionally, for about 15 minutes to allow the flavors to meld.
Gently fold the drained lima beans into the simmering tomato sauce.
Reduce the heat to low and continue to cook for another 5 to 10 minutes, stirring carefully with a wooden spoon to prevent breaking the beans. The sauce should thicken and coat the beans beautifully.
For a warm dish, stir in the minced raw onion just before serving. For a cold salad, allow the beans to cool completely in the sauce.
Once cool, stir in the minced onion and chill in the refrigerator for at least a few hours or overnight to let the flavors deepen.