Many programming languages support a ternary conditional operator. For example, in $\text{C, C++},$ and $\text{Java}$, the expression $x ? y : z$ means “evaluate the boolean expression $x.$ If it's true, the entire expression evaluates to $y.$ If it's false, the entire expression evaluates to $z.$”
In the context of propositional logic, we can introduce a new ternary connective $?:$ such that $p ? q: r$ means “if $p$ is true, the connective evaluates to the truth value of $q,$ and otherwise it evaluates to the truth value of $r$.”
Let $p,q,r$ be three propositional variables. Which of the following is/are correct?
- Probability of $p ? q : r,$ being true is $\dfrac{1}{2}.$
- $p ? p : p$ is tautology.
- $p ? p : (\neg p)$ is tautology.
- $(\neg p) ? p : (\neg p)$ is tautology.