I found this line in Kenneth H. Rosen.
How can $x_1, x_2, x_3, ..., x_n$ be boolean expressions? aren't they boolean variables and not expressions? I am confused with this whole paragraph.
I found this line in Kenneth H. Rosen.
How can $x_1, x_2, x_3, ..., x_n$ be boolean expressions? aren't they boolean variables and not expressions? I am confused with this whole paragraph.
A variable is a special form of a boolean expression. Each boolean expression can be created by using these rules.
Let's investigate the expression $$(\overline{(\overline{x_1}+x_2)}x_1)$$ This is a boolean expression because it can be constructed by applying the following rules
So the following steps show why the expression above is a boolean expression.
The character strings $(x_1 + x_2+)$, $x_1+x_2$, $(x+ y)$, $(x_1\overline {+x_2})$, $(x_1+(x_2x_3)$ are not Boolean expressions according to these rules.
If $x_1,...,x_n$ in rule 1 is not meant literally but $x_i$ stands for arbitrary letters or valid variable names, then $(x+ y)$ is a Boolean expression.
Such recursive descriptions are frequently used to describe the syntax of programming languages.