-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
idea to define the semEquiv Quotient
- Loading branch information
Showing
2 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
import Pdl.Semantics | ||
|
||
/-! ## Semantic Quotients -/ | ||
|
||
#print semEquiv | ||
|
||
def semEquiv.Equivalence : Equivalence semEquiv := | ||
⟨ by convert semEquiv.refl | ||
, by convert semEquiv.symm | ||
, by convert semEquiv.trans ⟩ | ||
-- (why) are the "by convert" needed here? | ||
|
||
instance Formula.instSetoid : Setoid Formula := ⟨semEquiv, semEquiv.Equivalence⟩ | ||
|
||
-- How should I name this? | ||
abbrev SemProp := Quotient Formula.instSetoid | ||
|
||
-- Now, can we lift connectives such as ~ and ⋀ to the quotient? | ||
|
||
def SemProp.neg : SemProp → SemProp := | ||
Quotient.map Formula.neg (by sorry) | ||
|
||
def SemProp.and : SemProp → SemProp → SemProp := | ||
Quotient.map₂ Formula.and (by sorry) |
This file contains 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