File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -841,4 +841,23 @@ theorem prod_filter_not_isEmpty (L : List (Trace I)) :
841841
842842end Trace
843843
844+ namespace List
845+
846+ /-- Predicate for dependence of symbols `a` and `b` in word `x`. -/
847+ def DepEdge (I : Independence α) (x : List α) (a b : α) :=
848+ I.inducedDependence.rel a b ∧ a ∈ x ∧ b ∈ x
849+
850+ /-- Predicate for transitive dependence of symbols `a` and `b` in word `x`. -/
851+ def DepPath (I : Independence α) (x : List α) (a b : α) :=
852+ Relation.TransGen (DepEdge I x) a b
853+
854+ /-- A word `x` is connected if all its symbols are transitively dependent. -/
855+ def IsConnected (I : Independence α) (x : List α) :=
856+ ∀ a ∈ x, ∀ b ∈ x, DepPath I x a b
857+
858+ theorem IsConnected_iff_traceIsConnected (I : Independence α) (w : List α) :
859+ IsConnected I w = Trace.IsConnected I ⟦w⟧ := rfl
860+
861+ end List
862+
844863end TraceTheory
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ open Computability Dependence RegularExpression Trace Independence
1010
1111variable {α : Type } {I : Independence α}
1212
13- /-- Main component of Theorem 4.1 (ii) => (iii).
13+ /-
14+ Main component of Theorem 4.1 (ii) => (iii).
1415
1516 For a rational expression X, if every iterative factor of L(X) is connected,
1617 then X' is star-connected (for some rational expression X' with L(X) = L(X')).
@@ -28,7 +29,7 @@ lemma exists_starConnected_of_connectedIterativeFactors_aux
2829 induction X with
2930 | zero => use zero, trivial
3031 | epsilon => use epsilon, trivial
31- | char a => use char a, trivial
32+ | char a => use . char a, trivial
3233 | plus P Q ihP ihQ =>
3334 have condP : ∀ s, IsIterativeFactor P.matches' s → Trace.IsConnected I ⟦s⟧ := by
3435 intro s ⟨u, v, h⟩
You can’t perform that action at this time.
0 commit comments