All proofs
Project-declaredLean 4.31.0 · null

Forall₂ trans ish

List.forall₂_trans_ish

Plain-language statement

kind of a transitivity property, if you squint

Exact Lean statement

public theorem forall₂_trans_ish {xs : List α} {ys : List β} {zs : List γ} {Q : α → β → Prop} {R : α → γ → Prop} {S : β → γ → Prop}
  (h₁ : List.Forall₂ Q xs ys)
  (h₂ : List.Forall₂ R xs zs) :
  (∀ {a b c}, Q a b → R a c → S b c) →
  List.Forall₂ S ys zs

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
public theorem forall₂_trans_ish {xs : List α} {ys : List β} {zs : List γ} {Q : α  β  Prop} {R : α  γ  Prop} {S : β  γ  Prop}  (h₁ : List.Forall₂ Q xs ys)  (h₂ : List.Forall₂ R xs zs) :  ( {a b c}, Q a b  R a c  S b c)   List.Forall₂ S ys zs:= by  intro h  induction h₁ generalizing zs with  | nil => simp [forall₂_nil_left_iff] at h₂ ; simp [h₂]  | cons hhd₁ htl₁ ih =>    rename_i xhd yhd xtl ytl    cases h₂ with    | cons hhd₂ htl₂ =>      rename_i zhd ztl      specialize @ih ztl      apply Forall₂.cons      · exact h hhd₁ hhd₂      · exact ih htl₂
Project
Cedar Specification
License
Apache-2.0
Commit
3f093947b8ae
Source
cedar-lean/Cedar/Thm/Data/List/Lemmas.lean:460-477

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.31.0

Find? ext

Cedar.Data.Map.find?_ext

Plain-language statement

Two well-formed maps are equal if they have the same find? for every key.

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Find? notmem keys

Cedar.Data.Map.find?_notmem_keys

Plain-language statement

Inverse of find?_mem_toList, except that this requires wf

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Find? some iff in values

Cedar.Data.Map.find?_some_iff_in_values

Plain-language statement

The mp direction of this does not need the wf precondition and, in fact, is available separately as find?_some_implies_in_values above

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record