The complement of a decision problem
Lax485149.Complement · concepts/Lax485149/Complement.lean · lax-485149
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The complement of a decision problem over a relational vocabulary has as yes-instances the structures that are no-instances of . It is a decision problem: a property and its negation are invariant under the same isomorphisms.
Concept map
Lean source view on GitHub
| 1 | import Lax904597.Problems |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: The complement of a decision problem |
| 6 | type: definition |
| 7 | --- |
| 8 | The complement of a decision problem over a relational vocabulary |
| 9 | has as yes-instances the structures that are no-instances of . It is a |
| 10 | decision problem: a property and its negation are invariant under the same |
| 11 | isomorphisms. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax485149.Complement |
| 15 | |
| 16 | open Lax904597.Problems |
| 17 | |
| 18 | open FirstOrder |
| 19 | |
| 20 | open Language |
| 21 | |
| 22 | /-- The complement of a decision problem: its yes-instances are the |
| 23 | no-instances of `P`. -/ |
| 24 | def DecisionProblem.compl {L : Language.{0, 0}} [L.IsRelational] |
| 25 | (P : DecisionProblem L) : |
| 26 | DecisionProblem L where |
| 27 | Holds := fun A inst => ¬@DecisionProblem.Holds L _ P A inst |
| 28 | iso_invariant := fun e => not_congr (P.iso_invariant e) |
| 29 | |
| 30 | end Lax485149.Complement |
| 31 |
Builds on
Used by
Lax485149.ClassLLax485149.ClassNLLax485149.DeterministicReachabilityLax485149.DeterministicReachabilityInvarianceLax485149.FirstOrderInTransitiveClosureLax485149.ImmermanSzelepcsenyiLax485149.KromAndTransitiveClosureLax485149.LByAutomataLax485149.LClosureLax485149.LEqCoLLax485149.LSubsetNLLax485149.NLByAutomataLax485149.NLClosureLax485149.NLEqCoNLLax485149.NLIsTransitiveClosureLax485149.NLSubsetNPLax485149.ReachabilityLax485149.ReachabilityInvarianceLax485149.ReachdLCompleteLax485149.ReachNLCompleteLax485149.TransitiveClosureClosureLax485149.TwoSatInvarianceLax485149.TwoSatNLCompleteLax485149.UnreachdLCompleteLax485149.UnreachNLComplete
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments