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.
- of_toList_perm :: (
- )
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.pairwise_iff {α : Type u_1} {R : α → α → Prop} (S : ∀ {x y : α}, R x y → R y x) {xs ys : Array α} (_p : xs.Perm ys) :
theorem Array.Perm.pairwise {α : Type u_1} {R : α → α → Prop} {xs ys : Array α} (hp : xs.Perm ys) (hR : List.Pairwise R xs.toList) (hsymm : ∀ {x y : α}, R x y → R y x) :
List.Pairwise R ys.toList