-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invert primINeg when it appears in metavariable spines (#6645)
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 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
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,19 @@ | ||
{-# OPTIONS --cubical #-} | ||
module PruneINeg where | ||
|
||
open import Agda.Primitive renaming (Set to Type) | ||
open import Agda.Primitive.Cubical renaming (primIMin to _∧_; primIMax to _∨_; primINeg to ~_; isOneEmpty to empty) | ||
open import Agda.Builtin.Cubical.Path | ||
|
||
refl : ∀ {ℓ₁} {A : Type ℓ₁} {x : A} → x ≡ x | ||
refl {x = x} i = x | ||
|
||
sym : ∀ {ℓ₁} {A : Type ℓ₁} {x y : A} | ||
→ x ≡ y → y ≡ x | ||
sym p i = p (~ i) | ||
|
||
module _ {A : Set} {x y : A} (p : x ≡ y) where | ||
_ : sym p ≡ sym _ | ||
_ = refl | ||
-- Need to solve a constraint like _ (~ i) := p (~ i) by expanding | ||
-- (~ i) := t into i := ~ t in the meta spine |