Zulip Chat Archive

Stream: new members

Topic: Warning when working on a goal without fully solving it


Bbbbbbbbba (Jan 17 2026 at 04:44):

This works but gives a linter warning, because intro hxC; have hxS := hC hxC only applies to one goal. However I could not focus on it because I do not fully solve it yet; the next all_goals line does the job.

import Mathlib

open symmDiff

variable {E : Type*} [Finite E]

example {A B C : Set E} (hC : C  A  B) : C = (C  A)  (C  B) := by
  ext x
  constructor
  intro hxC; have hxS := hC hxC
  all_goals by_cases x  A <;> by_cases x  B <;> simp_all [ Set.mem_symmDiff ]

Jakub Nowak (Jan 17 2026 at 05:07):

You can use the focus tactic I think?

Bbbbbbbbba (Jan 17 2026 at 05:28):

Oh you are right


Last updated: Feb 28 2026 at 14:05 UTC