Source-pinned research

Research proof index

Search theorem names, mathematical ideas, modules, topics, projects, and role-labelled researchers. Open a result for its complete indexed Lean declaration and source record.

This index contains 219 research declarations. Search 10,000 more complete Mathlib declarations.

1 topic

219 results

Clear filters
Project-declaredLean 4.31.0

Canonicalize id filter

List.canonicalize_id_filter

Plain-language statement

Illustration that equiv_implies_canonical_eq does not hold for all functions f -- in particular, does not hold for Prod.fst. (One canonicalize produces [(1, false)], and the other produces [(1, true)].) -/ example : xs = [(1, false), (1, true)] → ys = [(1, true), (1, false)] → xs ≡ ys ∧ (canonicalize Prod.fst xs) ≠ (canonicalize Prod.fst ys) :...

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Find? pair map

List.find?_pair_map

Project documentation

our own variant of map_congr, for mapM -/ public theorem mapM_congr [Monad m] [LawfulMonad m] {f g : α → m β} : ∀ {l : List α}, (∀ x ∈ l, f x = g x) → mapM f l = mapM g l := by intro l rw [← mapM'_eq_mapM, ← mapM'_eq_mapM] exact mapM'_congr public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} : (List.mapM' f l).toOption = (List.ma...

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Foldl M of assoc some

List.foldlM_of_assoc_some

Project documentation

our own variant of map_congr, for mapM -/ public theorem mapM_congr [Monad m] [LawfulMonad m] {f g : α → m β} : ∀ {l : List α}, (∀ x ∈ l, f x = g x) → mapM f l = mapM g l := by intro l rw [← mapM'_eq_mapM, ← mapM'_eq_mapM] exact mapM'_congr public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} : (List.mapM' f l).toOption = (List.ma...

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Forall₂ compose map M right

List.forall₂_compose_mapM_right

Plain-language statement

Applying mapM on the RHS list of Forall₂ leads to new Forall₂ relation if certain conditions are met.

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Forall₂ implies all left

List.forall₂_implies_all_left

Plain-language statement

Note the converse is not true: counterexample R is =, xs is [1], ys is [1, 2]

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record