| n < n0, ∀ x. pathp(g)(⌜x⌝ ) ∧ x ≠ [] ∧ x.first ∈ s0 → # x < n, ∀ b. b ∈ s0 → ¬ haspathanylength(g)(b) ⊦ ∀ x. pathp(g)(⌜x⌝ ) ∧ x ≠ [] ∧ (x.first = a ∨ x.first ∈ s0) → ¬ n0 + 1 ≤ # x, ∃ x. x.first = a ∧ # x = n0 + 1 ∧ pathp(g)(⌜x⌝ ) |
n < # x, n0 < # x, n < n0, pathp(g)(⌜x⌝ ), n + 1 < # x, ∀ b. b ∈ s0 → ¬ haspathanylength(g)(b), ∀ x. pathp(g)(⌜x⌝ ) ∧ x ≠ [] ∧ x.first ∈ s0 → # x < n, x.first = a ∨ x.first ∈ s0 ⊦ x = [], ∃ x. x.first = a ∧ # x = n0 + 1 ∧ pathp(g)(⌜x⌝ )
Used simplifier rules: ⊦ m +1 = m + 1;% ⊦ m < n → n ≠ 0;% ⊦ # x = 0 ↔ x = [];% ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward)% ⊦ n < n0 ∧ n0 < n1 → n +1 < n1; (forward)% ⊦ m < n → n ≠ 0; (forward)% ⊦ m + n = n + m;% ⊦ (m + n0) + n1 = m + n0 + n1;% ⊦ m + 1 ≤ n ↔ m < n;