leanprover-community / leanprover-community/mathlib4

show tactic fails to reorder goals

Open
#3,305 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

This doesn't work

example (P Q : Prop) : P ∧ Q := by
  constructor
  show Q  -- fails
  sorry
  sorry

but did in Lean 3:

example (P Q : Prop) : P ∧ Q :=
begin
  constructor,
  show Q,  -- ok
  sorry,
  sorry,
end

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 running the Lean 4 example in the issue and compare it with the Lean 3 version. Investigate how constructor and show Q handle goal ordering, then verify that the Lean 4 example accepts show Q as shown and retains the two remaining goals.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.