Skip to content

Commit

Permalink
Document limitation of fieldExtType cloning
Browse files Browse the repository at this point in the history
Default cloning requires a manifest field class.
  • Loading branch information
Georges Gonthier committed Dec 4, 2015
1 parent 903a5e4 commit bd8cf1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mathcomp/field/fieldext.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Require Import poly polydiv mxpoly generic_quotient.
(* it simply combines the fieldType and FalgType F *)
(* interfaces. *)
(* [fieldExtType F of L] == a fieldExt F structure for a type L that has both *)
(* fieldType and FalgType F canonical structures. *)
(* FalgType F and fieldType canonical instances. The *)
(* field class instance must be manifest with explicit *)
(* comRing, idomain, and field mixins. If L has an *)
(* abstract field class should use the 'for' variant. *)
(* [fieldExtType F of L for K] == a fieldExtType F structure for a type L *)
(* that has an FalgType F canonical structure, given *)
(* a K : fieldType whose unitRingType projection *)
Expand Down Expand Up @@ -250,10 +253,7 @@ Notation fieldExtType R := (type (Phant R)).
Notation "[ 'fieldExtType' F 'of' L ]" :=
(@pack _ (Phant F) L _ _ id _ _ _ _ id)
(at level 0, format "[ 'fieldExtType' F 'of' L ]") : form_scope.
(*Notation "[ 'fieldExtType' F 'of' L 'for' K ]" :=
(@FieldExt.pack _ (Phant F) L _ _ id K _ _ _ idfun)
(at level 0, format "[ 'fieldExtType' F 'of' L 'for' K ]") : form_scope.
*)

Notation "[ 'fieldExtType' F 'of' L 'for' K ]" :=
(@pack_eta _ (Phant F) L K _ _ id _ id)
(at level 0, format "[ 'fieldExtType' F 'of' L 'for' K ]") : form_scope.
Expand Down

0 comments on commit bd8cf1b

Please sign in to comment.