Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

feat(tactic/ring, tactic/linarith): add reducibility parameter#1053

Closed
robertylewis wants to merge 2 commits intomasterfrom
ring_linarith_transparency
Closed

feat(tactic/ring, tactic/linarith): add reducibility parameter#1053
robertylewis wants to merge 2 commits intomasterfrom
ring_linarith_transparency

Conversation

@robertylewis
Copy link
Copy Markdown
Member

This slightly weakens the default behavior of ring and linarith. They will now only unfold reducible definitions when comparing atoms. Variants ring! and linarith! will unfold semireducible definitions.

TO CONTRIBUTORS:

Make sure you have:

  • reviewed and applied the coding style: coding, naming
  • for tactics:
  • make sure definitions and lemmas are put in the right files
  • make sure definitions and lemmas are not redundant

If this PR is related to a discussion on Zulip, please include a link in the discussion.

For reviewers: code review check list

@robertylewis robertylewis requested a review from a team as a code owner May 19, 2019 13:25
@robertylewis
Copy link
Copy Markdown
Member Author

I believe this will break a proof somewhere, the reason we originally changed these tactics to check for defeq instead of syntactic eq. Going to let Travis find where that happens.

This version of `ring` fails if the target is not an equality
that is provable by the axioms of commutative (semi)rings. -/
meta def ring1 : tactic unit :=
meta def ring1 (red : transparency) : tactic unit :=
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also use parse (lean.parser.tk "!")? - ring1 is also a frontend tactic

@robertylewis
Copy link
Copy Markdown
Member Author

Fixed. There's no broken proof, I guess that was resolved some other way.

@robertylewis
Copy link
Copy Markdown
Member Author

Subsumed by #1056 .

@robertylewis robertylewis deleted the ring_linarith_transparency branch July 26, 2019 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants