| 1 |
Require Import TestSuite.admit. |
| 2 |
Set Primitive Projections. |
| 3 |
Axiom admit : forall {T}, T. |
| 4 |
Notation "( x ; y )" := (existT _ x y) : fibration_scope. |
| 5 |
Open Scope fibration_scope. |
| 6 |
Notation "x .1" := (projT1 x) : fibration_scope. |
| 7 |
Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@paths _ x y) : type_scope. |
| 8 |
Set Implicit Arguments. |
| 9 |
Delimit Scope category_scope with category. |
| 10 |
Record PreCategory := { object :> Type ; morphism : object -> object -> Type }. |
| 11 |
Local Open Scope category_scope. |
| 12 |
Class IsIsomorphism {C : PreCategory} {s d} (m : morphism C s d) := { morphism_inverse : morphism C d s }. |
| 13 |
Class Isomorphic {C : PreCategory} s d := { morphism_isomorphic :: @morphism C s d ; isisomorphism_isomorphic :: IsIsomorphism morphism_isomorphic }. |
| 14 |
Coercion morphism_isomorphic : Isomorphic >-> morphism. |
| 15 |
Local Infix "<~=~>" := Isomorphic (at level 70, no associativity) : category_scope. |
| 16 |
Definition idtoiso (C : PreCategory) (x y : C) (H : x = y) : Isomorphic x y := admit. |
| 17 |
Record NotionOfStructure (X : PreCategory) := { structure :> X -> Type }. |
| 18 |
Record Smorphism (X : PreCategory) (P : NotionOfStructure X) (xa yb : { x : X & P x }) := { f : morphism X xa.1 yb.1 }. |
| 19 |
Definition precategory_of_structures X (P : NotionOfStructure X) : PreCategory. |
| 20 |
Proof. |
| 21 |
refine (@Build_PreCategory _ (@Smorphism _ P)). |
| 22 |
Defined. |
| 23 |
Section sip. |
| 24 |
Variable X : PreCategory. |
| 25 |
Variable P : NotionOfStructure X. |
| 26 |
|
| 27 |
Let StrX := @precategory_of_structures X P. |
| 28 |
|
| 29 |
Definition sip_isotoid (xa yb : StrX) (f : xa <~=~> yb) : xa = yb. |
| 30 |
admit. |
| 31 |
Defined. |
| 32 |
|
| 33 |
Lemma structure_identity_principle_helper (xa yb : StrX) |
| 34 |
(x : xa <~=~> yb) : Smorphism P xa yb. |
| 35 |
Proof. |
| 36 |
refine ((idtoiso (precategory_of_structures P) (sip_isotoid x) : @morphism _ _ _) : morphism _ _ _). |
| 37 |
(* Toplevel input, characters 24-95: |
| 38 |
Error: |
| 39 |
In environment |
| 40 |
X : PreCategory |
| 41 |
P : NotionOfStructure X |
| 42 |
StrX := precategory_of_structures P : PreCategory |
| 43 |
xa : object StrX |
| 44 |
yb : object StrX |
| 45 |
x : xa <~=~> yb |
| 46 |
The term "morphism_isomorphic:@morphism (precategory_of_structures P) xa yb" |
| 47 |
has type "@morphism (precategory_of_structures P) xa yb" |
| 48 |
while it is expected to have type "morphism ?40 ?41 ?42". *) |
| 49 |
Abort. |
| 50 |
End sip. |