Edits added below to outline Florida's laws based on OP's comment
Jurisdiction does matter but here is a general answer regarding "stand your ground" laws. States that have so-called "stand your ground laws" each have their own language concerning the law. "Stand your ground laws" are often misunderstood but, generally, just mean that a person has no duty to retreat when using deadly physical force for purposes of self-defense or the defense of others. Your examples are more akin to "castle doctrine" laws which I touch on below.
Note that all of these laws vary by jurisdiction. I've provided partial examples from Arizona, New York and California. Using deadly physical force for purposes of self-defense or defense of others is complex law and even a complete example from any particular jurisdiction will not be able to cover all circumstances. Each case will be determined by a judge or jury based on the facts of that particular case.
Arizona's "stand your ground" statute, as an example, states:
B. A person has no duty to retreat before threatening or using deadly physical force pursuant to this section if the person is in a place where the person may legally be and is not engaged in an unlawful act.
"Stand your ground" simply means that a person doesn't have to first attempt to retreat before resorting to the use of deadly force.
Arizona's statute regarding justification for self-defense states (emphasis mine):
A. Except as provided in subsection B of this section, a person is justified in threatening or using physical force against another when and to the extent a reasonable person would believe that physical force is immediately necessary to protect himself against the other's use or attempted use of unlawful physical force.
B. The threat or use of physical force against another is not
In response to verbal provocation alone; or
To resist an arrest that the person knows or should know is being made by a peace officer or by a person acting in a peace officer's
presence and at his direction, whether the arrest is lawful or
unlawful, unless the physical force used by the peace officer exceeds
that allowed by law; or
If the person provoked the other's use or attempted use of unlawful physical force, unless:
(a) The person withdraws from the encounter or clearly communicates to
the other his intent to do so reasonably believing he cannot safely
withdraw from the encounter; and
(b) The other nevertheless continues or attempts to use unlawful
physical force against the person.
Note the phrase, "extent a reasonable person." This means that the actions of a person using deadly force will be measured against what a "reasonable person" would do in similar circumstances.
Some states have a duty to retreat, particularly when in a public place, before using deadly force. New York, as an example, has a "duty to retreat" before using deadly force except in specific circumstances (emphasis mine):
- A person may not use deadly physical force upon another person under circumstances specified in subdivision one unless:
actor reasonably believes that such other person is using or about
to use deadly physical force. Even in such case, however, the
actor may not use deadly physical force if he or she knows that
with complete personal safety, to oneself and others he or she may
avoid the necessity of so doing by retreating; except that the actor
is under no duty to retreat if he or she is:
(i) in his or her
dwelling and not the initial aggressor; or
(ii) a police officer or
peace officer or a person assisting a police officer or a peace
officer at the latter`s direction, acting pursuant to section 35.30;
(b) He or she reasonably believes that such other person is
committing or attempting to commit a kidnapping, forcible rape,
forcible criminal sexual act or robbery; or
(c) He or she
reasonably believes that such other person is committing or
attempting to commit a burglary, and the circumstances are such that
the use of deadly physical force is authorized by subdivision three of
Castle Doctrine Laws typically refer to what one may do in their own home when it comes to the use of deadly force. Some states have extended the "castle doctrine" to include personal automobiles as well.
California's "castle doctrine" statute, as an example, states that if one is in their own home and someone "unlawfully and forcibly" enters the home one can presume that the person in his or her residence "held a reasonable fear of imminent peril of death or great bodily injury":
Any person using force intended or likely to cause death or great bodily injury within his or her residence shall be presumed to have held a reasonable fear of imminent peril of death or great bodily injury to self, family, or a member of the household when that force is used against another person, not a member of the family or household, who unlawfully and forcibly enters or has unlawfully and forcibly entered the residence and the person using the force knew or had reason to believe that an unlawful and forcible entry occurred.
As used in this section, great bodily injury means a significant or substantial physical injury.
In California's statute both the resident and the person using force to gain entry have to know or have reason to believe that an unlawful and forcible entry occurred. If a person simply entered an unlocked home then the resident would have to have some other reasonable reason to believe that they were in imminent peril of death or great bodily injury.
Wikipedia has a reasonable entry on the adoption of "stand your ground" and "castle doctrine" statutes and gives a state-by-state breakdown of both. Note that these laws have seen a lot of change recently and any particular entry for a state may not be accurate.
Florida's self-defense laws
Florida's "Use or threatened use of force in defense of person" states:
776.012 Use or threatened use of force in defense of person.—
(1) A person is justified in using or threatening to use force, except deadly force, against another when and to the extent that the person reasonably believes that such conduct is necessary to defend himself or herself or another against the other’s imminent use of unlawful force. A person who uses or threatens to use force in accordance with this subsection does not have a duty to retreat before using or threatening to use such force.
(2) A person is justified in using or threatening to use deadly force if he or she reasonably believes that using or threatening to use such force is necessary to prevent imminent death or great bodily harm to himself or herself or another or to prevent the imminent commission of a forcible felony. A person who uses or threatens to use deadly force in accordance with this subsection does not have a duty to retreat and has the right to stand his or her ground if the person using or threatening to use the deadly force is not engaged in a criminal activity and is in a place where he or she has a right to be.
Florida outlines the cases where use, or threatened use, of force is justified. Notice that in the law Florida specifically states that the person threatened does not have a duty to retreat. Florida also specifically states that a person has a "right to stand his or her ground" if the person is in a place where he or she has a right to be and is not engaged in criminal activity.
Florida statute also specifically outlines the right to use self-defense within one's home and vehicle. Florida has a "castle doctrine" similar to what was outlined above and similar in nature to New York's and California's laws:
The person against whom the defensive force was used was in the process of unlawfully and forcefully entering, or had unlawfully and forcibly entered, a dwelling, residence, or occupied vehicle, or if that person had removed or was attempting to remove another against that person’s will from the dwelling, residence, or occupied vehicle;
Florida has a longer list of exemptions related to who may have used force to enter a home including ownership interest in the property or vehicle, children and grandchildren, the person who engaged defensive force was involved in criminal activity and law enforcement officers.
Florida's Justifiable Use Of Force is chapter 776 discusses when force can be used.
There was an attempt by the Florida legislature in 2019 to change the standard by which use of force could be justified from "reasonably believes" force is necessary to "a reasonably cautious and prudent person in the same circumstances would objectively believe" force was necessary. The bill was withdrawn in May, 2019.