Built with Alectryon, running Coq+SerAPI v8.18.0+0.18.3. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.
(* -*- mode: coq; mode: visual-line -*- *)

(** * Theorems about the homotopical interval. *)

[Loading ML file number_string_notation_plugin.cmxs (using legacy method) ... done]
Require Import Types.Paths. Local Open Scope path_scope. Module Export Interval. Private Inductive interval : Type0 := | zero : interval | one : interval. Axiom seg : zero = one. Definition interval_ind (P : interval -> Type) (a : P zero) (b : P one) (p : seg # a = b) : forall x:interval, P x := fun x => (match x return _ -> P x with | zero => fun _ => a | one => fun _ => b end) p. Axiom interval_ind_beta_seg : forall (P : interval -> Type) (a : P zero) (b : P one) (p : seg # a = b), apD (interval_ind P a b p) seg = p. End Interval. Definition interval_rec (P : Type) (a b : P) (p : a = b) : interval -> P := interval_ind (fun _ => P) a b (transport_const _ _ @ p).
P: Type
a, b: P
p: a = b

ap (interval_rec P a b p) seg = p
P: Type
a, b: P
p: a = b

ap (interval_rec P a b p) seg = p
P: Type
a, b: P
p: a = b

transport_const seg a @ ap (interval_rec P a b p) seg = transport_const seg a @ p
P: Type
a, b: P
p: a = b

apD (interval_ind (fun _ : interval => P) a b (transport_const seg a @ p)) seg = transport_const seg a @ p
refine (interval_ind_beta_seg (fun _ => P) _ _ _). Defined. (** ** The interval is contractible. *)

Contr interval

Contr interval

forall y : interval, zero = y

transport (paths zero) seg 1 = seg
refine (transport_paths_r _ _ @ concat_1p _). Defined.