Invariance and characterization of containment
Lax420092.ContainmentInvariance · concepts/Lax420092/ContainmentInvariance.lean · lax-420092
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Containment of the left query in the right one is invariant under isomorphism of pairs, and a pair is a yes-instance of CQContainment exactly when its left query is contained in its right query.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax904597.Problems |
| 2 | import Lax904597.Interpretations |
| 3 | import Lax904597.Classes |
| 4 | import Lax799700.Problems |
| 5 | import Lax420092.QueryDatabases |
| 6 | import Lax420092.Evaluation |
| 7 | import Lax420092.QueryPairs |
| 8 | import Lax420092.PackagedInstances |
| 9 | |
| 10 | /-! |
| 11 | --- |
| 12 | title: Invariance and characterization of containment |
| 13 | type: lemma |
| 14 | --- |
| 15 | Containment of the left query in the right one is invariant under isomorphism |
| 16 | of pairs, and a pair is a yes-instance of CQContainment exactly when its left |
| 17 | query is contained in its right query. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax420092.ContainmentInvariance |
| 21 | |
| 22 | open FirstOrder FirstOrder.Language |
| 23 | open Lax904597.Problems Lax904597.Interpretations Lax904597.Classes Lax799700.Problems |
| 24 | open Lax420092.QueryDatabases Lax420092.Evaluation Lax420092.QueryPairs Lax420092.PackagedInstances |
| 25 | |
| 26 | /-- The property `QueryContained` is isomorphism-invariant. -/ |
| 27 | axiom queryContained_iso : ∀ {A B : Type} [queryPair.Structure A] [queryPair.Structure B], |
| 28 | (A ≃[queryPair] B) → (QueryContained A ↔ QueryContained B) |
| 29 | |
| 30 | /-- The yes-instances of CQContainment are exactly the pairs whose left query |
| 31 | is contained in the right one. -/ |
| 32 | axiom cqContainment_iff : ∀ (A : Type) [queryPair.Structure A], |
| 33 | CQContainment A ↔ QueryContained A |
| 34 | |
| 35 | end Lax420092.ContainmentInvariance |
| 36 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments