<p>This is not a complete answer, but it's too long to be a comment.</p>

<p>I think I found an example for which the bound $\lceil \log_2 N_X \rceil$ is not tight.</p>

<p>Consider the following poset.  The ground set is $X=\{a_1, a_2, b_1, b_2\}$, and $a_i$ is smaller than $b_j$ for all $i,j\in\{1,2\}$. The other pairs are incomparable.  (The Hasse diagram is a $4$-cycle).</p>

<p>Let me identify the monotone properties with the upsets of the poset.  This poset has seven upsets: $\emptyset$, $\{b_1\}$, $\{b_2\}$, $\{b_1,b_2\}$, $\{a_1,b_1,b_2\}$, $\{a_2,b_1,b_2\}$, $\{a_1,a_2,b_1,b_2\}$, and this poset has seven antichains since the antichains are in one-to-one correspondence with the upsets.  So, $\lceil \log_2 N_X \rceil=\lceil \log_2 7 \rceil = 3$ for this poset.</p>

<p>Now, by adversary argument I'll show that any strategy needs at least four queries (so needs to query all elements).  Let's fix an arbitrary strategy.</p>

<p>If the strategy first queries $a_1$, then the adversary answers "$P(a_1)$ doesn't hold."  Then, we are left with five possibilities: $\emptyset$, $\{b_1\}$, $\{b_2\}$, $\{b_1,b_2\}$, $\{a_2,b_1,b_2\}$.  Thus, to determine which is the case, we need at least $\lceil \log_2 5\rceil = 3$ more queries.  In total, we need four queries.  The same argument applies if the first query is $a_2$.</p>

<p>If the strategy first queries $b_1$, then the adversary answers "$P(b_1)$ holds."  Then, we are left with five possibilities: $\{b_1\}$, $\{b_1,b_2\}$, $\{a_1,b_1,b_2\}$, $\{a_2,b_1,b_2\}$, $\{a_1,a_2,b_1,b_2\}$.  Therefore, we need at least three more queries as before.  In total, we need four queries.  The same argument applies when the first query is $b_2$.</p>

<p>If we take $k$ parallel copies of this poset, then it has $7^k$ antichains, and thus the proposed bound is $\lceil \log_2 7^k \rceil = 3k$. But, since each of the copies needs four queries, we need at least $4k$ queries.</p>

<p>Probably, there is a larger poset with larger gap.  But this argument can only improve the coefficient.</p>

<p>Here, the problem looks to be a situation where no query partitions the search space evenly.  In such a case, the adversary can force the larger half to remain.</p>

CC BY-SA 3.0
2013-01-29T13:24:19.923Z
Ah, interesting. Generalizing your example to $X = \{a_1, ..., a_n, b_1, ..., b_n\}$, it's clear that if the answer is $\forall i, \neg P(a_i)$ and $\forall i, P(b_i)$ then we won't know it for sure until all $2n$ nodes are queried. However, there are $2^{n+1} - 1$ antichains ($2^n-1$ non-empty subsets of $a_i$'s, idem for $b_i$'s, and the empty set), so the bound is not tight by a factor of 2. Thanks for this example. However, I don't really see how/if the gap could be more than a multiplicative factor, or if a non-trivial upper bound can be found, let alone an algorithm for an exact answer.
Antoine Amarilli 'a3nm'
CC BY-SA 3.0
2013-01-29T06:31:28.983Z
2013-01-29T11:39:10.410Z
2013-01-29T11:39:10.410Z
Yoshio Okamoto
<p>For the Boolean n-cube $(\{0, 1\}^n, \leq)$ (or, equivalently, for the poset $(2^S, \subseteq)$ of all subsets of an n-element set), the answer is given by Korobkov and Hansel's theorems (from 1963 and 1966, respectively). Hansel's theorem [1] states that an unknown monotone Boolean function (i.e., an unknown monotone predicate on this poset) can be learned by a deterministic algorithm making at most $\phi(n) = \binom{n}{\lfloor n/2 \rfloor} + \binom{n}{\lfloor n/2 \rfloor + 1}$ queries (that is, asking $\phi(n)$ questions in the worst case). This algorithm matches the lower bound of Korobkov's theorem [2], which says that $\phi(n) - 1$ queries do not suffice. (So Hansel's algorithm is optimal in the worst-case setting.) An algorithm in both statements is understood as a deterministic decision tree.</p>

<p>The logarithm of the number of antichains in $(\{0, 1\}^n, \le)$ is asymptotically equal to $\binom{n}{\lfloor n/2 \rfloor} \sim 2^n / \sqrt{\pi n / 2}$, so there is a constant-factor gap between $\log N_X$ and the optimal algorithm performance $\phi(n) \sim 2 \binom{n}{\lfloor n/2 \rfloor}$ for this poset.</p>

<p>Unfortunately, I have not been able to find a good treatment of Hansel's algorithm in English available on the web. It is based on a lemma that partitions the n-cube into
$\phi(n)$ chains with special properties. Some description can be found in [3]. For the lower bound, I don't know any reference to a description in English.</p>

<p>Since I am familiar with these results, I can post a description on arXiv, if the treatment in Kovalerchuk's paper does not suffice.</p>

<p>If am not much mistaken, there have been attempts to generalize Hansel's approach, at least to the poset $(E_k^n, \le)$, where $(E_k, \le)$ is a chain $0 &lt; 1 &lt; \ldots &lt; k - 1$, although I cannot give any reference straight away. For the Boolean case, people have also investigated notions of complexity other than worst-case for this problem.</p>

<p>[1] G. Hansel, Sur le nombre des fonctions booléennes monotones de n variables. C. R. Acad. Sci. Paris, 262(20), 1088-1090 (1966)</p>

<p>[2] V. K. Korobkov. Estimation of the number of monotonic functions of the algebra of logic and of the complexity of the algorithm for finding the resolvent set for an arbitrary monotonic function of the algebra of logic. Soviet Math. Doklady 4, 753-756 (1963) (translation from Russian)</p>

<p>[3] B. Kovalerchuk, E. Triantaphyllou, A. S. Deshpande, E. Vityaev. Interactive learning of monotone Boolean functions. Information Sciences 94(1), 87-118 (1996) (<a href="http://bit.csc.lsu.edu/trianta/Journal_PAPERS1/InteractLearnMonotBooleanFunctionsByTrianta1.pdf">link</a>)</p>

CC BY-SA 3.0
2013-02-07T12:24:42.243Z
Thanks a lot for this detailed answer! For the Boolean $n$-cube, cf <http://cstheory.stackexchange.com/q/14772>. I can read French but couldn't find Hansel's paper (should have been available on Gallica but this issue seems to be missing), I found relevant info in Sokolov, N.A. (1982), "On the Optimal Evaluation of Monotonic Boolean Functions", USSR Comput Math Math Phys, Vol 22, No 2, 207-220 (English translation exists). I'm interested about generalizations to other DAGs if you can find refs. Don't hesitate to reply by email (a3nm AT a3nm DOT net) if length limit is a problem. Thanks again!
Antoine Amarilli 'a3nm'
CC BY-SA 3.0
2013-02-07T13:16:51.590Z
You are welcome! Unfortunately, I do not know how to bound the algorithm running time in terms of output size. Korobkov's proof of the lower bound, for instance, does not give an answer to that question. However, I feel there may be a reference that is slightly relevant. I'll try to find some time time over the weekend and look for generalizations as well. At the same time, I'm not sure whether a closed English description of the Boolean case (these two theorems) is worth writing...
dd1
CC BY-SA 3.0
2013-02-07T16:15:59.373Z
@a3nm maybe the DAG case hasnt been considered in the literature? could it be harder than the boolean n-cube ordered by inclusion?
vzn
CC BY-SA 3.0
2013-02-07T16:25:59.493Z
@vzn I guess that at least some of the questions here are bound to be open. Even for a chain, it is not immediately clear how to generalize Hansel's algorithm.
dd1
CC BY-SA 3.0
2013-02-07T16:52:06.663Z
@a3nm it all seems to be similar to finding lower bounds/minimal monotone circuits (sizes) but havent seen it clearly linked so far...
vzn
CC BY-SA 3.0
2013-02-07T17:22:31.657Z
@vzn Could you explain the connection more clearly?
dd1
CC BY-SA 3.0
2013-02-07T18:27:24.997Z
@a3nm, ddl, not sure myself, but feel like (new?) bridge thm(s) lie nearby. a start: a monotone predicate P is equivalent to (or can be represented by) a monotone circuit (DAG). moreover determining P via queries is very likely going to take longer the more complex the circuit, right? people are answering a3nms questions with refs that are referring to dualization which has strong connections to monotone circuit theory. also a3nm keeps asking about DAGs (much like circuits). maybe something to discuss at extended length in [chat?](http://chat.stackexchange.com/rooms/6870/monotone-circuits)
vzn
CC BY-SA 3.0
2013-02-07T12:01:42.723Z
2013-02-07T12:01:42.723Z
dd1
<p>[<strong>NOTE:</strong> The following argument doesn't seem to work, but I'm leaving it here so others don't make the same mistake / in case someone can fix it. The issue is that an exponential lower bound on learning/identifying a monotone function, as below, does not necessarily contradict an <em>incrementally</em> polynomial algorithm for the problem. And it is the latter which is equivalent to checking the mutual duality of two monotone functions in poly time.] </p>

<p>I believe your conjecture on $\log N_X$ is false in general. If it is indeed the case that $\log N_X$ queries are needed, that implies quite a strong lower bound on <a href="https://cstheory.stackexchange.com/a/14780/129">learning monotone functions using membership queries</a>. In particular, let the poset $X$ be the Boolean cube with the usual ordering (if you like, $X$ is the powerset of $\{1,...,n\}$ with $\subseteq$ as its partial order). The number $M$ of maximal antichains in $X$ satisfies $\log M = (1 + o(1))\binom{n-1}{\lfloor n/2 \rfloor}$ [1]. If your idea on $\log N_X$ is correct, then there is some monotone predicate on $X$ that requires essentially $\binom{n-1}{n/2} \approx 2^n$ queries. In particular, this implies a lower bound of essentially $2^n$ for the complexity of any algorithm solving this problem. </p>

<p>However, if I've understood correctly [<strong>which I now know I hadn't</strong>], your problem is equivalent to checking the mutual duality of two monotone functions, which can be done in quasi-polynomial time (see the intro of <a href="http://dx.doi.org/10.1006/inco.1995.1157" rel="nofollow noreferrer">this paper by Bioch and Ibaraki</a>, which cites Fredman and Khachiyan), contradicting anything close to a $2^n$ lower bound.</p>

<p>[1] Liviu Ilinca and Jeff Kahn. <a href="http://arxiv.org/abs/1202.4427" rel="nofollow noreferrer">Counting maximal antichains and independent sets</a>. arXiv:1202.4427</p>

CC BY-SA 3.0
2013-01-28T23:46:48.813Z
Josh, I don't see a problem with the $\log N_X$ argument. my understanding is that it is open whether a monotone function can be learned in time polynomial in $n$ *and* the number of minimal elements. the Bioch-Ibaraki paper is about *incrementally polynomial* algorithm
Sasho Nikolov
CC BY-SA 3.0
2013-01-29T01:08:20.650Z
Ah, okay. I wasn't aware of that. (Like I said, I'm not an expert in this area - my answer was just based on looking up a few things and putting them together.) I'll leave it here so other people can see it and at least not make the same mistake / at best turn it into something useful.
Joshua Grochow
CC BY-SA 3.0
2013-01-28T20:31:40.987Z
2013-01-29T01:15:29.347Z
2017-04-13T12:32:28.053Z
Joshua Grochow
<p>In their paper <a href="http://www.cs.huji.ac.il/~nati/PAPERS/central_element.pdf">Every Poset Has a Central Element</a>, Linial and Saks show (Theorem 1) that the number of queries required to solve the ideal identification problem in a poset $X$ is at most $K_0 \log_2 i(X)$, where $K_0 = 1/(2 - \log_2(1 + \log_2 5))$ and $i(X)$ is the number of ideals of $X$. What they call an "ideal" is actually a <a href="https://en.wikipedia.org/wiki/Lower_set">lower set</a> and there is an obvious one to one correspondance between monotonic predicates and the lower set of the points at which they don't hold, besides their "identification problem" is to identify by querying nodes just like in my setting, so I think they are dealing with the problem I'm interested in and that $i(X) = N_X$.</p>

<p>So, according to their result, the information-theoretic lower bound is tight up to a relatively small multiplicative constant. So this basically settles the question of the number of questions required, as a function of $N_X$ and up to a multiplicative constant: it is between $\log_2 N_X$ and $K_0 \log_2 N_X$.</p>

<p>Linial and Saks quote a personal communication by Shearer to say that there are known orders for which we can prove a lower bound of $K_1 \log_2 N_X$ for some $K_1$ which is just slightly less than $K_0$ (this is in the spirit of Yoshio Okamoto's answer who tried this approach for a smaller value of $K_1$).</p>

<p>This does not fully answer my question of computing the number of questions required from $X$, however, since <a href="http://epubs.siam.org/action/showAbstract?page=777&amp;volume=12&amp;issue=4&amp;journalCode=smjcat&amp;isAuthorized=no">computing $N_X$ from $X$ is #P-complete</a>, I have a feeling that there is little hope. (Comments about this point are welcome.) Still, this result by Linial and Saks is enlightening.</p>

CC BY-SA 3.0
2013-01-29T23:59:05.887Z
2013-02-03T16:19:51.573Z
2013-02-03T16:19:51.573Z
Antoine Amarilli 'a3nm'
<p>Consider $(X, \leq)$ a finite poset over $n$ items, and $P$ an unknown monotonic predicate over $X$ (i.e., for any $x$, $y \in X$, if $P(x)$ and $x \leq y$ then $P(y)$). I can evaluate $P$ by providing one node $x \in X$ and finding out if $P(x)$ holds or not. My goal is to determine exactly the set of nodes $x \in X$ such that $P(x)$ holds, using as few evaluations of $P$ as possible. (I can choose my queries depending on the answer of all previous queries, I am not required to plan all queries in advance.)</p>

<p>A strategy $S$ over $(X, \leq)$ is a function which tells me, as a function of the queries that I ran so far and their answers, which node to query, and which ensures that on any predicate $P$, by following the strategy, I will reach a state in which I know the value of $P$ on all nodes. The running time $r(S, P)$ of $S$ on a predicate $P$ is the number of queries required to know the value of $P$ on all nodes. The worst running time of $S$ is $wr(S) = \max_P r(S, P)$. An optimal strategy $S'$ is such that $wr(S') = \min_S wr(S)$.</p>

<p>My question is the following: given as input the poset $(X, \leq)$, how can I determine the worst running time of the optimal strategies?</p>

<p>[It is clear that for an empty poset $n$ queries will be needed (we need to ask about each single node), and that for a total order around $\lceil \log_2 n \rceil$ queries will be needed (doing a binary search to find the frontier). A more general result is the following information-theoretic lower bound: the number of possible choices for the predicate $P$ is the number $N_X$ of antichains of $(X, \leq)$ (because there is a one-to-one mapping between monotonic predicates and antichains interpreted as the maximal elements of $P$), so, since each query gives us one bit of information, we will need at least $\lceil \log_2 N_X \rceil$ queries, subsuming the two previous cases. Is this bound tight, or are them some posets whose structure is such that learning can require asymptotically more queries than the number of antichains?]</p>

CC BY-SA 3.0
2013-01-28T17:34:48.843Z
How is this different from your previous question on this topic ? http://cstheory.stackexchange.com/questions/14772/minimal-elements-of-a-monotonic-predicate-over-the-powerset-2n
Suresh Venkat
CC BY-SA 3.0
2013-01-28T17:45:15.240Z
Agreed, it is similar, but I'm interested about general posets here, including posets of small width that do not look at all like the complete lattice. Besides, I do not care anymore about the incremental complexity or anything of the kind, just at the number of queries required as a function of the choice of the poset. In this setting the boolean function interpretation is not applicable and it really looks like the answer depends somehow on the "structure" of the poset (maybe the number of antichains, as I suggested). Hopefully this warrants a separate question, please close if I was wrong.
Antoine Amarilli 'a3nm'
CC BY-SA 3.0
2013-01-28T20:18:24.447Z
FYI, in the complexity literature, strategies as you've defined them are typically called "decision trees," and they have a standard notion of height (the measure you're interested in) and size.
Joshua Grochow
CC BY-SA 3.0
2013-01-28T20:22:12.197Z
Thanks, Joshua! I'm more or less aware of this, I just thought it was simpler to use vocabulary from game theory, but yes, I'm aware that the strategy can be seen as a tree.
Antoine Amarilli 'a3nm'
CC BY-SA 3.0
2013-01-28T20:34:04.377Z
(No problem. By the way, I wasn't just pointing out that it can be seen as a tree. The way you described it is indeed very straightforward and clear, but I was providing you a keyword/term of art that you might be able to search for, in addition to a term that is probably immediately familiar to many people who frequent this site. Cheers!)
Joshua Grochow
<ds.algorithms><lg.learning><partial-order><search-problem><order-theory>
Worst number of questions needed to learn a monotonic predicate over a poset
Antoine Amarilli 'a3nm'
# Worst number of questions needed to learn a monotonic predicate over a poset

(Asked by: username_0 on 2013-01-28)

Consider $(X, \leq)$ a finite poset over $n$ items, and $P$ an unknown monotonic predicate over $X$ (i.e., for any $x$, $y \in X$, if $P(x)$ and $x \leq y$ then $P(y)$). I can evaluate $P$ by providing one node $x \in X$ and finding out if $P(x)$ holds or not. My goal is to determine exactly the set of nodes $x \in X$ such that $P(x)$ holds, using as few evaluations of $P$ as possible. (I can choose my queries depending on the answer of all previous queries, I am not required to plan all queries in advance.)

A strategy $S$ over $(X, \leq)$ is a function which tells me, as a function of the queries that I ran so far and their answers, which node to query, and which ensures that on any predicate $P$, by following the strategy, I will reach a state in which I know the value of $P$ on all nodes. The running time $r(S, P)$ of $S$ on a predicate $P$ is the number of queries required to know the value of $P$ on all nodes. The worst running time of $S$ is $wr(S) = \max\_P r(S, P)$. An optimal strategy $S'$ is such that $wr(S') = \min\_S wr(S)$.

My question is the following: given as input the poset $(X, \leq)$, how can I determine the worst running time of the optimal strategies?

[It is clear that for an empty poset $n$ queries will be needed (we need to ask about each single node), and that for a total order around $\lceil \log\_2 n \rceil$ queries will be needed (doing a binary search to find the frontier). A more general result is the following information-theoretic lower bound: the number of possible choices for the predicate $P$ is the number $N\_X$ of antichains of $(X, \leq)$ (because there is a one-to-one mapping between monotonic predicates and antichains interpreted as the maximal elements of $P$), so, since each query gives us one bit of information, we will need at least $\lceil \log\_2 N\_X \rceil$ queries, subsuming the two previous cases. Is this bound tight, or are them some posets whose structure is such that learning can require asymptotically more queries than the number of antichains?]

**Tags:** ds.algorithms, lg.learning, partial-order, search-problem, order-theory

> **Comments:**
> **username_1**: How is this different from your previous question on this topic ? http://cstheory.stackexchange.com/questions/14772/minimal-elements-of-a-monotonic-predicate-over-the-powerset-2n  
> **username_0**: Agreed, it is similar, but I'm interested about general posets here, including posets of small width that do not look at all like the complete lattice. Besides, I do not care anymore about the incremental complexity or anything of the kind, just at the number of queries required as a function of the choice of the poset. In this setting the boolean function interpretation is not applicable and it really looks like the answer depends somehow on the "structure" of the poset (maybe the number of antichains, as I suggested). Hopefully this warrants a separate question, please close if I was wrong.  
> **username_2**: FYI, in the complexity literature, strategies as you've defined them are typically called "decision trees," and they have a standard notion of height (the measure you're interested in) and size.  
> **username_0**: Thanks, Joshua! I'm more or less aware of this, I just thought it was simpler to use vocabulary from game theory, but yes, I'm aware that the strategy can be seen as a tree.  
> **username_2**: (No problem. By the way, I wasn't just pointing out that it can be seen as a tree. The way you described it is indeed very straightforward and clear, but I was providing you a keyword/term of art that you might be able to search for, in addition to a term that is probably immediately familiar to many people who frequent this site. Cheers!)  

---

## 4 answers

### Answer by username_0 on 2013-01-29. Score: 7 | Accepted answer

In their paper [Every Poset Has a Central Element](http://www.cs.huji.ac.il/~nati/PAPERS/central_element.pdf), Linial and Saks show (Theorem 1) that the number of queries required to solve the ideal identification problem in a poset $X$ is at most $K\_0 \log\_2 i(X)$, where $K\_0 = 1/(2 - \log\_2(1 + \log\_2 5))$ and $i(X)$ is the number of ideals of $X$. What they call an "ideal" is actually a [lower set](https://en.wikipedia.org/wiki/Lower_set) and there is an obvious one to one correspondance between monotonic predicates and the lower set of the points at which they don't hold, besides their "identification problem" is to identify by querying nodes just like in my setting, so I think they are dealing with the problem I'm interested in and that $i(X) = N\_X$.

So, according to their result, the information-theoretic lower bound is tight up to a relatively small multiplicative constant. So this basically settles the question of the number of questions required, as a function of $N\_X$ and up to a multiplicative constant: it is between $\log\_2 N\_X$ and $K\_0 \log\_2 N\_X$.

Linial and Saks quote a personal communication by Shearer to say that there are known orders for which we can prove a lower bound of $K\_1 \log\_2 N\_X$ for some $K\_1$ which is just slightly less than $K\_0$ (this is in the spirit of username_3's answer who tried this approach for a smaller value of $K\_1$).

This does not fully answer my question of computing the number of questions required from $X$, however, since [computing $N\_X$ from $X$ is #P-complete](http://epubs.siam.org/action/showAbstract?page=777&volume=12&issue=4&journalCode=smjcat&isAuthorized=no), I have a feeling that there is little hope. (Comments about this point are welcome.) Still, this result by Linial and Saks is enlightening.


---

### Answer by username_3 on 2013-01-29. Score: 7

This is not a complete answer, but it's too long to be a comment.

I think I found an example for which the bound $\lceil \log\_2 N\_X \rceil$ is not tight.

Consider the following poset. The ground set is $X=\{a\_1, a\_2, b\_1, b\_2\}$, and $a\_i$ is smaller than $b\_j$ for all $i,j\in\{1,2\}$. The other pairs are incomparable. (The Hasse diagram is a $4$-cycle).

Let me identify the monotone properties with the upsets of the poset. This poset has seven upsets: $\emptyset$, $\{b\_1\}$, $\{b\_2\}$, $\{b\_1,b\_2\}$, $\{a\_1,b\_1,b\_2\}$, $\{a\_2,b\_1,b\_2\}$, $\{a\_1,a\_2,b\_1,b\_2\}$, and this poset has seven antichains since the antichains are in one-to-one correspondence with the upsets. So, $\lceil \log\_2 N\_X \rceil=\lceil \log\_2 7 \rceil = 3$ for this poset.

Now, by adversary argument I'll show that any strategy needs at least four queries (so needs to query all elements). Let's fix an arbitrary strategy.

If the strategy first queries $a\_1$, then the adversary answers "$P(a\_1)$ doesn't hold." Then, we are left with five possibilities: $\emptyset$, $\{b\_1\}$, $\{b\_2\}$, $\{b\_1,b\_2\}$, $\{a\_2,b\_1,b\_2\}$. Thus, to determine which is the case, we need at least $\lceil \log\_2 5\rceil = 3$ more queries. In total, we need four queries. The same argument applies if the first query is $a\_2$.

If the strategy first queries $b\_1$, then the adversary answers "$P(b\_1)$ holds." Then, we are left with five possibilities: $\{b\_1\}$, $\{b\_1,b\_2\}$, $\{a\_1,b\_1,b\_2\}$, $\{a\_2,b\_1,b\_2\}$, $\{a\_1,a\_2,b\_1,b\_2\}$. Therefore, we need at least three more queries as before. In total, we need four queries. The same argument applies when the first query is $b\_2$.

If we take $k$ parallel copies of this poset, then it has $7^k$ antichains, and thus the proposed bound is $\lceil \log\_2 7^k \rceil = 3k$. But, since each of the copies needs four queries, we need at least $4k$ queries.

Probably, there is a larger poset with larger gap. But this argument can only improve the coefficient.

Here, the problem looks to be a situation where no query partitions the search space evenly. In such a case, the adversary can force the larger half to remain.

> **Comments:**
> **username_0**: Ah, interesting. Generalizing your example to $X = \{a_1, ..., a_n, b_1, ..., b_n\}$, it's clear that if the answer is $\forall i, \neg P(a_i)$ and $\forall i, P(b_i)$ then we won't know it for sure until all $2n$ nodes are queried. However, there are $2^{n+1} - 1$ antichains ($2^n-1$ non-empty subsets of $a_i$'s, idem for $b_i$'s, and the empty set), so the bound is not tight by a factor of 2. Thanks for this example. However, I don't really see how/if the gap could be more than a multiplicative factor, or if a non-trivial upper bound can be found, let alone an algorithm for an exact answer.  

---

### Answer by username_4 on 2013-02-07. Score: 5

For the Boolean n-cube $(\{0, 1\}^n, \leq)$ (or, equivalently, for the poset $(2^S, \subseteq)$ of all subsets of an n-element set), the answer is given by Korobkov and Hansel's theorems (from 1963 and 1966, respectively). Hansel's theorem [1] states that an unknown monotone Boolean function (i.e., an unknown monotone predicate on this poset) can be learned by a deterministic algorithm making at most $\phi(n) = \binom{n}{\lfloor n/2 \rfloor} + \binom{n}{\lfloor n/2 \rfloor + 1}$ queries (that is, asking $\phi(n)$ questions in the worst case). This algorithm matches the lower bound of Korobkov's theorem [2], which says that $\phi(n) - 1$ queries do not suffice. (So Hansel's algorithm is optimal in the worst-case setting.) An algorithm in both statements is understood as a deterministic decision tree.

The logarithm of the number of antichains in $(\{0, 1\}^n, \le)$ is asymptotically equal to $\binom{n}{\lfloor n/2 \rfloor} \sim 2^n / \sqrt{\pi n / 2}$, so there is a constant-factor gap between $\log N\_X$ and the optimal algorithm performance $\phi(n) \sim 2 \binom{n}{\lfloor n/2 \rfloor}$ for this poset.

Unfortunately, I have not been able to find a good treatment of Hansel's algorithm in English available on the web. It is based on a lemma that partitions the n-cube into
$\phi(n)$ chains with special properties. Some description can be found in [3]. For the lower bound, I don't know any reference to a description in English.

Since I am familiar with these results, I can post a description on arXiv, if the treatment in Kovalerchuk's paper does not suffice.

If am not much mistaken, there have been attempts to generalize Hansel's approach, at least to the poset $(E\_k^n, \le)$, where $(E\_k, \le)$ is a chain $0 < 1 < \ldots < k - 1$, although I cannot give any reference straight away. For the Boolean case, people have also investigated notions of complexity other than worst-case for this problem.

[1] G. Hansel, Sur le nombre des fonctions booléennes monotones de n variables. C. R. Acad. Sci. Paris, 262(20), 1088-1090 (1966)

[2] V. K. Korobkov. Estimation of the number of monotonic functions of the algebra of logic and of the complexity of the algorithm for finding the resolvent set for an arbitrary monotonic function of the algebra of logic. Soviet Math. Doklady 4, 753-756 (1963) (translation from Russian)

[3] B. Kovalerchuk, E. Triantaphyllou, A. S. Deshpande, E. Vityaev. Interactive learning of monotone Boolean functions. Information Sciences 94(1), 87-118 (1996) ([link](http://bit.csc.lsu.edu/trianta/Journal_PAPERS1/InteractLearnMonotBooleanFunctionsByTrianta1.pdf))

> **Comments:**
> **username_0**: Thanks a lot for this detailed answer! For the Boolean $n$-cube, cf <http://cstheory.stackexchange.com/q/14772>. I can read French but couldn't find Hansel's paper (should have been available on Gallica but this issue seems to be missing), I found relevant info in Sokolov, N.A. (1982), "On the Optimal Evaluation of Monotonic Boolean Functions", USSR Comput Math Math Phys, Vol 22, No 2, 207-220 (English translation exists). I'm interested about generalizations to other DAGs if you can find refs. Don't hesitate to reply by email (a3nm AT a3nm DOT net) if length limit is a problem. Thanks again!  
> **username_4**: You are welcome! Unfortunately, I do not know how to bound the algorithm running time in terms of output size. Korobkov's proof of the lower bound, for instance, does not give an answer to that question. However, I feel there may be a reference that is slightly relevant. I'll try to find some time time over the weekend and look for generalizations as well. At the same time, I'm not sure whether a closed English description of the Boolean case (these two theorems) is worth writing...  
> **username_5**: @a3nm maybe the DAG case hasnt been considered in the literature? could it be harder than the boolean n-cube ordered by inclusion?  
> **username_4**: @username_5 I guess that at least some of the questions here are bound to be open. Even for a chain, it is not immediately clear how to generalize Hansel's algorithm.  
> **username_5**: @a3nm it all seems to be similar to finding lower bounds/minimal monotone circuits (sizes) but havent seen it clearly linked so far...  
> **username_4**: @username_5 Could you explain the connection more clearly?  
> **username_5**: @a3nm, ddl, not sure myself, but feel like (new?) bridge thm(s) lie nearby. a start: a monotone predicate P is equivalent to (or can be represented by) a monotone circuit (DAG). moreover determining P via queries is very likely going to take longer the more complex the circuit, right? people are answering a3nms questions with refs that are referring to dualization which has strong connections to monotone circuit theory. also a3nm keeps asking about DAGs (much like circuits). maybe something to discuss at extended length in [chat?](http://chat.stackexchange.com/rooms/6870/monotone-circuits)  

---

### Answer by username_2 on 2013-01-28. Score: 0

[**NOTE:** The following argument doesn't seem to work, but I'm leaving it here so others don't make the same mistake / in case someone can fix it. The issue is that an exponential lower bound on learning/identifying a monotone function, as below, does not necessarily contradict an *incrementally* polynomial algorithm for the problem. And it is the latter which is equivalent to checking the mutual duality of two monotone functions in poly time.]

I believe your conjecture on $\log N\_X$ is false in general. If it is indeed the case that $\log N\_X$ queries are needed, that implies quite a strong lower bound on [learning monotone functions using membership queries](https://cstheory.stackexchange.com/a/14780/129). In particular, let the poset $X$ be the Boolean cube with the usual ordering (if you like, $X$ is the powerset of $\{1,...,n\}$ with $\subseteq$ as its partial order). The number $M$ of maximal antichains in $X$ satisfies $\log M = (1 + o(1))\binom{n-1}{\lfloor n/2 \rfloor}$ [1]. If your idea on $\log N\_X$ is correct, then there is some monotone predicate on $X$ that requires essentially $\binom{n-1}{n/2} \approx 2^n$ queries. In particular, this implies a lower bound of essentially $2^n$ for the complexity of any algorithm solving this problem.

However, if I've understood correctly [**which I now know I hadn't**], your problem is equivalent to checking the mutual duality of two monotone functions, which can be done in quasi-polynomial time (see the intro of [this paper by Bioch and Ibaraki](http://dx.doi.org/10.1006/inco.1995.1157), which cites Fredman and Khachiyan), contradicting anything close to a $2^n$ lower bound.

[1] Liviu Ilinca and Jeff Kahn. [Counting maximal antichains and independent sets](http://arxiv.org/abs/1202.4427). arXiv:1202.4427

> **Comments:**
> **username_6**: Josh, I don't see a problem with the $\log N_X$ argument. my understanding is that it is open whether a monotone function can be learned in time polynomial in $n$ *and* the number of minimal elements. the Bioch-Ibaraki paper is about *incrementally polynomial* algorithm  
> **username_2**: Ah, okay. I wasn't aware of that. (Like I said, I'm not an expert in this area - my answer was just based on looking up a few things and putting them together.) I'll leave it here so other people can see it and at least not make the same mistake / at best turn it into something useful.  

---

