A framework of Rogers–Ramanujan identities and their arithmetic properties