Skip to content

Commit

Permalink
refactor: move Function.id_def from mathlib (#755)
Browse files Browse the repository at this point in the history
* Move the theorem from `Mathlib.Logic.Function.Basic` to Std.
* We need this theorem to prove `String.splitOn_of_valid`.
  • Loading branch information
chabulhwi authored May 3, 2024
1 parent 3025cb1 commit aec9cad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Std/Logic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ instance {f : α → β} [DecidablePred p] : DecidablePred (p ∘ f) :=

@[deprecated] alias proofIrrel := proof_irrel

/-! ## id -/

theorem Function.id_def : @id α = fun x => x := rfl

/-! ## exists and forall -/

alias ⟨forall_not_of_not_exists, not_exists_of_forall_not⟩ := not_exists
Expand Down

0 comments on commit aec9cad

Please sign in to comment.