I would like to reproduce with TikZ the following diagrams [![enter image description here](https://i.stack.imgur.com/6k1dN.jpg)](https://i.stack.imgur.com/6k1dN.jpg)

[![enter image description here](https://i.stack.imgur.com/Dc5d7.png)](https://i.stack.imgur.com/Dc5d7.png)

It would be nice to have them rotated of 90 degrees (so to resemble cup and cap symbols). I have searched how to create arches, which however do not seem to suit my desired result: is there any simpler solution?