AC logic