RequireImport TestSuite.admit. (* File reduced by coq-bug-finder from original input, then from 12095 lines to 869 lines, then from 792 lines to 504 lines, then from 487 lines to 353 lines, then from 258 lines to 174 lines, then from 164 lines to 132 lines, then from 129 lines to 99 lines *) Set Universe Polymorphism. GeneralizableAllVariables. Axiom admit : forall {T}, T.
Reserved Notation"g 'o' f" (at level 40, left associativity). Definition compose {A B C : Type} (g : B -> C) (f : A -> B) := fun x => g (f x). Notation"g 'o' f" := (compose g f). Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where"x = y" := (@paths _ x y) : type_scope. Arguments idpath {A a} , [A] a. Definition pointwise_paths {A} {P:A->Type} (f g:forall x:A, P x) : Type := forall x:A, f x = g x.
#[export] HintUnfold pointwise_paths : typeclass_instances. Definition apD10 {A} {B:A->Type} {f g : forall x, B x} (h:f=g)
: forall x, f x = g x
:= fun x => match h with idpath => idpath end. Class IsEquiv {A B : Type} (f : A -> B) := BuildIsEquiv { equiv_inv : B -> A }. Class IsHSet (A : Type) := { _ : False }. Class Funext := { isequiv_apD10 :: forall (A : Type) (P : A -> Type) f g, IsEquiv (@apD10 A P f g) }.
Record PreCategory :=
{ object :> Type;
morphism : object -> object -> Type;
trunc_morphism : forall s d, IsHSet (morphism s d) }.
Definition trunc_equiv `(f : A -> B) `{IsHSet A} `{IsEquiv A B f} : IsHSet B := admit. GlobalInstance trunc_forall `{Funext} `{P : A -> Type} `{forall a, IsHSet (P a)}
: IsHSet (forall a, P a) | 100. Proof. generalize dependent P. intro P. assert (f : forall a, P a) by admit. assert (g : forall a, P a) by admit. pose (@trunc_equiv (forall x : A, @paths (P x) (f x) (g x))
(@paths (forall x : A, P x) f g)
(@equiv_inv (@paths (forall x : A, P x) f g)
(forall x : A, @paths (P x) (f x) (g x))
(@apD10 A P f g) (@isequiv_apD10 H A P f g))).
admit. Defined.
Record Functor (C D : PreCategory) := { object_of :> C -> D }. Definition identity C : Functor C C := Build_Functor C C admit. Notation"1" := (identity _) : functor_scope. Definition functor_category (C D : PreCategory) : PreCategory
:= @Build_PreCategory (Functor C D) admit admit. Notation"C -> D" := (functor_category C D) : category_scope.
Record hSet := BuildhSet {setT:> Type; iss :> IsHSet setT}. Global Existing Instance iss. Definition set_cat `{Funext} : PreCategory :=
@Build_PreCategory hSet
(fun x y => x -> y)
_.
Section hom_functor.
Context `{Funext}. Variable C : PreCategory.
LocalNotation obj_of c'c :=
(BuildhSet
(morphism
C
c'c
c'c)
admit). Let hom_functor_morphism_of s's d'd (hf : morphism C s's d'd)
: morphism set_cat (obj_of s's) (obj_of d'd)
:= admit.
Definition hom_functor : Functor C set_cat := admit. End hom_functor. LocalOpenScope category_scope. LocalOpenScope functor_scope.
#[warning="context-outside-section"] Context `{Funext}. Parameter D : PreCategory. Set Printing Universes. Check hom_functor D o 1. (* Toplevel input, characters 20-44: Error:Illegalapplication: Theterm"@set_cat"oftype"(Funext->PreCategory)%type" cannotbeappliedtotheterm "H":"Funext" Thistermhastype"Funext"whichshouldbecoercibleto
"Funext". *) (* The command has indeed failed with message: =>Error:Illegalapplication: Theterm"@set_cat@{Top.345Top.346Top.331Top.332Top.337Top.338Top.339}" oftype "(Funext@{Top.346Top.346Top.331Top.332Top.346}->PreCategory@{Top.345 Top.346})%type" cannotbeappliedtotheterm "H@{Top.346Top.330Top.331Top.332Top.333}" :"Funext@{Top.346Top.330Top.331Top.332Top.333}" Thistermhastype"Funext@{Top.346Top.330Top.331Top.332Top.333}" whichshouldbecoercibleto "Funext@{Top.346Top.346Top.331Top.332Top.346}".
*)
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.