Antitone Galois connection

Polarities

In mathematics an antitone Galois connection is a couple of antitonic functions (called polarities) \((\alpha, \beta)\) from the power set of one set to the power set of another set: \(\alpha:2^E\rightarrow 2^F\), \(\beta:2^F\rightarrow 2^E\)

such that:

\(f \subseteq \alpha(e) \subseteq F\) if and only if \(e \subseteq \beta(f) \subseteq E\)

[1]:
from galactic.algebras.examples.connection import IntegerConnection
[2]:
connection = IntegerConnection([2, 3, 4, 5, 6], [12, 18, 24, 36, 48, 30, 60])
[3]:
connection.polarities
[3]:
(<galactic.algebras.examples.connection.MultiplePolarity at 0x7f3bdc188610>,
 <galactic.algebras.examples.connection.DivisorPolarity at 0x7f3bdc187e00>)
[4]:
list(connection.polarities[0](elements={2, 5}))
[4]:
[30, 60]
[5]:
list(connection.polarities[1](elements={30}))
[5]:
[2, 3, 5, 6]

Closures

If \((\alpha, \beta)\) is an antitone Galois connection from \(2^E\) to \(E^S\), \(\beta \circ \alpha\) and \(\alpha \circ \beta\) are closure operators on respectively \(E\) and \(F\).

[6]:
connection.closures
[6]:
(compose(<galactic.algebras.examples.connection.DivisorPolarity object at 0x7f3bdc187e00>, <galactic.algebras.examples.connection.MultiplePolarity object at 0x7f3bdc188610>),
 compose(<galactic.algebras.examples.connection.MultiplePolarity object at 0x7f3bdc188610>, <galactic.algebras.examples.connection.DivisorPolarity object at 0x7f3bdc187e00>))
[7]:
list(connection.closures[0](elements={2, 3}))
[7]:
[2, 3, 6]
[8]:
list(connection.closures[1](elements={30}))
[8]:
[30, 60]