(* Title: HoTT/Unit.thy Author: Josh Chen Unit type *) theory Unit imports HoTT_Base begin section \Constants and type rules\ axiomatization Unit :: Term ("\") and pt :: Term ("\") and indUnit :: "[Term, Term] \ Term" ("(1ind\<^sub>\)") where Unit_form: "\: U(O)" and Unit_intro: "\: \" and Unit_elim: "\C: \ \ U i; c: C \; a: \\ \ ind\<^sub>\ c a: C a" and Unit_comp: "\C: \ \ U i; c: C \\ \ ind\<^sub>\ c \ \ c" text "Rule attribute declarations:" lemmas Unit_comp [comp] lemmas Unit_routine [intro] = Unit_form Unit_intro Unit_elim end