Skip to content

Commit 053a003

Browse files
committed
refactor(Tactic): change ring to allow for coefficients in a variable type (leanprover-community#34734)
Add a parameter to the `ring` normal form that allows for the coefficients to be represented by a custom `BaseType`. `ring` (roughly) sets `BaseType` to be `Rat` and implements addition/multiplication/etc. using `norm_num`. The changes should not be noticeable to users. Care was taken to change as little of the implementation details as possible. This refactor is made in preparation of the `algebra` tactic proposed in leanprover-community#31508. In particular `algebra` will (roughly) set `BaseType` to `Ring.ExSum`. This will allow `algebra` to share much of its internals with `ring`.
1 parent 08becba commit 053a003

6 files changed

Lines changed: 1107 additions & 655 deletions

File tree

0 commit comments

Comments
 (0)