lean4-htt/src
Leonardo de Moura e0a266780b
feat: add instance Grind.CommRing (Fin n) (#8276)
This PR adds the instances `Grind.CommRing (Fin n)` and `Grind.IsCharP
(Fin n) n`. New tests:
```lean
example (x y z : Fin 13) :
    (x + y + z) ^ 2 = x ^ 2 + y ^ 2 + z ^ 2 + 2 * (x * y + y * z + z * x) := by
  grind +ring

example (x y : Fin 17) : (x + y) ^ 3 = x ^ 3 + y ^ 3 + 3 * x * y * (x + y) := by
  grind +ring

example (x y : Fin 19) : (x - y) * (x ^ 2 + x * y + y ^ 2) = x ^ 3 - y ^ 3 := by
  grind +ring
```

---------

Co-authored-by: Kim Morrison <kim@tqft.net>
2025-05-13 12:09:02 +00:00
..
bin feat: API to avoid deadlocks from dropped promises (#6958) 2025-02-07 15:33:10 +00:00
cmake chore: fix spelling mistakes (#7328) 2025-04-07 01:15:48 +00:00
include/lean feat: optimize lean_nat_shiftr for scalars (#8268) 2025-05-11 01:39:59 +00:00
Init feat: add instance Grind.CommRing (Fin n) (#8276) 2025-05-13 12:09:02 +00:00
initialize fix: explicitly initialize Std in lean_initialize (#4668) 2024-07-06 13:17:30 +00:00
kernel fix: reducing Nat.pow, kernel interprets constant as Nat literal (#8060) 2025-04-23 13:55:20 +00:00
lake chore: remove >6 month old deprecations (#8312) 2025-05-13 11:11:22 +00:00
Lean chore: remove >6 month old deprecations (#8312) 2025-05-13 11:11:22 +00:00
library fix: make the lcnf expr cache depend on the value of root, not just… (#8156) 2025-04-29 00:37:52 +00:00
runtime feat: optimize lean_nat_shiftr for scalars (#8268) 2025-05-11 01:39:59 +00:00
shell fix: lake: import-related bugs (#8026) 2025-04-19 21:02:38 +00:00
Std feat: split Std.Classes.Ord (#8315) 2025-05-13 11:22:19 +00:00
util feat: lean --setup (#8024) 2025-05-03 23:57:37 +00:00
cadical.mk fix: cadical distribution on Linux (#8201) 2025-05-02 18:25:16 +00:00
CMakeLists.txt chore: begin development cycle for v4.21.0 (#8287) 2025-05-12 05:02:41 +00:00
config.h.in perf: use mimalloc by default (#7710) 2025-03-30 22:40:41 +00:00
githash.h.in
Init.lean chore: refine module imports (#8120) 2025-04-27 20:45:31 +00:00
lakefile.toml.in chore: lake: bootstrap Lean include directory (#7967) 2025-04-15 23:15:53 +00:00
lean-toolchain
Lean.lean refactor: split Lean.EnvironmentExtension from Lean.Environment (#7794) 2025-04-02 16:19:12 +00:00
lean.mk.in chore: USE_LAKE: integrate into CMake (#4466) 2025-03-15 08:58:01 +00:00
Leanc.lean feat: expose flags for the bundled C compiler (#4477) 2024-06-22 01:23:33 +00:00
Std.lean chore: test that there are no orphaned modules (#8082) 2025-04-24 11:55:07 +00:00
stdlib.make.in chore: remove lakefile copy in root and tests/ (#8054) 2025-04-22 16:03:12 +00:00
stdlib_flags.h fix: restore what simp theorems are recorded as rfl (#8114) 2025-04-26 16:09:20 +00:00
version.h.in feat: language reference links and examples in docstrings (#7240) 2025-03-12 09:17:27 +00:00