Skip to content

Commit 79f505f

Browse files
committed
Clean-up minor details of Trace.lean
1 parent 1fce49a commit 79f505f

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

TraceTheory/TraceTheory/Trace.lean

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ lemma equiv_of_indep_symb_commute_list {w : List α} {a : α} (h : independent I
386386
have hb := ht.compat (TraceEquiv.refl [b])
387387
have hab : TraceEquiv I (w' ++ [b] ++ [a]) (w' ++ [a] ++ [b]) := by
388388
have hr := h b
389-
simp at hr
390-
simp
389+
simp at hr ⊢
391390
exact (TraceEquiv.refl w').compat (TraceEquiv.swap b a (I.symm a b hr))
392391
exact hab.trans hb
393392

@@ -440,14 +439,13 @@ theorem levi_lemma {u v x y : List α} (h : TraceEquiv I (u ++ v) (x ++ y)) : --
440439
have ⟨z₁', z₂', z₃', z₄', ⟨h_indep, ht₁, ht₂, ht₃, ht₄⟩⟩ := ih h_cancel
441440
use z₁', z₂', z₃', z₄' ++ [e], h_indep
442441
replace ht₄ := ht₄.compat (TraceEquiv.refl [e])
443-
replace ht₂ := ht₂.compat (TraceEquiv.refl [e])
444442
have he : TraceEquiv I (v'' ++ [e]) ([e] ++ v'') := by
445443
rw [hv, ← List.append_assoc, ← List.append_assoc, ← List.append_assoc] at h
446444
have h_indep := indep_of_equiv_rightmost_symbol I h hv''
447445
exact equiv_of_indep_symb_commute_list I h_indep
448446
have hv'e := TraceEquiv.symm ((TraceEquiv.refl v').compat he)
449447
rw [← List.append_assoc, ← List.append_assoc, ← hv] at hv'e
450-
replace ht₂ := hv'e.trans ht₂
448+
replace ht₂ := hv'e.trans (ht₂.compat (TraceEquiv.refl [e]))
451449
rw [List.append_assoc] at ht₂ ht₄
452450
exact ⟨ht₁, ht₂, ht₃, ht₄⟩
453451
· have heu : e ∈ u := by
@@ -469,12 +467,9 @@ theorem levi_lemma {u v x y : List α} (h : TraceEquiv I (u ++ v) (x ++ y)) : --
469467
simp at ha h_indep
470468
rcases ha with haz₂' | hae
471469
· exact h_indep a haz₂' b hb
472-
· have h_indep_ev := (indep_of_concat I h_indep_e).right
473-
have h_equiv := indep_of_indep_of_equiv I h_indep_ev ht₂
470+
· have h_equiv := indep_of_indep_of_equiv I (indep_of_concat I h_indep_e).right ht₂
474471
simp [← hae] at h_equiv
475-
apply h_equiv
476-
left
477-
apply hb
472+
exact h_equiv b (Or.intro_left (b ∈ z₄') hb)
478473
use z₁', z₂' ++ [e], z₃', z₄', h_indep
479474
rw [hu, ← List.append_assoc]
480475
have heu'' : TraceEquiv I (u'' ++ [e]) ([e] ++ u'') :=
@@ -486,9 +481,9 @@ theorem levi_lemma {u v x y : List α} (h : TraceEquiv I (u ++ v) (x ++ y)) : --
486481
have h_indep_ev := (indep_of_concat I h_indep_e).right
487482
have h_indep_ez₃'z₄' := indep_of_indep_of_equiv I h_indep_ev ht₂
488483
exact equiv_of_indep_symb_commute_list I (indep_of_concat I h_indep_ez₃'z₄').right
489-
have hz'e := (TraceEquiv.refl z₂').compat hez₄'
490-
rw [← List.append_assoc, ← List.append_assoc] at hz'e
491-
replace ht₄ := (ht₄.compat (TraceEquiv.refl [e])).trans hz'e
484+
have hz'e := (TraceEquiv.refl z₂').compat hez₄'
485+
rw [← List.append_assoc, ← List.append_assoc] at hz'e
486+
replace ht₄ := (ht₄.compat (TraceEquiv.refl [e])).trans hz'e
492487
exact ⟨ht₁, ht₂, ht₃, ht₄⟩
493488

494489
end Trace

0 commit comments

Comments
 (0)