Skip to content
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

[Merged by Bors] - fix(field_theory/intermediate_field): use a better algebra.smul definition, and generalize #10012

Closed

Conversation

eric-wieser
Copy link
Member

Previously coe_smul was not true by rfl


Open in Gitpod

…inition, and generalize

Previously coe_smul was not true by `rfl`
@eric-wieser eric-wieser force-pushed the eric-wieser/fix-intermediate_field.lift2_alg branch from 7ac033b to 3a28b09 Compare October 27, 2021 22:47
instance module' {R} [semiring R] [has_scalar R K] [module R L] [is_scalar_tower R K L] :
module R S :=
S.to_subalgebra.module'
instance module : module K S := S.to_subalgebra.module
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline?

Suggested change
instance module : module K S := S.to_subalgebra.module
instance module : module K S := S.to_subalgebra.module

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm copying

instance module' [semiring R'] [has_scalar R' R] [module R' A] [is_scalar_tower R' R A] :
module R' S :=
S.to_submodule.module'
instance : module R S := S.module'

rw [trace_algebra_map, ← is_scalar_tower.algebra_map_smul K, (algebra.trace K K⟮x⟯).map_smul,
smul_eq_mul, algebra.smul_def],
apply_instance
rw [trace_algebra_map, linear_map.map_smul_of_tower],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain why this proof broke, but this new proof is better anyway.

@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Oct 28, 2021
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Oct 28, 2021
bors bot pushed a commit that referenced this pull request Oct 28, 2021
…inition, and generalize (#10012)

Previously coe_smul was not true by `rfl`
@bors
Copy link

bors bot commented Oct 28, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(field_theory/intermediate_field): use a better algebra.smul definition, and generalize [Merged by Bors] - fix(field_theory/intermediate_field): use a better algebra.smul definition, and generalize Oct 28, 2021
@bors bors bot closed this Oct 28, 2021
@bors bors bot deleted the eric-wieser/fix-intermediate_field.lift2_alg branch October 28, 2021 18:57
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
…inition, and generalize (#10012)

Previously coe_smul was not true by `rfl`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants