Skip to content

Commit 6295595

Browse files
committed
Add connected word defintion and format Ochmanski.lean
1 parent 7c7c983 commit 6295595

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

TraceTheory/TraceTheory/Basic.lean

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,4 +841,23 @@ theorem prod_filter_not_isEmpty (L : List (Trace I)) :
841841

842842
end 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+
844863
end TraceTheory

TraceTheory/TraceTheory/Ochmanski.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ open Computability Dependence RegularExpression Trace Independence
1010

1111
variable {α : 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⟩

0 commit comments

Comments
 (0)