{"ok":true,"data":{"commit":"118eb9c9aec819f90f93b9ba0ecefa9f0d2d3b6a","path":"PvsNP/Language.lean","oid":"f28c17ae2dc27547953e54030f4c7e87c0e45bbb","size":927,"range_start":0,"range_end":927,"truncated":false,"binary":false,"encoding":"utf8","content":"/-!\n# Languages\n\nA *decision problem* is a language: a set of finite words over an alphabet `α`. We represent a set of\nwords by its membership predicate. The alphabet is meant to be finite; the complexity classes require\n`IsFinite α` where it matters.\n-/\n\nnamespace PvsNP\n\n/-- A language over the alphabet `α`: which words are in it. -/\nabbrev Language (α : Type) := List α → Prop\n\nnamespace Language\n\nvariable {α : Type}\n\n/-- The complement of a language. -/\ndef compl (L : Language α) : Language α := fun x => ¬ L x\n\n/-- The language of every word. -/\ndef univ : Language α := fun _ => True\n\n/-- The empty language. -/\ndef empty : Language α := fun _ => False\n\n@[simp] theorem compl_apply (L : Language α) (x : List α) : compl L x ↔ ¬ L x := Iff.rfl\n\ntheorem compl_compl (L : Language α) (x : List α) : compl (compl L) x ↔ L x := by\n  simp only [compl_apply, Classical.not_not]\n\nend Language\n\nend PvsNP\n"},"meta":{"request_id":"18959848-3bf","took_us":134,"limits":{"limit":600,"remaining":150,"window_ms":60000,"reset_ms":44967,"cost":1,"streams":{"limit":16,"open":0}}}}