To say that
P is necessary and sufficient for
Q is to say two things: • that
P is necessary for
Q, P \Leftarrow Q, and that
P is sufficient for
Q, P \Rightarrow Q. • equivalently, it may be understood to say that
P and
Q is necessary for the other, P \Rightarrow Q \land Q \Rightarrow P, which can also be stated as each
is sufficient for or
implies the other. One may summarize any, and thus all, of these cases by the statement "
P if and only if Q, which is denoted by P \Leftrightarrow Q, whereas cases tell us that P \Leftrightarrow Q is identical to P \Rightarrow Q \land Q \Rightarrow P. For example, in
graph theory a graph
G is called
bipartite if it is possible to assign to each of its vertices the color
black or
white in such a way that every edge of
G has one endpoint of each color. And for any graph to be bipartite, it is a necessary and sufficient condition that it contain no odd-length
cycles. Thus, discovering whether a graph has any odd cycles tells one whether it is bipartite and conversely. A philosopher might characterize this state of affairs thus: "Although the concepts of bipartiteness and absence of odd cycles differ in
intension, they have identical
extension. In mathematics, theorems are often stated in the form "
P is true if and only if
Q is true". P \Rightarrow Q. Secondly, the opposite is proven, Q \Rightarrow P • either directly, assuming
Q is true and demonstrating that the Q circle is located within P, or •
contrapositively, that is demonstrating that stepping outside circle of P, we fall out the
Q:
assuming not P, not Q results. This proves that the circles for Q and P match on the Venn diagrams above.--> Because, as explained in previous section, necessity of one for the other is equivalent to sufficiency of the other for the first one, e.g. P \Leftarrow Q is
equivalent to Q \Rightarrow P, if
P is necessary and sufficient for
Q, then
Q is necessary and sufficient for
P. We can write P \Leftrightarrow Q \equiv Q \Leftrightarrow P and say that the statements "
P is true
if and only if Q, is true" and "
Q is true if and only if
P is true" are equivalent. ==INUS condition==