ITPEval / src_data /babel-formal /stmts /lean4 /graph_paths.lean
jiayi005's picture
update data
bb40bb0 verified
Raw
History Blame Contribute Delete
1.32 kB
universe u
namespace GraphPath
variable {V : Type u}
def Edge (V : Type u) := VVProp
inductive Path (E : Edge V) : VVProp
| nil :v, Path E v v
| step :{u v w}, Path E u vE v wPath E u w
variable {E : Edge V}
theorem refl (v : V) : Path (E:=E) v v := Path.nil v
theorem trans {u v w : V} : Path (E:=E) u vPath (E:=E) v wPath (E:=E) u w := by sorry
def Erev (E : Edge V) : Edge V := fun x y => E y x
def undirected (E : Edge V) : Prop :=x y, E x yE y x
theorem reverse_path {u v : V} (hE : undirected E) :
Path (E:=E) u vPath (E:=E) v u := by sorry
theorem concat_edge_right {u v w : V} :
Path (E:=E) u vE v wPath (E:=E) u w := by sorry
theorem concat {u v w : V} :
Path (E:=E) u vPath (E:=E) v wPath (E:=E) u w := by sorry
theorem edge_path {u v : V} : E u vPath (E:=E) u v := by sorry
theorem concat_edge_left {u v w : V} :
E u vPath (E:=E) v wPath (E:=E) u w := by sorry
theorem concat3 {u v w t : V} :
Path (E:=E) u vPath (E:=E) v wPath (E:=E) w tPath (E:=E) u t := by sorry
theorem reverse_in_Erev {u v : V} :
Path (E:=E) u vPath (E:=Erev E) v u := by sorry
theorem cycle_refl {v w : V} :
Path (E:=E) v wPath (E:=E) w vPath (E:=E) v v := by sorry
end GraphPath