OAI/Computability/Superstring/Input.lean
31 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.Superstring.Input.subwordsline 12Source documentation
Quadratic substring enumeration, with boundaries represented explicitly.
def subwords (s : List α) : Finset (List α) := …
- theorem
OAI.Superstring.Input.mem_subwordsline 16 - def
OAI.Superstring.Input.coreline 30Source documentation
Deleting empty, duplicate and properly contained input words.
def core (S : List (List α)) : Finset (List α) := …
- theorem
OAI.Superstring.Input.mem_coreline 33 - theorem
OAI.Superstring.Input.core_coverline 37 - def
OAI.Superstring.Input.verticesline 51 - theorem
OAI.Superstring.Input.mem_verticesline 54 - def
OAI.Superstring.Input.alphabetline 59 - def
OAI.Superstring.Input.dataline 61 - theorem
OAI.Superstring.Input.closedline 63 - theorem
OAI.Superstring.Input.letter_memline 71 - theorem
OAI.Superstring.Input.required_memline 77 - theorem
OAI.Superstring.Input.core_superstring_iffline 80 - theorem
OAI.Superstring.concatenation_superstringline 94 - theorem
OAI.Superstring.feasible_lengths_nonemptyline 97 - theorem
OAI.Superstring.weight_le_optline 102Source documentation
The actual computed lower bound is bounded by the unrestricted optimum.
theorem weight_le_opt (S : Instance) : (Input.data S).weight ≤ opt S := by …
Mentions: OAI.Superstring.Instance, OAI.Superstring.Input.data, OAI.Superstring.opt
- theorem
OAI.Superstring.input_count_le_totalline 110 - structure
OAI.Superstring.Counts.Data.WellFormedline 120Source documentation
The hypotheses supplied by the actual all-substrings input construction.
structure WellFormed (D : Counts.Data α) : Prop where …
Mentions: OAI.Superstring.Counts.Data
- theorem
OAI.Superstring.Counts.Data.input_wellFormedline 126 - theorem
OAI.Superstring.Counts.Data.mem_of_count_ne_zeroline 129 - theorem
OAI.Superstring.Counts.Data.left_boundline 134 - theorem
OAI.Superstring.Counts.Data.right_boundline 147 - def
OAI.Superstring.Counts.Data.upline 161 - def
OAI.Superstring.Counts.Data.downline 164 - theorem
OAI.Superstring.Counts.Data.up_addline 167 - theorem
OAI.Superstring.Counts.Data.down_addline 171 - theorem
OAI.Superstring.Counts.Data.balancedline 177Source documentation
Balance is an exact natural-number equality; no truncated subtraction is silently cancelled without the extension inequalities.
theorem balanced (D : Data α) (hD : D.WellFormed) (s : List α) : D.up s + ∑ c ∈ D.alphabet, D.down (c :: s) = D.down s + ∑ c ∈ D.alphabet, D.up (s ++ [c]) := by …Mentions: OAI.Superstring.Counts.Data
- theorem
OAI.Superstring.Counts.Data.sum_left_allline 203Source documentation
Reindex all left extensions by their unique first letter and suffix.
theorem sum_left_all (D : Data α) (hD : D.WellFormed) : (∑ s ∈ D.vertices, ∑ c ∈ D.alphabet, D.count (c :: s)) = ∑ r ∈ D.vertices, D.count r := by …Mentions: OAI.Superstring.Counts.Data
- theorem
OAI.Superstring.Counts.Data.sum_right_allline 224Source documentation
The dual reindexing by prefix and final letter.
theorem sum_right_all (D : Data α) (hD : D.WellFormed) : (∑ s ∈ D.vertices, ∑ c ∈ D.alphabet, D.count (s ++ [c])) = ∑ r ∈ D.vertices, D.count r := by …Mentions: OAI.Superstring.Counts.Data
- theorem
OAI.Superstring.Counts.Data.total_upline 251Source documentation
Telescoping of all actual up-edge multiplicities.
theorem total_up (D : Data α) (hD : D.WellFormed) : (∑ s ∈ D.vertices, D.up s) = D.weight := by …Mentions: OAI.Superstring.Counts.Data
- theorem
OAI.Superstring.Counts.Data.total_downline 266