-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open subschemes #1096
Merged
Merged
Open subschemes #1096
Changes from 29 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
9dd7c6a
(wip) for Zariski coverage on CommRing
MatthiasHu 5aa46d8
pullback stability
mzeuner 5e0cb35
only zero case left
mzeuner 131c457
finish zero case
mzeuner 036a323
def standard affine open
mzeuner 484231b
finish standard affine opens
mzeuner e8fc66d
towards opens of affines
mzeuner bd1223a
discussion
mzeuner a59b341
little progress
mzeuner 911c9ac
towards separatedness
mzeuner 2e3ed1b
separatedness
mzeuner 06bec07
locality
mzeuner fb225ce
towards aff cover
mzeuner 96b6016
give up
mzeuner 2e19a72
finish
mzeuner 9f02434
cleanup
mzeuner e582d07
use inline ring solver
mzeuner a340591
fix
mzeuner e286103
more fixes
mzeuner b43c464
fix accidentally public module
MatthiasHu 13cc5e8
avoid code duplication
MatthiasHu 05bec87
improve comment
MatthiasHu 78b463c
slightly improve comment
MatthiasHu 855146b
named module StandardOpens
MatthiasHu 0e100d7
indent by two spaces
MatthiasHu 87db220
less whitespace
MatthiasHu 76d4035
avoid duplication in PosetDownset
MatthiasHu 56e2582
fix copy-paste errors in comment
MatthiasHu fbe4f93
cleanup JoinMap
MatthiasHu c051569
don't re-prove monoid lemmas
MatthiasHu cc9b294
slightly clearer comment
MatthiasHu 758e50f
polish module definition
MatthiasHu 0464409
cleanup imports
MatthiasHu bec3d81
cleanup some more
MatthiasHu d4d2196
forgotten while renaming ZarMap -> Support
MatthiasHu ddc4fa5
upstream 1 lemmas
mzeuner ef4ae22
meet map
mzeuner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,70 @@ | ||
{-# OPTIONS --safe #-} | ||
module Cubical.Algebra.DistLattice.Downset where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Foundations.HLevels | ||
open import Cubical.Foundations.Isomorphism | ||
open import Cubical.Foundations.Powerset | ||
|
||
open import Cubical.Data.Sigma | ||
|
||
open import Cubical.Algebra.Semigroup | ||
open import Cubical.Algebra.Monoid | ||
open import Cubical.Algebra.CommMonoid | ||
open import Cubical.Algebra.Semilattice | ||
open import Cubical.Algebra.Lattice | ||
open import Cubical.Algebra.DistLattice.Base | ||
|
||
open import Cubical.Relation.Binary.Order.Poset | ||
|
||
open Iso | ||
|
||
private | ||
variable | ||
ℓ ℓ' : Level | ||
|
||
module DistLatticeDownset (L' : DistLattice ℓ) where | ||
|
||
open DistLatticeStr ⦃...⦄ | ||
open PosetStr ⦃...⦄ hiding (is-set) | ||
open JoinSemilattice (Lattice→JoinSemilattice (DistLattice→Lattice L')) | ||
open MeetSemilattice (Lattice→MeetSemilattice (DistLattice→Lattice L')) hiding (_≤_ ; IndPoset) | ||
open LatticeTheory (DistLattice→Lattice L') | ||
open Order (DistLattice→Lattice L') | ||
open IsLatticeHom | ||
|
||
-- importing other downset related stuff | ||
open PosetDownset IndPoset public | ||
|
||
private | ||
L = L' .fst | ||
LPoset = IndPoset | ||
instance | ||
_ = L' .snd | ||
_ = LPoset .snd | ||
|
||
↓ᴰᴸ : L → DistLattice ℓ | ||
fst (↓ᴰᴸ u) = ↓ u | ||
DistLatticeStr.0l (snd (↓ᴰᴸ u)) = 0l , ∨lLid u | ||
DistLatticeStr.1l (snd (↓ᴰᴸ u)) = u , is-refl u | ||
DistLatticeStr._∨l_ (snd (↓ᴰᴸ u)) (v , v≤u) (w , w≤u) = | ||
v ∨l w , ∨lIsMax _ _ _ v≤u w≤u | ||
DistLatticeStr._∧l_ (snd (↓ᴰᴸ u)) (v , v≤u) (w , _) = | ||
v ∧l w , is-trans _ _ _ (≤m→≤j _ _ (∧≤RCancel _ _)) v≤u | ||
DistLatticeStr.isDistLattice (snd (↓ᴰᴸ u)) = makeIsDistLattice∧lOver∨l | ||
(isSetΣSndProp is-set λ _ → is-prop-valued _ _) | ||
(λ _ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∨lAssoc _ _ _)) | ||
(λ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∨lRid _)) | ||
(λ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∨lComm _ _)) | ||
(λ _ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∧lAssoc _ _ _)) | ||
(λ (_ , v≤u) → Σ≡Prop (λ _ → is-prop-valued _ _) (≤j→≤m _ _ v≤u)) | ||
(λ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∧lComm _ _)) | ||
(λ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∧lAbsorb∨l _ _)) | ||
(λ _ _ _ → Σ≡Prop (λ _ → is-prop-valued _ _) (∧lLdist∨l _ _ _)) | ||
|
||
toDownHom : (u : L) → DistLatticeHom L' (↓ᴰᴸ u) | ||
fst (toDownHom u) w = (u ∧l w) , ≤m→≤j _ _ (∧≤RCancel _ _) | ||
pres0 (snd (toDownHom u)) = Σ≡Prop (λ _ → is-prop-valued _ _) (0lRightAnnihilates∧l _) | ||
pres1 (snd (toDownHom u)) = Σ≡Prop (λ _ → is-prop-valued _ _) (∧lRid _) | ||
pres∨l (snd (toDownHom u)) v w = Σ≡Prop (λ _ → is-prop-valued _ _) (∧lLdist∨l _ _ _) | ||
pres∧l (snd (toDownHom u)) v w = Σ≡Prop (λ _ → is-prop-valued _ _) (∧lLdist∧l u v w) |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems weird to have this lemma only for
Join
and not forMeet
. But this was already the case for other definitions in this file (and I find it pretty hard to see which ones)...I guess this is part of the general question how to handle the duality between join and meet nicely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the analogous case for meets of this one: ef4ae22
I did treat meets and joins symmetrically, but I never ended up using big meets, so a bunch of lemmas are only done for big joins. After all, they are what you need to define a "cover", so arguably the more useful one...