Metamath Proof Explorer


Theorem cadifp

Description: The value of the carry is, if the input carry is true, the disjunction, and if the input carry is false, the conjunction, of the other two inputs. (Contributed by BJ, 8-Oct-2019)

Ref Expression
Assertion cadifp caddφψχif-χφψφψ

Proof

Step Hyp Ref Expression
1 cad1 χcaddφψχφψ
2 cad0 ¬χcaddφψχφψ
3 1 2 casesifp caddφψχif-χφψφψ