chore: minor improvements (#9708)
This PR stylistically improves an internal hash map proof and fixes a typo in the docsting of `String.join`.
This commit is contained in:
parent
c260435913
commit
3eab35ef22
2 changed files with 16 additions and 16 deletions
|
|
@ -652,7 +652,7 @@ Use `String.intercalate` to place a separator string between the strings in a li
|
|||
|
||||
Examples:
|
||||
* `String.join ["gr", "ee", "n"] = "green"`
|
||||
* `String.join ["b", "", "l", "", "ue"] = "red"`
|
||||
* `String.join ["b", "", "l", "", "ue"] = "blue"`
|
||||
* `String.join [] = ""`
|
||||
-/
|
||||
@[inline] def join (l : List String) : String :=
|
||||
|
|
|
|||
|
|
@ -1009,21 +1009,21 @@ namespace Raw
|
|||
|
||||
theorem WF.out [BEq α] [Hashable α] [i₁ : EquivBEq α] [i₂ : LawfulHashable α] {m : Raw α β}
|
||||
(h : m.WF) : Raw.WFImp m := by
|
||||
induction h generalizing i₁ i₂
|
||||
next h => apply h
|
||||
· exact Raw₀.wfImp_emptyWithCapacity
|
||||
next h => exact Raw₀.wfImp_insert (by apply h)
|
||||
next h => exact Raw₀.wfImp_containsThenInsert (by apply h)
|
||||
next h => exact Raw₀.wfImp_containsThenInsertIfNew (by apply h)
|
||||
next h => exact Raw₀.wfImp_erase (by apply h)
|
||||
next h => exact Raw₀.wfImp_insertIfNew (by apply h)
|
||||
next h => exact Raw₀.wfImp_getThenInsertIfNew? (by apply h)
|
||||
next h => exact Raw₀.wfImp_filter (by apply h)
|
||||
next h => exact Raw₀.Const.wfImp_getThenInsertIfNew? (by apply h)
|
||||
next h => exact Raw₀.wfImp_modify (by apply h)
|
||||
next h => exact Raw₀.Const.wfImp_modify (by apply h)
|
||||
next h => exact Raw₀.wfImp_alter (by apply h)
|
||||
next h => exact Raw₀.Const.wfImp_alter (by apply h)
|
||||
induction h generalizing i₁ i₂ with
|
||||
| wf _ h => apply h
|
||||
| emptyWithCapacity₀ => exact Raw₀.wfImp_emptyWithCapacity
|
||||
| insert₀ _ h => exact Raw₀.wfImp_insert (by apply h)
|
||||
| containsThenInsert₀ _ h => exact Raw₀.wfImp_containsThenInsert (by apply h)
|
||||
| containsThenInsertIfNew₀ _ h => exact Raw₀.wfImp_containsThenInsertIfNew (by apply h)
|
||||
| erase₀ _ h => exact Raw₀.wfImp_erase (by apply h)
|
||||
| insertIfNew₀ _ h => exact Raw₀.wfImp_insertIfNew (by apply h)
|
||||
| getThenInsertIfNew?₀ _ h => exact Raw₀.wfImp_getThenInsertIfNew? (by apply h)
|
||||
| filter₀ _ h => exact Raw₀.wfImp_filter (by apply h)
|
||||
| constGetThenInsertIfNew?₀ _ h => exact Raw₀.Const.wfImp_getThenInsertIfNew? (by apply h)
|
||||
| modify₀ _ h => exact Raw₀.wfImp_modify (by apply h)
|
||||
| constModify₀ _ h => exact Raw₀.Const.wfImp_modify (by apply h)
|
||||
| alter₀ _ h => exact Raw₀.wfImp_alter (by apply h)
|
||||
| constAlter₀ _ h => exact Raw₀.Const.wfImp_alter (by apply h)
|
||||
|
||||
end Raw
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue