-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work on issue #2015: grp_pow and related things #2071
Conversation
theories/Algebra/Groups/Group.v
Outdated
(** [grp_pow] satisfies a multiplicative law of exponents. *) | ||
Definition grp_pow_int_mul {G : Group} (m n : Int) (g : G) | ||
: grp_pow g (m * n)%int = grp_pow (grp_pow g m) n. | ||
(* This will follow from the previous two. *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(* This will follow from the previous two. *) |
theories/Algebra/Rings/Z.v
Outdated
@@ -29,7 +29,7 @@ Definition rng_int_mult (R : Ring) := grp_pow_homo : R -> Int -> R. | |||
|
|||
(** [rng_int_mult R 1] preserves multiplication. This requires that the specified ring element is the unit. *) | |||
Global Instance issemigrouppreserving_mult_rng_int_mult (R : Ring) | |||
: IsSemiGroupPreserving (A:=cring_Z) (Aop:=(.*.)) (Bop:=(.*.)) (rng_int_mult R 1). | |||
: IsSemiGroupPreserving (A:=cring_Z) (Aop:=(.*.)) (Bop:=(.*.)) (@rng_int_mult R 1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
: IsSemiGroupPreserving (A:=cring_Z) (Aop:=(.*.)) (Bop:=(.*.)) (@rng_int_mult R 1). | |
: IsSemiGroupPreserving (A:=cring_Z) (Aop:=(.*.)) (Bop:=(.*.)) (rng_int_mult R 1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot this change in this commit. I will do this tomorrow.
It's probably also worth stating a third variant of Then |
theories/Algebra/Rings/Z.v
Outdated
- simpl. | ||
unfold rng_int_mult. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation here seems off. Everything after a -
should be two spaces indented so that you can easily see the parts of the proof.
- foo.
bar.
- foo.
bar.
theories/Algebra/Rings/Z.v
Outdated
@@ -85,3 +114,4 @@ Proof. | |||
lhs_V nrapply (rng_homo_plus g). | |||
f_ap. | |||
Defined. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theories/Algebra/Groups/Group.v
Outdated
rewrite int_add_neg_l. | ||
easy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easy
is a bit weird, I would prefer if you instead used by
or better yet, just explicitly use a tactic.
I haven't found a proof for |
@ndcroos There are a few problems with this PR:
After things are in a good state again, it'll be easier to work on |
Thanks for the feedback. Could I get some hints for |
The proof of |
And |
I tightened up a few proofs and think this is ready to merge. @Alizter , do you want to give it a quick check? Before merging, I think we should squash most of the commits, since there was a lot of churn and some intermediate commits don't build. I'll do this after both @Alizter and @ndcroos respond (so @ndcroos can see the last few commits I made). |
@ndcroos A few general comments about how this ended up working out:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Looks also good to me. |
48d6935
to
9b73029
Compare
Thanks, @ndcroos! |
Fixes #2015