Skip to content

Commit

Permalink
resolve sorry in lengthAdd using Finset.sum_insert
Browse files Browse the repository at this point in the history
  • Loading branch information
m4lvin committed Oct 29, 2023
1 parent a89f197 commit f29a29d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Bml/Setsimp.lean
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ theorem sdiff_singleton_is_erase {X : Finset Formula} {ϕ : Formula} : X \ {ϕ}
theorem lengthAdd {X : Finset Formula} :
∀ {ϕ} (h : ϕ ∉ X), lengthOfSet (insert ϕ X) = lengthOfSet X + lengthOfFormula ϕ :=
by
induction X using Finset.induction_on
· unfold lengthOfSet
simp
case insert ψ Y psiNotInY IH =>
unfold lengthOfSet at *
intro ϕ h
simp
sorry -- finish
intro psi notin
unfold lengthOfSet
rw [Finset.sum_insert notin]
apply Nat.add_comm

@[simp]
theorem lengthOf_insert_leq_plus {X : Finset Formula} {ϕ : Formula} :
Expand Down

0 comments on commit f29a29d

Please sign in to comment.