feat(Foundations/Logic): Notation typeclasses and models#587
Draft
thomaskwaring wants to merge 4 commits into
Draft
feat(Foundations/Logic): Notation typeclasses and models#587thomaskwaring wants to merge 4 commits into
thomaskwaring wants to merge 4 commits into
Conversation
added 3 commits
May 13, 2026 21:22
ctchou
reviewed
May 21, 2026
| /-- Forcing relation associated to each parameter. -/ | ||
| SatisfiesAt (b : β) : (Param b) → α → Prop | ||
|
|
||
| scoped notation w " ⊨[" b "] " a => ParamModels.SatisfiesAt b w a |
Collaborator
There was a problem hiding this comment.
I still find this notation unintuitive: w depends on b and yet it appears to the left of b.
For that matter, why does the model b appear in a bracket to the right of the turnstile ⊨ in this and the notation for Models/Satisfies? It seems to me standard for the model to appear to the left of the ⊨.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A proposal for typeclasses expressing that a type of "propositions" has semantics in a type of "models".
Main definitions
Models α β: objects of typeβcarry a predicateSatisfieson objects of typeα.ParamModels α β: objectsM : βcarry a satisfaction relation parametrised over some auxiliaryParam M : Type*InterpModels α β: eachM : βhas an associated ground typeGround M, an interpretationinterp : α → Ground Mand afilter : Set (Ground β), which induces a forcing relation asSatisfies M a := interp a ∈ filter M.I've tried to add enough examples to show how this might be used, but the design ought to be discussed before we settle on anything this general.