Order (2020) 37:319–339 https://doi.org/10.1007/s11083-019-09508-0

Ambiguous Representations of , Imperfect Information, and Predicate Transformers

Oleh Nykyforchyn1 · Oksana Mykytsey2

Received: 6 May 2019 / Accepted: 13 September 2019 / Published online: 7 November 2019 © The Author(s) 2019

Abstract Crisp and lattice-valued ambiguous representations of one continuous in another one are introduced and operation of taking pseudo-inverse of the above relations is defined. It is shown that continuous semilattices and their ambiguous representations, for which taking pseudo-inverse is involutive, form categories. Self-dualities and contravariant equiv- alences for these categories are obtained. Possible interpretations and applications to processing of imperfect information are discussed.

Keywords Ambiguous representation · Continuous semilattice · Duality of categories · Imperfect information

1 Introduction

The goal of this work is to generalize notions of crisp and L-fuzzy ambiguous repre- sentations introduced in [15] for closed sets in compact Hausdorff spaces. Fuzziness and roughness were combined to express the main idea that a set in one space can be represented with a set in another space, e.g., a 2D photo can represent 3D object. This representa- tion is not necessarily unique, and the object cannot be recovered uniquely, hence we say “ambiguous representation”. It turned out that most of results of [15] can be extended to wider settings, namely to continuous semilattices, which are standard tool to represent partial information in denota- tional semantics of programming languages. Consider a computational process or a system which can be in different states, and these states can change, e.g., a game, position in which changes after moves of players. Assume that any party involved (e.g., a player) at a moment

 Oleh Nykyforchyn [email protected]

Oksana Mykytsey [email protected]

1 Institute of Mathematics, Kasimir the Great University in Bydgoszcz, 2 Powstanc´ ow´ Wielkopolskich St., Bydgoszcz, 85090, Poland 2 Department of Mathematics and Computer Science, Vasyl’ Stefanyk Precarpathian National University, 57 Shevchenka St., Ivano-Frankivsk, 76025, Ukraine 320 Order (2020) 37:319–339 of time can obtain only imperfect information about the state of the system (“imperfect” means that this information only reduces uncertainty but not necessarily eliminates it). All possible portions of information we can obtain in an observation form a domain of compu- tation S [3], which is usually required to be a continuous meet semilattice with zero (cf. [17] for a detailed explanation why continuous, semilattices are an appropriate tool for this purpose, and [5, 9] for more information on continuous posets). If x  y in S, then an infor- mation (a statement) x is more specific (restrictive) than y. Respectively 0 ∈ S means “no information”. The meet of x and y is the most specific piece of information including both x and y (as particular cases). It is not necessarily equivalent to “x or y” in the usual logical sense.

Example 1 Let S be the set of all non-empty segments [a,b]⊂[0, 1] ordered by reverse inclusion. We regard [a,b] as the statement “only points of [a,b] have been selected”. Then [ 1 ]∧[2 ]=[ ] [ 1 ] [ 2 ] 0, 3 3 , 1 0, 1 , which is wider than “ 0, 3 or 3 , 1 ”.

Example 2 Let S be the hyperspace exp X of all non-empty closed sets of a compactum X. Points of X are possible states of the system, and A ⊂ X represents the fact that one cl of the states x ∈ A is achieved. Then exp X is ordered by reverse inclusion, hence X ∈ exp X is the least element that means “anything can happen”. The meet of A and B is their union, therefore can be interpreted as “A or B”. The ambiguous representations were first introduced and their properties proved for this particular case in [15].

Domain of computation is the primary interpretation of a continuous semilattice in this paper. We use monotonic binary- or lattice-valued predicates [8] on semilattices to express degrees of belief that certain pieces of information describe actual state of a system or of a process. The goal of this work is to study relations between imperfect information on the same system or process obtained in different observation, e.g., how information changes after a step of a computational process or after a move in the game. We consider the introduced ambiguous representations to be an adequate tool for this task. The paper is organized as follows. First necessary definitions and facts are given on continuous (semi-)lattices and monotone predicates. Then we define compatibilities, which are functions with values 0 and 1 that show whether two pieces of information can be valid together. Next ambiguous representations are introduced as crisp and L-fuzzy rela- tions between continuous semilattices. Operation of taking pseudo-inverse is defined for these relations, its properties are proved, and classes of pseudo-invertible representations are investigated. It is shown that continuous semilattices and their pseudo-invertible crisp and L-fuzzy ambiguous representations form categories, and can be equivalently regarded as isotone mappings or linear operators between idempotent semimodules. Self-dualities and contravariant equivalences are constructed for these categories. We also discuss possible applications of the developed theory.

2 Preliminaries

We adopt the following definitions and notation, which are consistent with [5, 10]. Proofs of the facts below can also be found there. From now on, semilattice means meet semilattice,if otherwise is not specified. If a poset contains a bottom (a top) element, then it is denoted by 0 (resp. by 1). A top (a bottom) element in a semilattice is also called a unit (resp. a zero). Order (2020) 37:319–339 321

Forapartialorder on a set X, the relation ˜ , defined as x ˜ y ⇐⇒ y  x,for x,y ∈ X, is a partial order called opposite to ,and(X, )op denotes the poset (X, ˜ ).If the original order  is obvious, we write simply Xop for the reversed poset. We also apply ()˜ to all notation to denote passing to the opposite order, i.e. write X˜ = Xop , sup˜ = inf, 0˜ = 1 etc. For a morphism f : (X ) → (Y, ) in a Poset of posets and isotone (order preserving) mappings, let f op be the same mapping, but regarded as (X, ˜ ) → (Y, ˜ ).Itis obvious that f op is isotone as well, thus a (−)op : Poset → Poset is obtained. For a subset A of a poset (X, ), we denote A↑={x ∈ X | a  x for some a ∈ A},A↓={x ∈ X | x  a for some a ∈ A}. If A = A↑ (A = A↓), then a set A is called upper (resp. lower). A topological meet (or join) semilattice is a semilattice L carrying a topology such that the mapping ∧:L × L → L (resp. ∨:L × L → L) is continuous. A lattice L with a topology such that both ∧:L × L → L and ∨:L × L → L are continuous is called a topological lattice. A poset (X, ) is called complete if each non-empty subset A ⊂ X has a least upper bound. AsetA in a poset (X, ) is directed (filtered) if, for all x,y ∈ A,thereisz ∈ A such that x  z, y  z (resp. z  x, z  y). A poset is called directed complete (dcpo for short) if it has lowest upper bounds for all its directed subsets. The Scott topology σ(X) on (X, ) consists of all those U ⊆ X that satisfy x ∈ U ⇔ U ∩ D = ∅ for every  −directed D ⊆ X with a least upper bound x. Note that “⇐” above implies U = U ↑. In a dcpo X, a set is Scott closed iff it is lower and closed under suprema of directed subsets. A mapping f between dcpo’s X and Y is Scott continuous, i.e. continuous w.r.t. σ(X) and σ(Y), if and only if it preserves suprema of directed sets. Let L be a poset. We say that x is way below y and write x  y iff, for all directed subsets D ⊆ L such that sup D exists, the relation y ≤ sup D implies the existence of d ∈ D such that x ≤ d. “Way-below” relation is transitive and antisymmetric. An element satisfying x  x is said to be compact or isolated from below, and in this case the set {x}↑ is Scott open. A poset L is called continuous if, for each element y ∈ L,thesety↓ ={x ∈ L | x  y} is directed and its least upper bound is y.Adomain is a continuous dcpo. If a domain is a semilattice, it is called a continuous semilattice. A L is called completely distributive if, for each collection of sets { | ∈ }= { { | ∈ }| ∈ } (Mt )t∈T in L, the equality inf sup Mt t T sup inf αt t T (αt )t∈T t∈T Mt holds. This property implies distributivity, but the converse fails. Then both L and Lop are continuous, and the join of Scott topologies on L and Lop provides the unique compact Hausdorff topology on L with a consisting of small sublattices (Lawson topology). In the sequel completely distributive lattices will be regarded with Lawson topologies. For a subset R ⊂ S1 × S2 ×···×Sn, an index k ∈{1, 2,...,n}, and elements α1 ∈ S1, ...,αk−1 ∈ Sk−1, αk+1 ∈ Sk+1,...,αn ∈ Sn,theset   pr R ∩ ({α }×···×{α − }×S ×{α + }×···×{α })  1...(k−1)(k+1)...n 1 k 1 k k 1 n

all factors except k-th

={α ∈ Sk | (α1,...,αk−1,α,αk+1,...,αn) ∈ R}⊂Sk is called a cut of R. We denote it α1 ...αk−1Rαk+1 ...αn. 322 Order (2020) 37:319–339

The following obvious property is quite useful.

Lemma 1 Let S1, S2,...,Sn be dcpos, R ⊂ S1 × S2 ×···×Sn.ThenR is Scott closed if and only if all its cuts are Scott closed.

Proof Necessity is obvious. To prove sufficiency, observe that all cuts of R being Scott closed (hence lower sets) implies that R is a lower set as well. Without loss of generality we can consider only the case n = 2. Let a subset D ⊂ R ⊂ S1 × S2 be directed. Then the set  D = D↓⊂R is directed as well and lower in S1 × S2, hence is the product D1 × D2 of directed lower sets D1 ⊂ S1 and D2 ⊂ S2.Foranyx ∈ D1 the set {x}×D2 is contained in R, therefore D2 is contained in the Scott closed cut xR. This implies that the least upper bound b = sup D2, which exists because S2 is a dcpo, is an element of this cut, hence (x, b) ∈ R for all x ∈ D1. Thus D1 is contained in the Scott closed cut Rb, therefore  a = sup D1 in the dcpo S1 also belongs to this cut. We obtain that (a, b) = sup D = sup D belongs to R for any directed subset D ⊂ R, i.e., R is Scott closed.

Similarly, for a subset R ⊂ S1 × S2 ×···×Sn, an index k ∈{1, 2,...,n},andsubsets A1 ⊂ S1,...,Ak−1 ⊂ Sk−1, Ak+1 ⊂ Sk+1,...,An ⊂ Sn, we denote

A1 ...Ak−1RAk+1 ...An ={α ∈ Sk | there are α1 ∈ S1,...,αk−1 ∈ Sk−1,

αk+1 ∈ Sk+1,...,αn ∈ Sn such that (α1,...,αk−1,α,αk+1,...,αn) ∈ R}. In the sequel L will be a completely [5], which will be used to keep truth values (“degrees of belief”). Its top element 1 means “surely true”, and the bottom element 0 means “quite impossible”. In the simplest case L = 2 ={0, 1}, i.e., we obtain binary logic “yes/no”. In the sequel D  D denotes a Scott continuous mapping between domains D and D,and[D  D] is the set of all such mappings. If S and S are continuous (meet) semilattices, then a Scott continuous meet preserving mapping is denoted with S → S, with [S → S] being a notation for the respective sets of mappings. If the above posets   have zero (bottom) elements, then [D  D ]0 and [S → S ]0 are the subsets consisting of the bottom-preserving mappings. Let Sem↑ be the category of all continuous semilattices and all Scott continuous map- pings, and Sem0 be its subcategory consisting of all continuous semilattices with zeros and all Scott continuous zero-preserving semilattice morphisms. =[  op ]op Following [8], for a semilattice S we call the elements of the set M[L]S S L L-fuzzy monotonic predicates on S.Form ∈[S  Lop ]op and a ∈ S,weregardm(a) as the truth value of a, hence it is required that m(b)  m(a) for all a  b. The second op means that we order the fuzzy predicates pointwise, i.e. m1  m2 iff m1(a)  m2(a) in L op (not in L !) for all a ∈ S.ForS with a least element 0, consider also the subset M[L]S = [  op ]op ⊂ ∈ S L 0 M[L]S of all normalized predicates that take 0 S (no information) to 1 ∈ L (complete truth). It is natural to require m(0) = 1 because we cannot be wrong if we say nothing. Observe that M[L]S is a complete sublattice of M[L]S. ∈ In particular, a binary monotonic predicate m M[2]S takes each piece a of information to 1 if it is true or to 0 if it is wrong. Such predicate is completely determined with the Scott continuous set m−1(1) ⊂ S of true statements. On the other hand, each Scott closed set F ⊂ S determines the binary monotonic predicate

1,a∈ F, m (a) = a ∈ S. F 0,a/∈ F, Order (2020) 37:319–339 323

It follows from [4, Theorem 4] (although called “folklore knowledge” in [8]) that, for a domain D and a completely distributive lattice L,theset[D  Lop ] is a completely distributive lattice, hence this is also valid for M[L]S,whereS is a continuous semilattice. If S possesses a least element, then M[L]D is a completely distributive lattice as well. Infima in M[ ]S and M[L]S are calculated pointwise, but suprema need “adjustment” L   (sup mi)(a) = inf sup mi(a ) | a  a ,a∈ S. i i

3 Compatibilities for Continuous Semilattices

We use the results of [13] and denote by S∧ the set of all (probably empty) Scott open filters in a continuous semilattice S with zero except S itself. We order S∧ by inclusion, then S∧ is a continuous semilattice with the bottom element ∅.ThenS∧ can be regarded as [S →{0, 1}]0, i.e., its elements can be identified with the bottom-preserving meet- preserving Scott continuous maps S →{0, 1} (the preimages of {1} under such maps are precisely the non-trivial Scott open filters in S). For an arrow f : S1 → S2 in Sem0 the formula f ∧(F ) = f −1(F ), F ∈ S∧, determines the mapping f ∧ : S∧ → S∧,which 2 ∧ 2 1 is an arrow in Sem0 as well, hence the contravariant functor (−) in Sem0 is obtained. ∧ ∧∧ The assignment s →{F ∈ S | s ∈ F } is an isomorphism uS : S → S which is : → − ∧∧ − ∧ a component of a u 1Sem0 ( ) , hence the functor ( ) is involutive, i.e., is a self-duality. In fact it is a restriction of the Lawson duality [5]. We slightly change the terminology introduced in [13]:

Definition 1 Let S,S be continuous semilattices with bottom elements respectively 0, 0. A mapping P : S × S →{0, 1} is called a compatibility if: (1) P is meet preserving in the both variables, and P(0,y)= P(x,0) = 0forallx ∈ S, y ∈ S; (2) P is Scott continuous. If, additionally, the following holds: (3) P separates elements of S and of S, i.e.:  (3a) for each x1,x2 ∈ S,ifP(x1,y)= P(x2,y)for all y ∈ S ,thenx1 = x2;  (3b) for each y1,y2 ∈ S ,ifP(x,y1) = P(x,y2) for all x ∈ S,theny1 = y2; then we call P a separating compatibility.

The definition of (separating) compatibility is symmetric in the sense that the mapping P  : S × S →{0, 1}, P (y, x) = P(x,y) is a (separating) compatibility as well, which we call the reverse compatibility. For compatibilities we use also infix notation xPy ≡ P(x,y). We can consider a compatibility P : S × S →{0, 1} as a characteristic mapping of a binary relation P ⊂ S × S, hence it is natural to denote xP ={y ∈ S | xPy = 1}, Py ={x ∈ S | xPy = 1} for all x ∈ S, y ∈ S. We interpret P(x,y) = 1 as “pieces x and y of information are incompatible (cannot be valid simultaneously)”, hence probably a longer term “incompatibility” would be more adequate. Meet-preservation in the first argument means that if x1 and x2 are incompatible (cannot be valid together) with y,then“x1 or x2” is incompatible with y as well, similarly  for the second argument. A compatibility P : S ×S →{0, 1} is separating if for all x1 = x2 324 Order (2020) 37:319–339

 in S there is y ∈ S such that exactly one of xi is incompatible with y w.r.t. P , similarly   for y1 = y2 in S and x ∈ S. Then elements of S can be regarded as “negative statements” about state of the system observed at S :giveny ∈ S and a separating compatibility P ,we declare impossible all x ∈ S such that (x, y)P 1.

Example 3 Let L be a completely distributive lattice, then so is L˜ = Lop . The mapping P : L × Lop →{0, 1} defined as

0,y x, P(x,y) = 1,y x, is a separating compatibility.

The following statement from [13] is of crucial importance:

Proposition 1 Let S,S be continuous meet semilattices with bottom elements 0, 0 resp. If P : S × S →{0, 1} is a separating compatibility, then the mapping i that takes each x ∈ S to xP is an isomorphism S → S∧. Conversely, each isomorphism i : S → S∧ is determined by the above formula for a unique separating compatibility P : S ×S →{0, 1}.

In particular, this together with the above example implies that L∧ =∼ Lop for a completely distributive lattice L. For a fixed separating compatibility P : S × S →{0, 1} and subsets A ⊂ S, B ⊂ S, the sets ⊥  ⊥ A ={y ∈ S | xPy = 0forallx ∈ A},B={x ∈ S | xPy = 0forally ∈ B} will be called the transversals of A and B respectively. In other words, B⊥ is the set of all statements in S that are compatible with all “negative statements” from B ⊂ S, similarly for A⊥. Hence elements of S prevent or prohibit elements of S, and vice versa. Separation means that each element is uniquely determined with all the elements it prohibits. It is easy to see that A⊥ and B⊥ are Scott closed, and A⊥⊥ = (A⊥)⊥ is the Scott closure of A = ∅, i.e., the least Scott closed (hence lower) subset in S that contains A, similarly for B⊥⊥. Obviously the transversal operation (−)⊥ is antitone, i.e., A ⊂ B implies A⊥ ⊃ B⊥, and for a filtered family {Aα | α ∈ A} of closed lower sets the equality

⊥  = ⊥ Aα Cl Aα α∈A α∈A is valid. This implies

 ⊥  ⊥ = ⊥ = ⊥ Aα Cl Aα Aα . α∈A α∈A α∈A

4 Category of Ambiguous Representations

Definition 2 Let S1,S2 be continuous semilattices with zeros. An ambiguous representa- tion of S1 in S2 is a binary relation R ⊂ S1 × S2 such that     (a) if (x, y) ∈ R, x  x in S1,andy  y in S2,then(x ,y ) ∈ R as well; Order (2020) 37:319–339 325

(b) for all x ∈ S1 the set xR ={y ∈ S2 | (x, y) ∈ R} is non-empty and closed under directed sups in S2.

Observe that (a) implies (x, 02) ∈ R for all x ∈ S. It also implies that xR in (b) is a lower set, hence due to (b) is Scott closed. Thus we can rearrange the requirements as follows, obtaining an equivalent definition:

Definition 3 For continuous semilattices S1,S2 with zeros, a binary relation R ⊂ S1 × S2 is an ambiguous representation of S1 in S2 if  (a )forallx ∈ S1 the set xR ={y ∈ S2 | (x, y) ∈ R} is non-empty and Scott closed (i.e., a directed complete lower set).  (b )forally ∈ S2 the set Ry ={x ∈ S1 | (x, y) ∈ R} is an upper set.

We call such ambiguous representations crisp to distinguish them from L-fuzzy ambigu- ous representations that will be defined in the next section. Recall that, for an ambiguous representation R ⊂ S1×S2 andanelementx ∈ S1, the non- empty Scott closed set xR ⊂ S2 determines the normalized binary monotonic predicate mxR ∈ M[2]S2,

1,xRy, m (y) = y ∈ S . xR 0, ¬xRy, 2

The correspondence x → mxR, which we also denote with R, is isotone. Conversely, each isotone mapping R : S1 → M[2]S2 uniquely determines an ambiguous representation R ⊂ S1 × S2 as follows: xRy ⇐⇒ R(x)(y) = 1. Therefore in the sequel we can equiva- lently regard ambiguous representations either as relations or as isotone mappings. For each ambiguous representation R of S1 in S2 we use notation R : S1 ⇒ S2. We interpret xRy as “if x is true, then y can be (but not necessarily is) true” or “y is attainable from x”. Hence xR is the set of all y attainable from x (under R), and mxR is the binary monotonic predicate that selects all elements of S2 that can be true provided x ∈ S1 is true. ˆ ˆ Let separating compatibilities P1 : S1 × S1 →{0, 1}, P2 = S2 × S2 →{0, 1} be fixed.  ˆ ˆ For an ambiguous representation R : S1 ⇒ S2 define the relation R ⊂ S2 × S1 with the formula    ˆ ˆ R = (y,ˆ x)ˆ ∈ S2 ×S1 | if xP1xˆ = 1forsomex ∈ S1, then there is y ∈ xR, yP2yˆ = 1 , or, equivalently    ˆ ˆ R = (y,ˆ x)ˆ ∈ S2 ×S1 | if x ∈ S1 is such that yP2yˆ = 0forally ∈ xR,then xP1xˆ = 0 .

We explain why such definition has been chosen. If xRy and yPyˆ = 1, then yˆ is incom- patible with some “consequence” of x, hence yˆ excludes x. If all the elements x ∈ S1 ˆ incompatible with xˆ ∈ S1 are among those excluded by yˆ, then a “negative statement” xˆ can be considered a “consequence” of a “negative statement” yˆ, which we denote yRˆ xˆ. ˆ  ˆ ˆ ˆ It is easy to observe that 02R ={01}, because 02 ∈ S2 excludes nothing in S1, therefore ˆ ˆ ˆ 01 ∈ S1 is the only possible “consequence” of 02.  ˆ ˆ Obviously R is an ambiguous representation S2 ⇒ S1 as well, hence we can calculate    R = (R ) : S1 ⇒ S2 using the reverse (in fact the same) separating compatibilities again. 326 Order (2020) 37:319–339

 Proposition 2 For each ambiguous representation R ⊂ S1 × S2 the inclusion R ⊂ R  holds. The equality R = R is equivalent to the conditions     (c) if (x, y) ∈ R and y  y in S2, then there is x  x in S such that (x ,y ) ∈ R. (d) if (01,y)∈ R,theny = 02.

Proof Necessity of (d) has been already explained. Assume it holds. Observe the validity of the formula      ⊥ ⊥ yRˆ = x ∈ S1 yˆ ∈ (xR) . Thus        ˆ   ⊥ ⊥ ˆ  ⊥ ⊥⊥ ⊥ xR¯ = yˆ ∈ S2 x¯ ∈ (yRˆ ) = yˆ ∈ S2 x¯ ∈{x ∈ S1 |ˆy ∈ (xR) } . Taking into account ⊥ ⊥⊥ ⊥ x¯ ∈{x ∈ S1 |ˆy ∈ (xR) } ⇐ˆy ∈ (xR)¯ , we obtain    ˆ ⊥ ⊥ ⊥⊥ xR¯ ⊂ yˆ ∈ S2 |ˆy ∈ (xR)¯ = (xR)¯ =¯xR for all x¯ ∈ S1, which is the required inclusion. ⊥ The set {x ∈ S1 |ˆy ∈ (xR) } is lower, and by (d) is non-empty, therefore its double transversal is the closure, thus     ˆ  ⊥ ⊥ xR¯ = yˆ ∈ S2 x¯ ∈ Cl{x ∈ S1 |ˆy ∈ (xR) }    ˆ  ⊥ ⊥ = yˆ ∈ S2 yˆ ∈ (xR) for all x ¯x   ⊥ ⊥ = {(xR) | x ¯x} .

The family {{xR)⊥ | x ¯x} of closed lower sets is filtered, hence the transversal of its intersection equals     ⊥⊥ Cl {(xR) | x ¯x} = Cl {xR | x ¯x} ,  and the equality R = R is equivalent to   xR¯ = Cl {xR | x ¯x} , which in fact is the condition (c).   The equality R = R implies (R) = R, hence, if (c), (d) hold for R, then they hold for R as well. Therefore on such ambiguous representations the operation () is invo- lutive, and we call each of R and R the pseudo-inverse to the other one. The ambiguous representations satisfying (c), (d) are called pseudo-invertible.

Proposition 3 An ambiguous representation R ⊂ S1 × S2 is pseudo-invertible if and only if, when regarded as a mapping S1 → M[2]S2, it is Scott continuous and bottom-preserving.

= Proof Clearly (d) is equivalent to R(01) m{02},andm{02} is the least element of M[2]S2, thus (d) means that R is bottom-preserving. Let R be pseudo-invertible, hence satisfy (c). To show Scott continuity of R : S1 → = { |  } ∈ M[2]S2, it is sufficient to prove that R(x0) sup R(x) x x0 for all x0 S1,whichin fact means that x R = Cl( xR).Ify ∈ x R, then for all y  y by (c) there is x  0 xx0 0 0 0 Order (2020) 37:319–339 327  x such that xRy, hence y ∈ xR. Taking into account y ∈ Cl{y ∈ S | y  y }, 0  xx0 0 2 0 we obtain x R ⊂ Cl( xR). The reverse inclusion is immediate. 0 xx0 Now let R : S1 → M[2]S2 be Scott continuous, and x0Ry0. Then the of the directed net of binary monotonic predicates mxR, x  x0, i.e., their lowest upper bound, is equal to mx0R, hence   |  = = inf sup mxR(y) y y0 mx0R(y0) 1, xx0 i.e., for all y  y0 there is x  x0 such that mxR(y) = 1 ⇐⇒ xRy. Therefore (c) is valid, and, if (d) is valid as well, then R is pseudo-invertible.

One of the reasons to consider this subclass is that, if we compose ambiguous represen- tations as relations, i.e., for R ⊂ S1 × S2, Q ⊂ S2 × S3:

RQ ={(x, z) ∈ S1 × S3 | there is y ∈ S2 such that (x, y) ∈ R,(y,z) ∈ Q}, then the resulting relation can fail to satisfy closedness in the condition (b) of the definition of ambiguous representation, hence ambiguous representations do not form a category. To improve things, redefine the composition as

R;Q ={(x, z) ∈ S1 × S3 | z ∈ Cl(xRQ)}   ={(x, z) ∈ S1 × S3 | for all z  z there is y ∈ S2 such that (x, y)∈R,(y,z ) ∈ Q}. Now closedness is at hand, but the composition “;” is not associative.

Lemma 2 For all ambiguous representations R ⊂ S1 × S2, Q ⊂ S2 × S3 the inclusion Q;R ⊂ (R;Q) holds.

;    ˆ  Proof Since zQˆ R = Cl(zQ R ) for all zˆ ∈ S3,andz(Rˆ ;Q) is closed in S1,itis sufficient to prove QR ⊂ (R;Q).   ˆ   If (z,ˆ x)ˆ ∈ Q R , then choose yˆ ∈ S2 such that (z,ˆ y)ˆ ∈ Q and (y,ˆ x)ˆ ∈ R ,and combine

if xP1xˆ = 1forsomex ∈ S1, then there is y ∈ xR, yP2yˆ = 1,

if yP2yˆ = 1forsomey ∈ S2, then there is z ∈ yQ, zP3zˆ = 1 to obtain

if xP1xˆ = 1forsomex ∈ S1, then there is z ∈ xRQ, zP3zˆ = 1. Moreover the latter z belongs to xR;Q, hence (z,ˆ x)ˆ ∈ (R;Q).

Corollary 1 Let ambiguous representations R ⊂ S1×S2, Q ⊂ S2×S3 be pseudo-invertible. Then Q;R = (R;Q), and the composition R;Q is pseudo-invertible as well.

Proof By the above and taking into account that (−) is isotone: ;  ;    R;Q = R Q ⊂ (Q R ) ⊂ (R;Q) ,  and the reverse inclusion is known, hence R;Q = (R;Q) = (Q;R), i.e., R;Q is  pseudo-invertible. Apply (−) to this again and obtain (R;Q) = (Q;R) = Q;R. 328 Order (2020) 37:319–339

Proposition 4 Composition “;” of the pseudo-invertible ambiguous representations is associative.

Proof Recall that, for ambiguous representations R ⊂ S1 × S2, Q ⊂ S2 × S3, the compo- sition is calculated as   R;Q ={(x, z) ∈ S1 ×S3 | for all z  z there is y ∈ S2 such that (x, y) ∈ R,(y,z ) ∈ Q}. It is also important that, for elements a  c in a continuous semilattice, there is an element b such that a  b  c. Now, let (x, t) ∈ R;(Q;T).Foranyt  t choose t such that t  t  t, then there  is y ∈ S2 such that (x, y) ∈ R, (y, t ) ∈ Q;T . The latter implies that there is z ∈ S3 such that (y, z) ∈ Q, (z, t) ∈ T . Similarly, let (x, t) ∈ (R;Q);T , then for all t  t choose t  t  t,andthereis     z ∈ S3 such that (x, z ) ∈ R;Q, (z ,t ) ∈ T . Pseudo-invertibility of T implies the existence   of z  z such that (z, t ) ∈ T as well. There is also y ∈ S2, (x, y) ∈ R, (y, z) ∈ Q.  On the other hand, if, for x ∈ S1, t ∈ S4,elementsy ∈ S2, z ∈ S3 exist for all t  t such that (x, y) ∈ R, (y, z) ∈ Q, (z, t) ∈ T ,then(x, t) ∈ RQT , hence (x, t) ∈ R(Q;T) and (x, t) ∈ (R;Q)T , which in turn implies both (x, t) ∈ R;(Q;T)and (x, t) ∈ (R;Q);T . Thus R;(Q;T)= (R;Q);T .

It is easy to verify that, for a continuous semilattice S with zero, the relation ES = {(x, y) ∈ S × S | y  x} is a pseudo-invertible ambiguous representation that is a neutral element for composition. Thus:

Proposition 5 All continuous semilattices with bottom elements and all pseudo-invertible ambiguous representation form a category SemPR, which contain Sem0 as a subcategory.

An obvious embedding Sem0 → SemPR is of the form: IS = S for an object S,and If ={(x, y) ∈ S1 × S2 | y  f(x)} for an arrow f : S1 → S2. We denote an arrow R from S1 to S2 in SemPR with R : S1 ⇒ S2 and use for the com- position of R and Q the synonymic notations R;Q (in direct order) and Q ◦ R (in reverse order) both in Sem0 and SemPR.

Proposition 6 The correspondence (−) is an involutive contravariant functor (a self- ∧ duality) in SemPR, which is an extension of the functor (−) in Sem0.

5 Category of L-Fuzzy Ambiguous Representations

Now we extend the notion of ambiguous representation to lattice-valued relations in the spirit of [12]and[13].

Definition 4 Let S1,S2 be continuous semilattices with zeros 01 and 02 resp., L acom- pletely distributive lattice with a bottom element 0 and a top element 1. An L-fuzzy ambiguous representation (or an L-ambiguous representation for short) of S1 in S2 is a ternary relation R ⊂ S1 × S2 × L such that       (a) if (x, y, α) ∈ R, x  x in S1, y  y in S2,andα  α in L,then(x ,y ,α ) ∈ R as well; Order (2020) 37:319–339 329

(b) for all x ∈ S1 the set xR ={(y, α) ∈ S2 × L | (x, y, α) ∈ R} is Scott closed in S2 × L and contains all the elements of the forms (02,α)and (y, 0); (c) for all x ∈ S1, y ∈ S2, α, β ∈ L,if(x,y,α)∈ R, (x, y, β) ∈ R,then(x,y,α∨β) ∈ R.

The following definition is equivalent.

Definition 5 For continuous semilattices S1,S2 with zeros and a completely distributive lattice L, a ternary relation R ⊂ S1 × S2 × L is an L-ambiguous representation of S1 in S2 if  (a )forally ∈ S2, α ∈ L the set Ryα ={x ∈ S1 | (x, y, α) ∈ R} is an upper set in S1;  (b )forallx ∈ S1, α ∈ L the set xRα ={y ∈ S2 | (x, y, α) ∈ R} is non-empty and Scott closed in S2;  (c )forallx ∈ S1, y ∈ S2 the set xyR ={α ∈ L | (x, y, α) ∈ R} is non-empty, directed, and Scott closed in L.

Obviously, due to complete distributivity of L,(c) is equivalent to any of the following properties:  (c )forallx ∈ S1, y ∈ S2 the set xyR ={α ∈ L | (x, y, α) ∈ R} is a non-empty directed lower set such that, if β ∈ xyR for all β  α,thenα ∈ xyR;or  (c )forallx ∈ S1, y ∈ S2 the set xyR is a lower set with a greatest element (i.e., a set of the form {α}↓).  Fix x ∈ S1, then due to (c ) the formula

mxR(y) = max{α ∈ L | (x, y, α) ∈ R},y∈ S2, defines a normalized L-fuzzy monotonic predicate mxR ∈ M[L]S2, and the correspondence R that takes each x to mxR is an isotone mapping S1 → M[L]S2. On the other hand, similarly to the binary case, each isotone mapping R : S1 → M[L]S2 determines the L-ambiguous representation

R ={(x,y,α)∈ S1 × S2 × L | α  R(x)(y)}, and these conversions are mutually inverse. Hence we can equivalently regard L-ambiguous representations either as relations or as isotone mappings, whatever is more convenient. L An L-ambiguous representation of S1 in S2 is denoted with R : S1 ⇒ S2. In this paper we interpret (x,y,α)as “if x is true, then the truth value of y is at least α”or“givenx, y is attainable with degree of belief at least α”. By definition, for all x and y there is the greatest such α, which can also be treated as quality/precision of representation of one piece of information with another one.   Observe also that (a )+(b ) mean that, for all α ∈ L,thecutRα ={(x, y) ∈ S1 × S2 | (x, y, α) ∈ R} is a (crisp) ambiguous representation of S1 in S2 as defined in the previous section. We will call it the α-cut of R and denote Rα. ˆ ˆ We assume again that separating compatibilities P1 : S1 ×S1 →{0, 1}, P2 = S2 ×S2 → {0, 1} are fixed.  ˆ ˆ For an ambiguous representation R ⊂ S1 ×S2 ×L define the relation R ⊂ S2 ×S1 ×L through its α-cuts as follows:   =  = βα(Rβ ) ,α 0, (R )α ˆ ˆ S2 × S1,α= 0, 330 Order (2020) 37:319–339 or, equivalently, with the formulae   R = (y,ˆ x,α)ˆ ∈ Sˆ × Sˆ × L | β  α = xP xˆ = x ∈ S , 2 1 if 0and 1 1forsome 1 then there is (y, β) ∈ xR, yP2yˆ = 1 , or   R = (y,ˆ x)ˆ ∈ Sˆ × Sˆ × L | β  α = x ∈ S yP yˆ = 2 1 if 0and 1 is such that 2 0 for all (y, β) ∈ xR,then xP1xˆ = 0 . A shorter formula uses transversals:      ∈  ˆ ∈ ⊥ ⊥ = ˆ  = βα x S1 y (xRβ ) ,α 0, y(R )α ˆ S1,α= 0.

Proposition 7 The relation R is an L-ambiguous representation as well.

Proof For the intersection of crisp ambiguous representations is a crisp ambiguous repre-      sentation as well, (a )+(b )forR are immediate. To verify c , assume that β ∈ˆyxRˆ for  = ˆ ˆ ∈  all β α 0, i.e., (y,x) βα γ β (Rγ ) . In a completely distributive lattice L we    ˆ ˆ ∈  have γ α if and only if there is β such that γ β α, hence (y,x) γ α(Rγ ) , which implies α ∈ˆyxRˆ . Obviously yˆxRˆ  is a lower set that contains 0. Show that it is directed. If α, β ∈ˆyxRˆ , then for all γ  α ∨ β there are α  α, β  β such that γ  α ∨ β. Therefore   xˆ ∈ˆy(Rα ) ∩ˆy(Rβ )        ⊥ ⊥  ⊥ ⊥ = x ∈ S1 yˆ ∈ (xRα ) ∩ x ∈ S1 yˆ ∈ (xRβ )     ⊥ ⊥ ⊥ = x ∈ S1 yˆ ∈ (xRα ) or yˆ ∈ (xRβ )     ⊥ ⊥   ⊂ x ∈ S1 yˆ ∈ (xRα∨β ) =ˆy(Rα∨β ) ⊂ˆy(Rγ ) . Thus α ∨ β ∈ˆyxRˆ , and the latter set is directed in L.

   Hence R = (R ) ⊂ S1 × S2 × L is an L-ambiguous representation as well.

 Proposition 8 For each ambiguous representation R ⊂ S1 × S2 × L the inclusion R ⊂ R  holds. The equality R = R is equivalent to the conditions    (d) if (x, y, α) ∈ R, y  y in S2, and α  α in L, then there is x  x in S such that (x,y,α) ∈ R. (e) if (01,y,α)∈ R, α = 0,theny = 02.

Proof Necessity of (e) is an immediate corollary of the analogous property (d) for the pseudo-inverses of crisp ambiguous representations. Assume that (e) holds. Recall that ⎛ ⎞⊥          ⊥ ⊥ ⎝  ⊥ ⎠ y(Rˆ )β = x ∈ S1 yˆ ∈ (xRγ ) = x ∈ S1 yˆ ∈ (xRγ ) . γ β γ β Order (2020) 37:319–339 331

Hence     ˆ   ⊥ ⊥ x(R )α = yˆ ∈ S2 x ∈ (y(Rˆ )β ) βα        ⊥ ˆ     ⊥ ⊥⊥ = yˆ ∈ S2 x ∈ x ∈ S1 yˆ ∈ (x Rγ ) βα γ β (double transversal of the non-empty by (e) set is its Scott closure)       ⊥ ˆ     ⊥ = yˆ ∈ S2 x ∈ Cl x ∈ S1 yˆ ∈ (x Rγ ) βα γ β (Scott closure of a lower set A consists of all points approximated by elements of A)   ⊥ ˆ    ⊥ = yˆ ∈ S2 for all x  x there is γ  β such that yˆ ∈ (x Rγ ) βα   ⊥ ∗ ˆ    ⊥ = yˆ ∈ S2 for all x  x yˆ ∈ (x Rβ ) βα  ⊥⊥     ↓ ⊥⊥ = {x}↓Rβ ⊂ xRβ = xRβ = xRα, βα βα βα

 therefore R ⊂ R. Clarify why the “=” sign with an asterisk is valid. Obviously, if γ  β  ⊥  ⊥ ⊥ and yˆ ∈ (x Rγ ) ,thenyˆ ∈ (x Rβ ) ,and(−) is antitone, hence “⊃”isimmediate.On the other hand,

  ⊥ there is γ  β such that for all x  x yˆ ∈ (x Rγ )   ⊥ =⇒ for all x  x there is γ  β such that yˆ ∈ (x Rγ ) , hence

  ⊥ ˆ    ⊥ yˆ ∈ S2 for all x  x there is γ  β such that yˆ ∈ (x Rγ ) βα   ⊥ ˆ    ⊥ ⊂ yˆ ∈ S2 there is γ  β such that for all x  x yˆ ∈ (x Rγ ) βα   ⊥ ˆ    ⊥ = yˆ ∈ S2 for all x  x yˆ ∈ (x Rγ ) γ βα   ⊥ ˆ    ⊥ = yˆ ∈ S2 for all x  x yˆ ∈ (x Rγ ) , γ α therefore “⊂” (after renaming γ with β) is also obtained.  It is also clear that, for R = R to be valid, it is necessary and sufficient that the only “⊂” in the above sequence is “=”, i.e., each y ∈ xRα must be a closure point of all lower ↓ sets {x}↓Rβ for β  α, which in fact is (d). 332 Order (2020) 37:319–339

 The L-ambiguous representations R that satisfy R = R are also called pseudo- invertible. Similarly to the binary case:

Proposition 9 An L-ambiguous representation R ⊂ S1 × S2 ⊂ L is pseudo-invertible if and only if, when regarded as a mapping S1 → M[L]S2, it is Scott continuous and bottom- preserving.

Proof is also obtained mutatis mutandis.

To define composition of L-ambiguous representations, we need an additional operation ∗:L × L → L that makes L = (L, ∗) a unital quantale, i.e., this operation is infinitely distributive w.r.t. supremum in both variables (hence Scott continuous) and 1 is a two sided unit for “∗”. Note that commutativity is not demanded, hence from now on “∗” is a (possi- bly) noncommutative lower semicontinuous conjunction for an L-valued fuzzy logic [2, 7]. The operation α ∗ˆ β ≡ β ∗ α satisfies the same requirements, hence Lˆ = (L, ∗ˆ) is a unital quantale as well. Then, for L-ambiguous representations R ⊂ S1 × S2 × L and Q ⊂ S2 × S3 × L, the composition R ∗ Q can be defined in a manner usual for L-fuzzy relations:  R ∗ Q = (x,z,α)∈ S × S × L | 1 3  α  sup{β ∗ γ | there is y ∈ S3 such that (x, y, β) ∈ R,(y,z,γ) ∈ Q} . Similarly to the case of crisp ambiguous representations, this composition is associa- tive, but R ∗ Q can fail to be an L-ambiguous representation, namely (b) is not always ∗ valid. Therefore we “improve” the composition as follows: R ,Q ⊂ S1 × S3 × L is such ∗ that xR,Q = Cl(xR ∗ Q) for all x ∈ S1. Here is an expanded version of the latter ∗ definition: for x ∈ S1, z ∈ S3, α ∈ L we have (x, z, α) ∈ R ,Q if and only if for   all z  z, α  α there are n ∈ N, y1,...,yn ∈ S2, β1,γ1,...,βn,γn ∈ L such that   (x, y1,β1),...,(x,yn,βn) ∈ R, (y1,z,γ1),...,(yn,z,γn) ∈ Q,  β1 ∗ γ1 ∨···∨βn ∗ γn  α . The simplest operation “∗” that obviously satisfies the above conditions is the lattice meet “∧”. In this case for “,∗” we use the denotation “;”. For an L-ambiguous representation R we regard R as a Lˆ -ambiguous representation, and use “,∗ˆ” for the compositions of such representations.

Lemma 3 For all L-ambiguous representations R ⊂ S1 × S2 × L, Q ⊂ S2 × S3 × L ∗ˆ the inclusion Q, R ⊂ (R ,Q)∗  holds.

∗ˆ Proof Let (z,ˆ x,α)ˆ ∈ Q, R. For each α  α we can choose α such that α  α  α,  then for all xˆ ˆx there are n ∈ N, yˆ1,...,yˆn ∈ S2, γ1,β1,...,γn,βn ∈ L such that     (z,ˆ yˆ1,γ1),...,(z,ˆ yˆn,γn) ∈ Q ,(yˆ1, xˆ ,β1),...,(yˆn, xˆ ,βn) ∈ R ,  γ1 ∗ˆ β1 ∨···∨γn ∗ˆ βn = β1 ∗ γ1 ∨···∨βn ∗ γn  α . ∈ ˆ =     For all x S1 such that xP1x 1, and all β1 β1, ..., βn βn there are ∈   ∈ ˆ =···= ˆ = y1,...,yn S2 such that (x, y1,β1),...,(x,yn,βn) R, y1P2y1 ynP2yn 1.     ∈ Analogously, for all γ1 γ1, ..., γn γn there are z1,...,zn S3 such that Order (2020) 37:319–339 333

  ∈ ˆ = ··· = ˆ = (y1,z1,γ1),...,(yn,zn,γn) Q, z1P3z znP3z 1. Then the element = ∧···∧ ˆ =   ∈ z z1 zn satisfies zP3z 1and(y1,z,γ1),...,(yn,z,γn) Q as well.  ∗  ∨···∨  ∗  ∈ ∗ Obviously (x,z,β1 γ1 βn γn) R Q. Due to Scott continuity (i.e., lower ∗ ∨      ∗ semicontinuity) of and , we can choose the above β1,...,βn,γ1,...,γn so that β1  ∨···∨  ∗      ˆ ˆ ∈ ˆ ∈ γ1 βn γn α . Hence for all α α, x x, x S1, xP1x there is z S3 such  ∗ ∗  that zP3zˆ = 1, (x, z, α ) ∈ R ,Q, i.e., (z,ˆ x,α)ˆ ∈ (R ,Q) .

Mutatis mutandis we obtain an analogue of a statement for crisp ambiguous representa- tions:

Corollary 2 Let L-ambiguous representations R ⊂ S1×S2×L, Q ⊂ S2×S3×L be pseudo- ∗ˆ invertible. Then Q, R = (R ,Q)∗ , and the composition R ,Q∗ is pseudo-invertible as well.

Proposition 10 Composition “,∗” of the pseudo-invertible L-ambiguous representations is associative.

Proof is similar to the one for crisp representations and reduces to the observation that, for L-ambiguous representations R ⊂ S1 × S2 × L, Q ⊂ S2 × S3 × L, S ⊂ S3 × S4 × L, both statements (x, t, α) ∈ (R ,Q)∗ ,S∗ and (x, t, α) ∈ R ,(Q∗ ,S)∗ are equivalent to the exis-   tence, for all α  α and t  t,ofn ∈ N, y1,...,yn ∈ S2, z1,...,zn ∈ S3, β1,γ1,δ1,...,βn,γn,δn ∈ L such that

(x, y1,β1),...,(x,yn,βn) ∈ R, (y1,z1,γ1),...,(yn,zn,γn) ∈ Q,    (z1,t ,δ1),...,(zn,t ,δn) ∈ S, β1 ∗ γ1 ∗ δ1 ∨···∨βn ∗ γn ∗ δn  α .

Hence we obtain a category:

Proposition 11 All continuous semilattices with bottom elements and all pseudo-invertible S PR∗ S PR L-ambiguous representations form a category em L, which contains em as a subcategory.

∗ : S PR → S PR∗ The embedding IL em em L preserves the objects and turns each crisp ambiguous representation R ⊂ S1 × S2 into an L-ambiguous one as follows: ∗ ={ ⊂ × × | ∈ = } ILR (x, y, α) S1 S2 L (x, y) R or α 0 . ∗ˆ : S PR → S PR∗ˆ Clearly there is also the embedding IL em em L into the category built upon the “swapped” operation “∗ˆ”. : ⇒∗ S PR∗ We denote an arrow R from S1 to S2 with R S1 S2 in em L and with : ⇒∗ˆ S PR∗ˆ ∗ R S1 S2 in em L. The composition of R and Q is denoted by R ,Q (in direct  S PR∗ ∗ˆ ˆ order) or Q R (in reverse order) in em L, and by R ,Q or Q R respectively in S PR∗ˆ em L.

Proposition 12 The self-duality (−) : SemPR → SemPR extends to contravariant −  : S PR∗ → S PR∗ˆ −  : S PR∗ˆ → S PR∗ ( ) em L em L and ( ) em L em L.Both pairwise compositions of these functors are isomorphic to the identity functors.

−  S PR∗ S PR∗ˆ Hence ( ) is a “contravariant equivalence” between em L and em L. 334 Order (2020) 37:319–339

6 Ambiguous Representations as Affine Operators and Predicate Transformers

Observe that compositions of (crisp or L-fuzzy) ambiguous representations were calculated only for their “relational” forms, but not for them given as isotone mappings. Interpretation of “slicewise defined” pseudo-inverses to L-ambiguous representations is also unclear. To fill this gap, we briefly present results of [14] and show the connection with the developed theory. Recall that we treat ∗ as a (possibly noncommutative) conjunction in an L-valued fuzzy logic, and ⊕=∨will be a disjunction. The Boolean case is obtained for L ={0, 1} and ∗=∧. A (left idempotent) (L, ⊕, ∗)-semimodule [1](orL-semimodule for short if the oper- ations ⊕ and ∗ are clearly understood) is a set X with operations ⊕:¯ X × X → X and ∗:¯ L × X → X such that for all x,y,z ∈ X, α, β ∈ L : (1) x ⊕¯ y = y ⊕¯ x; (2) (x ⊕¯ y) ⊕¯ z = x ⊕¯ (y ⊕¯ z); (3) there is an (obviously unique) element 0¯ ∈ X such that x ⊕¯ 0¯ = x for all x; (4) α ∗¯ (x ⊕¯ y) = (α ∗¯ x) ⊕¯ (α ∗¯ y), (α ⊕ β) ∗¯ x = (α ∗¯ x) ⊕¯ (β ∗¯ x); (5) (α ∗ β) ∗¯ x = α ∗¯ (β ∗¯ x); (6) 1 ∗¯ x = x;and (7) 0 ∗¯ x = 0.¯ Observe that these axioms imply that (X, ⊕¯ ) is an upper semilattice with a bottom element 0,¯ the order is defined as x  y ⇐⇒ x ⊕¯ y = y,andα∗¯ 0¯ = 0forall¯ α ∈ L. The operation ∗¯ is isotone in both variables. Hence an (L, ⊕, ∗)-semimodule is an analogue of a . Similarly, analogues exist for linear and affine mappings. A mapping f : X → Y between (L, ⊕, ∗)- semimodules is called linear if, for all x1,...,xn ∈ X and α1,...,αn ∈ L,the equality ¯ ¯ ¯ ¯ f(α1 ∗¯ x1 ⊕ ...⊕ αn ∗¯ xn) = α1 ∗¯ f(x1) ⊕ ...⊕ αn ∗¯ f(xn) is valid. If the latter equality is ensured only whenever α1 ⊕ ...⊕ αn = 1, then f is called ¯ ¯ affine. Observe that an affine mapping f preserves joins, i.e. f(x1 ⊕ x2) = f(x1) ⊕ f(x2) for all x1,x2 ∈ X. An affine mapping is linear if and only if it preserves the least element. We call a triple (X, ⊕¯ , ∗¯) a continuous (L, ⊕, ∗)-semimodule if (X, ⊕¯ , ∗¯) is an (L, ⊕, ∗)-semimodule such that (X, ⊕¯ ) is a domain (therefore is a complete lattice), and ∗¯ is infinitely distributive w.r.t. supremum in the both variables (hence is Scott continuous). Observe that such (X, ⊕¯ ) has a least element, a greatest element, and suprema for all sub- sets, therefore is a continuous lattice. If the poset (X, ⊕¯ ) is a completely distributive lattice, then we call (X, ⊕¯ , ∗¯) a completely distributive (L, ⊕, ∗)-semimodule. ¯ ¯ It was proved [14] that, for a domain D with a bottom element, (M[L]D,⊕, ) is a completely distributive (L, ⊕, ∗)-semimodule with the operations   (m ⊕¯ m )(b) = m(b) ⊕ m (b), b ∈ D,

(α ¯ m)(b) = inf{α ∗ m(a) | a ∈ D,a  b},b= 0; (α ¯ m)(b) = α ∈ L, a ∈ D. 1,b= 0, For an element d0 ∈ D,wedenotebyη[L]D(d0) the function D → L that sends each d ∈ D to 1 if d  d0 and to 0 otherwise. It is easy to see that η[L]D(d0) ∈ M[L]D,andη[L]D(0) is a least element of M[L]D. It follows from [16, Lemma 1.1] that the mapping η[L]D : D → M[L]D is Scott continuous and lower continuous. Moreover, if D is a continuous semilattice Order (2020) 37:319–339 335 with zero, then η[L]D is a zero-preserving semilattice morphism, hence we consider D as a subset of M[L]D.

Proposition 13 ([14], 1.3) For each Scott continuous mapping ϕ : D → K from a domain with a bottom element to a continuous L-semimodule there is a unique Scott continuous affine extension Φ : M[L]D → K. It is linear if and only if ϕ preserves the bottom element.

The required extension is determined by the formula Φ(m) = sup{m(d) ∗¯ ϕ(d) | d ∈ D} for all m ∈ M[L]D. This means that M[L]D is a free object in the category (L, ⊕, ∗)-CSMod↑ of continu- ous L-semimodules and Scott continuous linear mappings over an object D of the category Dom↑ of domains with bottom elements and their Scott continuous bottom-preserving mappings. An immediate corollary (cf. [14], proof of Proposition 2.3) is that, for domains D1, D2 with bottom elements, each Scott continuous linear mapping Φ : M[L]D1 → M[L]D2 is uniquely determined with its restriction ϕ : D1 → M[L]D2, i.e., with the composition = ◦ ϕ Φ η[L]D1 . Recall that, for continuous semilattices S1, S2 with zeros, a Scott continuous bottom-preserving mapping S1 → M[L]S2 is precisely a pseudo-invertible L-ambiguous representation.

∗ Proposition 14 Let, for pseudo-invertible L-ambiguous representations ϕ : S1 ⇒ S2 ∗ and ψ : S2 ⇒ S3, Φ : M[L]S1 → M[L]S2 and Ψ : M[L]S2 → M[L]S3 be the Scott  S PR∗ continuous linear extensions. Then the composition ψ ϕ in em L is the restriction of Ψ ◦ Φ : M[L]S1 → M[L]S3.

Proof It is sufficient to verify that Ψ ◦ ϕ : S1 → M[L]S3 coincides with ψ  ϕ.Forall x ∈ S1 ¯ Ψ ◦ ϕ(x) = sup{ϕ(x)(y)  ψ(y) | y ∈ S2}, hence for all z ∈ S \{0 } 3 3     (Ψ ◦ ϕ(x))(z) = {(ϕ(x)(y) ¯ ψ(y))(z ) | y ∈ S }  z  z infsup 2           = inf sup inf{ϕ(x)(y) ∗ ψ(y)(z ) | z  z } y ∈ S2 z  z . Observe that inf{ϕ(x)(y) ∗ ψ(y)(z) | z  z}  ϕ(x)(y) ∗ ψ(y)(z), hence           inf sup inf{ϕ(x)(y) ∗ ψ(y)(z ) | z  z }  y ∈ S  z  z    2    inf sup{ϕ(x)(y) ∗ ψ(y)(z ) | y ∈ S }  z  z  2      = inf sup{ϕ(x)(y) ∗ ψ(y)(z ) | y ∈ S2} z  z (in the last line we just rename z with z.) On the other hand, for all z  z in a continuous semilattice there is z such that z  z  z,forwhich     ϕ(x)(y) ∗ ψ(y)(z )  inf{ϕ(x)(y) ∗ ψ(y)(z ) | z  z }, hence      inf sup{ϕ(x)(y) ∗ ψ(y)(z ) | y ∈ S }  z  z   2            inf sup inf{ϕ(x)(y) ∗ ψ(y)(z ) | z  z } y ∈ S2 z  z . 336 Order (2020) 37:319–339

Thus we obtain for all z ∈ S3 \{03}       (Ψ ◦ ϕ(x))(z) = inf sup{ϕ(x)(y) ∗ ψ(y)(z ) | y ∈ S2} z  z , therefore (Ψ ◦ ϕ(x))(z)  α ∈ L if and only if for all z  z and α  α we have   α  sup{ϕ(x)(y) ∗ ψ(y)(z ) | y ∈ S2}. As the least upper bound of a set A in L is the limit of the directed net of the least upper bounds of the finite subsets of A, the latter condition is   equivalent to existence, for all α  α and z  z,ofy1,y2,...,yn ∈ S2 such that     ϕ(x)(y1) ∗ ψ(y1)(z ) ∨ ϕ(x)(y2) ∗ ψ(y2)(z ) ∨···∨ϕ(x)(yn) ∗ ψ(yn)(z )  α . Recall that (x, z, α) ∈ ψ ¯ ϕ if and only if for all z  z, α  α there are n ∈ N, y1,...,yn ∈ S2, β1,γ1,...,βn,γn ∈ L such that   (x, y1,β1), . . . , (x, yn,βn) ∈ ϕ, (y1,z,γ1),...,(yn,z,γn) ∈ ψ,  β1 ∗ γ1 ∨···∨βn ∗ γn  α . Clearly (Ψ ◦ϕ(x))(z)  α if and only if (x, z, α) ∈ ψ ¯ ϕ, and the proof is complete.

Thus we arrive at:

Proposition 15 The correspondence that assigns M[L]S to each continuous semilattice S and the unique Scott continuous linear extension M[L]S1 → M[L]S2 to each Scott con- 1 tinuous bottom-preserving mapping S1  M[L]S2 is a functor that embeds the category S PR∗ ⊕ ∗ CSM em L into the category (L, , )- od↑ of continuous L-semimodules as a full subcategory.

In fact the latter subcategory is the Kleisli category for the respective [10], but we will not go into detail here. Now it is obvious how to compose L-ambiguous represen- tation in “functional” form: first extend them to linear mappings of free semimodules, then compose in (L, ⊕, ∗)-CSMod↑, and, finally, restrict back to semigroups. Now it is time to present practical sense of the constructed extensions, following [16]. For a domain of computation D, we treat each mapping m : D → L as “it is known that, for each d ∈ D, its truth value is (or can be) at least m(d)”. Similarly, an arbitrary mapping : →  ∈ ∈  ϕ D M[L]D is interpreted as “if a D is true, then the truth value of each b D is at least ϕ(a)(b)”. Note that ϕ(a)(b) is implicitly considered as a “conditional” truth value, i.e., if a is “partially true” at a degree  α,thenb is true at least at a degree α ∗ ϕ(a)(b). Hence, such a ϕ is an L-fuzzy state transformer.Foragivenϕ, we say that m : D → L is a precondition and m : D → L is a postcondition for each other w.r.t. ϕ, if, for all a ∈ D and b ∈ D, the “guaranteed” truth value m(b) is greater or equal to m(a) ∗ ϕ(a)(b), i.e., to the result of modus ponens. Obviously, for an antitone function m : D → L, its strongest (least) postcondition Φ(m)  in M[L]D is determined by the equality        Φ(m)(b) = inf sup{m(a) ∗ ϕ(a)(b ) | a ∈ D}|b ∈ D ,b  b ,b ∈ D . The same formula is valid also for normalized predicates, and it is easy to observe that the strongest postcondition predicate transformer Φ is exactly the unique linear Scott continuous extension of the state transformer ϕ.

1 ∗ I.e., to each pseudo-invertible L-ambiguous representation S1 ⇒ S2. Order (2020) 37:319–339 337

7 Pseudo-Inverses as Hermitian Conjugates

To clarify what the pseudo-inverse to an ambiguous representation is, we use a “scalar-like” product of monotonic predicates, which was introduced in [14]. Let S be a continuous semilattice with bottom elements, and P : S × S →{0, 1} be ˆ a separating compatibility. We regard M[L]S as a continuous L-semimodule and M[L]S as a continuous Lˆ -semimodule, where Lˆ is L with the “swapped” multiplication. For monotonic predicates m : S → L, m : S → L let

 ∗ = ·  = { ∗  ∗   | ∈  ∈ } (m, m )P m m sup m(d) P(d,d ) m (d ) d S,d S .

We use the second notation if P and ∗ are easily guessed. It was proved that the intro- duced multiplication is infinitely distributive w.r.t. joins and uniform in the both arguments.  Moreover, by Proposition 2.2 [14] M[L]S and M[L]S , together with the multiplication ∗  (−, −) : M[L]S × M[L]S → L, constitute a dual pair [6], i.e., the multiplication separates P  elements, both of M[L]S and of M[L]S , in the obvious sense. If to incompatible s ∈ S, s ∈ S monotonic predicates m and m assign truth values m(s) and m(s) with non-zero conjunction m(s)∗m(s), then the predicates are also incompatible  ∗ to this extent. The product (m, m )P is precisely the supremum of such “incompatibilities” m(s) ∗ m(s),forsPs = 1, hence it can be regarded as a measure of total incompatibility of m and m. The following notion was also introduced in [14]. Assume that K1,K2 are L-   ˆ ·: ×  → ·: × semimodules, K1,K2 are L-semimodules, multiplications K1 K1 L and K2  →   : → K2 L are such that K1,K1 and K2,K2 are dual pairs, and A K1 K2 is a linear  :  →  mapping. It is natural to call a linear mapping A K2 K1 the (Hermitian) conjugate to ·  = ·   ∈ ∈  A if Aa a a A a whenever a K1, a K2. The separation property implies that, if a conjugate for a given A exists, it is unique. Hence we write A = A∗ in this case, and obviously A∗∗ = A. It is also immediate that, for the composition A ◦ B of linear mappings with conjugates A∗ and B∗, respectively, a conjugate exists and is equal to B∗ ◦ A∗.

Proposition 16 ([14], 2.3) Let S1, S2 be continuous semilattices with bottom elements. For each Scott continuous linear mapping Φ : M[L]S1 → M[L]S2 there is a Scott continuous  : ∧ → ∧ conjugate Φ M[L]S2 M[L]S1 .

Recall that Φ and Φ are the unique Scott continuous linear extensions of L-ambiguous : →  : ∧ → ∧ pseudo-invertible representations ϕ S1 M[L]S2 and ϕ S2 M[L]S1 .Givenϕ, one can calculate ϕ as follows:     ϕ (y)(ˆ x)ˆ = inf sup{ϕ(x)(y) | y ∈ˆy}  x ∈ˆx , or, in terms of compatibilities:      ϕ (y)(ˆ x)ˆ = inf sup{ϕ(x)(y) | y ∈ S2,yP2yˆ = 1} x ∈ S1,xP1xˆ = 1 .

 Hence ϕ (y)(ˆ x)ˆ  α = 0 if and only if for all x ∈ S1 such that xP1xˆ = 1andforall β  α there are y1,y2,...,yn ∈ S2 such that y1P2yˆ = y2P2yˆ =···=ynP2yˆ = 1and

ϕ(x)(y1) ∨ ϕ(x)(y2) ∨···∨ϕ(x)(yn)  β.

Then for y = y1 ∨ y2 ∨···∨yn we have yP2yˆ = 1andϕ(x)(y)  β. 338 Order (2020) 37:319–339

 Thus ϕ (y)(ˆ x)ˆ  α if and only if for all x ∈ S1 such that xP1xˆ = 1andforallβ  α there is y ∈ S2 such that yP2yˆ = 1andϕ(x)(y  β. This exactly means that (y,ˆ x,α)ˆ ∈ ϕ, hence ϕ = ϕ. We arrive at a conclusion:

Proposition 17 If a mapping Φ : M[L]S1 → M[L]S2 is the Scott continuous linear ∗ extension of a pseudo-invertible L-ambiguous representation ϕ : S1 ⇒ S2, then the con-  : ∧ → ∧ jugate mapping Φ M[L]S2 M[L]S1 is the Scott continuous linear extension of  : ∧ ⇒∗ˆ ˆ∧ the pseudo-inverse L-ambiguous representation ϕ S2 S1 .

8 Concluding Remarks and Future Work

What we proposed is just a sketch of application of crisp and L-fuzzy ambiguous represen- tations of continuous semillattices. It is easy to note that properties of SemPR are similar { } S PR∗ to ones of dialogue category, with 0, 1 being a tensorial pole, and the pair em L, S PR∗ˆ em L looks like a dialogue chirality [11]. Than taking pseudo-inverse could be tenso- rial negation. Unfortunately, it is not the case, e.g., {0, 1} is not exponentiable in SemPR, S PR∗ S PR∗ˆ similarly verification fails for em L and em L. Nevertheless, the similarity is not incidental, and we plan to continue this research to model games in normal and extended form, winning strategies etc. We are also going to show why completely distributive lattices arise in games with imperfect information. Authors also express deepest gratitude to Prof. Michael Zarichnyi for valuable ideas.

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 Inter- national License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

References

1. Akian, M.: Densities of invariant measures and large deviations. Trans. Amer. Math. Soc. 351(11), 4515– 4543 (1999) 2. Bergmann, M.: Introduction to many-valued and fuzzy logic: Semantics, algebras, and derivation systems. Cambridge University Press, New York (2008) 3. Edalat, A.: Domains for computation in mathematics, physics and exact real arithmetic. Bull. Symb. Logic 3(4), 401–452 (1997) 4. Erne,´ M.: Z-distributive function spaces preprint (1998) 5. Gierz, G., Hofmann, K.H., Keimel, K., Lawson, J.D., Mislove, M., Scott, D.S., Lattices, C.ontinuous.: Domains encyclopedia of mathematics and its applications, vol. 93. Cambridge University Press, New York (2003) 6. Cohen, G., Gaubert, S., Quadrat J.-P.: Duality and separation theorems in idempotent semimodules. arXiv:0212294v2 [math.FA], 29 (2003) 7. Hajek,´ P.: Fuzzy logics with noncommutative conjuctions. J. Logic Computation 13(4), 469–479 (2003) 8. Heckmann, R., Huth, M.: A duality theory for quantitative semantics. In: Proceedings of the 11th Interna- tional Workshop on Computer Science Logic, vol. 1414 of Lecture Notes in Computer Science. Springer Verlag, 255–274 (1998) 9. Johnstone, P.T.: Stone spaces Cambridge studies in advanced mathematics, vol. 3. Cambridge University Press, New York (1983) 10. Mac Lane, S. Categories for the Working Mathematician, 2nd edn. Springer, New York (1998) 11. Mellies,` P.-A.: Dialogue categories and chiralities. Publ. Res. Inst. Math. Sci. 52(4), 359–412 (2016) 12. Nykyforchyn, O.R.: Capacities with values in compact Hausdorff lattices. Appl. Categ. Struct. 15(3), 243–257 (2008) Order (2020) 37:319–339 339

13. Nykyforchyn, O., Mykytsey, O.: Conjugate measures on semilattices. Visnyk Lviv Univ. 72, 221–231 (2010) 14. Nykyforchyn, O., Mykytsey, O.: L-idempotent linear operators between predicate semimodules, dual pairs and conjugate operator. Mathematical Bulletin of the Shevchenko Scientific Society 8, 299–314 (2011) 15. Nykyforchyn, O., Repovs,ˇ D.: Ambiguous representations as fuzzy relations between sets. Fuzzy Set. Syst. 173, 25–44 (2011) 16. Nykyforchyn, O.R., Repovs,ˇ D.: L-fuzzy strongest postcondition predicate transformers as L-idempotent linear or affine operators between semimodules of monotonic predicates. Fuzzy Set. Syst. 208, 67–78 (2012) 17. Scott, D.S.Nielsen, M., Schmidt, E.M. (eds.): Domains for denotational semantics. Springer, Berlin (1982)

Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.