Perm as bs
asserts that as
and bs
are permutations of each other.
This is a wrapper around List.Perm
, and for now has much less API.
For more complicated verification, use perm_iff_toList_perm
and the List
API.
Equations
- as.Perm bs = as.toList.Perm bs.toList
Instances For
Perm as bs
asserts that as
and bs
are permutations of each other.
This is a wrapper around List.Perm
, and for now has much less API.
For more complicated verification, use perm_iff_toList_perm
and the List
API.
Equations
- Array.«term_~_» = Lean.ParserDescr.trailingNode `Array.«term_~_» 50 50 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ~ ") (Lean.ParserDescr.cat `term 51))
Instances For
theorem
Array.perm_iff_toList_perm
{α : Type u_1}
{as bs : Array α}
:
as.Perm bs ↔ as.toList.Perm bs.toList
@[simp]
theorem
Array.Perm.trans
{α : Type u_1}
{l₁ l₂ l₃ : Array α}
(h₁ : l₁.Perm l₂)
(h₂ : l₂.Perm l₃)
:
l₁.Perm l₃
Equations
- Array.instTransPerm = { trans := ⋯ }
theorem
Array.Perm.push
{α : Type u_1}
(x y : α)
{l₁ l₂ : Array α}
(p : l₁.Perm l₂)
:
((l₁.push x).push y).Perm ((l₂.push y).push x)