Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion theory/rationals.v
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Hint Unfold rationals_to_rationals : typeclass_instances.
Section another_rationals.
Context `{Rationals Q1} `{Rationals Q2}.

Hint Extern 4 => progress unfold rationals_to_rationals : typeclass_instances.

Local Existing Instance to_frac_bijective.
Global Instance: SemiRing_Morphism (rationals_to_rationals Q1 Q2) := _.
Global Instance: Bijective (rationals_to_rationals Q1 Q2) := _.
Expand Down Expand Up @@ -142,7 +144,7 @@ Section isomorphic_image_is_rationals.
Context (f : Q → F) `{!Inverse f} `{!Bijective f} `{!SemiRing_Morphism f}.

Instance iso_to_frac: RationalsToFrac F := λ Z _ _ _ _ _ _ _ _, rationals_to_frac Q Z ∘ f⁻¹.
Hint Unfold iso_to_frac: typeclass_instances.
Hint Extern 4 => progress unfold iso_to_frac : typeclass_instances.

Instance: Bijective (f⁻¹) := _.
Instance: SemiRing_Morphism (f⁻¹) := {}.
Expand Down
2 changes: 1 addition & 1 deletion theory/ua_subalgebra.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Section subalgebras.

Definition carrier s := sig (P s).

Hint Unfold carrier: typeclass_instances.
Hint Extern 4 => progress unfold carrier: typeclass_instances.

(* We can implement closed operations in the new algebra: *)

Expand Down
4 changes: 2 additions & 2 deletions theory/ua_subalgebraT.v
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Section subalgebras.

Definition carrier s := sigT (P s).

Hint Unfold carrier: typeclass_instances.
Hint Extern 4 => progress unfold carrier: typeclass_instances.

(* We can implement closed operations in the new algebra: *)

Expand Down Expand Up @@ -78,4 +78,4 @@ Section subalgebras.
Proof. constructor. apply _. intro. apply close_op_proper, algebra_propers. Qed.
End subalgebras.

Hint Unfold carrier: typeclass_instances.
Hint Extern 4 => progress unfold carrier: typeclass_instances.