Guest User

Untitled

a guest
Jan 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.40 KB | None | 0 0
  1. diff --git a/src/Bool.agda b/src/Bool.agda
  2. index 25a0a7f..ff7c092 100644
  3. --- a/src/Bool.agda
  4. +++ b/src/Bool.agda
  5. @@ -86,7 +86,7 @@ not≡↔≡not {false} {false} =
  6.  
  7. -- Some lemmas related to T.
  8.  
  9. -T↔≡true : ∀ {b} → T b ↔ b ≡ true
  10. +T↔≡true : {b : Bool} → T b ↔ b ≡ true
  11. T↔≡true {false} = $⟨ Bool.true≢false ⟩
  12. true ≢ false ↝⟨ (_∘ sym) ⟩
  13. false ≢ true ↝⟨ Bijection.⊥↔uninhabited ⟩□
  14. diff --git a/src/Equality.agda b/src/Equality.agda
  15. index d45e369..8b74c2d 100644
  16. --- a/src/Equality.agda
  17. +++ b/src/Equality.agda
  18. @@ -1590,7 +1590,7 @@ module Derived-definitions-and-properties
  19. trans (f≡g x px) (cong g (refl x)) ∎)
  20. _
  21. where
  22. - T-irr : ∀ b → Proof-irrelevant (T b)
  23. + T-irr : (b : Bool) → Proof-irrelevant (T b)
  24. T-irr true _ _ = refl _
  25. T-irr false ()
  26.  
  27. diff --git a/src/H-level/Closure.agda b/src/H-level/Closure.agda
  28. index 82ad340..8428906 100644
  29. --- a/src/H-level/Closure.agda
  30. +++ b/src/H-level/Closure.agda
  31. @@ -625,7 +625,7 @@ abstract
  32. to : A ⊎ B → (∃ λ x → if x then ↑ b A else ↑ a B)
  33. to = [ _,_ true ∘ lift , _,_ false ∘ lift ]
  34.  
  35. - from : (∃ λ x → if x then ↑ b A else ↑ a B) → A ⊎ B
  36. + from : (∃ {A = Bool} λ x → if x then ↑ b A else ↑ a B) → A ⊎ B
  37. from (true , x) = inj₁ $ lower x
  38. from (false , y) = inj₂ $ lower y
  39.  
  40. @@ -665,7 +665,7 @@ abstract
  41. Bool-2+n : H-level (2 + n) Bool
  42. Bool-2+n = mono (m≤m+n 2 n) Bool-set
  43.  
  44. - if-2+n : ∀ x → H-level (2 + n) (if x then ↑ b A else ↑ a B)
  45. + if-2+n : (x : Bool) → H-level (2 + n) (if x then ↑ b A else ↑ a B)
  46. if-2+n true = respects-surjection
  47. (_↔_.surjection $ Bijection.inverse ↑↔)
  48. (2 + n) hA
  49. diff --git a/src/Quotient.agda b/src/Quotient.agda
  50. index a85dc73..4e1c09a 100644
  51. --- a/src/Quotient.agda
  52. +++ b/src/Quotient.agda
  53. @@ -694,7 +694,8 @@ module _ {a} {A : Set a} {R : A → A → Set a} where
  54. inverse currying) (λ _ →
  55. F.id) ⟩
  56. (∃ λ (f : (x : A) → (∃ λ P → R x ≡ P) → B) →
  57. - ∀ P → Constant (λ { (x , eq) → f x (P , eq) })) ↝⟨ inverse $
  58. + ∀ P → Constant {A = ∃ λ x → R x ≡ P} (λ { (x , eq) → f x (P , eq) }))
  59. + ↝⟨ inverse $
  60. Σ-cong (Bij.inverse $
  61. ∀-cong (lower-extensionality _ _ ext) λ _ →
  62. drop-⊤-left-Π (lower-extensionality _ _ ext) $
  63. diff --git a/src/Univalence-axiom/Isomorphism-is-equality/Simple.agda b/src/Univalence-axiom/Isomorphism-is-equality/Simple.agda
  64. index d0a5eca..44b0377 100644
  65. --- a/src/Univalence-axiom/Isomorphism-is-equality/Simple.agda
  66. +++ b/src/Univalence-axiom/Isomorphism-is-equality/Simple.agda
  67. @@ -291,7 +291,8 @@ module Class (Univ : Universe) where
  68. eq)
  69.  
  70. (Σ-map ≡⇒≃ f (Σ-≡,≡←≡ (proj₁ (Σ-≡,≡←≡ {A = ∃ (El a)}
  71. - (cong (λ { (C , (x , p)) → (C , x) , p })
  72. + (cong {A = ∃ λ _ → ∃ _}
  73. + (λ { (C , (x , p)) → (C , x) , p })
  74. (refl (C , x , p)))))) ≡⟨ cong (Σ-map ≡⇒≃ f ∘ Σ-≡,≡←≡ ∘ proj₁ ∘ Σ-≡,≡←≡) $
  75. cong-refl {A = Instance (a , P)}
  76. (λ { (C , (x , p)) → (C , x) , p }) ⟩
  77. @@ -1273,7 +1274,7 @@ private
  78. +-comm *-comm *+ +0 *1 +- 0≢1 =
  79. _⇔_.from propositional⇔irrelevant irr
  80. where
  81. - irr : ∀ x y → x ≡ y
  82. + irr : (x y : ∃ λ _ → ∃ _) → x ≡ y
  83. irr (inv , inv₁ , inv₂) (inv′ , inv₁′ , inv₂′) =
  84. _↔_.to (ignore-propositional-component
  85. (×-closure 1 (Π-closure ext 1 λ _ →
  86.  
  87. diff --git a/src/Lambda/Partiality-monad/Inductive/Interpreter.agda b/src/Lambda/Partiality-monad/Inductive/Interpreter.agda
  88. index 441d226..47e589b 100644
  89. --- a/src/Lambda/Partiality-monad/Inductive/Interpreter.agda
  90. +++ b/src/Lambda/Partiality-monad/Inductive/Interpreter.agda
  91. @@ -136,7 +136,7 @@ module Interpreter₂ where
  92.  
  93. ⟦_⟧ : ∀ {n} → Tm n → Env n → M Value
  94. run (⟦ t ⟧ ρ) =
  95. - fixP (λ { (_ , t , ρ) → run (⟦ t ⟧′ ρ) }) (_ , t , ρ)
  96. + fixP {A = ∃ λ _ → ∃ _} (λ { (_ , t , ρ) → run (⟦ t ⟧′ ρ) }) (_ , t , ρ)
  97.  
  98. ------------------------------------------------------------------------
  99. -- The two interpreters are pointwise equal
  100.  
  101. diff --git a/src/Bisimilarity/Classical.agda b/src/Bisimilarity/Classical.agda
  102. index 98f9ec6..907cd71 100644
  103. --- a/src/Bisimilarity/Classical.agda
  104. +++ b/src/Bisimilarity/Classical.agda
  105. @@ -175,15 +175,16 @@ transitive-∼ p∼q q∼r with _⇔_.to (Bisimilarity↔ _) p∼q
  106. | _⇔_.to (Bisimilarity↔ _) q∼r
  107. ... | R₁ , R-is₁ , pR₁q | R₂ , R-is₂ , qR₂r =
  108. ⟨ R₁ ⊙ R₂
  109. - , ⟪ (λ { (q , pR₁q , qR₂r) p⟶p′ →
  110. + , ⟪_,_⟫
  111. + {R = λ _ → ∃ λ _ → ∃ _}
  112. + (λ { (q , pR₁q , qR₂r) p⟶p′ →
  113. let q′ , q⟶q′ , p′R₁q′ = left-to-right R-is₁ pR₁q p⟶p′
  114. r′ , r⟶r′ , q′R₂r′ = left-to-right R-is₂ qR₂r q⟶q′
  115. in r′ , r⟶r′ , (q′ , p′R₁q′ , q′R₂r′) })
  116. - , (λ { (q , pR₁q , qR₂r) r⟶r′ →
  117. + (λ { (q , pR₁q , qR₂r) r⟶r′ →
  118. let q′ , q⟶q′ , q′R₂r′ = right-to-left R-is₂ qR₂r r⟶r′
  119. p′ , p⟶p′ , p′R₁q′ = right-to-left R-is₁ pR₁q q⟶q′
  120. in p′ , p⟶p′ , (q′ , p′R₁q′ , q′R₂r′) })
  121. - ⟫
  122. , (_ , pR₁q , qR₂r)
  123.  
  124. @@ -240,7 +241,9 @@ bisimulation-up-to-∼⇒bisimulation :
  125. Bisimulation-up-to-bisimilarity R →
  126. Bisimulation (Bisimilarity ⊙ R ⊙ Bisimilarity)
  127. bisimulation-up-to-∼⇒bisimulation R-is =
  128. - ⟪ (λ { (q , p∼q , r , qRr , r∼s) p⟶p′ →
  129. + ⟪_,_⟫
  130. + {R = λ _ → ∃ λ _ → ∃ λ _ → ∃ λ _ → ∃ _}
  131. + (λ { (q , p∼q , r , qRr , r∼s) p⟶p′ →
  132. let q′ , q⟶q′ , p′∼q′ =
  133. left-to-right bisimilarity-is-a-bisimulation p∼q p⟶p′
  134. r′ , r⟶r′ , (q″ , q′∼q″ , r″ , q″Rr″ , r″∼r′) =
  135. @@ -252,7 +255,7 @@ bisimulation-up-to-∼⇒bisimulation R-is =
  136. , transitive-∼ p′∼q′ q′∼q″
  137. , r″ , q″Rr″
  138. , transitive-∼ r″∼r′ r′∼s′ })
  139. - , (λ { (q , p∼q , r , qRr , r∼s) s⟶s′ →
  140. + (λ { (q , p∼q , r , qRr , r∼s) s⟶s′ →
  141. let r′ , r⟶r′ , r′∼s′ =
  142. right-to-left bisimilarity-is-a-bisimulation r∼s s⟶s′
  143. q′ , q⟶q′ , (q″ , q′∼q″ , r″ , q″Rr″ , r″∼r′) =
  144. @@ -264,7 +267,6 @@ bisimulation-up-to-∼⇒bisimulation R-is =
  145. , transitive-∼ p′∼q′ q′∼q″
  146. , r″ , q″Rr″
  147. , transitive-∼ r″∼r′ r′∼s′ })
  148. - ⟫
  149.  
  150. -- If R is a bisimulation up to bisimilarity, then R is contained in
  151. -- bisimilarity.
  152.  
  153. diff --git a/src/Free-variables.agda b/src/Free-variables.agda
  154. index ffdd957..57b701a 100644
  155. --- a/src/Free-variables.agda
  156. +++ b/src/Free-variables.agda
  157. @@ -117,7 +117,7 @@ mutual
  158. subst-∈FV x (lambda y e) (lambda x′≢y p) | yes x≡y = inj₁ (lambda x′≢y p , x′≢y ∘ flip trans x≡y)
  159. subst-∈FV x (lambda y e) (lambda x′≢y p) | no _ = ⊎-map (Σ-map (lambda x′≢y) id) id (subst-∈FV x e p)
  160. subst-∈FV x (case e bs) (case-head p) = ⊎-map (Σ-map case-head id) id (subst-∈FV x e p)
  161. - subst-∈FV x (case e bs) (case-body p ps x′∉xs) = ⊎-map (Σ-map (λ p → let _ , _ , _ , ps , p , ∉ = p in
  162. + subst-∈FV x (case e bs) (case-body p ps x′∉xs) = ⊎-map (Σ-map (λ (p : ∃ λ _ → ∃ λ _ → ∃ λ _ → ∃ λ _ → ∃ _) → let _ , _ , _ , ps , p , ∉ = p in
  163. case-body p ps ∉)
  164. id)
  165. id
  166.  
  167. diff -rN -u old-dependent-lenses/src/Lens/Non-dependent/Alternative.agda new-dependent-lenses/src/Lens/Non-dependent/Alternative.agda
  168. --- old-dependent-lenses/src/Lens/Non-dependent/Alternative.agda 2018-01-05 11:39:25.769594364 +0100
  169. +++ new-dependent-lenses/src/Lens/Non-dependent/Alternative.agda 2018-01-05 11:39:25.769594364 +0100
  170. @@ -953,7 +953,7 @@
  171.  
  172. (∥ B ∥ ×
  173. (∃ λ (f : B → R) → Constant f) ×
  174. - (∃ λ (g : B → B) → B → ∀ b → b ≡ g b)) ↔⟨ (∃-cong λ ∥b∥ → ∃-cong λ { (f , _) → ∃-cong λ _ → inverse $
  175. + (∃ λ (g : B → B) → B → ∀ b → b ≡ g b)) ↔⟨ (∃-cong λ ∥b∥ → ∃-cong {A = ∃ _} λ { (f , _) → ∃-cong λ _ → inverse $
  176. →-intro ext (λ _ → B-set f ∥b∥ _ _) }) ⟩
  177. (∥ B ∥ ×
  178. (∃ λ (f : B → R) → Constant f) ×
Add Comment
Please, Sign In to add comment