Skip to content

Instantly share code, notes, and snippets.

@ncfavier
Created July 31, 2025 21:02
Show Gist options
  • Save ncfavier/ae6224e1ff31aa660b2addd6acccc4e3 to your computer and use it in GitHub Desktop.
Save ncfavier/ae6224e1ff31aa660b2addd6acccc4e3 to your computer and use it in GitHub Desktop.
module TerminalLarge where
open import 1Lab.Prelude
module
_
{ℓ}
(X : Type ℓ)
(Y : Type) (f : Y → X)
(f-term : (Z : Type) (g : Z → X) → is-contr (Σ[ h ∈ (Z → Y) ] f ∘ h ≡ g))
where
f-equiv : is-equiv f
f-equiv .is-eqv x =
Equiv→is-hlevel 0
(Σ-ap (Π-contr-eqv (hlevel 0)) (λ _ → ap-equiv (Π-contr-eqv (hlevel 0))) e⁻¹)
(f-term ⊤ (λ _ → x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment