# PvsNP/Language.lean @ 346abe536d053a5c1b61722fd9b9ea5144e9a85c

````
/-!
# Languages

A *decision problem* is a language: a set of finite words over an alphabet `α`. We represent a set of
words by its membership predicate. The alphabet is meant to be finite; the complexity classes require
`IsFinite α` where it matters.
-/

namespace PvsNP

/-- A language over the alphabet `α`: which words are in it. -/
abbrev Language (α : Type) := List α → Prop

namespace Language

variable {α : Type}

/-- The complement of a language. -/
def compl (L : Language α) : Language α := fun x => ¬ L x

/-- The language of every word. -/
def univ : Language α := fun _ => True

/-- The empty language. -/
def empty : Language α := fun _ => False

@[simp] theorem compl_apply (L : Language α) (x : List α) : compl L x ↔ ¬ L x := Iff.rfl

theorem compl_compl (L : Language α) (x : List α) : compl (compl L) x ↔ L x := by
  simp only [compl_apply, Classical.not_not]

end Language

end PvsNP

````

API: `https://git.neoopensource.com/v1/repos/pvsnp/blob?rev=346abe536d053a5c1b61722fd9b9ea5144e9a85c&path=PvsNP%2FLanguage.lean`
