Function extensionality is not derivable in Agda or Coq. It can be postulated as an axiom that is consistent with the theory, but you cannot construct a term for the type representing function extensionality.
In Cubical Agda it is derivable and it has a tauntingly concise definition. (removing Level for a moment since that is tangental)
funext : {A B : Set}{f g : A → B} → (∀ (a : A) → f a ≡ g a) → f ≡ g
funext p i a = p a i
That said, there is a fair amount to unpack to understand what is going on here.
Cubical Agda adds an abstract Interval Type I which has two endpoints i0 and i1. (see footnote [1])