명제 논리 에서, 논리곱 표준형 (論理곱標準型, 영어 : conjunctive normal form, CNF )은 명제 기호 또는 그 부정들의 논리합 들을 논리곱 으로 연결한 명제식이다. 명제 논리 의 모든 명제식은 어떤 논리곱 표준형과 논리적으로 동치 이다.
그 쌍대 개념인 논리합 표준형 (論理합標準型, 영어 : disjunctive normal form, DNF )은 명제 기호 또는 그 부정들의 논리곱 들을 논리합 으로 연결한 명제식이다. 명제 논리 의 모든 명제식은 어떤 논리합 표준형과 논리적으로 동치 이다.
주어진 명제식과 동치인 논리곱·논리합 표준형은 이중 부정의 소거, 드 모르간의 법칙 , 분배 법칙 등을 사용하여 구할 수 있다.
3-논리곱 표준형 (영어 : 3-conjunctive normal form, 3-CNF )은 3개 이하의 명제 기호 또는 그 부정들의 논리합들의 논리곱인 명제식이다. 이는 계산 이론 에서 중요하게 다루어진다. 다른 개수로 제한할 때도 마찬가지로 정의할 수 있으나 2-CNF, 3-CNF 이외에는 중요하게 다루지 않는다.
명제 논리 의 논리곱 표준형 은 다음과 같은 꼴의 명제식이다.
(
ϕ
11
∨
⋯
∨
ϕ
1
n
1
)
∧
⋯
∧
(
ϕ
m
1
∨
⋯
∨
ϕ
m
n
m
)
{\displaystyle (\phi _{11}\lor \cdots \lor \phi _{1n_{1}})\land \cdots \land (\phi _{m1}\lor \cdots \lor \phi _{mn_{m}})}
여기서, 각
ϕ
i
j
{\displaystyle \phi _{ij}}
는 어떤 명제 기호
p
n
i
j
{\displaystyle {\mathsf {p}}_{n_{ij}}}
이거나 어떤 명제 기호의 부정
¬
p
n
i
j
{\displaystyle \lnot {\mathsf {p}}_{n_{ij}}}
이다.
명제 논리 의 논리합 표준형 은 다음과 같은 꼴의 명제식이다.
(
ϕ
11
∧
⋯
∧
ϕ
1
n
1
)
∨
⋯
∨
(
ϕ
m
1
∧
⋯
∧
ϕ
m
n
m
)
{\displaystyle (\phi _{11}\land \cdots \land \phi _{1n_{1}})\lor \cdots \lor (\phi _{m1}\land \cdots \land \phi _{mn_{m}})}
여기서, 각
ϕ
i
j
{\displaystyle \phi _{ij}}
는 어떤 명제 기호
p
n
i
j
{\displaystyle {\mathsf {p}}_{n_{ij}}}
이거나 어떤 명제 기호의 부정
¬
p
n
i
j
{\displaystyle \lnot {\mathsf {p}}_{n_{ij}}}
이다.
명제 논리의 모든 명제식은 어떤 논리곱 표준형 및 어떤 논리합 표준형과 논리적으로 동치 이다. 즉, 명제 논리의 명제식
ϕ
{\displaystyle \phi }
에 대하여,
ϕ
⊨
ϕ
∧
{\displaystyle \phi \models \phi ^{\land }}
ϕ
∧
⊨
ϕ
{\displaystyle \phi ^{\land }\models \phi }
인 논리곱 표준형
ϕ
∧
{\displaystyle \phi ^{\land }}
가 존재하며, 마찬가지로
ϕ
⊨
ϕ
∨
{\displaystyle \phi \models \phi ^{\lor }}
ϕ
∨
⊨
ϕ
{\displaystyle \phi ^{\lor }\models \phi }
인 논리합 표준형
ϕ
∨
{\displaystyle \phi ^{\lor }}
가 존재한다.[ 1] : 25, Theorem 2.3.9
주어진 명제식
ϕ
{\displaystyle \phi }
와 동치인 논리곱 표준형과 논리합 표준형은 다음과 같이 재귀적으로 구할 수 있다. 만약
ϕ
{\displaystyle \phi }
가 어떤 명제 기호
p
n
{\displaystyle {\mathsf {p}}_{n}}
인 경우, 이는 이미 논리곱 표준형이자 논리합 표준형이다. 만약
ϕ
{\displaystyle \phi }
가 다른 명제식의 부정
¬
ψ
{\displaystyle \lnot \psi }
인 경우,
ψ
{\displaystyle \psi }
와 동치인 논리곱 표준형
(
ϕ
11
∨
⋯
∨
ϕ
1
n
1
)
∧
⋯
∧
(
ϕ
m
1
∨
⋯
∨
ϕ
m
n
m
)
{\displaystyle (\phi _{11}\lor \cdots \lor \phi _{1n_{1}})\land \cdots \land (\phi _{m1}\lor \cdots \lor \phi _{mn_{m}})}
을 잡자. 그렇다면
¬
ψ
{\displaystyle \lnot \psi }
는 논리합 표준형
(
ϕ
11
∗
∧
⋯
∧
ϕ
1
n
1
∗
)
∨
⋯
∨
(
ϕ
m
1
∗
∧
⋯
∧
ϕ
m
n
m
∗
)
{\displaystyle (\phi _{11}^{*}\land \cdots \land \phi _{1n_{1}}^{*})\lor \cdots \lor (\phi _{m1}^{*}\land \cdots \land \phi _{mn_{m}}^{*})}
과 동치이다. 여기서, 명제 기호
p
n
{\displaystyle {\mathsf {p}}_{n}}
에 대하여
(
p
n
)
∗
{\displaystyle ({\mathsf {p}}_{n})^{*}}
는
¬
p
n
{\displaystyle \lnot {\mathsf {p}}_{n}}
이며
(
¬
p
n
)
∗
{\displaystyle (\lnot {\mathsf {p}}_{n})^{*}}
는
p
n
{\displaystyle {\mathsf {p}}_{n}}
이다. 마찬가지로,
ψ
{\displaystyle \psi }
와 동치인 논리합 표준형
(
ψ
11
∧
⋯
∧
ψ
1
q
1
)
∨
⋯
∨
(
ψ
p
1
∧
⋯
∧
ψ
p
q
p
)
{\displaystyle (\psi _{11}\land \cdots \land \psi _{1q_{1}})\lor \cdots \lor (\psi _{p1}\land \cdots \land \psi _{pq_{p}})}
을 잡자. 그렇다면
¬
ψ
{\displaystyle \lnot \psi }
는 논리곱 표준형
(
ψ
11
∗
∨
⋯
∨
ψ
1
q
1
∗
)
∧
⋯
∧
(
ψ
p
1
∗
∨
⋯
∨
ψ
p
q
p
∗
)
{\displaystyle (\psi _{11}^{*}\lor \cdots \lor \psi _{1q_{1}}^{*})\land \cdots \land (\psi _{p1}^{*}\lor \cdots \lor \psi _{pq_{p}}^{*})}
와 동치이다. 만약
ϕ
{\displaystyle \phi }
가 함의
ψ
⟹
χ
{\displaystyle \psi \implies \chi }
인 경우, 이는 명제식
¬
ψ
∨
χ
{\displaystyle \lnot \psi \lor \chi }
와 동치이다.
ϕ
1
∨
⋯
∨
ϕ
m
{\displaystyle \phi _{1}\lor \cdots \lor \phi _{m}}
ψ
1
∨
⋯
∨
ψ
n
{\displaystyle \psi _{1}\lor \cdots \lor \psi _{n}}
가 각각
¬
ψ
{\displaystyle \lnot \psi }
및
χ
{\displaystyle \chi }
와 동치인 논리합 표준형이라고 하자. 그렇다면
¬
ψ
∨
χ
{\displaystyle \lnot \psi \lor \chi }
는 논리합 표준형
ϕ
1
∨
⋯
∨
ϕ
m
∨
ψ
1
∨
⋯
∨
ψ
n
{\displaystyle \phi _{1}\lor \cdots \lor \phi _{m}\lor \psi _{1}\lor \cdots \lor \psi _{n}}
과 동치이다. 이제,
θ
1
∧
⋯
∧
θ
m
{\displaystyle \theta _{1}\land \cdots \land \theta _{m}}
η
1
∧
⋯
∧
η
n
{\displaystyle \eta _{1}\land \cdots \land \eta _{n}}
가 각각
¬
ψ
{\displaystyle \lnot \psi }
및
χ
{\displaystyle \chi }
와 동치인 논리곱 표준형이라고 하자. 그렇다면
¬
ψ
∨
χ
{\displaystyle \lnot \psi \lor \chi }
는 논리곱 표준형
(
θ
1
∨
η
1
)
∧
(
θ
1
∨
η
2
)
∧
⋯
∧
(
θ
m
∨
η
n
)
{\displaystyle (\theta _{1}\lor \eta _{1})\land (\theta _{1}\lor \eta _{2})\land \cdots \land (\theta _{m}\lor \eta _{n})}
과 동치이다.