Invariance and characterization of evaluation
Lax420092.EvaluationInvariance · concepts/Lax420092/EvaluationInvariance.lean · lax-420092
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Whether the query of an instance holds in its database is invariant under isomorphism of instances, and an instance is a yes-instance of CQEval exactly when its query holds in its database.
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 evaluation |
| 13 | type: lemma |
| 14 | --- |
| 15 | Whether the query of an instance holds in its database is invariant under |
| 16 | isomorphism of instances, and an instance is a yes-instance of CQEval exactly |
| 17 | when its query holds in its database. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax420092.EvaluationInvariance |
| 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 `QueryHolds` is isomorphism-invariant. -/ |
| 27 | axiom queryHolds_iso : ∀ {A B : Type} [queryDb.Structure A] [queryDb.Structure B], |
| 28 | (A ≃[queryDb] B) → (QueryHolds A ↔ QueryHolds B) |
| 29 | |
| 30 | /-- The yes-instances of CQEval are exactly the instances whose query holds. -/ |
| 31 | axiom cqEval_iff : ∀ (A : Type) [queryDb.Structure A], CQEval A ↔ QueryHolds A |
| 32 | |
| 33 | end Lax420092.EvaluationInvariance |
| 34 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments