Skip to content

Commit

Permalink
prop ext lacking
Browse files Browse the repository at this point in the history
  • Loading branch information
javra committed Dec 10, 2020
1 parent d58b3db commit 1bd7406
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RedProp.agda
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# OPTIONS --prop --rewriting --allow-unsolved-metas #-}
module AME where
module RedProp where

open import Lib hiding (id; _∘_)
open import StrictLib renaming (_,_ to _p,_)
Expand Down Expand Up @@ -200,7 +200,7 @@ appS : {Γ : Con} {a : TmS Γ U} → {B : TyS (Γ ▶P El a)} → (f : TmS Γ (
appS {Γ}{a}{B} f = record { ᴬ = λ { (γ , α) f.ᴬ γ α } ;
= λ { {γᴬ , αᴬ} {δᴬ , βᴬ} (γᴹ , lift refl) (f.ᴹ γᴹ αᴬ) } ;
ᴾᴬ = λ { (γᴾᴬ , plift α) f.ᴾᴬ γᴾᴬ α } ;
E = f.E ;
E = f.E ;
w = λ { (γ , α) f.w γ S.$S α } ;
R = λ { (γ , α) (γᴬ , αᴬ) f.R γ γᴬ S.$S αᴬ } }
where
Expand Down
44 changes: 44 additions & 0 deletions StrictLib.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{-# OPTIONS --prop --rewriting --allow-unsolved-metas #-}

open import Relation.Binary.PropositionalEquality using (_≡_; refl)
open import Lib

module StrictLib where

data P⊤ {ℓ} : Propwhere
ptt : P⊤

data _∧_ {ℓ}(p q : Prop ℓ) : Propwhere
_,_ : p q (p ∧ q)

p₁ : {ℓ}{p q : Prop ℓ} p ∧ q p
p₁ (x , y) = x

p₂ : {ℓ}{p q : Prop ℓ} p ∧ q q
p₂ (x , y) = y

Pcoe : {ℓ}{A A' : Prop ℓ} A ≡ A' A A'
Pcoe refl a = a

PΠ≡ :
{α β}{A A' : Set α}{B : A Prop β}{B' : A' Prop β}
(p : A ≡ A') ((a : A) B a ≡ B' (coe p a))
((a : A) B a) ≡ ((a' : A') B' a')
PΠ≡ {A = A} {B = B} {B'} refl q = (λ B (x : A) B x) & ext q

PPΠ≡ :
{α β}{A A' : Prop α}{B : A Prop β}{B' : A' Prop β}
(p : A ≡ A') ((a : A) B a ≡ B' (Pcoe p a))
((a : A) B a) ≡ ((a' : A') B' a')
PPΠ≡ {A = A} {B = B} {B'} refl q = {!!} --(λ B → (x : A) → B x) & pext q

PPΠ≡' :
{α β}{A : Prop α}{B B' : A Prop β} ((a : A) B a ≡ B' a)
((a : A) B a) ≡ ((a' : A) B' a')
PPΠ≡' {A = A}{B}{B'} q = apd (λ (B : A Prop _) (a : A) B a) {!!}

PΠ≡i :
{α β}{A A' : Set α}{B : A Prop β}{B' : A' Prop β}
(p : A ≡ A') ((a : A) B a ≡ B' (coe p a))
({a : A} B a) ≡ ({a' : A'} B' a')
PΠ≡i {A = A}{B = B} refl q = (λ B {x : A} B x) & ext q

0 comments on commit 1bd7406

Please sign in to comment.