Theory Surface_Isometry_Examples

theory Surface_Isometry_Examples
  imports Spherical_Patches Surface_Isometry_Calculus
begin

section ‹Plane and cylinder as isometric patches›

lemma plane_cylinder_local_isometry:
  "surface_local_isometry cylinder_strip plane_patch cylinder_strip cylinder_patch id"
proof -
  have plane: "regular_surface_patch cylinder_strip plane_patch"
    by (rule plane.restrict_patch[OF cylinder_strip_open], simp)
  have cylinder: "regular_surface_patch cylinder_strip cylinder_patch"
    by (rule cylinder.restrict_patch[OF cylinder_strip_open], simp)
  have smooth: "3-smooth_on cylinder_strip (id :: surface_parameter ⇒ surface_parameter)"
    unfolding id_def by (rule smooth_on_id)
  show ?thesis
    using plane cylinder smooth cylinder_strip_open
    by (unfold_locales,
      auto simp: regular_surface_patch_def parameter_jacobian_def axis_def
        plane_metric cylinder_metric)
qed

text ‹The preceding coordinate isometry is realized on the surface images by
the rolling homeomorphism. Its chart expression is the identity.›

theorem plane_cylinder_isometric_patches:
  "homeomorphism (plane_patch ` cylinder_strip) (cylinder_patch ` cylinder_strip)
      roll_plane unroll_cylinder ∧
   surface_local_isometry cylinder_strip plane_patch cylinder_strip cylinder_patch id"
  using rolling_homeomorphism plane_cylinder_local_isometry by blast


lemma cylinder_plane_local_isometry:
  "surface_local_isometry cylinder_strip cylinder_patch cylinder_strip plane_patch id"
proof -
  interpret rolling: surface_local_isometry cylinder_strip plane_patch cylinder_strip cylinder_patch id
    by (rule plane_cylinder_local_isometry)
  show ?thesis by (rule rolling.inverse_local_isometry)
    (auto simp: id_def intro: smooth_on_id)
qed

lemma rolling_round_trip_isometry:
  "surface_local_isometry cylinder_strip plane_patch cylinder_strip plane_patch (id ∘ id)"
  by (rule surface_local_isometry.compose_local_isometry[OF
    plane_cylinder_local_isometry cylinder_plane_local_isometry])

section ‹A nonidentity parameter isometry›

lemma half_turn_plane_isometry:
  "surface_local_isometry UNIV plane_patch UNIV plane_patch uminus"
proof -
  have smooth: "3-smooth_on UNIV (uminus :: surface_parameter ⇒ surface_parameter)"
    by (auto intro!: smooth_on_uminus smooth_on_id)
  have deriv: "frechet_derivative (uminus :: surface_parameter ⇒ surface_parameter) (at p) = uminus" for p
    by (rule sym, rule frechet_derivative_at, auto intro!: derivative_eq_intros)
  show ?thesis using plane.regular_surface_patch_axioms smooth
    by (unfold_locales, auto simp: regular_surface_patch_def plane_metric deriv)
qed

end