The boolean algebra idempotent law states that applying the same logical operation (AND or OR) to a variable and itself always yields that original variable ($A + A = A$ and $A \cdot A = A$). When you are designing a control panel, programming a PLC, or routing an FPGA, this rule is your primary mathematical tool for stripping out redundant logic gates, saving physical panel space, and cutting propagation delay. Think of a single physical light switch: flipping it up with two fingers at the exact same time doesn’t turn the light on "twice as much"—the state is simply ON.
In digital electronics, every unnecessary gate adds nanoseconds of delay, microamps of quiescent current, and potential points of failure. By applying the idempotent law alongside other Boolean theorems, you can collapse bloated logic expressions into their most efficient physical form. According to Texas Instruments' foundational logic design guidelines, minimizing gate count is critical for optimizing power consumption and thermal dissipation in high-density digital systems.
The Core Rules: AND and OR Idempotence
Unlike standard arithmetic, where $2 + 2 = 4$ and $2 \times 2 = 4$, Boolean algebra operates strictly on binary states (1 or 0, True or False, High or Low). The idempotent law (from the Latin idem meaning "same", and potere meaning "to have power") formalizes the behavior of identical inputs. Below is a data-dense reference table mapping these Boolean laws to their physical 74-series HC (High-Speed CMOS) logic gate equivalents, including real-world propagation delays and power draws.
| Boolean Law | Expression | Logic Gate Configuration | Standard IC Part | Typical $t_{pd}$ (Propagation Delay) | Max $I_{CC}$ (Per Gate) |
|---|---|---|---|---|---|
| OR Idempotence | $A + A = A$ | OR Gate (Inputs tied together) | 74HC32 | 14 ns | 2.0 µA |
| AND Idempotence | $A \cdot A = A$ | AND Gate (Inputs tied together) | 74HC08 | 14 ns | 2.0 µA |
| NAND Tied Inputs | $\overline{A \cdot A} = \overline{A}$ | NOT Gate (via NAND) | 74HC00 | 12 ns | 2.0 µA |
| NOR Tied Inputs | $\overline{A + A} = \overline{A}$ | NOT Gate (via NOR) | 74HC02 | 14 ns | 2.0 µA |
Note: While tying inputs together to create a NOT gate (rows 3 and 4) relies on the idempotent law, modern design practice prefers using a dedicated 74HC04 hex inverter to avoid the slight asymmetry in rise/fall times that can occur when tying NAND/NOR inputs.
Worked Example: Simplifying a Motor Starter Interlock
To see what the idempotent law changes in a real circuit, let's look at a bloated Boolean expression for a 3-phase motor starter safety interlock. Suppose a junior engineer drafted the following logic based on a convoluted truth table:
$Motor = (E\_Stop \cdot Door\_Closed) + (E\_Stop \cdot Door\_Closed \cdot Temp\_OK) + (E\_Stop \cdot E\_Stop \cdot Door\_Closed)$
Let's assign variables to clean up the math: Let $A = E\_Stop$, $B = Door\_Closed$, and $C = Temp\_OK$.
$Y = (A \cdot B) + (A \cdot B \cdot C) + (A \cdot A \cdot B)$
Step 1: Apply the AND Idempotent Law ($A \cdot A = A$)
Look at the third term: $(A \cdot A \cdot B)$. Because $A \cdot A = A$, this term collapses to $(A \cdot B)$.
New Expression: $Y = (A \cdot B) + (A \cdot B \cdot C) + (A \cdot B)$
Step 2: Apply the OR Idempotent Law ($X + X = X$)
Let $X = (A \cdot B)$. The expression is now $X + (X \cdot C) + X$. According to the OR idempotent law, $X + X = X$.
New Expression: $Y = X + (X \cdot C)$, which translates back to $Y = (A \cdot B) + (A \cdot B \cdot C)$
Step 3: Apply the Absorption Law ($X + X \cdot C = X$)
The term $(A \cdot B)$ absorbs the longer term.
Final Simplified Expression: $Y = A \cdot B$ (Motor = E_Stop AND Door_Closed)
The Physical and Financial Impact
What does this mathematical reduction actually change on the workbench?
- Original Hardware: Required two 2-input AND gates, one 3-input AND gate, and a 3-input OR gate. This necessitates three physical ICs (e.g., two 74HC08s and one 74HC4075). Total BOM cost: ~$0.45. Total max quiescent current: ~180 µA. PCB footprint: ~450 mm².
- Simplified Hardware: Requires exactly one 2-input AND gate. We use one section of a single 74HC08 IC. BOM cost drops to ~$0.15. PCB footprint drops to ~150 mm².
By applying the idempotent law, we eliminated two entire ICs and over a dozen solder joints. As noted in All About Circuits' digital logic curriculum, reducing component count directly increases the MTBF (Mean Time Between Failures) of the control board while slashing power consumption.
Where You Meet This in Practice
You won't just see the idempotent law in textbook exercises; it actively shapes how modern control systems are programmed and synthesized.
PLC Ladder Logic Optimization
When programming legacy PLCs (like the Allen-Bradley MicroLogix series) or working with constrained scan times, hand-optimizing ladder logic is crucial. If a rung contains two parallel branches that both start with the exact same normally-open (NO) contact address (e.g., `I:0/0`), the PLC processor still evaluates both branches. Recognizing $A + A = A$ allows you to delete the redundant branch, shaving microseconds off the PLC scan cycle—a critical margin in high-speed packaging machinery.
FPGA and ASIC Synthesis
In FPGA design using tools like Xilinx Vivado or Intel Quartus, your Verilog or VHDL code is compiled into Look-Up Tables (LUTs). If your RTL code contains redundant logical operations (e.g., `assign out = (in1 & in1) | in2;`), the synthesis engine applies the idempotent law during the logic minimization phase. It maps this directly to a smaller LUT configuration, freeing up programmable fabric for more complex state machines and reducing routing congestion.
Hardwired Relay Logic Drafting
If you are tracing schematics on a 40-year-old machine tool and see two parallel contacts from the exact same relay coil (e.g., CR1-A and CR1-A) in series with another coil, you are looking at a drafting error. In physical relay logic, $CR1 + CR1 = CR1$. The second contact adds no logical value, wastes a contact block, and introduces an unnecessary point of failure.
Common Confusions: Idempotence vs. Physical Redundancy
The most dangerous mistake engineers make with the boolean algebra idempotent law is confusing logical idempotence with physical safety redundancy.
However, if you take a single wire from one E-stop contact, split it, and wire it to two separate inputs on a safety PLC (Input 1 and Input 2), and then write the logic as `Safety_OK = Input1 OR Input2`, you have not created redundancy. Because Input 1 and Input 2 are tied to the exact same physical signal, logically $Input1 = Input2$. The PLC evaluates $A + A$, which the idempotent law reduces to $A$. If the physical wire breaks, both inputs drop to 0 simultaneously. You have spent money on extra wiring and PLC I/O points to achieve the exact same logical vulnerability as a single wire. Always ensure physical separation when designing redundant safety interlocks.
Frequently Asked Questions
Does the idempotent law apply to XOR gates?
No. The XOR (Exclusive OR) operation yields a 0 when both inputs are identical. Therefore, $A \oplus A = 0$, not $A$. This is known as the annulment or complement property of XOR, not idempotence.
Can I use the idempotent law to simplify $A + \overline{A}$?
No. $A + \overline{A} = 1$ (the Law of Excluded Middle or Complement Law). Idempotence strictly applies when the variable and its state (uninverted) are identical.
Why do synthesis tools sometimes leave idempotent logic in my FPGA bitstream?
If you have explicitly applied timing constraints or "keep" attributes to specific nets in your Verilog code, the synthesis tool may bypass Boolean minimization to preserve the exact routing you requested, leaving redundant logic in place to meet specific setup/hold time requirements.






