url
stringclasses
147 values
commit
stringclasses
147 values
file_path
stringlengths
7
101
full_name
stringlengths
1
94
start
stringlengths
6
10
end
stringlengths
6
11
tactic
stringlengths
1
11.2k
state_before
stringlengths
3
2.09M
state_after
stringlengths
6
2.09M
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
intro x
case hβ‚€.Pure.refl C : _root_.Container R : Type u₁ x y : R ⊒ βˆ€ (i : Container.B (Container C R) (A.Pure x)), eq (PEmpty.rec (fun x => M (Container C R)) i) (PEmpty.rec (fun x => M (Container C R)) i)
case hβ‚€.Pure.refl C : _root_.Container R : Type u₁ x✝ y : R x : Container.B (Container C R) (A.Pure x✝) ⊒ eq (PEmpty.rec (fun x => M (Container C R)) x) (PEmpty.rec (fun x => M (Container C R)) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
apply x.elim
case hβ‚€.Pure.refl C : _root_.Container R : Type u₁ x✝ y : R x : Container.B (Container C R) (A.Pure x✝) ⊒ eq (PEmpty.rec (fun x => M (Container C R)) x) (PEmpty.rec (fun x => M (Container C R)) x)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
exists (A.Free node)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆƒ node_1 k₁_1 kβ‚‚_1, M.destruct (construct (Functor.Free node k₁)) = { fst := node_1, snd := k₁_1 } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := node_1, snd := kβ‚‚_1 } ∧ βˆ€ (i : Container.B (Container C R) node_1), eq (k₁_1 i) (kβ‚‚_1 i)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆƒ k₁_1 kβ‚‚_1, M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁_1 } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚_1 } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁_1 i) (kβ‚‚_1 i)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
exists k₁
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆƒ k₁_1 kβ‚‚_1, M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁_1 } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚_1 } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁_1 i) (kβ‚‚_1 i)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆƒ kβ‚‚_1, M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁ } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚_1 } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚_1 i)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
exists kβ‚‚
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆƒ kβ‚‚_1, M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁ } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚_1 } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚_1 i)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁ } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚ i)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
simp only [construct, M.destruct_construct, inv, true_and]
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ M.destruct (construct (Functor.Free node k₁)) = { fst := A.Free node, snd := k₁ } ∧ M.destruct (construct (Functor.Free node kβ‚‚)) = { fst := A.Free node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚ i)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚ i)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
intro x
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) ⊒ βˆ€ (i : Container.B (Container C R) (A.Free node)), eq (k₁ i) (kβ‚‚ i)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) x : Container.B (Container C R) (A.Free node) ⊒ eq (k₁ x) (kβ‚‚ x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
rw [CompleteLattice.bot_sup] at h
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), (βŠ₯ βŠ” ↑(pgfp (equivF' Eq)) βŠ₯) (k₁ x) (kβ‚‚ x) x : Container.B (Container C R) (A.Free node) ⊒ eq (k₁ x) (kβ‚‚ x)
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), ↑(pgfp (equivF' Eq)) βŠ₯ (k₁ x) (kβ‚‚ x) x : Container.B (Container C R) (A.Free node) ⊒ eq (k₁ x) (kβ‚‚ x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.bisim
[136, 1]
[158, 12]
apply h
case hβ‚€.Free C : _root_.Container R : Type u₁ node : C.A k₁ kβ‚‚ : Container.B C node β†’ Free C R h : βˆ€ (x : Container.B C node), ↑(pgfp (equivF' Eq)) βŠ₯ (k₁ x) (kβ‚‚ x) x : Container.B (Container C R) (A.Free node) ⊒ eq (k₁ x) (kβ‚‚ x)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
have : βˆ€ (x y:Free C R), x = y β†’ Free.eq x y := by apply Free.equiv.coinduction intro x y h cases h conv => congr . rfl . rfl . rw [←construct_destruct x] . rw [←construct_destruct x] cases destruct x with | Pure r => apply equivF.Pure rfl | Free node k => apply equivF.Free intro y left rfl
C : _root_.Container R : Type u₁ ⊒ βˆ€ (x : Free C R), eq x x
C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y ⊒ βˆ€ (x : Free C R), eq x x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
intro x
C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y ⊒ βˆ€ (x : Free C R), eq x x
C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y x : Free C R ⊒ eq x x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
apply this
C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y x : Free C R ⊒ eq x x
case a C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y x : Free C R ⊒ x = x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
rfl
case a C : _root_.Container R : Type u₁ this : βˆ€ (x y : Free C R), x = y β†’ eq x y x : Free C R ⊒ x = x
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
apply Free.equiv.coinduction
C : _root_.Container R : Type u₁ ⊒ βˆ€ (x y : Free C R), x = y β†’ eq x y
case a C : _root_.Container R : Type u₁ ⊒ βˆ€ (x y : Free C R), x = y β†’ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x y
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
intro x y h
case a C : _root_.Container R : Type u₁ ⊒ βˆ€ (x y : Free C R), x = y β†’ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x y
case a C : _root_.Container R : Type u₁ x y : Free C R h : x = y ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x y
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
cases h
case a C : _root_.Container R : Type u₁ x y : Free C R h : x = y ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x y
case a.refl C : _root_.Container R : Type u₁ x : Free C R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
conv => congr . rfl . rfl . rw [←construct_destruct x] . rw [←construct_destruct x]
case a.refl C : _root_.Container R : Type u₁ x : Free C R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) x x
case a.refl C : _root_.Container R : Type u₁ x : Free C R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (construct (destruct x)) (construct (destruct x))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
cases destruct x with | Pure r => apply equivF.Pure rfl | Free node k => apply equivF.Free intro y left rfl
case a.refl C : _root_.Container R : Type u₁ x : Free C R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (construct (destruct x)) (construct (destruct x))
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
apply equivF.Pure
case a.refl.Pure C : _root_.Container R : Type u₁ x : Free C R r : R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (construct (Functor.Pure r)) (construct (Functor.Pure r))
case a.refl.Pure.a C : _root_.Container R : Type u₁ x : Free C R r : R ⊒ r = r
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
rfl
case a.refl.Pure.a C : _root_.Container R : Type u₁ x : Free C R r : R ⊒ r = r
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
apply equivF.Free
case a.refl.Free C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R ⊒ equivF Eq ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (construct (Functor.Free node k)) (construct (Functor.Free node k))
case a.refl.Free.a C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R ⊒ βˆ€ (x : Container.B C node), ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (k x) (k x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
intro y
case a.refl.Free.a C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R ⊒ βˆ€ (x : Container.B C node), ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (k x) (k x)
case a.refl.Free.a C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R y : Container.B C node ⊒ ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (k y) (k y)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
left
case a.refl.Free.a C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R y : Container.B C node ⊒ ((fun x y => x = y) βŠ” pequiv Eq fun x y => x = y) (k y) (k y)
case a.refl.Free.a.h C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R y : Container.B C node ⊒ (fun x y => x = y) (k y) (k y)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.eq.rfl
[161, 1]
[183, 6]
rfl
case a.refl.Free.a.h C : _root_.Container R : Type u₁ x : Free C R node : C.A k : Container.B C node β†’ Free C R y : Container.B C node ⊒ (fun x y => x = y) (k y) (k y)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
apply Free.eq.bisim
C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ corec (bind.automaton f) (Sum.inr x) = x
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ eq (corec (bind.automaton f) (Sum.inr x)) x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
have : βˆ€ x y, x = corec (bind.automaton f) (.inr y) β†’ eq x y := by apply Free.equiv.coinduction intro x y h₁ conv => congr . rfl . rfl . rw [←construct_destruct x] . rw [←construct_destruct y] have hβ‚‚ := congrArg destruct h₁ clear h₁ rw [destruct_corec] at hβ‚‚ cases hy: destruct y with | Pure r => simp only [Map, hy, bind.automaton] at hβ‚‚ rw [hβ‚‚] apply equivF.Pure rfl | Free n k => simp only [Map, bind.automaton, hy] at hβ‚‚ rw [hβ‚‚] apply equivF.Free intro y left rfl
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ eq (corec (bind.automaton f) (Sum.inr x)) x
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S this : βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ eq x y ⊒ eq (corec (bind.automaton f) (Sum.inr x)) x
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
apply this
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S this : βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ eq x y ⊒ eq (corec (bind.automaton f) (Sum.inr x)) x
case a.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S this : βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ eq x y ⊒ corec (bind.automaton f) (Sum.inr x) = corec (bind.automaton f) (Sum.inr x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rfl
case a.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S this : βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ eq x y ⊒ corec (bind.automaton f) (Sum.inr x) = corec (bind.automaton f) (Sum.inr x)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
apply Free.equiv.coinduction
C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ eq x y
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) x y
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
intro x y h₁
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x : Free C S ⊒ βˆ€ (x y : Free C S), x = corec (bind.automaton f) (Sum.inr y) β†’ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) x y
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) x y
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
conv => congr . rfl . rfl . rw [←construct_destruct x] . rw [←construct_destruct y]
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) x y
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
have hβ‚‚ := congrArg destruct h₁
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) hβ‚‚ : destruct x = destruct (corec (bind.automaton f) (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
clear h₁
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S h₁ : x = corec (bind.automaton f) (Sum.inr y) hβ‚‚ : destruct x = destruct (corec (bind.automaton f) (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = destruct (corec (bind.automaton f) (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rw [destruct_corec] at hβ‚‚
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = destruct (corec (bind.automaton f) (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = Map (corec (bind.automaton f)) (bind.automaton f (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
cases hy: destruct y with | Pure r => simp only [Map, hy, bind.automaton] at hβ‚‚ rw [hβ‚‚] apply equivF.Pure rfl | Free n k => simp only [Map, bind.automaton, hy] at hβ‚‚ rw [hβ‚‚] apply equivF.Free intro y left rfl
case a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = Map (corec (bind.automaton f)) (bind.automaton f (Sum.inr y)) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (destruct y))
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
simp only [Map, hy, bind.automaton] at hβ‚‚
case a.Pure C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = Map (corec (bind.automaton f)) (bind.automaton f (Sum.inr y)) r : S hy : destruct y = Functor.Pure r ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Pure r))
case a.Pure C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Pure r))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rw [hβ‚‚]
case a.Pure C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Pure r))
case a.Pure C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (Functor.Pure r)) (construct (Functor.Pure r))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
apply equivF.Pure
case a.Pure C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (Functor.Pure r)) (construct (Functor.Pure r))
case a.Pure.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ r = r
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rfl
case a.Pure.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S r : S hy : destruct y = Functor.Pure r hβ‚‚ : destruct x = Functor.Pure r ⊒ r = r
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
simp only [Map, bind.automaton, hy] at hβ‚‚
case a.Free C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S hβ‚‚ : destruct x = Map (corec (bind.automaton f)) (bind.automaton f (Sum.inr y)) n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Free n k))
case a.Free C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Free n k))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rw [hβ‚‚]
case a.Free C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (destruct x)) (construct (Functor.Free n k))
case a.Free C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k))) (construct (Functor.Free n k))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
apply equivF.Free
case a.Free C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ equivF Eq ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (construct (Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k))) (construct (Functor.Free n k))
case a.Free.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ βˆ€ (x : Container.B C n), ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) x) (k x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
intro y
case a.Free.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) ⊒ βˆ€ (x : Container.B C n), ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) x) (k x)
case a.Free.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y✝ : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y✝ = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y : Container.B C n ⊒ ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y) (k y)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
left
case a.Free.a C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y✝ : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y✝ = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y : Container.B C n ⊒ ((fun x y => x = corec (bind.automaton f) (Sum.inr y)) βŠ” pequiv Eq fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y) (k y)
case a.Free.a.h C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y✝ : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y✝ = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y : Container.B C n ⊒ (fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y) (k y)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_inr
[199, 1]
[228, 6]
rfl
case a.Free.a.h C : _root_.Container R S : Type u₁ f : R β†’ Free C S x✝ x y✝ : Free C S n : C.A k : Container.B C n β†’ Free C S hy : destruct y✝ = Functor.Free n k hβ‚‚ : destruct x = Functor.Free n ((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y : Container.B C n ⊒ (fun x y => x = corec (bind.automaton f) (Sum.inr y)) (((corec fun x => match x with | Sum.inr x => match destruct x with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Sum.inl x => match destruct x with | Functor.Pure r => match destruct (f r) with | Functor.Pure r => Functor.Pure r | Functor.Free node k => Functor.Free node (Sum.inr ∘ k) | Functor.Free n k => Functor.Free n (Sum.inl ∘ k)) ∘ Sum.inr ∘ k) y) (k y)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
rw [←construct_destruct <| k r]
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ bind (pure r) k = k r
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ bind (pure r) k = construct (destruct (k r))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
rw [←construct_destruct <| bind (pure r) k]
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ bind (pure r) k = construct (destruct (k r))
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ construct (destruct (bind (pure r) k)) = construct (destruct (k r))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
simp only [bind, pure, destruct_corec]
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ construct (destruct (bind (pure r) k)) = construct (destruct (k r))
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ construct (Map (corec (bind.automaton k)) (bind.automaton k (Sum.inl (construct (Functor.Pure r))))) = construct (destruct (k r))
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
apply congrArg construct
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ construct (Map (corec (bind.automaton k)) (bind.automaton k (Sum.inl (construct (Functor.Pure r))))) = construct (destruct (k r))
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ Map (corec (bind.automaton k)) (bind.automaton k (Sum.inl (construct (Functor.Pure r)))) = destruct (k r)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
conv => lhs congr . rfl . simp only [bind.automaton, destruct_construct]
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ Map (corec (bind.automaton k)) (bind.automaton k (Sum.inl (construct (Functor.Pure r)))) = destruct (k r)
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ Map (corec (bind.automaton k)) (Map Sum.inr (destruct (k r))) = destruct (k r)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
cases destruct (k r) with | Pure r => simp only [Map] | Free n k => simp only [Map] conv => lhs congr simp only [Function.comp] intro x rw [bind_inr]
C : _root_.Container R S : Type u₁ r : R k : R β†’ Free C S ⊒ Map (corec (bind.automaton k)) (Map Sum.inr (destruct (k r))) = destruct (k r)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
simp only [Map]
case Pure C : _root_.Container R S : Type u₁ r✝ : R k : R β†’ Free C S r : S ⊒ Map (corec (bind.automaton k)) (Map Sum.inr (Functor.Pure r)) = Functor.Pure r
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
simp only [Map]
case Free C : _root_.Container R S : Type u₁ r : R k✝ : R β†’ Free C S n : C.A k : Container.B C n β†’ Free C S ⊒ Map (corec (bind.automaton k✝)) (Map Sum.inr (Functor.Free n k)) = Functor.Free n k
case Free C : _root_.Container R S : Type u₁ r : R k✝ : R β†’ Free C S n : C.A k : Container.B C n β†’ Free C S ⊒ Functor.Free n (corec (bind.automaton k✝) ∘ Sum.inr ∘ k) = Functor.Free n k
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/FreeMonads.lean
Free.bind_pure
[230, 1]
[251, 20]
conv => lhs congr simp only [Function.comp] intro x rw [bind_inr]
case Free C : _root_.Container R S : Type u₁ r : R k✝ : R β†’ Free C S n : C.A k : Container.B C n β†’ Free C S ⊒ Functor.Free n (corec (bind.automaton k✝) ∘ Sum.inr ∘ k) = Functor.Free n k
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.wf_destruct
[72, 1]
[79, 10]
simp only [WellFormed, PWellFormed] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : WellFormed i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.wf_destruct
[72, 1]
[79, 10]
rw [←pgfp.unfold] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.wf_destruct
[72, 1]
[79, 10]
simp only [CompleteLattice.bot_sup] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.wf_destruct
[72, 1]
[79, 10]
have ⟨_, y⟩ := wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m left✝ : Idx C (Container.M.destruct m).fst = i y : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.wf_destruct
[72, 1]
[79, 10]
exact y
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m left✝ : Idx C (Container.M.destruct m).fst = i y : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
simp only [WellFormed, PWellFormed] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : WellFormed i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf }).fst
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf }).fst
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
rw [←pgfp.unfold] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf }).fst
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
simp only [CompleteLattice.bot_sup] at wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
have ⟨x, _⟩ := wf
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m x : Idx C (Container.M.destruct m).fst = i right✝ : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
apply Eq.symm
I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m x : Idx C (Container.M.destruct m).fst = i right✝ : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ i = Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst
case h I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m x : Idx C (Container.M.destruct m).fst = i right✝ : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst = i
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.index_destruct
[81, 1]
[88, 10]
exact x
case h I : Type uβ‚€ C : IContainer' I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m x : Idx C (Container.M.destruct m).fst = i right✝ : βˆ€ (x : B C (Container.M.destruct m).fst), ↑(pgfp (WellFormedF C)) βŠ₯ (Next C (Container.M.destruct m).fst x) (PSigma.snd (Container.M.destruct m) x) ⊒ Idx C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst = i
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
intro ⟨x, wfx⟩ ⟨y, wfy⟩ h₁
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I ⊒ βˆ€ (x y : M C i), R i x y β†’ x = y
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ { val := x, property := wfx } = { val := y, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
suffices h: x = y by induction h rfl
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ { val := x, property := wfx } = { val := y, property := wfy }
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ x = y
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
apply Container.M.bisim (Ξ» x y => βˆƒ i, βˆƒ (wfx: WellFormed i x) (wfy:WellFormed i y), R i ⟨x, wfx⟩ ⟨y, wfy⟩)
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ x = y
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆ€ (x y : Container.M (toContainer C)), (βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }) β†’ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy } case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
. intro x y ⟨i, wfx, wfy, r⟩ have ⟨⟨node, hβ‚„βŸ©, k₁, kβ‚‚, h₁, hβ‚‚, hβ‚ƒβŸ© := hβ‚€ i ⟨x, wfx⟩ ⟨y, wfy⟩ r have h₁ := lift_destruct_eq _ _ _ _ h₁ have hβ‚‚ := lift_destruct_eq _ _ _ _ hβ‚‚ have wfx' := wf_destruct ⟨x, wfx⟩ have wfy' := wf_destruct ⟨y, wfy⟩ exists node exists Ξ» a => (k₁ a).1 exists Ξ» x => (kβ‚‚ x).1 simp only [h₁, hβ‚‚, true_and] intro a exists C.Next node a simp only [toContainer] at a exists (by rw [h₁] at wfx' apply wfx' ) exists (by rw [hβ‚‚] at wfy' apply wfy' ) exact h₃ a
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆ€ (x y : Container.M (toContainer C)), (βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }) β†’ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy } case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists i
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists wfx
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ wfy, R i { val := x, property := wfx } { val := y, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists wfy
case a I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ wfy, R i { val := x, property := wfx } { val := y, property := wfy }
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
induction h
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } h : x = y ⊒ { val := x, property := wfx } = { val := y, property := wfy }
case refl I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i x h₁ : R i { val := x, property := wfx } { val := x, property := wfy } ⊒ { val := x, property := wfx } = { val := x, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
rfl
case refl I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i x h₁ : R i { val := x, property := wfx } { val := x, property := wfy } ⊒ { val := x, property := wfx } = { val := x, property := wfy }
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
intro x y ⟨i, wfx, wfy, r⟩
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i : I x : Container.M (toContainer C) wfx : WellFormed i x y : Container.M (toContainer C) wfy : WellFormed i y h₁ : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆ€ (x y : Container.M (toContainer C)), (βˆƒ i wfx wfy, R i { val := x, property := wfx } { val := y, property := wfy }) β†’ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ h₁ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
have ⟨⟨node, hβ‚„βŸ©, k₁, kβ‚‚, h₁, hβ‚‚, hβ‚ƒβŸ© := hβ‚€ i ⟨x, wfx⟩ ⟨y, wfy⟩ r
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ h₁ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) h₁ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
have h₁ := lift_destruct_eq _ _ _ _ h₁
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) h₁ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
have hβ‚‚ := lift_destruct_eq _ _ _ _ hβ‚‚
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
have wfx' := wf_destruct ⟨x, wfx⟩
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
have wfy' := wf_destruct ⟨y, wfy⟩
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists node
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ node k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists Ξ» a => (k₁ a).1
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ k₁ kβ‚‚, Container.M.destruct x = { fst := node, snd := k₁ } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i : Container.B (toContainer C) node), βˆƒ i_1 wfx wfy, R i_1 { val := k₁ i, property := wfx } { val := kβ‚‚ i, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ kβ‚‚, Container.M.destruct x = { fst := node, snd := fun a => ↑(k₁ a) } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 wfx wfy, R i_2 { val := (fun a => ↑(k₁ a)) i_1, property := wfx } { val := kβ‚‚ i_1, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists Ξ» x => (kβ‚‚ x).1
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆƒ kβ‚‚, Container.M.destruct x = { fst := node, snd := fun a => ↑(k₁ a) } ∧ Container.M.destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 wfx wfy, R i_2 { val := (fun a => ↑(k₁ a)) i_1, property := wfx } { val := kβ‚‚ i_1, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ Container.M.destruct x = { fst := node, snd := fun a => ↑(k₁ a) } ∧ Container.M.destruct y = { fst := node, snd := fun x => ↑(kβ‚‚ x) } ∧ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 wfx wfy, R i_2 { val := (fun a => ↑(k₁ a)) i_1, property := wfx } { val := (fun x => ↑(kβ‚‚ x)) i_1, property := wfy }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
simp only [h₁, hβ‚‚, true_and]
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ Container.M.destruct x = { fst := node, snd := fun a => ↑(k₁ a) } ∧ Container.M.destruct y = { fst := node, snd := fun x => ↑(kβ‚‚ x) } ∧ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 wfx wfy, R i_2 { val := (fun a => ↑(k₁ a)) i_1, property := wfx } { val := (fun x => ↑(kβ‚‚ x)) i_1, property := wfy }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 h h_1, R i_2 { val := ↑(k₁ i_1), property := (_ : WellFormed i_2 ((fun a => ↑(k₁ a)) i_1)) } { val := ↑(kβ‚‚ i_1), property := (_ : WellFormed i_2 ((fun x => ↑(kβ‚‚ x)) i_1)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
intro a
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) ⊒ βˆ€ (i_1 : Container.B (toContainer C) node), βˆƒ i_2 h h_1, R i_2 { val := ↑(k₁ i_1), property := (_ : WellFormed i_2 ((fun a => ↑(k₁ a)) i_1)) } { val := ↑(kβ‚‚ i_1), property := (_ : WellFormed i_2 ((fun x => ↑(kβ‚‚ x)) i_1)) }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : Container.B (toContainer C) node ⊒ βˆƒ i_1 h h_1, R i_1 { val := ↑(k₁ a), property := (_ : WellFormed i_1 ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed i_1 ((fun x => ↑(kβ‚‚ x)) a)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists C.Next node a
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : Container.B (toContainer C) node ⊒ βˆƒ i_1 h h_1, R i_1 { val := ↑(k₁ a), property := (_ : WellFormed i_1 ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed i_1 ((fun x => ↑(kβ‚‚ x)) a)) }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : Container.B (toContainer C) node ⊒ βˆƒ h h_1, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
simp only [toContainer] at a
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : Container.B (toContainer C) node ⊒ βˆƒ h h_1, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ βˆƒ h h_1, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists (by rw [h₁] at wfx' apply wfx' )
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ βˆƒ h h_1, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ βˆƒ h, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exists (by rw [hβ‚‚] at wfy' apply wfy' )
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ βˆƒ h, R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
exact h₃ a
case hβ‚€ I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ R (Next C node a) { val := ↑(k₁ a), property := (_ : WellFormed (Next C node a) ((fun a => ↑(k₁ a)) a)) } { val := ↑(kβ‚‚ a), property := (_ : WellFormed (Next C node a) ((fun x => ↑(kβ‚‚ x)) a)) }
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
rw [h₁] at wfx'
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ WellFormed (Next C node a) ↑(k₁ a)
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x : B C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) }.fst), WellFormed (Next C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) }.fst x) (PSigma.snd { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } x) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ WellFormed (Next C node a) ↑(k₁ a)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
apply wfx'
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x : B C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) }.fst), WellFormed (Next C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) }.fst x) (PSigma.snd { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } x) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ WellFormed (Next C node a) ↑(k₁ a)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
rw [hβ‚‚] at wfy'
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C (Container.M.destruct ↑{ val := y, property := wfy }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := y, property := wfy }).fst x) (PSigma.snd (Container.M.destruct ↑{ val := y, property := wfy }) x) a : B C node ⊒ WellFormed (Next C node a) ↑(kβ‚‚ a)
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) }.fst), WellFormed (Next C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) }.fst x) (PSigma.snd { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } x) a : B C node ⊒ WellFormed (Next C node a) ↑(kβ‚‚ a)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/Test.lean
IContainer'.M.bisim
[139, 1]
[176, 13]
apply wfy'
I : Type uβ‚€ C : IContainer' I R : (i : I) β†’ M C i β†’ M C i β†’ Prop hβ‚€ : βˆ€ (i : I) (x y : M C i), R i x y β†’ βˆƒ node k₁ kβ‚‚, destruct x = { fst := node, snd := k₁ } ∧ destruct y = { fst := node, snd := kβ‚‚ } ∧ βˆ€ (z : B C ↑node), R (Next C (↑node) z) (k₁ z) (kβ‚‚ z) i✝ : I x✝ : Container.M (toContainer C) wfx✝ : WellFormed i✝ x✝ y✝ : Container.M (toContainer C) wfy✝ : WellFormed i✝ y✝ hβ‚βœΒΉ : R i✝ { val := x✝, property := wfx✝ } { val := y✝, property := wfy✝ } x y : Container.M (toContainer C) i : I wfx : WellFormed i x wfy : WellFormed i y r : R i { val := x, property := wfx } { val := y, property := wfy } node : C.A hβ‚„ : i = Idx C node k₁ kβ‚‚ : (y : B C ↑{ val := node, property := hβ‚„ }) β†’ M C (Next C (↑{ val := node, property := hβ‚„ }) y) hβ‚βœ : destruct { val := x, property := wfx } = { fst := { val := node, property := hβ‚„ }, snd := k₁ } hβ‚‚βœ : destruct { val := y, property := wfy } = { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } h₃ : βˆ€ (z : B C ↑{ val := node, property := hβ‚„ }), R (Next C (↑{ val := node, property := hβ‚„ }) z) (k₁ z) (kβ‚‚ z) h₁ : Container.M.destruct x = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := k₁ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := k₁ } x) } hβ‚‚ : Container.M.destruct y = { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } wfx' : βˆ€ (x_1 : B C (Container.M.destruct ↑{ val := x, property := wfx }).fst), WellFormed (Next C (Container.M.destruct ↑{ val := x, property := wfx }).fst x_1) (PSigma.snd (Container.M.destruct ↑{ val := x, property := wfx }) x_1) wfy' : βˆ€ (x : B C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) }.fst), WellFormed (Next C { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) }.fst x) (PSigma.snd { fst := ↑{ fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ }.fst, snd := fun x => ↑(Sigma.snd { fst := { val := node, property := hβ‚„ }, snd := kβ‚‚ } x) } x) a : B C node ⊒ WellFormed (Next C node a) ↑(kβ‚‚ a)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.wf_destruct
[50, 1]
[57, 10]
simp only [WellFormed, PWellFormed] at wf
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf : WellFormed i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.wf_destruct
[50, 1]
[57, 10]
rw [←pgfp.unfold] at wf
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf }).fst.fst (Container.M.destruct ↑{ val := m, property := wf }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf }) x)
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.wf_destruct
[50, 1]
[57, 10]
simp only [CompleteLattice.bot_sup] at wf
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (βŠ₯ βŠ” ↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.wf_destruct
[50, 1]
[57, 10]
have ⟨_, y⟩ := wf
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m left✝ : (Container.M.destruct m).fst.fst = i y : βˆ€ (x : B C (Container.M.destruct m).fst.fst (Container.M.destruct m).fst.snd), ↑(pgfp (WellFormedF C)) βŠ₯ (N C (Container.M.destruct m).fst.fst (Container.M.destruct m).fst.snd x) (PSigma.snd (Container.M.destruct m) x) ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.wf_destruct
[50, 1]
[57, 10]
exact y
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf✝ : ↑(pgfp (WellFormedF C)) βŠ₯ i m wf : ↑(WellFormedF C) (↑(pgfp (WellFormedF C)) βŠ₯) i m left✝ : (Container.M.destruct m).fst.fst = i y : βˆ€ (x : B C (Container.M.destruct m).fst.fst (Container.M.destruct m).fst.snd), ↑(pgfp (WellFormedF C)) βŠ₯ (N C (Container.M.destruct m).fst.fst (Container.M.destruct m).fst.snd x) (PSigma.snd (Container.M.destruct m) x) ⊒ βˆ€ (x : B C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd), WellFormed (N C (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.fst (Container.M.destruct ↑{ val := m, property := wf✝ }).fst.snd x) (PSigma.snd (Container.M.destruct ↑{ val := m, property := wf✝ }) x)
no goals
https://github.com/RemyCiterin/LeanCoInd.git
69d305ae769624f460f9c1ee6a0351917f4b74cf
CoInd/MIdx.lean
IContainer.M.index_destruct
[59, 1]
[66, 10]
simp only [WellFormed, PWellFormed] at wf
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf : WellFormed i m ⊒ i = (Container.M.destruct ↑{ val := m, property := wf }).fst.fst
I : Type uβ‚€ C : IContainer I i : I x✝ : M C i m : Container.M (toContainer C) wf : ↑(pgfp (WellFormedF C)) βŠ₯ i m ⊒ i = (Container.M.destruct ↑{ val := m, property := wf }).fst.fst