leanprover / leanprover/lean4

split with h

Open
#2,745 5 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-low RFC
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Proposal

Upgrade the split tactic so split with h names the new hypothesis.

Currently we need split <;> rename_i h as a workaround.

This syntax is available in Mathlib's split_if, but we would prefer not to upstream that implementation to Std.

Impact

Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation and tests for the split tactic, then compare its behavior with the existing Mathlib split_if syntax and the rename_i workaround. Done means split with h names the new hypothesis in the same situation where split <;> rename_i h is currently required.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.