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

introduce 'trans' on Logos or Implis (and also use it elsewhere) #50

Open
TentativeConvert opened this issue Jun 5, 2024 · 2 comments

Comments

@TentativeConvert
Copy link
Collaborator

'trans' as a replacement for 'calc' will feel more natural if we introduce it early. I even think there are many instances of repeated 'rw's where repeated 'trans' will be more intuitive. Implis level 8 is a good example. The hint spells out a "calculation" (sequence of equivalences), which is easy to follow using 'trans'.

It's unfortunate that 'trans' does not apply to implications. But of course 'rw' doesn't either, so that's not a loss.

@TentativeConvert
Copy link
Collaborator Author

Here's a first attempt: 08bf4dc

@joneugster
Copy link
Member

joneugster commented Jun 11, 2024

leanprover-community/mathlib4#13719 adds functionality to trans to work with implications.

example {A B C: Prop} (h : A → B) (g : B → C) : A → C := by
  trans B
  · -- ⊢ A → B
    exact h
  · -- ⊢ B → C
    exact g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants