01 - Preheat the oven to 400°F (200°C).
02 - Place peeled sweet potato chunks into a large pot of salted water. Bring to a boil, then reduce heat and simmer for 15 to 20 minutes until tender.
03 - Drain sweet potatoes thoroughly. Mash with butter and milk until smooth. Season with salt and pepper. Set aside.
04 - Meanwhile, heat olive oil in a large skillet over medium heat. Add chopped onion, minced garlic, diced carrots, and celery. Sauté for 5 to 7 minutes until vegetables soften.
05 - Add rinsed lentils, tomato paste, soy sauce, dried thyme, rosemary, bay leaf, and vegetable broth to the skillet. Bring to a gentle simmer, cover, and cook for 25 to 30 minutes, stirring occasionally until lentils are tender and liquid mostly absorbed.
06 - Remove and discard the bay leaf. Stir in frozen peas and season the filling with salt and pepper to taste.
07 - Transfer the lentil mixture evenly into an 8 x 8-inch (20 x 20 cm) baking dish. Spread the sweet potato mash evenly over the top.
08 - Bake in the preheated oven for 20 minutes or until the topping is lightly golden.
09 - Allow to cool for 5 minutes before serving.