Skip to content

Commit

Permalink
adjust type of lengthAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
m4lvin committed Oct 29, 2023
1 parent f29a29d commit f0652b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Bml/Setsimp.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ theorem sdiff_singleton_is_erase {X : Finset Formula} {ϕ : Formula} : X \ {ϕ}
aesop

@[simp]
theorem lengthAdd {X : Finset Formula} :
∀ {ϕ} (h : ϕ ∉ X), lengthOfSet (insert ϕ X) = lengthOfSet X + lengthOfFormula ϕ :=
theorem lengthAdd {X : Finset Formula} {ϕ} :
ϕ ∉ X lengthOfSet (insert ϕ X) = lengthOfSet X + lengthOfFormula ϕ :=
by
intro psi notin
intro notin
unfold lengthOfSet
rw [Finset.sum_insert notin]
apply Nat.add_comm
Expand Down Expand Up @@ -50,7 +50,7 @@ theorem lengthRemove (X : Finset Formula) :
constructor
aesop
tauto
rw [anotherClaim] at claim
rw [anotherClaim] at claim
aesop

@[simp]
Expand Down

0 comments on commit f0652b9

Please sign in to comment.