Skip to content

Commit f3077c5

Browse files
committed
Ochmanski (i) => (ii) fragments 5
1 parent 77c1fa8 commit f3077c5

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

TraceTheory/TraceTheory/Ochmanski.lean

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,15 +1440,34 @@ lemma lexNf_ccDec_order {w : List α} (hw : w ∈ LexNfLanguage I) (hz : w ≠ [
14401440

14411441
lemma ccDec_aux_across_indep (I : Independence α) (u w : List α) (hi : 1 < (ccDec_aux I u w).length) (hwu : w ⊆ u) :
14421442
Independent I ((ccDec_aux I u w).getLast (ccDec_aux_nonempty _ _)) (ccDec_aux I u w)[0] ∨
1443-
(Independent I ((ccDec_aux I w w).getLast (ccDec_aux_nonempty _ _) ++ (ccDec_aux I u w)[0]) (ccDec_aux I u w)[1] ∧
1444-
2 < (ccDec_aux I u w).length):= by
1443+
(Independent I ((ccDec_aux I u w).getLast (ccDec_aux_nonempty _ _) ++ (ccDec_aux I u w)[0]) (ccDec_aux I u w)[1] ∧
1444+
2 < (ccDec_aux I u w).length) := by
1445+
by_cases hw : w = []
1446+
· simp [hw, ccDec_aux]
14451447
by_contra h
14461448
rw [not_or] at h
1447-
rcases h with ⟨h, h'⟩
1448-
apply h'
1449-
clear h'
1450-
1451-
sorry
1449+
rcases h with ⟨hs, hl⟩
1450+
apply hl
1451+
clear hl
1452+
1453+
apply And.intro
1454+
· by_contra hl
1455+
apply @ccDec_aux_adj_char_indep α I u w 0 (Nat.add_lt_of_lt_sub' hi) hw
1456+
have hs' : Independent I (ccDec_aux I u w)[0] (ccDec_aux I u w)[1] := ccDec_aux_adj_indep u w 0 _ hwu
1457+
simp at hl hs ⊢
1458+
have ⟨a, ha, b, hb, hab⟩ := hl
1459+
have ⟨c, hc, d, hd, hcd⟩ := hs
1460+
clear hl hs
1461+
cases ha with
1462+
| inl ha => sorry
1463+
| inr ha => sorry
1464+
· by_contra hl
1465+
simp at hl
1466+
replace hi := Nat.le_antisymm hl hi
1467+
replace hi : (ccDec_aux I u w).length - 1 = 1 := Eq.symm (Nat.eq_sub_of_add_eq' (Eq.symm hi))
1468+
have hs' : Independent I (ccDec_aux I u w)[0] (ccDec_aux I u w)[1] := ccDec_aux_adj_indep u w 0 _ hwu
1469+
rw [List.getLast_eq_getElem, getElem_congr rfl hi _] at hs
1470+
exact hs (independent_symm hs')
14521471

14531472

14541473
lemma connected_of_lexNf_sq {w : List α}

0 commit comments

Comments
 (0)