theoremcnf_nonempty_of_nonempty_darts [FintypeE] [NonemptyE]
(G : ConstraintGraphVEFinalBooleanVerifier.Label)
(vertices : V ≃ Fin n) (edges : E ≃ Fin m) :
(FinalBooleanVerifier.cnf G vertices edges).clauses ≠ [] :=by
proof · 4
lines
havehcard : Fintype.card E = m :=by
simpa only [Fintype.card_fin] usingFintype.card_congr edges
havehm : 0 < m := hcard ▸ Fintype.card_pos
exact FinalBooleanVerifier.cnf_nonempty G vertices edges hm
theoremcnf_clauseGap [FintypeE] [NonemptyE]
(G : ConstraintGraphVEFinalBooleanVerifier.Label)
(vertices : V ≃ Fin n) (edges : E ≃ Fin m) (a b : ℕ) (hb : 0 < b)
(hgap : ∀labeling : V→FinalBooleanVerifier.Label,
a * Fintype.card E≤ b * G.rejectionCount labeling) :
SourceGap.ClauseGap (FinalBooleanVerifier.cnf G vertices edges)
((a : ℚ) / ((b : ℚ) * 40960)) :=by
proof · 4
lines
have h := clauseGap_of_count (FinalBooleanVerifier.cnf G vertices edges) a (b * 40960)
(cnf_nonempty_of_nonempty_darts G vertices edges)
(Nat.mul_pos hb (by decide)) (FinalBooleanVerifier.cnf_gap G vertices edges a b hgap)
simpa only [Nat.cast_mul, Nat.cast_ofNat] using h