Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(simps): use coercion for algebra morphisms (#4155)
Previously it tried to apply whnf on an open expression, which failed, so it wouldn't find the coercion. Now it applied whnf before opening the expression. Also use `simps` for `fixed_points.to_alg_hom`. The generated lemmas are ```lean fixed_points.to_alg_hom_to_fun : ∀ (G : Type u) (F : Type v) [_inst_4 : group G] [_inst_5 : field F] [_inst_6 : faithful_mul_semiring_action G F], ⇑(to_alg_hom G F) = λ (g : G), {to_fun := (mul_semiring_action.to_semiring_hom G F g).to_fun, map_one' := _, map_mul' := _, map_zero' := _, map_add' := _, commutes' := _} ```
- Loading branch information
1 parent
9a11efb
commit 6603c6d
Showing
3 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool cannot be made into an algebra over unit, for any ring structure on unit ;-)