Skip to content

Commit f2710fc

Browse files
committed
Fix dependence graph proofs after lemma renamed
1 parent c623451 commit f2710fc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

TraceTheory/TraceTheory/DependenceGraph.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ lemma fromString_surjective :
637637

638638
lemma fromString_append_iso_compose (w₁ w₂ : List α) :
639639
fromString D (w₁ ++ w₂) ≃g compose (fromString D w₁) (fromString D w₂) := by
640-
induction w₂ using List.induction_right with
640+
induction w₂ using List.reverseRecOn with
641641
| nil =>
642642
simp only [List.append_nil, fromString_empty]
643643
exact isomorphic_symm (compose_empty_iso (fromString D w₁))
644-
| snoc w' a ih =>
644+
| append_singleton w' a ih =>
645645
rw [← List.append_assoc, fromString_concat, fromString_concat]
646646
apply isomorphic_trans (compose_congr ih (isomorphic_refl (singletonGraph D a)))
647647
exact compose_assoc_iso _ _ _
@@ -659,10 +659,10 @@ lemma card_compose_eq_sum (γ₁ γ₂ : DependenceGraph D) :
659659

660660
lemma card_fromString_eq_length (w : List α) :
661661
Fintype.card (fromString D w).V = w.length := by
662-
induction w using List.induction_right with
662+
induction w using List.reverseRecOn with
663663
| nil =>
664664
simp [fromString, emptyGraph]
665-
| snoc w' a ih =>
665+
| append_singleton w' a ih =>
666666
rw [fromString_concat, card_compose_eq_sum, ih]
667667
dsimp [singletonGraph]
668668
simp only [List.length_append, List.length_cons, List.length_nil, zero_add]
@@ -777,11 +777,11 @@ lemma removeVertex_sink_iso_cancelRight [DecidableEq α]
777777
(h_sink : IsSink (fromString D w) sink)
778778
(h_label : (fromString D w).φ sink = a) :
779779
removeVertex (fromString D w) sink ≃g fromString D (w ÷ a) := by
780-
induction w using List.induction_right with
780+
induction w using List.reverseRecOn with
781781
| nil =>
782782
dsimp [fromString, emptyGraph] at sink
783783
contradiction
784-
| snoc w' b ih =>
784+
| append_singleton w' b ih =>
785785
generalize hγ : fromString D (w' ++ [b]) = γ at sink h_sink h_label ⊢
786786
rw [fromString_concat] at hγ
787787
subst hγ
@@ -803,7 +803,7 @@ lemma removeVertex_sink_iso_cancelRight [DecidableEq α]
803803
subst h_is_last
804804
exact remove_singleton_iso_self w' b
805805
· have heq' : ¬a = b := fun a_1 => heq (Eq.symm a_1)
806-
simp [List.cancelRight_append, heq']
806+
simp [List.append_cancelRight, heq']
807807
rw [fromString_concat]
808808
have h_is_left : ∃ u, sink = Sum.inl u := by
809809
cases sink with

0 commit comments

Comments
 (0)