01 - Preheat oven to 400°F (200°C).
02 - Place sweet potatoes in a large pot of salted water and bring to a boil. Reduce heat and simmer for 15 to 20 minutes until tender.
03 - Drain sweet potatoes, then mash with butter and milk until smooth. Season with salt and pepper; set aside.
04 - Heat olive oil in a large skillet over medium heat. Add onion, garlic, carrots, and celery, sautéing for 5 to 7 minutes until softened.
05 - Add lentils, tomato paste, soy sauce, thyme, rosemary, bay leaf, and vegetable broth to the skillet. Bring to a simmer, cover, and cook for 25 to 30 minutes, stirring occasionally, until lentils are tender and most liquid is absorbed.
06 - Remove bay leaf, stir in frozen peas, and season with salt and pepper to taste.
07 - Transfer lentil mixture to an 8 x 8-inch baking dish. Evenly spread the sweet potato mash over the top.
08 - Bake for 20 minutes until the topping is slightly golden.
09 - Allow to cool for 5 minutes before serving.