It is an application of 4 bar linkage.
Raise the seat (red arrow) and turn the yellow lever clockwise (black arrow) to lock the seat at open position. The seat weight pushes the yellow lever toward the back board.
Turn the yellow lever counterclockwise (black arrow) to close the seat.