-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathClassifying.agda
More file actions
34 lines (26 loc) · 1.42 KB
/
Classifying.agda
File metadata and controls
34 lines (26 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{-# OPTIONS --without-K #-}
module Classifying where
open import Basics
open import Flat
open import lib.types.Sigma
open import lib.Equivalence2
open import lib.types.Truncation
BAut : ∀ {i} {X : Type i} (x : X) → Type i
BAut {X = X} x = Σ X $ (\y → ∥ x == y ∥)
♭-commutes-with-BAut : {i :{♭} ULevel } (X :{♭} Type i) (x :{♭} X)
→ (♭ (BAut x)) ≃ BAut (x ^♭)
♭-commutes-with-BAut X x = ♭ (BAut x)
≃⟨ ♭-commutes-with-Σ ⟩
Σ (♭ X) (\u → let♭ y ^♭:= u in♭ (♭ ∥ x == y ∥))
≃⟨ Σ-emap-r lemma₂ ⟩
Σ (♭ X) (\u → let♭ y ^♭:= u in♭ ∥ ♭ (x == y) ∥)
≃⟨ Σ-emap-r lemma₁ ⟩
BAut (x ^♭)
≃∎
where
lemma₁ : (z : ♭ X) → (let♭ y ^♭:= z in♭ ∥ ♭ (x == y) ∥) ≃ ∥ (x ^♭) == z ∥
lemma₁ (z ^♭) = Trunc-emap (♭-identity-eq x z)
lemma₂ : (z : ♭ X) → (let♭ y ^♭:= z in♭ (♭ ∥ x == y ∥)) ≃ (let♭ y ^♭:= z in♭ ∥ ♭ (x == y) ∥)
lemma₂ (z ^♭) = (♭-Trunc-eq (x == z)) ⁻¹
_is-locally-crisply-discrete : {i :{♭} ULevel} (X :{♭} Type i) → Type i
_is-locally-crisply-discrete X = (x y :{♭} X) → (x == y) is-discrete