Skip to content

ZModP: clone ZModpField with <= substitutions - #1238

Open
bgregoir wants to merge 1 commit into
mainfrom
zmodp-subst
Open

bgregoir wants to merge 1 commit into
mainfrom
zmodp-subst

Conversation

@bgregoir

Copy link
Copy Markdown
Contributor

The Ring.Field clone ZModpField in theories/algebra/ZModP.ec now uses <= substitutions, as ZModpRing already does. This keeps its type and operators as definitions, so ZModpField can be given for a field or integral-domain theory parameter, e.g. clone Poly.Poly with type coeff <- zmod, theory IDCoeff <- ZModpField.

All of stdlib and examples still check. First of a stack (split from #1233 as suggested in review): this PR, then #1233 (Pocklington), then #1237 (ChaChaPoly).

The type and operators of the field structure are now substituted with
<= instead of <-, so that ZModpField keeps them and can be passed as a
theory, e.g. theory IDCoeff <- ZModpField when cloning Poly.Poly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant