Sauté the olive oil, onion, and garlic in the Instant Pot or in a pan until the onion is translucent.
Add in the salt, water, and lentils. Cook in the Instant Pot on high pressure for 10 minutes. [Check lentil bag for stovetop directions, which may require soaking overnight.]
When lentils are done, put them in a small bowl to cool. Rinse out the Instant Pot for the mashed potatoes.
Add the potatoes, broth, garlic, and salt to the Instant Pot.
Cook on high pressure for 7 minutes.
Remove inner pot and whisk together with cream cheese, milk, and butter.
In a large saute pan over medium heat stir together the olive oil, onion, garlic, and spices. Cook covered for 5-7 minutes on medium heat, or until the onion is transclucent and fragrant.
Add in the carrots and celery, cooking again for 5 minutes OR until the carrots are tender.
Add in the tomato paste and flour. Stir thoroughly to coat the vegetables and brown for roughly 2 minutes.
Add in the broth slowly and bring to a simmer. Stir until thickened to a gravy consistency.
Add in the peas and the lentils, stirring on low heat for 5 minutes.
Preheat the oven to 400F.
Spread the filling into a casserole dish. [9x13 is the largest I would go.]
Top with mashed potatoes and spread to an even layer.
Cook for 15 minutes.
Broil until potatoes are browned, watching closely.
Serve warm and enjoy!