You will need a wide-rimmed metal pie tin with sloping sides, 20cm at the base, 27cm across the top.
Make the pastry: cut the butter into small pieces and rub into the flour with your thumbs and fingertips, or use a food processor. When the mixture resembles coarse bread-crumbs, add the yolk and enough water to bring it to a rollable dough, 3-4 tbsp. Pat the dough into a ball and refrigerate for half an hour.
Bring a deep pan of salted water to the boil. Wash and thinly slice the potatoes. There is no need to peel them. Add the potatoes to the water, return to the boil and leave until tender, about 10 minutes. Drain the potatoes, then let them sit in a colander to dry a little. Don’t worry if the potatoes crumble a bit.
Remove the roots and the darkest green tips from the leeks. Slice the leeks into rounds about the thickness of a pencil. Melt the butter in a large saucepan, drain and add the leeks and let them cook for about 15-20 minutes, covered by a lid and stirring from time to time, until they are soft. It is important they do not colour. Stir in the chopped parsley and tarragon, a generous seasoning of salt and black pepper and continue cooking for a couple more minutes.
Heat the oven to 200C/gas mark 6 and put a baking sheet in it to get hot. Remove the pastry from the fridge. Grate the cheese. Cut the pastry in half and roll out one half to fit the tart tin, letting any excess drape over the sides. Place a layer of potatoes in the base, then some cheese, followed by a layer of leeks. Continue layering until they are all finished.
Brush the pastry edges with beaten egg. Roll out the remaining pastry to fit over the pie, firmly pressing the edges together. Brush the pastry with beaten egg. Make a small hole in the top to let any steam out.
Place the tart on the hot baking sheet and bake for about 45 minutes. Remove from the oven and leave to settle for 15 minutes before cutting.
