Put 2 1/2 pounds of peeled, chunked russet potatoes in a large pot, cover with cold water, and add 1 tablespoon of salt. Bring to a boil, then lower the heat and simmer for 15 to 20 minutes, until a knife slides through a chunk with no resistance. Drain well, return the potatoes to the hot pot for 1 minute to steam off the last of the water, then mash with 4 tablespoons of butter and 1/2 cup of warm milk until smooth and fluffy. Season with salt and pepper and set aside.
While the potatoes cook, heat 2 tablespoons of olive oil in a large, deep skillet over medium heat. Add 1 large diced onion and 2 diced carrots and cook for 5 to 7 minutes, until the onion turns soft and translucent. Add 8 ounces of finely chopped cremini mushrooms and cook for 6 to 8 minutes more, until they give up their water and start to brown at the edges. Stir in 3 minced garlic cloves and cook for 1 minute, until fragrant.
Stir in 2 tablespoons of tomato paste and 1 tablespoon of flour and cook for 1 minute, until the paste darkens to brick-red. Pour in 1/2 cup of red wine and let it bubble for 2 minutes, scraping up the browned bits from the bottom of the pan. Add 1 1/2 cups of passata, 1 1/2 cups of vegetable broth, 1 tablespoon of soy sauce, 1 teaspoon of dried thyme, 1 teaspoon of crushed dried rosemary, and 1 bay leaf. Stir in 2 cans of drained green or brown lentils. Bring to a gentle simmer and cook for 10 to 12 minutes, until the sauce thickens enough to coat a spoon and hold a trail when you drag the spoon through it. Stir in 1 cup of frozen peas, remove the bay leaf, and season with salt and pepper.
Heat the oven to 400 degrees F. Spoon the ragu into a 9x13-inch baking dish and spread it into an even layer. Drop the mashed potatoes over the top in big spoonfuls, starting at the edges and working toward the middle, then gently spread them together with the back of a spoon. Drag a fork across the surface in straight lines to make ridges.
Scatter 1 cup of shredded sharp cheddar evenly over the forked mash. Bake for 25 minutes, until the filling bubbles at the edges and the potatoes turn light gold. Switch the oven to broil and cook for 2 to 3 minutes more, watching closely, until the cheddar is bubbly and the ridges are deep gold and crisp.
Take the pie out of the oven and let it rest for 10 minutes before serving. Serve in wide, shallow bowls with a big spoon, making sure every serving gets some of the crisp cheddar top and some of the rich ragu underneath.