| ⊦ pbd(ext !) |
¬ pbd(ext !) ⊦
| ¬ pbd(ext !) ⊦ |
⊦ pbd(f) ↔ (∀ af, bl. (∀ n. f(⌜af.take(n)⌝ ) ⊑ ⌜bl⌝ ) ↔ f(⌜af⌝ ) ⊑ ⌜bl⌝ )
∃ af, bl. ¬((∀ n. ext !(⌜af.take(n)⌝ ) ⊑ ⌜bl⌝ ) ↔ ext !(⌜af⌝ ) ⊑ ⌜bl⌝ ) ⊦
Used terms: ext !
| ⊦ pbd(f) ↔ (∀ af, bl. (∀ n. f(⌜af.take(n)⌝ ) ⊑ ⌜bl⌝ ) ↔ f(⌜af⌝ ) ⊑ ⌜bl⌝ ) |
| ∃ af, bl. ¬((∀ n. ext !(⌜af.take(n)⌝ ) ⊑ ⌜bl⌝ ) ↔ ext !(⌜af⌝ ) ⊑ ⌜bl⌝ ) ⊦ |
⊦ (∀ n. ext !(af.take(n)) ⊑ el) ↔ ext !(⌜af⌝ ) ⊑ ⌜el⌝
Used simplifier rules: ⊦ ⌜x⌝ ⊑ ⌜y⌝ ↔ x ⊑ y; (s) ⊦ ext !(⌜al⌝ ) = ⌜ext !(al)⌝ ; (s)
| ⊦ (∀ n. ext !(af.take(n)) ⊑ el) ↔ ext !(⌜af⌝ ) ⊑ ⌜el⌝ |
¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦
ext !(⌜af⌝ ) ⊑ ⌜el⌝ ⊦ ∀ n. ext !(af.take(n)) ⊑ el
| ¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af⌝ ) = ⌜el0⌝ , ¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦
ext !(⌜af⌝ ) = ⌜ef⌝ , ¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used simplifier rules: Stream('a) freely generated by ⌜ ⌝, ⌜ ⌝;;
| ext !(⌜af⌝ ) = ⌜el0⌝ , ¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af⌝ ) = ⌜el0⌝ , ¬ el0 ⊑ el, ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used simplifier rules: ⊦ ⌜x⌝ ⊑ ⌜y⌝ ↔ x ⊑ y; (s)
| ext !(⌜af⌝ ) = ⌜el0⌝ , ¬ el0 ⊑ el, ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
⊦ ext !(α) = ⌜el⌝ ↔ (∃ al, α0. α = ⌜al⌝ + α0 ∧ ext !(al) = el ∧ ext !(α0) = [])
¬ el0 ⊑ el, ∀ n. ext !(af.take(n)) ⊑ el, ∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = el0 ∧ ext !(α0) = [] ⊦
Used terms: ext, ⌜af⌝ , el0
| ⊦ ext !(α) = ⌜el⌝ ↔ (∃ al, α0. α = ⌜al⌝ + α0 ∧ ext !(al) = el ∧ ext !(α0) = []) |
| ¬ el0 ⊑ el, ∀ n. ext !(af.take(n)) ⊑ el, ∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = el0 ∧ ext !(α0) = [] ⊦ |
ext !(⌜af0⌝ ) = [], ¬ ext !(al) ⊑ el, ∀ n. ext !((al + af0).take(n)) ⊑ el ⊦
Used simplifier rules: ⊦ ⌜nf⌝ .f = nf; (s) ⊦ finp(σ) ↔ ¬(∃ nf. ⌜nf⌝ = σ); (ss) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜x⌝ + σ = ⌜nf⌝ ↔ ¬ finp(σ) ∧ x + σ.f = nf; (as)
| ext !(⌜af0⌝ ) = [], ¬ ext !(al) ⊑ el, ∀ n. ext !((al + af0).take(n)) ⊑ el ⊦ |
ext !(⌜af0⌝ ) = [], ext !((al + af0).take(# al)) ⊑ el, ¬ ext !(al) ⊑ el ⊦
Used terms: # al
| ext !(⌜af0⌝ ) = [], ext !((al + af0).take(# al)) ⊑ el, ¬ ext !(al) ⊑ el ⊦ |
Used simplifier rules: ⊦ (⌜x⌝ + ⌜nf⌝ ).f = x + nf; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ # x = # x0 → (x + nf = x0 + nf0 ↔ x = x0 ∧ nf = nf0); (s) ⊦ x0 = nf.take(n) ∧ nf0 = nf.drop(n) ↔ nf = (⌜x0⌝ + ⌜nf0⌝ ).f ∧ # x0 = n; (elim) Used terms: al + af0, # al, al0, nf0
| ext !(⌜af⌝ ) = ⌜ef⌝ , ¬ ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af⌝ ) = ⌜ef⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used simplifier rules: ⊦ ¬ ⌜nf⌝ ⊑ ⌜x⌝ ; (s)
| ext !(⌜af⌝ ) = ⌜ef⌝ , ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
⊦ ext !(α) = ⌜el⌝ + β ↔ (∃ al, α0. α = ⌜al⌝ + α0 ∧ ext !(⌜al⌝ ) = ⌜el⌝ ∧ ext !(α0) = β)
ext !(⌜af⌝ ) = ⌜ef⌝ , ext !(⌜af⌝ ) = ⌜ef.take(# el + 1)⌝ + ⌜ef.drop(# el + 1)⌝ ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(⌜al⌝ ) = ⌜ef.take(# el + 1)⌝ ∧ ext !(α0) = ⌜ef.drop(# el + 1)⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used terms: ext, ⌜af⌝ , ef.take(# el + 1), ⌜ef.drop(# el + 1)⌝
| ⊦ ext !(α) = ⌜el⌝ + β ↔ (∃ al, α0. α = ⌜al⌝ + α0 ∧ ext !(⌜al⌝ ) = ⌜el⌝ ∧ ext !(α0) = β) |
| ext !(⌜af⌝ ) = ⌜ef⌝ , ext !(⌜af⌝ ) = ⌜ef.take(# el + 1)⌝ + ⌜ef.drop(# el + 1)⌝ ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(⌜al⌝ ) = ⌜ef.take(# el + 1)⌝ ∧ ext !(α0) = ⌜ef.drop(# el + 1)⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af⌝ ) = ⌜ef⌝ , ef.take(# el + 1) + ef.drop(# el + 1) = ef ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = ef.take(# el + 1) ∧ ext !(α0) = ⌜ef.drop(# el + 1)⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used simplifier rules: append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ ⌜x⌝ + ⌜nf⌝ = ⌜nf0⌝ ↔ x + nf = nf0; (s) ⊦ ⌜x⌝ = ⌜x0⌝ ↔ x = x0; (s) ⊦ ext !(⌜al⌝ ) = ⌜ext !(al)⌝ ; (s)
| ext !(⌜af⌝ ) = ⌜ef⌝ , ef.take(# el + 1) + ef.drop(# el + 1) = ef ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = ef.take(# el + 1) ∧ ext !(α0) = ⌜ef.drop(# el + 1)⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af⌝ ) = ⌜ef⌝ , # el0 = # el + 1, ef = (⌜el0⌝ + ⌜nf0⌝ ).f, el0 + nf0 = ef ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = el0 ∧ ext !(α0) = ⌜nf0⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦
Used simplifier rules: ⊦ x0 = nf.take(n) ∧ nf0 = nf.drop(n) ↔ nf = (⌜x0⌝ + ⌜nf0⌝ ).f ∧ # x0 = n; (elim) Used terms: ef, # el + 1, el0, nf0
| ext !(⌜af⌝ ) = ⌜ef⌝ , # el0 = # el + 1, ef = (⌜el0⌝ + ⌜nf0⌝ ).f, el0 + nf0 = ef ↔ (∃ al, α0. ⌜af⌝ = ⌜al⌝ + α0 ∧ ext !(al) = el0 ∧ ext !(α0) = ⌜nf0⌝ ), ∀ n. ext !(af.take(n)) ⊑ el ⊦ |
ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, ∀ n. ext !((al + af0).take(n)) ⊑ el ⊦
Used simplifier rules: ⊦ ⌜nf⌝ .f = nf; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ # x = # y → (⌜x⌝ + σ = ⌜y⌝ + σ0 ↔ x = y ∧ σ = σ0); (s) ⊦ ext !(⌜al⌝ + α2) = ⌜ext !(al)⌝ + ext !(α2); (s) ⊦ ⌜x + nf⌝ = ⌜x⌝ + ⌜nf⌝ ; (s) ⊦ finp(σ) ↔ ¬(∃ nf. ⌜nf⌝ = σ); (ss) ⊦ ⌜x⌝ + σ = ⌜nf⌝ ↔ ¬ finp(σ) ∧ x + σ.f = nf; (as) ⊦ # x = # x0 → (x + nf = x0 + nf0 ↔ x = x0 ∧ nf = nf0); (s) ⊦ (⌜x⌝ + ⌜nf⌝ ).f = x + nf; (s)
| ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, ∀ n. ext !((al + af0).take(n)) ⊑ el ⊦ |
ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, ext !((al + af0).take(# al)) ⊑ el ⊦
Used terms: # al
| ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, ext !((al + af0).take(# al)) ⊑ el ⊦ |
ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, # al0 = # al, al + af0 = (⌜al0⌝ + ⌜af⌝ ).f, ext !(al0) ⊑ el ⊦
Used simplifier rules: ⊦ x0 = nf.take(n) ∧ nf0 = nf.drop(n) ↔ nf = (⌜x0⌝ + ⌜nf0⌝ ).f ∧ # x0 = n; (elim) Used terms: al + af0, # al, al0, af
| ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al) = # el + 1, # al0 = # al, al + af0 = (⌜al0⌝ + ⌜af⌝ ).f, ext !(al0) ⊑ el ⊦ |
ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al0) = # el + 1, ext !(al0) ⊑ el ⊦
Used simplifier rules: ⊦ # x = # x0 → (x + nf = x0 + nf0 ↔ x = x0 ∧ nf = nf0); (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ (⌜x⌝ + ⌜nf⌝ ).f = x + nf; (s)
| ext !(⌜af0⌝ ) = ⌜nf0⌝ , # ext !(al0) = # el + 1, ext !(al0) ⊑ el ⊦ |
⊦ x ⊑ y ↔ (∃ z. x + z = y)
Used simplifier rules: ⊦ #(x + y) = # x + # y; (s) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ m = m + n ↔ n = 0; (s) ⊦ m + n = 0 ↔ m = 0 ∧ n = 0; (ws) ⊦ # x = 0 ↔ x = []; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: ext !(al0), el
| ⊦ x ⊑ y ↔ (∃ z. x + z = y) |
| ext !(⌜af⌝ ) ⊑ ⌜el⌝ ⊦ ∀ n. ext !(af.take(n)) ⊑ el |
ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ¬ ext !(af.take(n)) ⊑ el ⊦
| ext !(⌜af⌝ ) ⊑ ⌜el⌝ , ¬ ext !(af.take(n)) ⊑ el ⊦ |
Used simplifier rules: ⊦ (⌜x⌝ + ⌜nf⌝ ).f = x + nf; (s) ⊦ ⌜x + nf⌝ = ⌜x⌝ + ⌜nf⌝ ; (s) ⊦ ext !(⌜al⌝ + α2) = ⌜ext !(al)⌝ + ext !(α2); (s) ⊦ σ0 + σ ⊑ ⌜z⌝ ↔ finp(σ0) ∧ finp(σ) ∧ σ0.l + σ.l ⊑ z; (as) ⊦ finp(⌜x⌝ ); (s) ⊦ ⌜x⌝ .l = x; (s) append-assoc: ⊦ (σ + σ1) + σ2 = σ + σ1 + σ2; from specification stream ⊦ finp(σ) ↔ (∃ x. ⌜x⌝ = σ); (as) a: ⊦ (x + y) + z = x + y + z; from specification list ⊦ x + y ⊑ z → x ⊑ z; (s) ⊦ x0 = nf.take(n) ∧ nf0 = nf.drop(n) ↔ nf = (⌜x0⌝ + ⌜nf0⌝ ).f ∧ # x0 = n; (elim) Used terms: af, n, al, nf0
The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.