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

lean - theorem from mathlib that doesn't fully work #25

Open
lakesare opened this issue Oct 12, 2023 · 2 comments
Open

lean - theorem from mathlib that doesn't fully work #25

lakesare opened this issue Oct 12, 2023 · 2 comments
Assignees

Comments

@lakesare
Copy link
Collaborator

lakesare commented Oct 12, 2023

theorem pow_dvd_pow_of_dvd {a b : α} (h : a ∣ b) : ∀ n : ℕ, a ^ n ∣ b ^ n
  | 0 => by rw [pow_zero, pow_zero]
  | n + 1 => by
    rw [pow_succ, pow_succ]
    exact mul_dvd_mul h (pow_dvd_pow_of_dvd h n)
image

Looks like it's because of our standard issue that only by + tactics get parsed

@lakesare lakesare changed the title Theorem from mathlib that doesn't fully work Lean: theorem from mathlib that doesn't fully work Oct 12, 2023
@lakesare lakesare changed the title Lean: theorem from mathlib that doesn't fully work lean - theorem from mathlib that doesn't fully work Oct 18, 2023
@lakesare
Copy link
Collaborator Author

lakesare commented Jan 3, 2024

PSA still doesn't work at the current version

image

@lakesare
Copy link
Collaborator Author

lakesare commented Jan 12, 2024

import Mathlib.Data.Set.Basic
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Tactic.GCongr
import Paperproof

theorem Fintype.card_fin_lt_of_le {m n : ℕ} (h : m ≤ n) :
    Fintype.card {i : Fin n // i < m} = m := by
  conv_rhs => rw [← Fintype.card_fin m]
  apply Fintype.card_congr
  exact { toFun := fun ⟨⟨i, _⟩, hi⟩ ↦ ⟨i, hi⟩
          invFun := fun ⟨i, hi⟩ ↦ ⟨⟨i, lt_of_lt_of_le hi h⟩, hi⟩
          left_inv := fun i ↦ rfl
          right_inv := fun i ↦ rfl }
image

card (Fin m) doesn't get closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants