Text this: A new characterization of complete Heyting and co-Heyting algebras