Skip to content

Commit

Permalink
Rename field of Obsoleteness Condition
Browse files Browse the repository at this point in the history
  • Loading branch information
monsterkrampe committed Jul 12, 2024
1 parent 1ff0582 commit e1e3a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ProofLibrary/ChaseSequence.lean
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ noncomputable def inductive_homomorphism (cs : ChaseSequence obs kb) (m : FactSe
apply v_not_in_frontier
apply exis_f

have : obs.cond trg.val (cs.fact_sets j) := obs.contained_in_trg_result_implies_cond this
have : obs.cond trg.val (cs.fact_sets j) := obs.contains_trg_result_implies_cond this

have : ¬ obs.cond trg.val (cs.fact_sets j) := trg_active_for_current_step.right
contradiction
Expand Down
6 changes: 3 additions & 3 deletions ProofLibrary/Trigger.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ structure ObsoletenessCondition where
∃ s : GroundSubstitution,
(∀ v, v ∈ (Rule.frontier trg.rule) → s v = trg.subs v) ∧
((s.apply_function_free_conj trg.rule.head).toSet ⊆ F)
contained_in_trg_result_implies_cond : ∀ {trg} {F}, trg.result ⊆ F -> cond trg F
contains_trg_result_implies_cond : ∀ {trg} {F}, trg.result ⊆ F -> cond trg F

structure Trigger (obsolete : ObsoletenessCondition) extends PreTrigger

Expand Down Expand Up @@ -155,7 +155,7 @@ def SkolemObsoleteness : ObsoletenessCondition := {
| const => simp [PreTrigger.apply_to_var_or_const, PreTrigger.apply_to_skolemized_term, GroundSubstitution.apply_skolem_term, PreTrigger.skolemize_var_or_const, VarOrConst.skolemize]
rw [this]
apply h
contained_in_trg_result_implies_cond := by
contains_trg_result_implies_cond := by
intro trg F result_in_F
unfold PreTrigger.result at result_in_F
exact result_in_F
Expand All @@ -180,7 +180,7 @@ def RestrictedObsoleteness : ObsoletenessCondition := {
. apply applied_head_sub_A
. apply A_sub_B
cond_implies_trg_is_satisfied := by intro _ _ h; exact h
contained_in_trg_result_implies_cond := by
contains_trg_result_implies_cond := by
intro trg F result_in_F
let obs_subs := fun v : Variable => trg.apply_to_var_or_const (VarOrConst.var v)

Expand Down

0 comments on commit e1e3a20

Please sign in to comment.