| 1 |
Set Universe Polymorphism. |
| 2 |
Unset Strict Universe Declaration. |
| 3 |
Set Primitive Projections. |
| 4 |
|
| 5 |
Axiom Relation@{u} : Type@{u} -> Type@{u}. |
| 6 |
Inductive GraphQuotient {A : Type@{i}} (R : Relation A) : Type@{u} := |
| 7 |
| gq : A -> GraphQuotient R. |
| 8 |
|
| 9 |
Arguments gq {A R} a. |
| 10 |
|
| 11 |
Axiom IsConnMap@{i} : forall {A B : Type@{i}}, (A -> B) -> Type@{i}. |
| 12 |
|
| 13 |
Definition class_of@{i k} {A : Type@{i}} (R : Relation@{i} A) : A -> GraphQuotient@{i k} R := gq. |
| 14 |
|
| 15 |
Axiom issurj_class_of : forall {A : Type} (R : Relation A), IsConnMap (class_of R). |
| 16 |
|
| 17 |
Record Homomorphism {σ} {A B : σ -> Type} : Type := BuildHomomorphism |
| 18 |
{ def_hom : forall (s : σ), A s -> B s }. |
| 19 |
|
| 20 |
Arguments Homomorphism {σ}. |
| 21 |
|
| 22 |
Arguments BuildHomomorphism {σ A B} def_hom. |
| 23 |
|
| 24 |
Definition QuotientAlgebra {σ : Type} (A : σ -> Type) (Φ : forall s, Relation (A s)) (s : σ) : Type := |
| 25 |
GraphQuotient (Φ s). |
| 26 |
|
| 27 |
Definition def_hom_quotient {σ} {A : σ -> Type} (Φ : forall s, Relation (A s)) (s : σ) (x : A s) : |
| 28 |
(QuotientAlgebra A Φ) s := class_of (Φ s) x. |
| 29 |
Definition hom_quotient {σ} {A : σ -> Type} (Φ : forall s, Relation (A s)) : Homomorphism A (QuotientAlgebra A Φ) := |
| 30 |
BuildHomomorphism (def_hom_quotient Φ). |
| 31 |
|
| 32 |
Lemma surjection_quotient : forall {σ} {A : σ -> Type} (Φ : forall s, Relation (A s)) s, IsConnMap (def_hom (hom_quotient Φ) s). |
| 33 |
Proof. |
| 34 |
intros σ A Φ s. |
| 35 |
apply issurj_class_of. |
| 36 |
Qed. |