Skip to content

Commit

Permalink
move and prove Formula.voc_boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
m4lvin committed Dec 27, 2024
1 parent 0a804a7 commit 1c7c519
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Pdl/PartInterpolation.lean
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- Interpolants for Partitions (big part of Section 7)

import Mathlib.Data.Finset.Basic

import Pdl.Completeness
Expand All @@ -24,10 +26,6 @@ def isPartInterpolant (X : TNode) (θ : Formula) :=

def PartInterpolant (N : TNode) := Subtype <| isPartInterpolant N

-- TODO move elsewhere
theorem Formula.voc_boxes : (⌈⌈δ⌉⌉φ).voc = δ.pvoc ∪ φ.voc := by
sorry

-- move to UnfoldBox.lean ?
theorem unfoldBox_voc {x α φ} {L} (L_in : L ∈ unfoldBox α φ) {ψ} (ψ_in : ψ ∈ L)
(x_in_voc_ψ : x ∈ ψ.voc) : x ∈ α.voc ∨ x ∈ φ.voc := by
Expand Down Expand Up @@ -129,7 +127,7 @@ theorem localRuleApp_does_not_increase_jvoc (ruleA : LocalRuleApp X C) :
sorry

/-- Maehara's method for local rule applications.
This is `easyItp` for singleton clusters in the notes, but not only. -/
This is `itpLeaves` for singleton clusters in the notes, but not only. -/
def localInterpolantStep (L R : List Formula) (o) (ruleA : LocalRuleApp (L,R,o) C)
(subθs : Π c ∈ C, PartInterpolant c)
: PartInterpolant (L,R,o) := by
Expand Down
8 changes: 8 additions & 0 deletions Pdl/Vocab.lean
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ theorem Vocab.fromListProgram_map_iff n (L : List Program) :
simp only [fromList, Finset.mem_union, List.mem_cons, exists_eq_or_imp]
rw [← IH]

theorem Formula.voc_boxes : (⌈⌈δ⌉⌉φ).voc = δ.pvoc ∪ φ.voc := by
induction δ
· simp
case cons α δ IH =>
simp only [List.pvoc, voc, Vocab.fromList, Finset.union_assoc] at *
rw [← IH]
rfl

@[simp]
def LoadFormula.voc (lf : LoadFormula) : Vocab := (unload lf).voc

Expand Down

0 comments on commit 1c7c519

Please sign in to comment.