Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move theorems about lists from mathlib #756

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 15, 2024

  1. refactor: move theorems about lists from mathlib

    * `List.isEmpty_iff_eq_nil` and `List.modifyHead_modifyHead` are from
      `Mathlib.Data.List.Basic`. I removed the `simp` priority and `nolint`
      attribute from `modifyHead_modifyHead` because we don't need them
      anymore.
    * `List.cons_prefix_cons` is from `Mathlib.Data.List.Infix`. Its
      previous name was `List.cons_prefix_iff`.
    
    We need these theorems to prove `String.splitOn_of_valid`. See
    leanprover-community#756.
    
    Co-authored-by: Kim Morrison <kim@tqft.net>
    chabulhwi and semorrison committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    6a7a92f View commit details
    Browse the repository at this point in the history