lean4-htt/src/Init/Data/Array
Kyle Miller 409cbe1da9
fix: make rw collect only new goals, occurs check (#10306)
This PR fixes a few bugs in the `rw` tactic: it could "steal" goals
because they appear in the type of the rewrite, it did not do an occurs
check, and new proof goals would not be synthetic opaque. This PR also
lets the `rfl` tactic assign synthetic opaque metavariables so that it
is equivalent to `exact rfl`.

Implementation note: filtering old vs new is not sufficient. This PR
partially addresses the bug where the rw tactic creates natural
metavariables for each of the goals; now new proof goals are synthetic
opaque.

Metaprogramming API: Instead of `Lean.MVarId.rewrite` prefer
`Lean.Elab.Tactic.elabRewrite` for elaborating rewrite theorems and
applying rewrites to expressions.

Closes #10172
2025-09-14 04:44:55 +00:00
..
Lex refactor: improve names in the range API (#10059) 2025-09-05 13:10:05 +00:00
QSort feat: integrate high-level order typeclasses with BEq and Ord (#9908) 2025-08-19 07:54:53 +00:00
Subarray chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Attach.lean feat: more iterator/range lemmas about toList and toArray (#10244) 2025-09-12 07:14:28 +00:00
Basic.lean feat: more iterator/range lemmas about toList and toArray (#10244) 2025-09-12 07:14:28 +00:00
BasicAux.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
BinSearch.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Bootstrap.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Count.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
DecidableEq.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Erase.lean feat: more iterator/range lemmas about toList and toArray (#10244) 2025-09-12 07:14:28 +00:00
Extract.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Find.lean chore: fix remainining discrepancies for change in grind pattern heuristics (#10347) 2025-09-11 12:48:52 +00:00
FinRange.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
GetLit.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
InsertIdx.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
InsertionSort.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Lemmas.lean fix: make rw collect only new goals, occurs check (#10306) 2025-09-14 04:44:55 +00:00
Lex.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
MapIdx.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Mem.lean chore: library style cleanup (#9654) 2025-07-31 21:28:59 +00:00
Monadic.lean feat: more iterator/range lemmas about toList and toArray (#10244) 2025-09-12 07:14:28 +00:00
OfFn.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Perm.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
QSort.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Range.lean feat: more iterator/range lemmas about toList and toArray (#10244) 2025-09-12 07:14:28 +00:00
Set.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Subarray.lean chore: fix spelling errors (#9175) 2025-07-24 23:35:32 +00:00
TakeDrop.lean chore: avoid confusing public import all combination (#10051) 2025-08-22 12:04:42 +00:00
Zip.lean chore: remove grind annotations of List/Array/Vector.zip_map_left/right (#10163) 2025-08-28 10:38:50 +00:00